@matchi/api 0.20260520.1 → 0.20260522.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main/index.d.mts +4 -3
- package/dist/main/index.d.ts +4 -3
- package/dist/main/index.js +2 -2
- package/dist/main/index.mjs +2 -2
- package/package.json +1 -1
package/dist/main/index.d.mts
CHANGED
|
@@ -3786,6 +3786,7 @@ declare const Gender: {
|
|
|
3786
3786
|
type Gender = typeof Gender[keyof typeof Gender];
|
|
3787
3787
|
declare const LinkType: {
|
|
3788
3788
|
readonly ACTIVITY: "ACTIVITY";
|
|
3789
|
+
readonly BOOKING: "BOOKING";
|
|
3789
3790
|
readonly MATCH: "MATCH";
|
|
3790
3791
|
};
|
|
3791
3792
|
type LinkType = typeof LinkType[keyof typeof LinkType];
|
|
@@ -4664,9 +4665,9 @@ type ListPostsData = {
|
|
|
4664
4665
|
};
|
|
4665
4666
|
query?: {
|
|
4666
4667
|
/**
|
|
4667
|
-
* Filter posts by link type.
|
|
4668
|
+
* Filter posts by link type. Repeat the parameter to filter by multiple link types (e.g. `?link_type=MATCH&link_type=BOOKING`).
|
|
4668
4669
|
*/
|
|
4669
|
-
link_type?: LinkType
|
|
4670
|
+
link_type?: Array<LinkType>;
|
|
4670
4671
|
/**
|
|
4671
4672
|
* Number of items to skip before returning the results.
|
|
4672
4673
|
*/
|
|
@@ -6763,7 +6764,7 @@ declare const GenderSchema: {
|
|
|
6763
6764
|
readonly type: "string";
|
|
6764
6765
|
};
|
|
6765
6766
|
declare const LinkTypeSchema: {
|
|
6766
|
-
readonly enum: readonly ["ACTIVITY", "MATCH"];
|
|
6767
|
+
readonly enum: readonly ["ACTIVITY", "BOOKING", "MATCH"];
|
|
6767
6768
|
readonly type: "string";
|
|
6768
6769
|
};
|
|
6769
6770
|
declare const MatchSchema: {
|
package/dist/main/index.d.ts
CHANGED
|
@@ -3786,6 +3786,7 @@ declare const Gender: {
|
|
|
3786
3786
|
type Gender = typeof Gender[keyof typeof Gender];
|
|
3787
3787
|
declare const LinkType: {
|
|
3788
3788
|
readonly ACTIVITY: "ACTIVITY";
|
|
3789
|
+
readonly BOOKING: "BOOKING";
|
|
3789
3790
|
readonly MATCH: "MATCH";
|
|
3790
3791
|
};
|
|
3791
3792
|
type LinkType = typeof LinkType[keyof typeof LinkType];
|
|
@@ -4664,9 +4665,9 @@ type ListPostsData = {
|
|
|
4664
4665
|
};
|
|
4665
4666
|
query?: {
|
|
4666
4667
|
/**
|
|
4667
|
-
* Filter posts by link type.
|
|
4668
|
+
* Filter posts by link type. Repeat the parameter to filter by multiple link types (e.g. `?link_type=MATCH&link_type=BOOKING`).
|
|
4668
4669
|
*/
|
|
4669
|
-
link_type?: LinkType
|
|
4670
|
+
link_type?: Array<LinkType>;
|
|
4670
4671
|
/**
|
|
4671
4672
|
* Number of items to skip before returning the results.
|
|
4672
4673
|
*/
|
|
@@ -6763,7 +6764,7 @@ declare const GenderSchema: {
|
|
|
6763
6764
|
readonly type: "string";
|
|
6764
6765
|
};
|
|
6765
6766
|
declare const LinkTypeSchema: {
|
|
6766
|
-
readonly enum: readonly ["ACTIVITY", "MATCH"];
|
|
6767
|
+
readonly enum: readonly ["ACTIVITY", "BOOKING", "MATCH"];
|
|
6767
6768
|
readonly type: "string";
|
|
6768
6769
|
};
|
|
6769
6770
|
declare const MatchSchema: {
|
package/dist/main/index.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
MEMBER \u2014 the post or comment was authored by a community member.
|
|
9
9
|
UNKNOWN \u2014 the community member who authored the post or comment
|
|
10
10
|
has been deleted; only the type is set, user is omitted.
|
|
11
|
-
`,enum:["ADMIN","MEMBER","UNKNOWN"],type:"string"},user:{$ref:"#/components/schemas/Member"}},required:["type"],type:"object"},To={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},vo={properties:{author:{$ref:"#/components/schemas/Author"},comment_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},post_id:{format:"uuid",type:"string"}},required:["comment_id","post_id","author","content","is_read","created_at"],type:"object"},_o={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},ko={properties:{community_id:{format:"uuid",type:"string"},cover_image_url:{type:"string"},created_at:{format:"date-time",type:"string"},description:{type:"string"},facility_id:{type:"integer"},member_count:{type:"integer"},name:{type:"string"},posting_permission:{$ref:"#/components/schemas/PostingPermission"},status:{$ref:"#/components/schemas/MembershipStatus"},unread_post_count:{type:"integer"},updated_at:{format:"date-time",type:"string"},visibility:{$ref:"#/components/schemas/Visibility"}},required:["community_id","facility_id","name","description","posting_permission","visibility","status","member_count","unread_post_count","created_at","updated_at"],type:"object"},Ao={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Go={additionalProperties:!1,properties:{comment_id:{format:"uuid",type:"string"},community_id:{format:"uuid",type:"string"},description:{type:"string"},post_id:{format:"uuid",type:"string"},title:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["topic","title","description"],type:"object"},Lo={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},Mo={properties:{accept_terms:{type:"boolean"},payment:{$ref:"#/components/schemas/PaymentCommand"},promo_code:{nullable:!0,type:"string"},user_message:{nullable:!0,type:"string"}},required:["payment","accept_terms"],type:"object"},No={properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},required:["content"],type:"object"},wo={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},qo={properties:{authority_slug:{description:'Initial authority (defaults to "matchi" if omitted)',type:"string"},level:{description:"Initial level value (omit to create an empty profile)",type:"string"},sport_id:{type:"integer"}},required:["sport_id"],type:"object"},Fo={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},zo={properties:{created_by:{type:"string"},id:{format:"uuid",type:"string"},updated_at:{format:"date-time",type:"string"},updated_by:{type:"string"}},required:["id"],type:"object"},jo={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Bo={additionalProperties:!1,properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Ko={properties:{data:{oneOf:[{$ref:"#/components/schemas/FacilityPunchCardData"},{$ref:"#/components/schemas/FacilityValueCardData"}]},type:{enum:["FACILITY_PUNCH_CARD","FACILITY_VALUE_CARD"],type:"string"}},required:["type","data"],type:"object"},$o={oneOf:[{$ref:"#/components/schemas/FacilityOfferConditionWeekdays"},{$ref:"#/components/schemas/FacilityOfferConditionCourts"},{$ref:"#/components/schemas/FacilityOfferConditionDate"},{$ref:"#/components/schemas/FacilityOfferConditionTime"},{$ref:"#/components/schemas/FacilityOfferConditionHoursinadvance"},{$ref:"#/components/schemas/FacilityOfferConditionActivities"}],properties:{type:{enum:["WEEKDAYS","COURTS","DATE","TIME","HOURSINADVANCE","ACTIVITIES"],type:"string"}},required:["type"],type:"object"},Vo={properties:{activities:{items:{properties:{id:{type:"integer"},name:{type:"string"},type:{nullable:!0,type:"string"}},required:["id","name","type"],type:"object"},type:"array"},all_activities:{type:"boolean"},not_valid_for_activities:{type:"boolean"}},required:["not_valid_for_activities","all_activities","activities"],type:"object"},Qo={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Ho={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},Yo={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Wo={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Jo={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Xo={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Zo={properties:{checkout_url:{description:"The URL to the checkout page for the facility offer order",example:"https://checkout.matchi.com/pay/1b44a93b24a3413dadsee96e1bc7a4350ecac",format:"uri",type:"string"},id:{type:"string"}},required:["id","checkout_url"],type:"object"},es={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},ts={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},rs={properties:{conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},max_duration:{type:"integer"},members_only:{type:"boolean"},name:{type:"string"},nr_of_bookings_in_period:{nullable:!0,type:"integer"},nr_of_days_valid:{nullable:!0,type:"integer"},nr_of_tickets:{type:"integer"},offer_id:{type:"integer"},price:{type:"string"},unlimited:{type:"boolean"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","unlimited","max_duration","nr_of_days_valid","nr_of_tickets","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions","nr_of_bookings_in_period"],type:"object"},os={properties:{amount:{type:"string"},conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},members_only:{type:"boolean"},name:{type:"string"},nr_of_days_valid:{nullable:!0,type:"integer"},offer_id:{type:"integer"},price:{type:"string"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","nr_of_days_valid","amount","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions"],type:"object"},ss={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},is={enum:["ACTIVITY","MATCH"],type:"string"},as={properties:{court_id:{format:"int64",type:"integer"},facility_id:{format:"int64",type:"integer"},facility_name:{type:"string"},id:{format:"uuid",type:"string"},image_url:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasion"},sport_id:{format:"int64",nullable:!0,type:"integer"},title:{type:"string"}},required:["id","title","sport_id","facility_id","facility_name","court_id","occasion"],type:"object"},ns={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},ps={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},ls={allOf:[{$ref:"#/components/schemas/Match"},{properties:{description:{nullable:!0,type:"string"},message_title:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasionDetail"},terms:{nullable:!0,type:"string"}},type:"object"}],description:`Match for the detail view. Extends Match with description, terms, message_title and upgrades occasion to MatchOccasionDetail.
|
|
11
|
+
`,enum:["ADMIN","MEMBER","UNKNOWN"],type:"string"},user:{$ref:"#/components/schemas/Member"}},required:["type"],type:"object"},To={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},vo={properties:{author:{$ref:"#/components/schemas/Author"},comment_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},post_id:{format:"uuid",type:"string"}},required:["comment_id","post_id","author","content","is_read","created_at"],type:"object"},_o={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},ko={properties:{community_id:{format:"uuid",type:"string"},cover_image_url:{type:"string"},created_at:{format:"date-time",type:"string"},description:{type:"string"},facility_id:{type:"integer"},member_count:{type:"integer"},name:{type:"string"},posting_permission:{$ref:"#/components/schemas/PostingPermission"},status:{$ref:"#/components/schemas/MembershipStatus"},unread_post_count:{type:"integer"},updated_at:{format:"date-time",type:"string"},visibility:{$ref:"#/components/schemas/Visibility"}},required:["community_id","facility_id","name","description","posting_permission","visibility","status","member_count","unread_post_count","created_at","updated_at"],type:"object"},Ao={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Go={additionalProperties:!1,properties:{comment_id:{format:"uuid",type:"string"},community_id:{format:"uuid",type:"string"},description:{type:"string"},post_id:{format:"uuid",type:"string"},title:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["topic","title","description"],type:"object"},Lo={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},Mo={properties:{accept_terms:{type:"boolean"},payment:{$ref:"#/components/schemas/PaymentCommand"},promo_code:{nullable:!0,type:"string"},user_message:{nullable:!0,type:"string"}},required:["payment","accept_terms"],type:"object"},No={properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},required:["content"],type:"object"},wo={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},qo={properties:{authority_slug:{description:'Initial authority (defaults to "matchi" if omitted)',type:"string"},level:{description:"Initial level value (omit to create an empty profile)",type:"string"},sport_id:{type:"integer"}},required:["sport_id"],type:"object"},Fo={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},zo={properties:{created_by:{type:"string"},id:{format:"uuid",type:"string"},updated_at:{format:"date-time",type:"string"},updated_by:{type:"string"}},required:["id"],type:"object"},jo={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},Bo={additionalProperties:!1,properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Ko={properties:{data:{oneOf:[{$ref:"#/components/schemas/FacilityPunchCardData"},{$ref:"#/components/schemas/FacilityValueCardData"}]},type:{enum:["FACILITY_PUNCH_CARD","FACILITY_VALUE_CARD"],type:"string"}},required:["type","data"],type:"object"},$o={oneOf:[{$ref:"#/components/schemas/FacilityOfferConditionWeekdays"},{$ref:"#/components/schemas/FacilityOfferConditionCourts"},{$ref:"#/components/schemas/FacilityOfferConditionDate"},{$ref:"#/components/schemas/FacilityOfferConditionTime"},{$ref:"#/components/schemas/FacilityOfferConditionHoursinadvance"},{$ref:"#/components/schemas/FacilityOfferConditionActivities"}],properties:{type:{enum:["WEEKDAYS","COURTS","DATE","TIME","HOURSINADVANCE","ACTIVITIES"],type:"string"}},required:["type"],type:"object"},Vo={properties:{activities:{items:{properties:{id:{type:"integer"},name:{type:"string"},type:{nullable:!0,type:"string"}},required:["id","name","type"],type:"object"},type:"array"},all_activities:{type:"boolean"},not_valid_for_activities:{type:"boolean"}},required:["not_valid_for_activities","all_activities","activities"],type:"object"},Qo={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Ho={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},Yo={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Wo={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Jo={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Xo={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Zo={properties:{checkout_url:{description:"The URL to the checkout page for the facility offer order",example:"https://checkout.matchi.com/pay/1b44a93b24a3413dadsee96e1bc7a4350ecac",format:"uri",type:"string"},id:{type:"string"}},required:["id","checkout_url"],type:"object"},es={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},ts={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},rs={properties:{conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},max_duration:{type:"integer"},members_only:{type:"boolean"},name:{type:"string"},nr_of_bookings_in_period:{nullable:!0,type:"integer"},nr_of_days_valid:{nullable:!0,type:"integer"},nr_of_tickets:{type:"integer"},offer_id:{type:"integer"},price:{type:"string"},unlimited:{type:"boolean"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","unlimited","max_duration","nr_of_days_valid","nr_of_tickets","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions","nr_of_bookings_in_period"],type:"object"},os={properties:{amount:{type:"string"},conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},members_only:{type:"boolean"},name:{type:"string"},nr_of_days_valid:{nullable:!0,type:"integer"},offer_id:{type:"integer"},price:{type:"string"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","nr_of_days_valid","amount","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions"],type:"object"},ss={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},is={enum:["ACTIVITY","BOOKING","MATCH"],type:"string"},as={properties:{court_id:{format:"int64",type:"integer"},facility_id:{format:"int64",type:"integer"},facility_name:{type:"string"},id:{format:"uuid",type:"string"},image_url:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasion"},sport_id:{format:"int64",nullable:!0,type:"integer"},title:{type:"string"}},required:["id","title","sport_id","facility_id","facility_name","court_id","occasion"],type:"object"},ns={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},ps={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},ls={allOf:[{$ref:"#/components/schemas/Match"},{properties:{description:{nullable:!0,type:"string"},message_title:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasionDetail"},terms:{nullable:!0,type:"string"}},type:"object"}],description:`Match for the detail view. Extends Match with description, terms, message_title and upgrades occasion to MatchOccasionDetail.
|
|
12
12
|
`},cs={nullable:!0,properties:{name:{type:"string"},supported_by:{nullable:!0,type:"string"}},type:"object"},us={properties:{items:{items:{$ref:"#/components/schemas/Match"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},ms={properties:{auto_cancel_enabled:{description:`Explicit per-match toggle. When false, the match proceeds regardless of participant count at start time and automatic_cancellation_date_time is null.
|
|
13
13
|
`,type:"boolean"},automatic_cancellation_date_time:{format:"date-time",nullable:!0,type:"string"},courts:{items:{$ref:"#/components/schemas/MatchCourt"},type:"array"},end_date_time:{format:"date-time",type:"string"},has_not_closed_registration:{type:"boolean"},has_opened_registration:{type:"boolean"},id:{format:"int64",type:"integer"},is_bookable:{type:"boolean"},is_participating:{type:"boolean"},level_max:{description:"Max required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},level_min:{description:"Min required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},members_only:{type:"boolean"},message:{nullable:!0,type:"string"},participants:{$ref:"#/components/schemas/MatchParticipants"},price:{$ref:"#/components/schemas/MatchBasePrice"},start_date_time:{format:"date-time",type:"string"},type:{nullable:!0,type:"string"}},required:["id","start_date_time","end_date_time","courts","participants","price","is_bookable","is_participating","has_opened_registration","has_not_closed_registration","members_only","auto_cancel_enabled"],type:"object"},ds={allOf:[{$ref:"#/components/schemas/MatchOccasion"},{properties:{can_be_cancelled_by_user:{type:"boolean"},event:{$ref:"#/components/schemas/MatchEvent"},external_services:{items:{$ref:"#/components/schemas/ExternalService"},type:"array"},order_id:{description:`Order id of the requesting user's participation in this occasion, when the participation exists and is linked to an order. Null otherwise. Use with the user payments endpoint to load the receipt.
|
|
14
14
|
`,format:"int64",nullable:!0,type:"integer"},participant_details:{items:{$ref:"#/components/schemas/ParticipantDetail"},type:"array"},price_list:{items:{$ref:"#/components/schemas/MatchPriceListEntry"},type:"array"},refund_policy:{$ref:"#/components/schemas/RefundPolicy"},status:{$ref:"#/components/schemas/MatchStatus"},user_status:{$ref:"#/components/schemas/UserParticipationStatus"}},required:["price_list","refund_policy","can_be_cancelled_by_user","participant_details","status","user_status","external_services","event"],type:"object"}],description:`Enriched occasion for the detail view. Extends MatchOccasion with price_list, refund_policy, can_be_cancelled_by_user, participant_details, status, user_status, external_services, event, order_id.
|
|
@@ -17,4 +17,4 @@ has been deleted; only the type is set, user is omitted.
|
|
|
17
17
|
`,type:"string"},level_max:{description:"Maximum skill level (1-10). Null if not set.",nullable:!0,type:"integer"},level_min:{description:"Minimum skill level (1-10). Null if not set.",nullable:!0,type:"integer"},members_only:{description:`Whether the activity is restricted to facility members. Null when membership restriction is unknown \u2014 callers should treat null as unknown and fall back to existing rendering.
|
|
18
18
|
`,nullable:!0,type:"boolean"},name:{description:"Display name for the recommendation card.",type:"string"},participant_count:{description:"Current number of confirmed participants.",type:"integer"},participant_max:{description:"Maximum participant capacity. Null if no limit.",nullable:!0,type:"integer"},score:{description:"Recommendation relevance score (0-1). Higher is more relevant.",format:"float",type:"number"},sport:{description:"Sport associated with this recommendation.",nullable:!0,properties:{id:{type:"integer"},name:{description:"Sport name (e.g. padel, tennis).",type:"string"}},type:"object"},spots_available:{description:"Number of open spots. Null if no limit.",nullable:!0,type:"integer"},tags:{description:`Categorization tags for visual treatment (icons, labels). Values are lowercase and derived from the recommended entity's metadata. Examples: ["competition", "americano"], ["match"], ["training", "group"]. Not a fixed enum \u2014 new values may appear as new entity types are added downstream.
|
|
19
19
|
`,items:{type:"string"},type:"array"},type:{description:`The entity type. Determines what kind of detail page to navigate to.
|
|
20
|
-
`,enum:["CLASS_ACTIVITY","EVENT_ACTIVITY","COURSE_ACTIVITY","MATCH_ACTIVITY"],type:"string"}},required:["type","id","name","facility_id","facility_name","date_start","date_end","participant_count","score","connections","tags"],type:"object"},Ks={properties:{items:{items:{$ref:"#/components/schemas/Recommendation"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},$s={nullable:!0,properties:{args:{items:{},type:"array"},code:{type:"string"}},required:["code","args"],type:"object"},Vs={properties:{app_version:{type:"string"},fcm_token:{minLength:1,type:"string"},language:{description:"User's preferred language for push notifications.",example:"sv",minLength:2,type:"string"},os:{enum:["ios","android"],type:"string"}},required:["fcm_token","os","app_version"],type:"object"},Qs={enum:["FACILITY","COMMUNITY"],type:"string"},Hs={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},Ys={properties:{bg_color:{description:"Background color for UI display (hex)",type:"string"},country:{description:"Country code this authority is restricted to; null means all countries",nullable:!0,type:"string"},display_text:{description:'Short label shown in badges (e.g. "M", "DK")',type:"string"},fore_color:{description:"Foreground/text color for UI display (hex)",type:"string"},max_level:{description:"Maximum allowed level value",format:"double",type:"number"},min_level:{description:"Minimum allowed level value",format:"double",type:"number"},name:{description:"Display name of the authority",type:"string"},slug:{description:'Unique authority slug (e.g. "matchi", "dk-padel")',type:"string"},sport_id:{description:"Sport this authority applies to; null means all sports",nullable:!0,type:"integer"},step_size:{description:'Fixed step increment between levels as a decimal string (e.g. "0.5"); null means no fixed step',nullable:!0,type:"string"}},required:["slug","name","min_level","max_level","bg_color","fore_color","display_text"],type:"object"},Ws={description:"A flattened sport level entry \u2014 used in search results for matchmaking.",properties:{authority_slug:{type:"string"},level:{type:"string"},sport_id:{type:"integer"}},required:["sport_id","authority_slug","level"],type:"object"},Js={properties:{attributes:{description:"Skill ratings for individual aspects of the sport",items:{$ref:"#/components/schemas/SportProfileAttribute"},nullable:!0,type:"array"},frequency:{description:"How often the user plays",enum:["MONTHLY","WEEKLY","WEEKLY_FREQUENT","YEARLY"],nullable:!0,type:"string"},id:{description:"The sport profile ID",type:"integer"},levels:{items:{$ref:"#/components/schemas/SportProfileLevel"},type:"array"},sport_id:{type:"integer"}},required:["id","sport_id","levels"],type:"object"},Xs={properties:{name:{description:"Attribute name (e.g. BACKHAND, FOREHAND, SERVE)",type:"string"},skill_level:{description:"Skill level for this attribute",type:"integer"}},required:["name","skill_level"],type:"object"},Zs={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},ei={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},ti={enum:["FACILITY_MESSAGE","COMMUNITY_USER_INVITED","COMMUNITY_USER_REMOVED","COMMUNITY_POST_CREATED","COMMUNITY_COMMENT_CREATED","COMMUNITY_BLOCKED_USER_JOINED"],type:"string"},ri={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},oi={properties:{level:{type:"string"}},required:["level"],type:"object"},si={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},email:{format:"email",maxLength:255,type:"string"},first_name:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},last_name:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{description:"Phone number in E.164 format. Send empty string to clear the value.",example:"+46701234567",pattern:"^(\\+?[1-9]\\d{1,14}|)$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},ii={enum:["NOT_PARTICIPATING","PARTICIPATING","WAITLISTED"],type:"string"},ai={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},first_name:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{type:"string"},last_name:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{type:"boolean"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},sport_levels:{items:{$ref:"#/components/schemas/SportLevel"},type:"array"},telephone:{type:"string"},user_id:{format:"uuid",type:"string"},zipcode:{type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},ni={description:"Returns :\n* `FRIENDS` - The user is a friend.\n* `OUTGOING` - The user has sent a friend request to the current user.\n* `INCOMING` - The user has received a friend request from the current user.\n* `NO_RELATION` - The user has no ongoing relation with the current user.\n* `BLOCK` - The user is blocked by the current user\n",enum:["FRIENDS","OUTGOING","INCOMING","NO_RELATION","BLOCK"],type:"string"},pi={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},li={enum:["HIDDEN"],type:"string"},ci={description:"Metadata about the cursor based pagination for the result. This information is coupled with the CursorParam and CursorLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{current_cursor:{description:"Cursor used to retrieve the current page of results.",type:"string"},more_results:{description:"Indicates if there are more results available.",type:"boolean"},next_cursor:{description:"Cursor to retrieve the next page of results.",type:"string"}},required:["current_cursor","more_results"],type:"object"},ui={properties:{message:{description:"The error message",type:"string"}},type:"object"},mi={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},di={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},yi={properties:{detail:{description:"A human-readable explanation specific to this occurrence of the problem.",maxLength:4096,type:"string"},errors:{$ref:"#/components/schemas/pkgOpenapiSharedErrors"},instance:{description:"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",maxLength:1024,type:"string"},status:{description:"The HTTP status code generated by the origin server for this occurrence of the problem.",format:"int32",maximum:599,minimum:100,type:"integer"},title:{description:"A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.",maxLength:1024,type:"string"},type:{description:"A URI reference that identifies the problem type.",format:"uri",maxLength:1024,type:"string"}},required:["title"],type:"object"};var re=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/communities"},t))},Ve=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}"},t))},oe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/members"},t))},Qe=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/members/{userId}"},t))},He=t=>{var e;return((e=t.client)!=null?e:h).patch(i({url:"/communities/{communityId}/members/{userId}"},t))},se=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts"},t))},Ye=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/communities/{communityId}/posts"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},We=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}"},t))},Je=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}"},t))},Xe=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/communities/{communityId}/posts/{postId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ie=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}/comments"},t))},Ze=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/communities/{communityId}/posts/{postId}/comments"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},et=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t))},tt=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ae=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}/offers"},t))},rt=t=>{var e;return((e=t.client)!=null?e:h).post(i({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},ne=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches"},t))},ot=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}"},t))},st=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/matches/{matchId}/participations"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},it=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/matches/{matchId}/participations/{userId}"},t))},at=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}/prices/{userId}"},t))},pe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/notifications"},t))},nt=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},pt=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},lt=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications/preferences"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ct=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/notifications/{id}"},t))},ut=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications/{id}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},mt=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/sport-authorities"},t))},le=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/users/profiles"},t))},dt=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/users/{user_id}/devices"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},yt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/facility-permissions"},t))},ft=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/users/{user_id}/profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ce=t=>{var e;return((e=t.client)!=null?e:h).get(i({querySerializer:{parameters:{sports:{array:{explode:!1}},activity_classes:{array:{explode:!1}}}},url:"/users/{user_id}/recommendations"},t))},ht=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles"},t))},gt=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/users/{user_id}/sport-profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},bt=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},Pt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},Ot=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},St=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t))},Et=t=>{var e;return((e=t.client)!=null?e:h).put(m(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))};var ur={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},mr={ACTIVITY:"ACTIVITY",MATCH:"MATCH"},dr={OPEN:"OPEN",FULL:"FULL",REGISTRATION_CLOSED:"REGISTRATION_CLOSED",REGISTRATION_NOT_OPEN:"REGISTRATION_NOT_OPEN",CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",MEMBERS_ONLY:"MEMBERS_ONLY"},yr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},fr={ACTIVE:"ACTIVE",INVITED:"INVITED",LEFT:"LEFT"},hr={ADMINS:"ADMINS",MEMBERS:"MEMBERS"},gr={FACILITY:"FACILITY",COMMUNITY:"COMMUNITY"},br={FACILITY_MESSAGE:"FACILITY_MESSAGE",COMMUNITY_USER_INVITED:"COMMUNITY_USER_INVITED",COMMUNITY_USER_REMOVED:"COMMUNITY_USER_REMOVED",COMMUNITY_POST_CREATED:"COMMUNITY_POST_CREATED",COMMUNITY_COMMENT_CREATED:"COMMUNITY_COMMENT_CREATED",COMMUNITY_BLOCKED_USER_JOINED:"COMMUNITY_BLOCKED_USER_JOINED"},Pr={NOT_PARTICIPATING:"NOT_PARTICIPATING",PARTICIPATING:"PARTICIPATING",WAITLISTED:"WAITLISTED"},Or={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},Sr={HIDDEN:"HIDDEN"};var Rt={};fe(Rt,{acceptInvitationMutation:()=>Si,addUserSportProfileLevelMutation:()=>na,createCommentMutation:()=>vi,createFacilityOfferOrderMutation:()=>Li,createMatchParticipationMutation:()=>qi,createPostMutation:()=>Ci,createUserSportProfileMutation:()=>sa,deleteCommentMutation:()=>_i,deleteMatchParticipationMutation:()=>Fi,deletePostMutation:()=>Ii,deleteUserSportProfileLevelMutation:()=>pa,deleteUserSportProfileMutation:()=>ia,getCommunityOptions:()=>gi,getCommunityQueryKey:()=>Cr,getMatchOptions:()=>wi,getMatchQueryKey:()=>Mr,getMatchUserPriceOptions:()=>zi,getMatchUserPriceQueryKey:()=>Nr,getNotificationByIdOptions:()=>Qi,getNotificationByIdQueryKey:()=>zr,getNotificationsInfiniteOptions:()=>Bi,getNotificationsInfiniteQueryKey:()=>qr,getNotificationsOptions:()=>ji,getNotificationsPreferencesOptions:()=>$i,getNotificationsPreferencesQueryKey:()=>Fr,getNotificationsQueryKey:()=>wr,getPostOptions:()=>Di,getPostQueryKey:()=>Tr,getRecommendationsInfiniteOptions:()=>ra,getRecommendationsInfiniteQueryKey:()=>Qr,getRecommendationsOptions:()=>ta,getRecommendationsQueryKey:()=>Vr,getSportAuthoritiesOptions:()=>Yi,getSportAuthoritiesQueryKey:()=>jr,getUserFacilityPermissionsOptions:()=>Zi,getUserFacilityPermissionsQueryKey:()=>$r,getUserSportProfileOptions:()=>aa,getUserSportProfileQueryKey:()=>Yr,getUserSportProfilesOptions:()=>oa,getUserSportProfilesQueryKey:()=>Hr,leaveCommunityMutation:()=>Oi,listCommentsInfiniteOptions:()=>Ti,listCommentsInfiniteQueryKey:()=>_r,listCommentsOptions:()=>Ui,listCommentsQueryKey:()=>vr,listCommunitiesInfiniteOptions:()=>hi,listCommunitiesInfiniteQueryKey:()=>Rr,listCommunitiesOptions:()=>fi,listCommunitiesQueryKey:()=>Er,listFacilityOffersInfiniteOptions:()=>Gi,listFacilityOffersInfiniteQueryKey:()=>Ar,listFacilityOffersOptions:()=>Ai,listFacilityOffersQueryKey:()=>kr,listMatchesInfiniteOptions:()=>Ni,listMatchesInfiniteQueryKey:()=>Lr,listMatchesOptions:()=>Mi,listMatchesQueryKey:()=>Gr,listMembersInfiniteOptions:()=>Pi,listMembersInfiniteQueryKey:()=>Dr,listMembersOptions:()=>bi,listMembersQueryKey:()=>Ir,listPostsInfiniteOptions:()=>Ri,listPostsInfiniteQueryKey:()=>Ur,listPostsOptions:()=>Ei,listPostsQueryKey:()=>xr,markCommentReadMutation:()=>ki,markPostReadMutation:()=>xi,registerDeviceMutation:()=>Xi,searchUsersInfiniteOptions:()=>Ji,searchUsersInfiniteQueryKey:()=>Kr,searchUsersOptions:()=>Wi,searchUsersQueryKey:()=>Br,updateAllNotificationsMutation:()=>Ki,updateNotificationMutation:()=>Hi,updateNotificationsPreferencesMutation:()=>Vi,updateUserProfileMutation:()=>ea,updateUserSportProfileLevelMutation:()=>la});var b=(t,e,r,o)=>{var c;let s={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((c=e==null?void 0:e.client)!=null?c:h).getConfig().baseUrl};return r&&(s._infinite=r),o&&(s.tags=o),e!=null&&e.body&&(s.body=e.body),e!=null&&e.headers&&(s.headers=e.headers),e!=null&&e.path&&(s.path=e.path),e!=null&&e.query&&(s.query=e.query),[s]},Er=t=>b("listCommunities",t),fi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield re(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Er(t)}),k=(t,e)=>{let r=i({},t[0]);return e.body&&(r.body=i(i({},t[0].body),e.body)),e.headers&&(r.headers=i(i({},t[0].headers),e.headers)),e.path&&(r.path=i(i({},t[0].path),e.path)),e.query&&(r.query=i(i({},t[0].query),e.query)),r},Rr=t=>b("listCommunities",t,!0),hi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield re(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Rr(t)}),Cr=t=>b("getCommunity",t),gi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ve(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Cr(t)}),Ir=t=>b("listMembers",t),bi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield oe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Ir(t)}),Dr=t=>b("listMembers",t,!0),Pi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield oe(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Dr(t)}),Oi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Qe(m(i(i({},t),r),{throwOnError:!0}));return o})}),Si=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield He(m(i(i({},t),r),{throwOnError:!0}));return o})}),xr=t=>b("listPosts",t),Ei=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield se(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:xr(t)}),Ur=t=>b("listPosts",t,!0),Ri=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield se(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Ur(t)}),Ci=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ye(m(i(i({},t),r),{throwOnError:!0}));return o})}),Ii=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield We(m(i(i({},t),r),{throwOnError:!0}));return o})}),Tr=t=>b("getPost",t),Di=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Je(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Tr(t)}),xi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Xe(m(i(i({},t),r),{throwOnError:!0}));return o})}),vr=t=>b("listComments",t),Ui=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ie(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:vr(t)}),_r=t=>b("listComments",t,!0),Ti=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield ie(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:_r(t)}),vi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ze(m(i(i({},t),r),{throwOnError:!0}));return o})}),_i=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield et(m(i(i({},t),r),{throwOnError:!0}));return o})}),ki=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield tt(m(i(i({},t),r),{throwOnError:!0}));return o})}),kr=t=>b("ListFacilityOffers",t),Ai=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ae(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:kr(t)}),Ar=t=>b("ListFacilityOffers",t,!0),Gi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield ae(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Ar(t)}),Li=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield rt(m(i(i({},t),r),{throwOnError:!0}));return o})}),Gr=t=>b("ListMatches",t),Mi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ne(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Gr(t)}),Lr=t=>b("ListMatches",t,!0),Ni=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield ne(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Lr(t)}),Mr=t=>b("GetMatch",t),wi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ot(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Mr(t)}),qi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield st(m(i(i({},t),r),{throwOnError:!0}));return o})}),Fi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield it(m(i(i({},t),r),{throwOnError:!0}));return o})}),Nr=t=>b("GetMatchUserPrice",t),zi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield at(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Nr(t)}),wr=t=>b("GetNotifications",t),ji=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield pe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:wr(t)}),qr=t=>b("GetNotifications",t,!0),Bi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield pe(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:qr(t)}),Ki=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield nt(m(i(i({},t),r),{throwOnError:!0}));return o})}),Fr=t=>b("GetNotificationsPreferences",t),$i=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield pt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Fr(t)}),Vi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield lt(m(i(i({},t),r),{throwOnError:!0}));return o})}),zr=t=>b("GetNotificationById",t),Qi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ct(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:zr(t)}),Hi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ut(m(i(i({},t),r),{throwOnError:!0}));return o})}),jr=t=>b("getSportAuthorities",t),Yi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield mt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:jr(t)}),Br=t=>b("searchUsers",t),Wi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield le(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Br(t)}),Kr=t=>b("searchUsers",t,!0),Ji=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield le(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Kr(t)}),Xi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield dt(m(i(i({},t),r),{throwOnError:!0}));return o})}),$r=t=>b("getUserFacilityPermissions",t),Zi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield yt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:$r(t)}),ea=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ft(m(i(i({},t),r),{throwOnError:!0}));return o})}),Vr=t=>b("GetRecommendations",t),ta=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ce(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Vr(t)}),Qr=t=>b("GetRecommendations",t,!0),ra=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield ce(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Qr(t)}),Hr=t=>b("getUserSportProfiles",t),oa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ht(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Hr(t)}),sa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield gt(m(i(i({},t),r),{throwOnError:!0}));return o})}),ia=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield bt(m(i(i({},t),r),{throwOnError:!0}));return o})}),Yr=t=>b("getUserSportProfile",t),aa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Pt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Yr(t)}),na=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ot(m(i(i({},t),r),{throwOnError:!0}));return o})}),pa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield St(m(i(i({},t),r),{throwOnError:!0}));return o})}),la=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Et(m(i(i({},t),r),{throwOnError:!0}));return o})});0&&(module.exports={ActivityServiceV1Service,AnonymousService,ApiClientServiceV1Service,ApiError,AuthorizedService,BookingServiceV1Service,CancelError,CancelablePromise,CheckoutServiceV1Service,CompetitionServiceV1Service,CorsService,LoyaltyServiceV1Service,MembershipServiceV1Service,OpenAPI,PlaySessionServiceV1Service,UserServiceV1Service,bookingRestriction,bookingSubType,bookingSubscription,bookingUserStatus,cancellationPolicy,chat,chatCreation,chatTarget,clientType,directionParam,months,notificationChatGroup,notificationEntity,pendingPayment,playSessionSettings,playSessionUser,playerRefundInfo,playerStatusParam,playingUserResponse,userChatStatusParam,userChatTargetParam,userPunchCard,userRelation,userRelationStatusParam,v1});
|
|
20
|
+
`,enum:["CLASS_ACTIVITY","EVENT_ACTIVITY","COURSE_ACTIVITY","MATCH_ACTIVITY"],type:"string"}},required:["type","id","name","facility_id","facility_name","date_start","date_end","participant_count","score","connections","tags"],type:"object"},Ks={properties:{items:{items:{$ref:"#/components/schemas/Recommendation"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},$s={nullable:!0,properties:{args:{items:{},type:"array"},code:{type:"string"}},required:["code","args"],type:"object"},Vs={properties:{app_version:{type:"string"},fcm_token:{minLength:1,type:"string"},language:{description:"User's preferred language for push notifications.",example:"sv",minLength:2,type:"string"},os:{enum:["ios","android"],type:"string"}},required:["fcm_token","os","app_version"],type:"object"},Qs={enum:["FACILITY","COMMUNITY"],type:"string"},Hs={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},Ys={properties:{bg_color:{description:"Background color for UI display (hex)",type:"string"},country:{description:"Country code this authority is restricted to; null means all countries",nullable:!0,type:"string"},display_text:{description:'Short label shown in badges (e.g. "M", "DK")',type:"string"},fore_color:{description:"Foreground/text color for UI display (hex)",type:"string"},max_level:{description:"Maximum allowed level value",format:"double",type:"number"},min_level:{description:"Minimum allowed level value",format:"double",type:"number"},name:{description:"Display name of the authority",type:"string"},slug:{description:'Unique authority slug (e.g. "matchi", "dk-padel")',type:"string"},sport_id:{description:"Sport this authority applies to; null means all sports",nullable:!0,type:"integer"},step_size:{description:'Fixed step increment between levels as a decimal string (e.g. "0.5"); null means no fixed step',nullable:!0,type:"string"}},required:["slug","name","min_level","max_level","bg_color","fore_color","display_text"],type:"object"},Ws={description:"A flattened sport level entry \u2014 used in search results for matchmaking.",properties:{authority_slug:{type:"string"},level:{type:"string"},sport_id:{type:"integer"}},required:["sport_id","authority_slug","level"],type:"object"},Js={properties:{attributes:{description:"Skill ratings for individual aspects of the sport",items:{$ref:"#/components/schemas/SportProfileAttribute"},nullable:!0,type:"array"},frequency:{description:"How often the user plays",enum:["MONTHLY","WEEKLY","WEEKLY_FREQUENT","YEARLY"],nullable:!0,type:"string"},id:{description:"The sport profile ID",type:"integer"},levels:{items:{$ref:"#/components/schemas/SportProfileLevel"},type:"array"},sport_id:{type:"integer"}},required:["id","sport_id","levels"],type:"object"},Xs={properties:{name:{description:"Attribute name (e.g. BACKHAND, FOREHAND, SERVE)",type:"string"},skill_level:{description:"Skill level for this attribute",type:"integer"}},required:["name","skill_level"],type:"object"},Zs={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},ei={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},ti={enum:["FACILITY_MESSAGE","COMMUNITY_USER_INVITED","COMMUNITY_USER_REMOVED","COMMUNITY_POST_CREATED","COMMUNITY_COMMENT_CREATED","COMMUNITY_BLOCKED_USER_JOINED"],type:"string"},ri={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},oi={properties:{level:{type:"string"}},required:["level"],type:"object"},si={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},email:{format:"email",maxLength:255,type:"string"},first_name:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},last_name:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{description:"Phone number in E.164 format. Send empty string to clear the value.",example:"+46701234567",pattern:"^(\\+?[1-9]\\d{1,14}|)$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},ii={enum:["NOT_PARTICIPATING","PARTICIPATING","WAITLISTED"],type:"string"},ai={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},first_name:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{type:"string"},last_name:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{type:"boolean"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},sport_levels:{items:{$ref:"#/components/schemas/SportLevel"},type:"array"},telephone:{type:"string"},user_id:{format:"uuid",type:"string"},zipcode:{type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},ni={description:"Returns :\n* `FRIENDS` - The user is a friend.\n* `OUTGOING` - The user has sent a friend request to the current user.\n* `INCOMING` - The user has received a friend request from the current user.\n* `NO_RELATION` - The user has no ongoing relation with the current user.\n* `BLOCK` - The user is blocked by the current user\n",enum:["FRIENDS","OUTGOING","INCOMING","NO_RELATION","BLOCK"],type:"string"},pi={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},li={enum:["HIDDEN"],type:"string"},ci={description:"Metadata about the cursor based pagination for the result. This information is coupled with the CursorParam and CursorLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{current_cursor:{description:"Cursor used to retrieve the current page of results.",type:"string"},more_results:{description:"Indicates if there are more results available.",type:"boolean"},next_cursor:{description:"Cursor to retrieve the next page of results.",type:"string"}},required:["current_cursor","more_results"],type:"object"},ui={properties:{message:{description:"The error message",type:"string"}},type:"object"},mi={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},di={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},yi={properties:{detail:{description:"A human-readable explanation specific to this occurrence of the problem.",maxLength:4096,type:"string"},errors:{$ref:"#/components/schemas/pkgOpenapiSharedErrors"},instance:{description:"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",maxLength:1024,type:"string"},status:{description:"The HTTP status code generated by the origin server for this occurrence of the problem.",format:"int32",maximum:599,minimum:100,type:"integer"},title:{description:"A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.",maxLength:1024,type:"string"},type:{description:"A URI reference that identifies the problem type.",format:"uri",maxLength:1024,type:"string"}},required:["title"],type:"object"};var re=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/communities"},t))},Ve=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}"},t))},oe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/members"},t))},Qe=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/members/{userId}"},t))},He=t=>{var e;return((e=t.client)!=null?e:h).patch(i({url:"/communities/{communityId}/members/{userId}"},t))},se=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts"},t))},Ye=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/communities/{communityId}/posts"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},We=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}"},t))},Je=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}"},t))},Xe=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/communities/{communityId}/posts/{postId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ie=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}/comments"},t))},Ze=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/communities/{communityId}/posts/{postId}/comments"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},et=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t))},tt=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ae=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}/offers"},t))},rt=t=>{var e;return((e=t.client)!=null?e:h).post(i({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},ne=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches"},t))},ot=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}"},t))},st=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/matches/{matchId}/participations"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},it=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/matches/{matchId}/participations/{userId}"},t))},at=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}/prices/{userId}"},t))},pe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/notifications"},t))},nt=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},pt=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},lt=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications/preferences"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ct=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/notifications/{id}"},t))},ut=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications/{id}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},mt=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/sport-authorities"},t))},le=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/users/profiles"},t))},dt=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/users/{user_id}/devices"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},yt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/facility-permissions"},t))},ft=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/users/{user_id}/profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ce=t=>{var e;return((e=t.client)!=null?e:h).get(i({querySerializer:{parameters:{sports:{array:{explode:!1}},activity_classes:{array:{explode:!1}}}},url:"/users/{user_id}/recommendations"},t))},ht=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles"},t))},gt=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/users/{user_id}/sport-profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},bt=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},Pt=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},Ot=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},St=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t))},Et=t=>{var e;return((e=t.client)!=null?e:h).put(m(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))};var ur={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},mr={ACTIVITY:"ACTIVITY",BOOKING:"BOOKING",MATCH:"MATCH"},dr={OPEN:"OPEN",FULL:"FULL",REGISTRATION_CLOSED:"REGISTRATION_CLOSED",REGISTRATION_NOT_OPEN:"REGISTRATION_NOT_OPEN",CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",MEMBERS_ONLY:"MEMBERS_ONLY"},yr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},fr={ACTIVE:"ACTIVE",INVITED:"INVITED",LEFT:"LEFT"},hr={ADMINS:"ADMINS",MEMBERS:"MEMBERS"},gr={FACILITY:"FACILITY",COMMUNITY:"COMMUNITY"},br={FACILITY_MESSAGE:"FACILITY_MESSAGE",COMMUNITY_USER_INVITED:"COMMUNITY_USER_INVITED",COMMUNITY_USER_REMOVED:"COMMUNITY_USER_REMOVED",COMMUNITY_POST_CREATED:"COMMUNITY_POST_CREATED",COMMUNITY_COMMENT_CREATED:"COMMUNITY_COMMENT_CREATED",COMMUNITY_BLOCKED_USER_JOINED:"COMMUNITY_BLOCKED_USER_JOINED"},Pr={NOT_PARTICIPATING:"NOT_PARTICIPATING",PARTICIPATING:"PARTICIPATING",WAITLISTED:"WAITLISTED"},Or={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},Sr={HIDDEN:"HIDDEN"};var Rt={};fe(Rt,{acceptInvitationMutation:()=>Si,addUserSportProfileLevelMutation:()=>na,createCommentMutation:()=>vi,createFacilityOfferOrderMutation:()=>Li,createMatchParticipationMutation:()=>qi,createPostMutation:()=>Ci,createUserSportProfileMutation:()=>sa,deleteCommentMutation:()=>_i,deleteMatchParticipationMutation:()=>Fi,deletePostMutation:()=>Ii,deleteUserSportProfileLevelMutation:()=>pa,deleteUserSportProfileMutation:()=>ia,getCommunityOptions:()=>gi,getCommunityQueryKey:()=>Cr,getMatchOptions:()=>wi,getMatchQueryKey:()=>Mr,getMatchUserPriceOptions:()=>zi,getMatchUserPriceQueryKey:()=>Nr,getNotificationByIdOptions:()=>Qi,getNotificationByIdQueryKey:()=>zr,getNotificationsInfiniteOptions:()=>Bi,getNotificationsInfiniteQueryKey:()=>qr,getNotificationsOptions:()=>ji,getNotificationsPreferencesOptions:()=>$i,getNotificationsPreferencesQueryKey:()=>Fr,getNotificationsQueryKey:()=>wr,getPostOptions:()=>Di,getPostQueryKey:()=>Tr,getRecommendationsInfiniteOptions:()=>ra,getRecommendationsInfiniteQueryKey:()=>Qr,getRecommendationsOptions:()=>ta,getRecommendationsQueryKey:()=>Vr,getSportAuthoritiesOptions:()=>Yi,getSportAuthoritiesQueryKey:()=>jr,getUserFacilityPermissionsOptions:()=>Zi,getUserFacilityPermissionsQueryKey:()=>$r,getUserSportProfileOptions:()=>aa,getUserSportProfileQueryKey:()=>Yr,getUserSportProfilesOptions:()=>oa,getUserSportProfilesQueryKey:()=>Hr,leaveCommunityMutation:()=>Oi,listCommentsInfiniteOptions:()=>Ti,listCommentsInfiniteQueryKey:()=>_r,listCommentsOptions:()=>Ui,listCommentsQueryKey:()=>vr,listCommunitiesInfiniteOptions:()=>hi,listCommunitiesInfiniteQueryKey:()=>Rr,listCommunitiesOptions:()=>fi,listCommunitiesQueryKey:()=>Er,listFacilityOffersInfiniteOptions:()=>Gi,listFacilityOffersInfiniteQueryKey:()=>Ar,listFacilityOffersOptions:()=>Ai,listFacilityOffersQueryKey:()=>kr,listMatchesInfiniteOptions:()=>Ni,listMatchesInfiniteQueryKey:()=>Lr,listMatchesOptions:()=>Mi,listMatchesQueryKey:()=>Gr,listMembersInfiniteOptions:()=>Pi,listMembersInfiniteQueryKey:()=>Dr,listMembersOptions:()=>bi,listMembersQueryKey:()=>Ir,listPostsInfiniteOptions:()=>Ri,listPostsInfiniteQueryKey:()=>Ur,listPostsOptions:()=>Ei,listPostsQueryKey:()=>xr,markCommentReadMutation:()=>ki,markPostReadMutation:()=>xi,registerDeviceMutation:()=>Xi,searchUsersInfiniteOptions:()=>Ji,searchUsersInfiniteQueryKey:()=>Kr,searchUsersOptions:()=>Wi,searchUsersQueryKey:()=>Br,updateAllNotificationsMutation:()=>Ki,updateNotificationMutation:()=>Hi,updateNotificationsPreferencesMutation:()=>Vi,updateUserProfileMutation:()=>ea,updateUserSportProfileLevelMutation:()=>la});var b=(t,e,r,o)=>{var c;let s={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((c=e==null?void 0:e.client)!=null?c:h).getConfig().baseUrl};return r&&(s._infinite=r),o&&(s.tags=o),e!=null&&e.body&&(s.body=e.body),e!=null&&e.headers&&(s.headers=e.headers),e!=null&&e.path&&(s.path=e.path),e!=null&&e.query&&(s.query=e.query),[s]},Er=t=>b("listCommunities",t),fi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield re(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Er(t)}),k=(t,e)=>{let r=i({},t[0]);return e.body&&(r.body=i(i({},t[0].body),e.body)),e.headers&&(r.headers=i(i({},t[0].headers),e.headers)),e.path&&(r.path=i(i({},t[0].path),e.path)),e.query&&(r.query=i(i({},t[0].query),e.query)),r},Rr=t=>b("listCommunities",t,!0),hi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield re(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Rr(t)}),Cr=t=>b("getCommunity",t),gi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ve(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Cr(t)}),Ir=t=>b("listMembers",t),bi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield oe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Ir(t)}),Dr=t=>b("listMembers",t,!0),Pi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield oe(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Dr(t)}),Oi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Qe(m(i(i({},t),r),{throwOnError:!0}));return o})}),Si=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield He(m(i(i({},t),r),{throwOnError:!0}));return o})}),xr=t=>b("listPosts",t),Ei=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield se(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:xr(t)}),Ur=t=>b("listPosts",t,!0),Ri=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield se(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Ur(t)}),Ci=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ye(m(i(i({},t),r),{throwOnError:!0}));return o})}),Ii=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield We(m(i(i({},t),r),{throwOnError:!0}));return o})}),Tr=t=>b("getPost",t),Di=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Je(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Tr(t)}),xi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Xe(m(i(i({},t),r),{throwOnError:!0}));return o})}),vr=t=>b("listComments",t),Ui=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ie(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:vr(t)}),_r=t=>b("listComments",t,!0),Ti=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield ie(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:_r(t)}),vi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ze(m(i(i({},t),r),{throwOnError:!0}));return o})}),_i=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield et(m(i(i({},t),r),{throwOnError:!0}));return o})}),ki=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield tt(m(i(i({},t),r),{throwOnError:!0}));return o})}),kr=t=>b("ListFacilityOffers",t),Ai=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ae(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:kr(t)}),Ar=t=>b("ListFacilityOffers",t,!0),Gi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield ae(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Ar(t)}),Li=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield rt(m(i(i({},t),r),{throwOnError:!0}));return o})}),Gr=t=>b("ListMatches",t),Mi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ne(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Gr(t)}),Lr=t=>b("ListMatches",t,!0),Ni=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield ne(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Lr(t)}),Mr=t=>b("GetMatch",t),wi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ot(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Mr(t)}),qi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield st(m(i(i({},t),r),{throwOnError:!0}));return o})}),Fi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield it(m(i(i({},t),r),{throwOnError:!0}));return o})}),Nr=t=>b("GetMatchUserPrice",t),zi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield at(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Nr(t)}),wr=t=>b("GetNotifications",t),ji=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield pe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:wr(t)}),qr=t=>b("GetNotifications",t,!0),Bi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield pe(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:qr(t)}),Ki=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield nt(m(i(i({},t),r),{throwOnError:!0}));return o})}),Fr=t=>b("GetNotificationsPreferences",t),$i=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield pt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Fr(t)}),Vi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield lt(m(i(i({},t),r),{throwOnError:!0}));return o})}),zr=t=>b("GetNotificationById",t),Qi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ct(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:zr(t)}),Hi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ut(m(i(i({},t),r),{throwOnError:!0}));return o})}),jr=t=>b("getSportAuthorities",t),Yi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield mt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:jr(t)}),Br=t=>b("searchUsers",t),Wi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield le(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Br(t)}),Kr=t=>b("searchUsers",t,!0),Ji=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield le(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Kr(t)}),Xi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield dt(m(i(i({},t),r),{throwOnError:!0}));return o})}),$r=t=>b("getUserFacilityPermissions",t),Zi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield yt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:$r(t)}),ea=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ft(m(i(i({},t),r),{throwOnError:!0}));return o})}),Vr=t=>b("GetRecommendations",t),ta=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ce(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Vr(t)}),Qr=t=>b("GetRecommendations",t,!0),ra=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield ce(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Qr(t)}),Hr=t=>b("getUserSportProfiles",t),oa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ht(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Hr(t)}),sa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield gt(m(i(i({},t),r),{throwOnError:!0}));return o})}),ia=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield bt(m(i(i({},t),r),{throwOnError:!0}));return o})}),Yr=t=>b("getUserSportProfile",t),aa=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Pt(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Yr(t)}),na=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ot(m(i(i({},t),r),{throwOnError:!0}));return o})}),pa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield St(m(i(i({},t),r),{throwOnError:!0}));return o})}),la=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Et(m(i(i({},t),r),{throwOnError:!0}));return o})});0&&(module.exports={ActivityServiceV1Service,AnonymousService,ApiClientServiceV1Service,ApiError,AuthorizedService,BookingServiceV1Service,CancelError,CancelablePromise,CheckoutServiceV1Service,CompetitionServiceV1Service,CorsService,LoyaltyServiceV1Service,MembershipServiceV1Service,OpenAPI,PlaySessionServiceV1Service,UserServiceV1Service,bookingRestriction,bookingSubType,bookingSubscription,bookingUserStatus,cancellationPolicy,chat,chatCreation,chatTarget,clientType,directionParam,months,notificationChatGroup,notificationEntity,pendingPayment,playSessionSettings,playSessionUser,playerRefundInfo,playerStatusParam,playingUserResponse,userChatStatusParam,userChatTargetParam,userPunchCard,userRelation,userRelationStatusParam,v1});
|
package/dist/main/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ var Ft=Object.defineProperty,eo=Object.defineProperties;var to=Object.getOwnProp
|
|
|
8
8
|
MEMBER \u2014 the post or comment was authored by a community member.
|
|
9
9
|
UNKNOWN \u2014 the community member who authored the post or comment
|
|
10
10
|
has been deleted; only the type is set, user is omitted.
|
|
11
|
-
`,enum:["ADMIN","MEMBER","UNKNOWN"],type:"string"},user:{$ref:"#/components/schemas/Member"}},required:["type"],type:"object"},Io={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Do={properties:{author:{$ref:"#/components/schemas/Author"},comment_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},post_id:{format:"uuid",type:"string"}},required:["comment_id","post_id","author","content","is_read","created_at"],type:"object"},xo={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Uo={properties:{community_id:{format:"uuid",type:"string"},cover_image_url:{type:"string"},created_at:{format:"date-time",type:"string"},description:{type:"string"},facility_id:{type:"integer"},member_count:{type:"integer"},name:{type:"string"},posting_permission:{$ref:"#/components/schemas/PostingPermission"},status:{$ref:"#/components/schemas/MembershipStatus"},unread_post_count:{type:"integer"},updated_at:{format:"date-time",type:"string"},visibility:{$ref:"#/components/schemas/Visibility"}},required:["community_id","facility_id","name","description","posting_permission","visibility","status","member_count","unread_post_count","created_at","updated_at"],type:"object"},To={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},vo={additionalProperties:!1,properties:{comment_id:{format:"uuid",type:"string"},community_id:{format:"uuid",type:"string"},description:{type:"string"},post_id:{format:"uuid",type:"string"},title:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["topic","title","description"],type:"object"},_o={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},ko={properties:{accept_terms:{type:"boolean"},payment:{$ref:"#/components/schemas/PaymentCommand"},promo_code:{nullable:!0,type:"string"},user_message:{nullable:!0,type:"string"}},required:["payment","accept_terms"],type:"object"},Ao={properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},required:["content"],type:"object"},Go={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},Lo={properties:{authority_slug:{description:'Initial authority (defaults to "matchi" if omitted)',type:"string"},level:{description:"Initial level value (omit to create an empty profile)",type:"string"},sport_id:{type:"integer"}},required:["sport_id"],type:"object"},Mo={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},No={properties:{created_by:{type:"string"},id:{format:"uuid",type:"string"},updated_at:{format:"date-time",type:"string"},updated_by:{type:"string"}},required:["id"],type:"object"},wo={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},qo={additionalProperties:!1,properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Fo={properties:{data:{oneOf:[{$ref:"#/components/schemas/FacilityPunchCardData"},{$ref:"#/components/schemas/FacilityValueCardData"}]},type:{enum:["FACILITY_PUNCH_CARD","FACILITY_VALUE_CARD"],type:"string"}},required:["type","data"],type:"object"},zo={oneOf:[{$ref:"#/components/schemas/FacilityOfferConditionWeekdays"},{$ref:"#/components/schemas/FacilityOfferConditionCourts"},{$ref:"#/components/schemas/FacilityOfferConditionDate"},{$ref:"#/components/schemas/FacilityOfferConditionTime"},{$ref:"#/components/schemas/FacilityOfferConditionHoursinadvance"},{$ref:"#/components/schemas/FacilityOfferConditionActivities"}],properties:{type:{enum:["WEEKDAYS","COURTS","DATE","TIME","HOURSINADVANCE","ACTIVITIES"],type:"string"}},required:["type"],type:"object"},jo={properties:{activities:{items:{properties:{id:{type:"integer"},name:{type:"string"},type:{nullable:!0,type:"string"}},required:["id","name","type"],type:"object"},type:"array"},all_activities:{type:"boolean"},not_valid_for_activities:{type:"boolean"}},required:["not_valid_for_activities","all_activities","activities"],type:"object"},Bo={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Ko={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},$o={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Vo={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Qo={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Ho={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Yo={properties:{checkout_url:{description:"The URL to the checkout page for the facility offer order",example:"https://checkout.matchi.com/pay/1b44a93b24a3413dadsee96e1bc7a4350ecac",format:"uri",type:"string"},id:{type:"string"}},required:["id","checkout_url"],type:"object"},Wo={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Jo={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},Xo={properties:{conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},max_duration:{type:"integer"},members_only:{type:"boolean"},name:{type:"string"},nr_of_bookings_in_period:{nullable:!0,type:"integer"},nr_of_days_valid:{nullable:!0,type:"integer"},nr_of_tickets:{type:"integer"},offer_id:{type:"integer"},price:{type:"string"},unlimited:{type:"boolean"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","unlimited","max_duration","nr_of_days_valid","nr_of_tickets","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions","nr_of_bookings_in_period"],type:"object"},Zo={properties:{amount:{type:"string"},conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},members_only:{type:"boolean"},name:{type:"string"},nr_of_days_valid:{nullable:!0,type:"integer"},offer_id:{type:"integer"},price:{type:"string"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","nr_of_days_valid","amount","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions"],type:"object"},es={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},ts={enum:["ACTIVITY","MATCH"],type:"string"},rs={properties:{court_id:{format:"int64",type:"integer"},facility_id:{format:"int64",type:"integer"},facility_name:{type:"string"},id:{format:"uuid",type:"string"},image_url:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasion"},sport_id:{format:"int64",nullable:!0,type:"integer"},title:{type:"string"}},required:["id","title","sport_id","facility_id","facility_name","court_id","occasion"],type:"object"},os={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},ss={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},is={allOf:[{$ref:"#/components/schemas/Match"},{properties:{description:{nullable:!0,type:"string"},message_title:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasionDetail"},terms:{nullable:!0,type:"string"}},type:"object"}],description:`Match for the detail view. Extends Match with description, terms, message_title and upgrades occasion to MatchOccasionDetail.
|
|
11
|
+
`,enum:["ADMIN","MEMBER","UNKNOWN"],type:"string"},user:{$ref:"#/components/schemas/Member"}},required:["type"],type:"object"},Io={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Do={properties:{author:{$ref:"#/components/schemas/Author"},comment_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},post_id:{format:"uuid",type:"string"}},required:["comment_id","post_id","author","content","is_read","created_at"],type:"object"},xo={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Uo={properties:{community_id:{format:"uuid",type:"string"},cover_image_url:{type:"string"},created_at:{format:"date-time",type:"string"},description:{type:"string"},facility_id:{type:"integer"},member_count:{type:"integer"},name:{type:"string"},posting_permission:{$ref:"#/components/schemas/PostingPermission"},status:{$ref:"#/components/schemas/MembershipStatus"},unread_post_count:{type:"integer"},updated_at:{format:"date-time",type:"string"},visibility:{$ref:"#/components/schemas/Visibility"}},required:["community_id","facility_id","name","description","posting_permission","visibility","status","member_count","unread_post_count","created_at","updated_at"],type:"object"},To={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},vo={additionalProperties:!1,properties:{comment_id:{format:"uuid",type:"string"},community_id:{format:"uuid",type:"string"},description:{type:"string"},post_id:{format:"uuid",type:"string"},title:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["topic","title","description"],type:"object"},_o={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},ko={properties:{accept_terms:{type:"boolean"},payment:{$ref:"#/components/schemas/PaymentCommand"},promo_code:{nullable:!0,type:"string"},user_message:{nullable:!0,type:"string"}},required:["payment","accept_terms"],type:"object"},Ao={properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},required:["content"],type:"object"},Go={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},Lo={properties:{authority_slug:{description:'Initial authority (defaults to "matchi" if omitted)',type:"string"},level:{description:"Initial level value (omit to create an empty profile)",type:"string"},sport_id:{type:"integer"}},required:["sport_id"],type:"object"},Mo={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},No={properties:{created_by:{type:"string"},id:{format:"uuid",type:"string"},updated_at:{format:"date-time",type:"string"},updated_by:{type:"string"}},required:["id"],type:"object"},wo={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},qo={additionalProperties:!1,properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Fo={properties:{data:{oneOf:[{$ref:"#/components/schemas/FacilityPunchCardData"},{$ref:"#/components/schemas/FacilityValueCardData"}]},type:{enum:["FACILITY_PUNCH_CARD","FACILITY_VALUE_CARD"],type:"string"}},required:["type","data"],type:"object"},zo={oneOf:[{$ref:"#/components/schemas/FacilityOfferConditionWeekdays"},{$ref:"#/components/schemas/FacilityOfferConditionCourts"},{$ref:"#/components/schemas/FacilityOfferConditionDate"},{$ref:"#/components/schemas/FacilityOfferConditionTime"},{$ref:"#/components/schemas/FacilityOfferConditionHoursinadvance"},{$ref:"#/components/schemas/FacilityOfferConditionActivities"}],properties:{type:{enum:["WEEKDAYS","COURTS","DATE","TIME","HOURSINADVANCE","ACTIVITIES"],type:"string"}},required:["type"],type:"object"},jo={properties:{activities:{items:{properties:{id:{type:"integer"},name:{type:"string"},type:{nullable:!0,type:"string"}},required:["id","name","type"],type:"object"},type:"array"},all_activities:{type:"boolean"},not_valid_for_activities:{type:"boolean"}},required:["not_valid_for_activities","all_activities","activities"],type:"object"},Bo={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Ko={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},$o={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Vo={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Qo={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Ho={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Yo={properties:{checkout_url:{description:"The URL to the checkout page for the facility offer order",example:"https://checkout.matchi.com/pay/1b44a93b24a3413dadsee96e1bc7a4350ecac",format:"uri",type:"string"},id:{type:"string"}},required:["id","checkout_url"],type:"object"},Wo={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Jo={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},Xo={properties:{conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},max_duration:{type:"integer"},members_only:{type:"boolean"},name:{type:"string"},nr_of_bookings_in_period:{nullable:!0,type:"integer"},nr_of_days_valid:{nullable:!0,type:"integer"},nr_of_tickets:{type:"integer"},offer_id:{type:"integer"},price:{type:"string"},unlimited:{type:"boolean"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","unlimited","max_duration","nr_of_days_valid","nr_of_tickets","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions","nr_of_bookings_in_period"],type:"object"},Zo={properties:{amount:{type:"string"},conditions:{items:{$ref:"#/components/schemas/FacilityOfferCondition"},type:"array"},description:{nullable:!0,type:"string"},expire_date:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_receive_membership_requests:{type:"boolean"},members_only:{type:"boolean"},name:{type:"string"},nr_of_days_valid:{nullable:!0,type:"integer"},offer_id:{type:"integer"},price:{type:"string"},user_has_active_membership:{type:"boolean"}},required:["offer_id","facility_id","name","description","price","nr_of_days_valid","amount","members_only","user_has_active_membership","facility_receive_membership_requests","expire_date","conditions"],type:"object"},es={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},ts={enum:["ACTIVITY","BOOKING","MATCH"],type:"string"},rs={properties:{court_id:{format:"int64",type:"integer"},facility_id:{format:"int64",type:"integer"},facility_name:{type:"string"},id:{format:"uuid",type:"string"},image_url:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasion"},sport_id:{format:"int64",nullable:!0,type:"integer"},title:{type:"string"}},required:["id","title","sport_id","facility_id","facility_name","court_id","occasion"],type:"object"},os={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},ss={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},is={allOf:[{$ref:"#/components/schemas/Match"},{properties:{description:{nullable:!0,type:"string"},message_title:{nullable:!0,type:"string"},occasion:{$ref:"#/components/schemas/MatchOccasionDetail"},terms:{nullable:!0,type:"string"}},type:"object"}],description:`Match for the detail view. Extends Match with description, terms, message_title and upgrades occasion to MatchOccasionDetail.
|
|
12
12
|
`},as={nullable:!0,properties:{name:{type:"string"},supported_by:{nullable:!0,type:"string"}},type:"object"},ns={properties:{items:{items:{$ref:"#/components/schemas/Match"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},ps={properties:{auto_cancel_enabled:{description:`Explicit per-match toggle. When false, the match proceeds regardless of participant count at start time and automatic_cancellation_date_time is null.
|
|
13
13
|
`,type:"boolean"},automatic_cancellation_date_time:{format:"date-time",nullable:!0,type:"string"},courts:{items:{$ref:"#/components/schemas/MatchCourt"},type:"array"},end_date_time:{format:"date-time",type:"string"},has_not_closed_registration:{type:"boolean"},has_opened_registration:{type:"boolean"},id:{format:"int64",type:"integer"},is_bookable:{type:"boolean"},is_participating:{type:"boolean"},level_max:{description:"Max required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},level_min:{description:"Min required skill level (1-10) with one-decimal precision.",nullable:!0,type:"number"},members_only:{type:"boolean"},message:{nullable:!0,type:"string"},participants:{$ref:"#/components/schemas/MatchParticipants"},price:{$ref:"#/components/schemas/MatchBasePrice"},start_date_time:{format:"date-time",type:"string"},type:{nullable:!0,type:"string"}},required:["id","start_date_time","end_date_time","courts","participants","price","is_bookable","is_participating","has_opened_registration","has_not_closed_registration","members_only","auto_cancel_enabled"],type:"object"},ls={allOf:[{$ref:"#/components/schemas/MatchOccasion"},{properties:{can_be_cancelled_by_user:{type:"boolean"},event:{$ref:"#/components/schemas/MatchEvent"},external_services:{items:{$ref:"#/components/schemas/ExternalService"},type:"array"},order_id:{description:`Order id of the requesting user's participation in this occasion, when the participation exists and is linked to an order. Null otherwise. Use with the user payments endpoint to load the receipt.
|
|
14
14
|
`,format:"int64",nullable:!0,type:"integer"},participant_details:{items:{$ref:"#/components/schemas/ParticipantDetail"},type:"array"},price_list:{items:{$ref:"#/components/schemas/MatchPriceListEntry"},type:"array"},refund_policy:{$ref:"#/components/schemas/RefundPolicy"},status:{$ref:"#/components/schemas/MatchStatus"},user_status:{$ref:"#/components/schemas/UserParticipationStatus"}},required:["price_list","refund_policy","can_be_cancelled_by_user","participant_details","status","user_status","external_services","event"],type:"object"}],description:`Enriched occasion for the detail view. Extends MatchOccasion with price_list, refund_policy, can_be_cancelled_by_user, participant_details, status, user_status, external_services, event, order_id.
|
|
@@ -17,4 +17,4 @@ has been deleted; only the type is set, user is omitted.
|
|
|
17
17
|
`,type:"string"},level_max:{description:"Maximum skill level (1-10). Null if not set.",nullable:!0,type:"integer"},level_min:{description:"Minimum skill level (1-10). Null if not set.",nullable:!0,type:"integer"},members_only:{description:`Whether the activity is restricted to facility members. Null when membership restriction is unknown \u2014 callers should treat null as unknown and fall back to existing rendering.
|
|
18
18
|
`,nullable:!0,type:"boolean"},name:{description:"Display name for the recommendation card.",type:"string"},participant_count:{description:"Current number of confirmed participants.",type:"integer"},participant_max:{description:"Maximum participant capacity. Null if no limit.",nullable:!0,type:"integer"},score:{description:"Recommendation relevance score (0-1). Higher is more relevant.",format:"float",type:"number"},sport:{description:"Sport associated with this recommendation.",nullable:!0,properties:{id:{type:"integer"},name:{description:"Sport name (e.g. padel, tennis).",type:"string"}},type:"object"},spots_available:{description:"Number of open spots. Null if no limit.",nullable:!0,type:"integer"},tags:{description:`Categorization tags for visual treatment (icons, labels). Values are lowercase and derived from the recommended entity's metadata. Examples: ["competition", "americano"], ["match"], ["training", "group"]. Not a fixed enum \u2014 new values may appear as new entity types are added downstream.
|
|
19
19
|
`,items:{type:"string"},type:"array"},type:{description:`The entity type. Determines what kind of detail page to navigate to.
|
|
20
|
-
`,enum:["CLASS_ACTIVITY","EVENT_ACTIVITY","COURSE_ACTIVITY","MATCH_ACTIVITY"],type:"string"}},required:["type","id","name","facility_id","facility_name","date_start","date_end","participant_count","score","connections","tags"],type:"object"},Fs={properties:{items:{items:{$ref:"#/components/schemas/Recommendation"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},zs={nullable:!0,properties:{args:{items:{},type:"array"},code:{type:"string"}},required:["code","args"],type:"object"},js={properties:{app_version:{type:"string"},fcm_token:{minLength:1,type:"string"},language:{description:"User's preferred language for push notifications.",example:"sv",minLength:2,type:"string"},os:{enum:["ios","android"],type:"string"}},required:["fcm_token","os","app_version"],type:"object"},Bs={enum:["FACILITY","COMMUNITY"],type:"string"},Ks={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},$s={properties:{bg_color:{description:"Background color for UI display (hex)",type:"string"},country:{description:"Country code this authority is restricted to; null means all countries",nullable:!0,type:"string"},display_text:{description:'Short label shown in badges (e.g. "M", "DK")',type:"string"},fore_color:{description:"Foreground/text color for UI display (hex)",type:"string"},max_level:{description:"Maximum allowed level value",format:"double",type:"number"},min_level:{description:"Minimum allowed level value",format:"double",type:"number"},name:{description:"Display name of the authority",type:"string"},slug:{description:'Unique authority slug (e.g. "matchi", "dk-padel")',type:"string"},sport_id:{description:"Sport this authority applies to; null means all sports",nullable:!0,type:"integer"},step_size:{description:'Fixed step increment between levels as a decimal string (e.g. "0.5"); null means no fixed step',nullable:!0,type:"string"}},required:["slug","name","min_level","max_level","bg_color","fore_color","display_text"],type:"object"},Vs={description:"A flattened sport level entry \u2014 used in search results for matchmaking.",properties:{authority_slug:{type:"string"},level:{type:"string"},sport_id:{type:"integer"}},required:["sport_id","authority_slug","level"],type:"object"},Qs={properties:{attributes:{description:"Skill ratings for individual aspects of the sport",items:{$ref:"#/components/schemas/SportProfileAttribute"},nullable:!0,type:"array"},frequency:{description:"How often the user plays",enum:["MONTHLY","WEEKLY","WEEKLY_FREQUENT","YEARLY"],nullable:!0,type:"string"},id:{description:"The sport profile ID",type:"integer"},levels:{items:{$ref:"#/components/schemas/SportProfileLevel"},type:"array"},sport_id:{type:"integer"}},required:["id","sport_id","levels"],type:"object"},Hs={properties:{name:{description:"Attribute name (e.g. BACKHAND, FOREHAND, SERVE)",type:"string"},skill_level:{description:"Skill level for this attribute",type:"integer"}},required:["name","skill_level"],type:"object"},Ys={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},Ws={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},Js={enum:["FACILITY_MESSAGE","COMMUNITY_USER_INVITED","COMMUNITY_USER_REMOVED","COMMUNITY_POST_CREATED","COMMUNITY_COMMENT_CREATED","COMMUNITY_BLOCKED_USER_JOINED"],type:"string"},Xs={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},Zs={properties:{level:{type:"string"}},required:["level"],type:"object"},ei={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},email:{format:"email",maxLength:255,type:"string"},first_name:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},last_name:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{description:"Phone number in E.164 format. Send empty string to clear the value.",example:"+46701234567",pattern:"^(\\+?[1-9]\\d{1,14}|)$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},ti={enum:["NOT_PARTICIPATING","PARTICIPATING","WAITLISTED"],type:"string"},ri={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},first_name:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{type:"string"},last_name:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{type:"boolean"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},sport_levels:{items:{$ref:"#/components/schemas/SportLevel"},type:"array"},telephone:{type:"string"},user_id:{format:"uuid",type:"string"},zipcode:{type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},oi={description:"Returns :\n* `FRIENDS` - The user is a friend.\n* `OUTGOING` - The user has sent a friend request to the current user.\n* `INCOMING` - The user has received a friend request from the current user.\n* `NO_RELATION` - The user has no ongoing relation with the current user.\n* `BLOCK` - The user is blocked by the current user\n",enum:["FRIENDS","OUTGOING","INCOMING","NO_RELATION","BLOCK"],type:"string"},si={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},ii={enum:["HIDDEN"],type:"string"},ai={description:"Metadata about the cursor based pagination for the result. This information is coupled with the CursorParam and CursorLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{current_cursor:{description:"Cursor used to retrieve the current page of results.",type:"string"},more_results:{description:"Indicates if there are more results available.",type:"boolean"},next_cursor:{description:"Cursor to retrieve the next page of results.",type:"string"}},required:["current_cursor","more_results"],type:"object"},ni={properties:{message:{description:"The error message",type:"string"}},type:"object"},pi={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},li={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},ci={properties:{detail:{description:"A human-readable explanation specific to this occurrence of the problem.",maxLength:4096,type:"string"},errors:{$ref:"#/components/schemas/pkgOpenapiSharedErrors"},instance:{description:"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",maxLength:1024,type:"string"},status:{description:"The HTTP status code generated by the origin server for this occurrence of the problem.",format:"int32",maximum:599,minimum:100,type:"integer"},title:{description:"A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.",maxLength:1024,type:"string"},type:{description:"A URI reference that identifies the problem type.",format:"uri",maxLength:1024,type:"string"}},required:["title"],type:"object"};var te=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/communities"},t))},Pe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}"},t))},re=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/members"},t))},Oe=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/members/{userId}"},t))},Se=t=>{var e;return((e=t.client)!=null?e:h).patch(i({url:"/communities/{communityId}/members/{userId}"},t))},oe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts"},t))},Ee=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/communities/{communityId}/posts"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Re=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}"},t))},Ce=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}"},t))},Ie=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/communities/{communityId}/posts/{postId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},se=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}/comments"},t))},De=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/communities/{communityId}/posts/{postId}/comments"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},xe=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t))},Ue=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ie=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}/offers"},t))},Te=t=>{var e;return((e=t.client)!=null?e:h).post(i({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},ae=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches"},t))},ve=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}"},t))},_e=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/matches/{matchId}/participations"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ke=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/matches/{matchId}/participations/{userId}"},t))},Ae=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}/prices/{userId}"},t))},ne=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/notifications"},t))},Ge=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Le=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},Me=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications/preferences"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Ne=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/notifications/{id}"},t))},we=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications/{id}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},qe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/sport-authorities"},t))},pe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/users/profiles"},t))},Fe=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/users/{user_id}/devices"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ze=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/facility-permissions"},t))},je=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/users/{user_id}/profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},le=t=>{var e;return((e=t.client)!=null?e:h).get(i({querySerializer:{parameters:{sports:{array:{explode:!1}},activity_classes:{array:{explode:!1}}}},url:"/users/{user_id}/recommendations"},t))},Be=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles"},t))},Ke=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/users/{user_id}/sport-profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},$e=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},Ve=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},Qe=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},He=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t))},Ye=t=>{var e;return((e=t.client)!=null?e:h).put(m(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))};var ur={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},mr={ACTIVITY:"ACTIVITY",MATCH:"MATCH"},dr={OPEN:"OPEN",FULL:"FULL",REGISTRATION_CLOSED:"REGISTRATION_CLOSED",REGISTRATION_NOT_OPEN:"REGISTRATION_NOT_OPEN",CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",MEMBERS_ONLY:"MEMBERS_ONLY"},yr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},fr={ACTIVE:"ACTIVE",INVITED:"INVITED",LEFT:"LEFT"},hr={ADMINS:"ADMINS",MEMBERS:"MEMBERS"},gr={FACILITY:"FACILITY",COMMUNITY:"COMMUNITY"},br={FACILITY_MESSAGE:"FACILITY_MESSAGE",COMMUNITY_USER_INVITED:"COMMUNITY_USER_INVITED",COMMUNITY_USER_REMOVED:"COMMUNITY_USER_REMOVED",COMMUNITY_POST_CREATED:"COMMUNITY_POST_CREATED",COMMUNITY_COMMENT_CREATED:"COMMUNITY_COMMENT_CREATED",COMMUNITY_BLOCKED_USER_JOINED:"COMMUNITY_BLOCKED_USER_JOINED"},Pr={NOT_PARTICIPATING:"NOT_PARTICIPATING",PARTICIPATING:"PARTICIPATING",WAITLISTED:"WAITLISTED"},Or={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},Sr={HIDDEN:"HIDDEN"};var We={};Ze(We,{acceptInvitationMutation:()=>gi,addUserSportProfileLevelMutation:()=>oa,createCommentMutation:()=>Di,createFacilityOfferOrderMutation:()=>_i,createMatchParticipationMutation:()=>Li,createPostMutation:()=>Oi,createUserSportProfileMutation:()=>ea,deleteCommentMutation:()=>xi,deleteMatchParticipationMutation:()=>Mi,deletePostMutation:()=>Si,deleteUserSportProfileLevelMutation:()=>sa,deleteUserSportProfileMutation:()=>ta,getCommunityOptions:()=>di,getCommunityQueryKey:()=>Cr,getMatchOptions:()=>Gi,getMatchQueryKey:()=>Mr,getMatchUserPriceOptions:()=>Ni,getMatchUserPriceQueryKey:()=>Nr,getNotificationByIdOptions:()=>Bi,getNotificationByIdQueryKey:()=>zr,getNotificationsInfiniteOptions:()=>qi,getNotificationsInfiniteQueryKey:()=>qr,getNotificationsOptions:()=>wi,getNotificationsPreferencesOptions:()=>zi,getNotificationsPreferencesQueryKey:()=>Fr,getNotificationsQueryKey:()=>wr,getPostOptions:()=>Ei,getPostQueryKey:()=>Tr,getRecommendationsInfiniteOptions:()=>Xi,getRecommendationsInfiniteQueryKey:()=>Qr,getRecommendationsOptions:()=>Ji,getRecommendationsQueryKey:()=>Vr,getSportAuthoritiesOptions:()=>$i,getSportAuthoritiesQueryKey:()=>jr,getUserFacilityPermissionsOptions:()=>Yi,getUserFacilityPermissionsQueryKey:()=>$r,getUserSportProfileOptions:()=>ra,getUserSportProfileQueryKey:()=>Yr,getUserSportProfilesOptions:()=>Zi,getUserSportProfilesQueryKey:()=>Hr,leaveCommunityMutation:()=>hi,listCommentsInfiniteOptions:()=>Ii,listCommentsInfiniteQueryKey:()=>_r,listCommentsOptions:()=>Ci,listCommentsQueryKey:()=>vr,listCommunitiesInfiniteOptions:()=>mi,listCommunitiesInfiniteQueryKey:()=>Rr,listCommunitiesOptions:()=>ui,listCommunitiesQueryKey:()=>Er,listFacilityOffersInfiniteOptions:()=>vi,listFacilityOffersInfiniteQueryKey:()=>Ar,listFacilityOffersOptions:()=>Ti,listFacilityOffersQueryKey:()=>kr,listMatchesInfiniteOptions:()=>Ai,listMatchesInfiniteQueryKey:()=>Lr,listMatchesOptions:()=>ki,listMatchesQueryKey:()=>Gr,listMembersInfiniteOptions:()=>fi,listMembersInfiniteQueryKey:()=>Dr,listMembersOptions:()=>yi,listMembersQueryKey:()=>Ir,listPostsInfiniteOptions:()=>Pi,listPostsInfiniteQueryKey:()=>Ur,listPostsOptions:()=>bi,listPostsQueryKey:()=>xr,markCommentReadMutation:()=>Ui,markPostReadMutation:()=>Ri,registerDeviceMutation:()=>Hi,searchUsersInfiniteOptions:()=>Qi,searchUsersInfiniteQueryKey:()=>Kr,searchUsersOptions:()=>Vi,searchUsersQueryKey:()=>Br,updateAllNotificationsMutation:()=>Fi,updateNotificationMutation:()=>Ki,updateNotificationsPreferencesMutation:()=>ji,updateUserProfileMutation:()=>Wi,updateUserSportProfileLevelMutation:()=>ia});var b=(t,e,r,o)=>{var c;let s={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((c=e==null?void 0:e.client)!=null?c:h).getConfig().baseUrl};return r&&(s._infinite=r),o&&(s.tags=o),e!=null&&e.body&&(s.body=e.body),e!=null&&e.headers&&(s.headers=e.headers),e!=null&&e.path&&(s.path=e.path),e!=null&&e.query&&(s.query=e.query),[s]},Er=t=>b("listCommunities",t),ui=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield te(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Er(t)}),k=(t,e)=>{let r=i({},t[0]);return e.body&&(r.body=i(i({},t[0].body),e.body)),e.headers&&(r.headers=i(i({},t[0].headers),e.headers)),e.path&&(r.path=i(i({},t[0].path),e.path)),e.query&&(r.query=i(i({},t[0].query),e.query)),r},Rr=t=>b("listCommunities",t,!0),mi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield te(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Rr(t)}),Cr=t=>b("getCommunity",t),di=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Pe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Cr(t)}),Ir=t=>b("listMembers",t),yi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield re(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Ir(t)}),Dr=t=>b("listMembers",t,!0),fi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield re(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Dr(t)}),hi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Oe(m(i(i({},t),r),{throwOnError:!0}));return o})}),gi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Se(m(i(i({},t),r),{throwOnError:!0}));return o})}),xr=t=>b("listPosts",t),bi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield oe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:xr(t)}),Ur=t=>b("listPosts",t,!0),Pi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield oe(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Ur(t)}),Oi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ee(m(i(i({},t),r),{throwOnError:!0}));return o})}),Si=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Re(m(i(i({},t),r),{throwOnError:!0}));return o})}),Tr=t=>b("getPost",t),Ei=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ce(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Tr(t)}),Ri=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ie(m(i(i({},t),r),{throwOnError:!0}));return o})}),vr=t=>b("listComments",t),Ci=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield se(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:vr(t)}),_r=t=>b("listComments",t,!0),Ii=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield se(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:_r(t)}),Di=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield De(m(i(i({},t),r),{throwOnError:!0}));return o})}),xi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield xe(m(i(i({},t),r),{throwOnError:!0}));return o})}),Ui=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ue(m(i(i({},t),r),{throwOnError:!0}));return o})}),kr=t=>b("ListFacilityOffers",t),Ti=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ie(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:kr(t)}),Ar=t=>b("ListFacilityOffers",t,!0),vi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield ie(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Ar(t)}),_i=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Te(m(i(i({},t),r),{throwOnError:!0}));return o})}),Gr=t=>b("ListMatches",t),ki=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ae(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Gr(t)}),Lr=t=>b("ListMatches",t,!0),Ai=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield ae(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Lr(t)}),Mr=t=>b("GetMatch",t),Gi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ve(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Mr(t)}),Li=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield _e(m(i(i({},t),r),{throwOnError:!0}));return o})}),Mi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ke(m(i(i({},t),r),{throwOnError:!0}));return o})}),Nr=t=>b("GetMatchUserPrice",t),Ni=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ae(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Nr(t)}),wr=t=>b("GetNotifications",t),wi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ne(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:wr(t)}),qr=t=>b("GetNotifications",t,!0),qi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield ne(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:qr(t)}),Fi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ge(m(i(i({},t),r),{throwOnError:!0}));return o})}),Fr=t=>b("GetNotificationsPreferences",t),zi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Le(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Fr(t)}),ji=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Me(m(i(i({},t),r),{throwOnError:!0}));return o})}),zr=t=>b("GetNotificationById",t),Bi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ne(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:zr(t)}),Ki=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield we(m(i(i({},t),r),{throwOnError:!0}));return o})}),jr=t=>b("getSportAuthorities",t),$i=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield qe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:jr(t)}),Br=t=>b("searchUsers",t),Vi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield pe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Br(t)}),Kr=t=>b("searchUsers",t,!0),Qi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield pe(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Kr(t)}),Hi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Fe(m(i(i({},t),r),{throwOnError:!0}));return o})}),$r=t=>b("getUserFacilityPermissions",t),Yi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ze(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:$r(t)}),Wi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield je(m(i(i({},t),r),{throwOnError:!0}));return o})}),Vr=t=>b("GetRecommendations",t),Ji=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield le(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Vr(t)}),Qr=t=>b("GetRecommendations",t,!0),Xi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield le(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Qr(t)}),Hr=t=>b("getUserSportProfiles",t),Zi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Be(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Hr(t)}),ea=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ke(m(i(i({},t),r),{throwOnError:!0}));return o})}),ta=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield $e(m(i(i({},t),r),{throwOnError:!0}));return o})}),Yr=t=>b("getUserSportProfile",t),ra=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ve(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Yr(t)}),oa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Qe(m(i(i({},t),r),{throwOnError:!0}));return o})}),sa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield He(m(i(i({},t),r),{throwOnError:!0}));return o})}),ia=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ye(m(i(i({},t),r),{throwOnError:!0}));return o})});export{ht as ActivityServiceV1Service,gt as AnonymousService,bt as ApiClientServiceV1Service,j as ApiError,Pt as AuthorizedService,Ot as BookingServiceV1Service,de as CancelError,W as CancelablePromise,St as CheckoutServiceV1Service,Et as CompetitionServiceV1Service,Rt as CorsService,Ct as LoyaltyServiceV1Service,It as MembershipServiceV1Service,a as OpenAPI,Dt as PlaySessionServiceV1Service,xt as UserServiceV1Service,Vt as bookingRestriction,Qt as bookingSubType,et as bookingSubscription,Ht as bookingUserStatus,tt as cancellationPolicy,rt as chat,ot as chatCreation,Yt as chatTarget,Wt as clientType,Jt as directionParam,Xt as months,st as notificationChatGroup,it as notificationEntity,at as pendingPayment,lt as playSessionSettings,ct as playSessionUser,nt as playerRefundInfo,Zt as playerStatusParam,pt as playingUserResponse,er as userChatStatusParam,tr as userChatTargetParam,ut as userPunchCard,mt as userRelation,rr as userRelationStatusParam,At as v1};
|
|
20
|
+
`,enum:["CLASS_ACTIVITY","EVENT_ACTIVITY","COURSE_ACTIVITY","MATCH_ACTIVITY"],type:"string"}},required:["type","id","name","facility_id","facility_name","date_start","date_end","participant_count","score","connections","tags"],type:"object"},Fs={properties:{items:{items:{$ref:"#/components/schemas/Recommendation"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},zs={nullable:!0,properties:{args:{items:{},type:"array"},code:{type:"string"}},required:["code","args"],type:"object"},js={properties:{app_version:{type:"string"},fcm_token:{minLength:1,type:"string"},language:{description:"User's preferred language for push notifications.",example:"sv",minLength:2,type:"string"},os:{enum:["ios","android"],type:"string"}},required:["fcm_token","os","app_version"],type:"object"},Bs={enum:["FACILITY","COMMUNITY"],type:"string"},Ks={properties:{items:{items:{$ref:"#/components/schemas/SportAuthority"},type:"array"}},required:["items"],type:"object"},$s={properties:{bg_color:{description:"Background color for UI display (hex)",type:"string"},country:{description:"Country code this authority is restricted to; null means all countries",nullable:!0,type:"string"},display_text:{description:'Short label shown in badges (e.g. "M", "DK")',type:"string"},fore_color:{description:"Foreground/text color for UI display (hex)",type:"string"},max_level:{description:"Maximum allowed level value",format:"double",type:"number"},min_level:{description:"Minimum allowed level value",format:"double",type:"number"},name:{description:"Display name of the authority",type:"string"},slug:{description:'Unique authority slug (e.g. "matchi", "dk-padel")',type:"string"},sport_id:{description:"Sport this authority applies to; null means all sports",nullable:!0,type:"integer"},step_size:{description:'Fixed step increment between levels as a decimal string (e.g. "0.5"); null means no fixed step',nullable:!0,type:"string"}},required:["slug","name","min_level","max_level","bg_color","fore_color","display_text"],type:"object"},Vs={description:"A flattened sport level entry \u2014 used in search results for matchmaking.",properties:{authority_slug:{type:"string"},level:{type:"string"},sport_id:{type:"integer"}},required:["sport_id","authority_slug","level"],type:"object"},Qs={properties:{attributes:{description:"Skill ratings for individual aspects of the sport",items:{$ref:"#/components/schemas/SportProfileAttribute"},nullable:!0,type:"array"},frequency:{description:"How often the user plays",enum:["MONTHLY","WEEKLY","WEEKLY_FREQUENT","YEARLY"],nullable:!0,type:"string"},id:{description:"The sport profile ID",type:"integer"},levels:{items:{$ref:"#/components/schemas/SportProfileLevel"},type:"array"},sport_id:{type:"integer"}},required:["id","sport_id","levels"],type:"object"},Hs={properties:{name:{description:"Attribute name (e.g. BACKHAND, FOREHAND, SERVE)",type:"string"},skill_level:{description:"Skill level for this attribute",type:"integer"}},required:["name","skill_level"],type:"object"},Ys={properties:{authority_slug:{description:'Rating authority (e.g. "matchi", "dk-padel")',type:"string"},level:{type:"string"}},required:["authority_slug","level"],type:"object"},Ws={properties:{items:{items:{$ref:"#/components/schemas/SportProfile"},type:"array"}},required:["items"],type:"object"},Js={enum:["FACILITY_MESSAGE","COMMUNITY_USER_INVITED","COMMUNITY_USER_REMOVED","COMMUNITY_POST_CREATED","COMMUNITY_COMMENT_CREATED","COMMUNITY_BLOCKED_USER_JOINED"],type:"string"},Xs={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},type:"object"},Zs={properties:{level:{type:"string"}},required:["level"],type:"object"},ei={properties:{address:{maxLength:255,type:"string"},birthday:{example:"1990-01-15",pattern:"^\\d{4}-\\d{2}-\\d{2}$",type:"string"},city:{maxLength:100,type:"string"},country:{maxLength:2,minLength:2,type:"string"},email:{format:"email",maxLength:255,type:"string"},first_name:{maxLength:100,type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{example:"en",maxLength:2,minLength:2,pattern:"^[a-z]{2}$",type:"string"},last_name:{maxLength:100,type:"string"},private_profile:{type:"boolean"},telephone:{description:"Phone number in E.164 format. Send empty string to clear the value.",example:"+46701234567",pattern:"^(\\+?[1-9]\\d{1,14}|)$",type:"string"},zipcode:{maxLength:10,type:"string"}},type:"object"},ti={enum:["NOT_PARTICIPATING","PARTICIPATING","WAITLISTED"],type:"string"},ri={properties:{address:{type:"string"},birthday:{type:"string"},city:{type:"string"},country:{type:"string"},email:{type:"string"},first_name:{type:"string"},gender:{$ref:"#/components/schemas/Gender"},language:{type:"string"},last_name:{type:"string"},membership_facilities:{items:{type:"integer"},type:"array"},private_profile:{type:"boolean"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/UserRelation"},sport_levels:{items:{$ref:"#/components/schemas/SportLevel"},type:"array"},telephone:{type:"string"},user_id:{format:"uuid",type:"string"},zipcode:{type:"string"}},required:["user_id","first_name","last_name","relation_status"],type:"object"},oi={description:"Returns :\n* `FRIENDS` - The user is a friend.\n* `OUTGOING` - The user has sent a friend request to the current user.\n* `INCOMING` - The user has received a friend request from the current user.\n* `NO_RELATION` - The user has no ongoing relation with the current user.\n* `BLOCK` - The user is blocked by the current user\n",enum:["FRIENDS","OUTGOING","INCOMING","NO_RELATION","BLOCK"],type:"string"},si={properties:{items:{items:{$ref:"#/components/schemas/UserProfile"},type:"array"},meta:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},ii={enum:["HIDDEN"],type:"string"},ai={description:"Metadata about the cursor based pagination for the result. This information is coupled with the CursorParam and CursorLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{current_cursor:{description:"Cursor used to retrieve the current page of results.",type:"string"},more_results:{description:"Indicates if there are more results available.",type:"boolean"},next_cursor:{description:"Cursor to retrieve the next page of results.",type:"string"}},required:["current_cursor","more_results"],type:"object"},ni={properties:{message:{description:"The error message",type:"string"}},type:"object"},pi={description:"An array of error details to accompany a problem details response.",items:{$ref:"#/components/schemas/pkgOpenapiSharedError"},maxItems:1e3,type:"array"},li={description:"Metadata about the offset based pagination for the result. This information is coupled with the OffsetParam and OffsetLimitParam. Intended to be used as the `meta` field in a list response, next to an `items` array field containing the data.\n",properties:{limit:{type:"integer"},more_results:{type:"boolean"},offset:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},ci={properties:{detail:{description:"A human-readable explanation specific to this occurrence of the problem.",maxLength:4096,type:"string"},errors:{$ref:"#/components/schemas/pkgOpenapiSharedErrors"},instance:{description:"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",maxLength:1024,type:"string"},status:{description:"The HTTP status code generated by the origin server for this occurrence of the problem.",format:"int32",maximum:599,minimum:100,type:"integer"},title:{description:"A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization.",maxLength:1024,type:"string"},type:{description:"A URI reference that identifies the problem type.",format:"uri",maxLength:1024,type:"string"}},required:["title"],type:"object"};var te=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/communities"},t))},Pe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}"},t))},re=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/members"},t))},Oe=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/members/{userId}"},t))},Se=t=>{var e;return((e=t.client)!=null?e:h).patch(i({url:"/communities/{communityId}/members/{userId}"},t))},oe=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts"},t))},Ee=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/communities/{communityId}/posts"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Re=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}"},t))},Ce=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}"},t))},Ie=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/communities/{communityId}/posts/{postId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},se=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/communities/{communityId}/posts/{postId}/comments"},t))},De=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/communities/{communityId}/posts/{postId}/comments"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},xe=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t))},Ue=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/communities/{communityId}/posts/{postId}/comments/{commentId}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ie=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/facilities/{facility_id}/offers"},t))},Te=t=>{var e;return((e=t.client)!=null?e:h).post(i({url:"/facilities/{facility_id}/offers/{offer_id}"},t))},ae=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches"},t))},ve=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}"},t))},_e=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/matches/{matchId}/participations"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ke=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/matches/{matchId}/participations/{userId}"},t))},Ae=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/matches/{matchId}/prices/{userId}"},t))},ne=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/notifications"},t))},Ge=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Le=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({querySerializer:{parameters:{source_ids:{array:{explode:!1}}}},url:"/notifications/preferences"},t))},Me=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications/preferences"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},Ne=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/notifications/{id}"},t))},we=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/notifications/{id}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},qe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/sport-authorities"},t))},pe=t=>{var e;return((e=t==null?void 0:t.client)!=null?e:h).get(i({url:"/users/profiles"},t))},Fe=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/users/{user_id}/devices"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},ze=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/facility-permissions"},t))},je=t=>{var e;return((e=t.client)!=null?e:h).patch(m(i({url:"/users/{user_id}/profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},le=t=>{var e;return((e=t.client)!=null?e:h).get(i({querySerializer:{parameters:{sports:{array:{explode:!1}},activity_classes:{array:{explode:!1}}}},url:"/users/{user_id}/recommendations"},t))},Be=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles"},t))},Ke=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/users/{user_id}/sport-profiles"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},$e=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},Ve=t=>{var e;return((e=t.client)!=null?e:h).get(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}"},t))},Qe=t=>{var e;return((e=t.client)!=null?e:h).post(m(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))},He=t=>{var e;return((e=t.client)!=null?e:h).delete(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t))},Ye=t=>{var e;return((e=t.client)!=null?e:h).put(m(i({url:"/users/{user_id}/sport-profiles/{sport_profile_id}/levels/{authority_slug}"},t),{headers:i({"Content-Type":"application/json"},t.headers)}))};var ur={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",NOT_SPECIFIED:"NOT_SPECIFIED"},mr={ACTIVITY:"ACTIVITY",BOOKING:"BOOKING",MATCH:"MATCH"},dr={OPEN:"OPEN",FULL:"FULL",REGISTRATION_CLOSED:"REGISTRATION_CLOSED",REGISTRATION_NOT_OPEN:"REGISTRATION_NOT_OPEN",CANCELLED:"CANCELLED",COMPLETED:"COMPLETED",MEMBERS_ONLY:"MEMBERS_ONLY"},yr={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},fr={ACTIVE:"ACTIVE",INVITED:"INVITED",LEFT:"LEFT"},hr={ADMINS:"ADMINS",MEMBERS:"MEMBERS"},gr={FACILITY:"FACILITY",COMMUNITY:"COMMUNITY"},br={FACILITY_MESSAGE:"FACILITY_MESSAGE",COMMUNITY_USER_INVITED:"COMMUNITY_USER_INVITED",COMMUNITY_USER_REMOVED:"COMMUNITY_USER_REMOVED",COMMUNITY_POST_CREATED:"COMMUNITY_POST_CREATED",COMMUNITY_COMMENT_CREATED:"COMMUNITY_COMMENT_CREATED",COMMUNITY_BLOCKED_USER_JOINED:"COMMUNITY_BLOCKED_USER_JOINED"},Pr={NOT_PARTICIPATING:"NOT_PARTICIPATING",PARTICIPATING:"PARTICIPATING",WAITLISTED:"WAITLISTED"},Or={FRIENDS:"FRIENDS",OUTGOING:"OUTGOING",INCOMING:"INCOMING",NO_RELATION:"NO_RELATION",BLOCK:"BLOCK"},Sr={HIDDEN:"HIDDEN"};var We={};Ze(We,{acceptInvitationMutation:()=>gi,addUserSportProfileLevelMutation:()=>oa,createCommentMutation:()=>Di,createFacilityOfferOrderMutation:()=>_i,createMatchParticipationMutation:()=>Li,createPostMutation:()=>Oi,createUserSportProfileMutation:()=>ea,deleteCommentMutation:()=>xi,deleteMatchParticipationMutation:()=>Mi,deletePostMutation:()=>Si,deleteUserSportProfileLevelMutation:()=>sa,deleteUserSportProfileMutation:()=>ta,getCommunityOptions:()=>di,getCommunityQueryKey:()=>Cr,getMatchOptions:()=>Gi,getMatchQueryKey:()=>Mr,getMatchUserPriceOptions:()=>Ni,getMatchUserPriceQueryKey:()=>Nr,getNotificationByIdOptions:()=>Bi,getNotificationByIdQueryKey:()=>zr,getNotificationsInfiniteOptions:()=>qi,getNotificationsInfiniteQueryKey:()=>qr,getNotificationsOptions:()=>wi,getNotificationsPreferencesOptions:()=>zi,getNotificationsPreferencesQueryKey:()=>Fr,getNotificationsQueryKey:()=>wr,getPostOptions:()=>Ei,getPostQueryKey:()=>Tr,getRecommendationsInfiniteOptions:()=>Xi,getRecommendationsInfiniteQueryKey:()=>Qr,getRecommendationsOptions:()=>Ji,getRecommendationsQueryKey:()=>Vr,getSportAuthoritiesOptions:()=>$i,getSportAuthoritiesQueryKey:()=>jr,getUserFacilityPermissionsOptions:()=>Yi,getUserFacilityPermissionsQueryKey:()=>$r,getUserSportProfileOptions:()=>ra,getUserSportProfileQueryKey:()=>Yr,getUserSportProfilesOptions:()=>Zi,getUserSportProfilesQueryKey:()=>Hr,leaveCommunityMutation:()=>hi,listCommentsInfiniteOptions:()=>Ii,listCommentsInfiniteQueryKey:()=>_r,listCommentsOptions:()=>Ci,listCommentsQueryKey:()=>vr,listCommunitiesInfiniteOptions:()=>mi,listCommunitiesInfiniteQueryKey:()=>Rr,listCommunitiesOptions:()=>ui,listCommunitiesQueryKey:()=>Er,listFacilityOffersInfiniteOptions:()=>vi,listFacilityOffersInfiniteQueryKey:()=>Ar,listFacilityOffersOptions:()=>Ti,listFacilityOffersQueryKey:()=>kr,listMatchesInfiniteOptions:()=>Ai,listMatchesInfiniteQueryKey:()=>Lr,listMatchesOptions:()=>ki,listMatchesQueryKey:()=>Gr,listMembersInfiniteOptions:()=>fi,listMembersInfiniteQueryKey:()=>Dr,listMembersOptions:()=>yi,listMembersQueryKey:()=>Ir,listPostsInfiniteOptions:()=>Pi,listPostsInfiniteQueryKey:()=>Ur,listPostsOptions:()=>bi,listPostsQueryKey:()=>xr,markCommentReadMutation:()=>Ui,markPostReadMutation:()=>Ri,registerDeviceMutation:()=>Hi,searchUsersInfiniteOptions:()=>Qi,searchUsersInfiniteQueryKey:()=>Kr,searchUsersOptions:()=>Vi,searchUsersQueryKey:()=>Br,updateAllNotificationsMutation:()=>Fi,updateNotificationMutation:()=>Ki,updateNotificationsPreferencesMutation:()=>ji,updateUserProfileMutation:()=>Wi,updateUserSportProfileLevelMutation:()=>ia});var b=(t,e,r,o)=>{var c;let s={_id:t,baseUrl:(e==null?void 0:e.baseUrl)||((c=e==null?void 0:e.client)!=null?c:h).getConfig().baseUrl};return r&&(s._infinite=r),o&&(s.tags=o),e!=null&&e.body&&(s.body=e.body),e!=null&&e.headers&&(s.headers=e.headers),e!=null&&e.path&&(s.path=e.path),e!=null&&e.query&&(s.query=e.query),[s]},Er=t=>b("listCommunities",t),ui=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield te(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Er(t)}),k=(t,e)=>{let r=i({},t[0]);return e.body&&(r.body=i(i({},t[0].body),e.body)),e.headers&&(r.headers=i(i({},t[0].headers),e.headers)),e.path&&(r.path=i(i({},t[0].path),e.path)),e.query&&(r.query=i(i({},t[0].query),e.query)),r},Rr=t=>b("listCommunities",t,!0),mi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield te(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Rr(t)}),Cr=t=>b("getCommunity",t),di=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Pe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Cr(t)}),Ir=t=>b("listMembers",t),yi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield re(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Ir(t)}),Dr=t=>b("listMembers",t,!0),fi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield re(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Dr(t)}),hi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Oe(m(i(i({},t),r),{throwOnError:!0}));return o})}),gi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Se(m(i(i({},t),r),{throwOnError:!0}));return o})}),xr=t=>b("listPosts",t),bi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield oe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:xr(t)}),Ur=t=>b("listPosts",t,!0),Pi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield oe(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Ur(t)}),Oi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ee(m(i(i({},t),r),{throwOnError:!0}));return o})}),Si=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Re(m(i(i({},t),r),{throwOnError:!0}));return o})}),Tr=t=>b("getPost",t),Ei=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ce(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Tr(t)}),Ri=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ie(m(i(i({},t),r),{throwOnError:!0}));return o})}),vr=t=>b("listComments",t),Ci=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield se(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:vr(t)}),_r=t=>b("listComments",t,!0),Ii=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield se(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:_r(t)}),Di=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield De(m(i(i({},t),r),{throwOnError:!0}));return o})}),xi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield xe(m(i(i({},t),r),{throwOnError:!0}));return o})}),Ui=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ue(m(i(i({},t),r),{throwOnError:!0}));return o})}),kr=t=>b("ListFacilityOffers",t),Ti=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ie(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:kr(t)}),Ar=t=>b("ListFacilityOffers",t,!0),vi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield ie(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Ar(t)}),_i=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Te(m(i(i({},t),r),{throwOnError:!0}));return o})}),Gr=t=>b("ListMatches",t),ki=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ae(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Gr(t)}),Lr=t=>b("ListMatches",t,!0),Ai=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield ae(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Lr(t)}),Mr=t=>b("GetMatch",t),Gi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ve(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Mr(t)}),Li=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield _e(m(i(i({},t),r),{throwOnError:!0}));return o})}),Mi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield ke(m(i(i({},t),r),{throwOnError:!0}));return o})}),Nr=t=>b("GetMatchUserPrice",t),Ni=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ae(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Nr(t)}),wr=t=>b("GetNotifications",t),wi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ne(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:wr(t)}),qr=t=>b("GetNotifications",t,!0),qi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{cursor:e}}),{data:p}=yield ne(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:qr(t)}),Fi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ge(m(i(i({},t),r),{throwOnError:!0}));return o})}),Fr=t=>b("GetNotificationsPreferences",t),zi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Le(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Fr(t)}),ji=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Me(m(i(i({},t),r),{throwOnError:!0}));return o})}),zr=t=>b("GetNotificationById",t),Bi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ne(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:zr(t)}),Ki=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield we(m(i(i({},t),r),{throwOnError:!0}));return o})}),jr=t=>b("getSportAuthorities",t),$i=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield qe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:jr(t)}),Br=t=>b("searchUsers",t),Vi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield pe(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Br(t)}),Kr=t=>b("searchUsers",t,!0),Qi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield pe(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Kr(t)}),Hi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Fe(m(i(i({},t),r),{throwOnError:!0}));return o})}),$r=t=>b("getUserFacilityPermissions",t),Yi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield ze(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:$r(t)}),Wi=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield je(m(i(i({},t),r),{throwOnError:!0}));return o})}),Vr=t=>b("GetRecommendations",t),Ji=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield le(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Vr(t)}),Qr=t=>b("GetRecommendations",t,!0),Xi=t=>({queryFn:s=>y(null,[s],function*({pageParam:e,queryKey:r,signal:o}){let l=k(r,typeof e=="object"?e:{query:{offset:e}}),{data:p}=yield le(m(i(i({},t),l),{signal:o,throwOnError:!0}));return p}),queryKey:Qr(t)}),Hr=t=>b("getUserSportProfiles",t),Zi=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Be(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Hr(t)}),ea=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ke(m(i(i({},t),r),{throwOnError:!0}));return o})}),ta=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield $e(m(i(i({},t),r),{throwOnError:!0}));return o})}),Yr=t=>b("getUserSportProfile",t),ra=t=>({queryFn:o=>y(null,[o],function*({queryKey:e,signal:r}){let{data:s}=yield Ve(m(i(i({},t),e[0]),{signal:r,throwOnError:!0}));return s}),queryKey:Yr(t)}),oa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Qe(m(i(i({},t),r),{throwOnError:!0}));return o})}),sa=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield He(m(i(i({},t),r),{throwOnError:!0}));return o})}),ia=t=>({mutationFn:r=>y(null,null,function*(){let{data:o}=yield Ye(m(i(i({},t),r),{throwOnError:!0}));return o})});export{ht as ActivityServiceV1Service,gt as AnonymousService,bt as ApiClientServiceV1Service,j as ApiError,Pt as AuthorizedService,Ot as BookingServiceV1Service,de as CancelError,W as CancelablePromise,St as CheckoutServiceV1Service,Et as CompetitionServiceV1Service,Rt as CorsService,Ct as LoyaltyServiceV1Service,It as MembershipServiceV1Service,a as OpenAPI,Dt as PlaySessionServiceV1Service,xt as UserServiceV1Service,Vt as bookingRestriction,Qt as bookingSubType,et as bookingSubscription,Ht as bookingUserStatus,tt as cancellationPolicy,rt as chat,ot as chatCreation,Yt as chatTarget,Wt as clientType,Jt as directionParam,Xt as months,st as notificationChatGroup,it as notificationEntity,at as pendingPayment,lt as playSessionSettings,ct as playSessionUser,nt as playerRefundInfo,Zt as playerStatusParam,pt as playingUserResponse,er as userChatStatusParam,tr as userChatTargetParam,ut as userPunchCard,mt as userRelation,rr as userRelationStatusParam,At as v1};
|