@matchi/api 0.20260518.1 → 0.20260519.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 +10 -4
- package/dist/main/index.d.ts +10 -4
- package/dist/main/index.js +1 -1
- package/dist/main/index.mjs +1 -1
- package/package.json +1 -1
package/dist/main/index.d.mts
CHANGED
|
@@ -3804,7 +3804,13 @@ type MatchOccasion = {
|
|
|
3804
3804
|
id: number;
|
|
3805
3805
|
is_bookable: boolean;
|
|
3806
3806
|
is_participating: boolean;
|
|
3807
|
+
/**
|
|
3808
|
+
* Max required skill level (1-10) with one-decimal precision.
|
|
3809
|
+
*/
|
|
3807
3810
|
level_max?: number | null;
|
|
3811
|
+
/**
|
|
3812
|
+
* Min required skill level (1-10) with one-decimal precision.
|
|
3813
|
+
*/
|
|
3808
3814
|
level_min?: number | null;
|
|
3809
3815
|
members_only: boolean;
|
|
3810
3816
|
message?: string | null;
|
|
@@ -6880,14 +6886,14 @@ declare const MatchOccasionSchema: {
|
|
|
6880
6886
|
readonly type: "boolean";
|
|
6881
6887
|
};
|
|
6882
6888
|
readonly level_max: {
|
|
6883
|
-
readonly
|
|
6889
|
+
readonly description: "Max required skill level (1-10) with one-decimal precision.";
|
|
6884
6890
|
readonly nullable: true;
|
|
6885
|
-
readonly type: "
|
|
6891
|
+
readonly type: "number";
|
|
6886
6892
|
};
|
|
6887
6893
|
readonly level_min: {
|
|
6888
|
-
readonly
|
|
6894
|
+
readonly description: "Min required skill level (1-10) with one-decimal precision.";
|
|
6889
6895
|
readonly nullable: true;
|
|
6890
|
-
readonly type: "
|
|
6896
|
+
readonly type: "number";
|
|
6891
6897
|
};
|
|
6892
6898
|
readonly members_only: {
|
|
6893
6899
|
readonly type: "boolean";
|
package/dist/main/index.d.ts
CHANGED
|
@@ -3804,7 +3804,13 @@ type MatchOccasion = {
|
|
|
3804
3804
|
id: number;
|
|
3805
3805
|
is_bookable: boolean;
|
|
3806
3806
|
is_participating: boolean;
|
|
3807
|
+
/**
|
|
3808
|
+
* Max required skill level (1-10) with one-decimal precision.
|
|
3809
|
+
*/
|
|
3807
3810
|
level_max?: number | null;
|
|
3811
|
+
/**
|
|
3812
|
+
* Min required skill level (1-10) with one-decimal precision.
|
|
3813
|
+
*/
|
|
3808
3814
|
level_min?: number | null;
|
|
3809
3815
|
members_only: boolean;
|
|
3810
3816
|
message?: string | null;
|
|
@@ -6880,14 +6886,14 @@ declare const MatchOccasionSchema: {
|
|
|
6880
6886
|
readonly type: "boolean";
|
|
6881
6887
|
};
|
|
6882
6888
|
readonly level_max: {
|
|
6883
|
-
readonly
|
|
6889
|
+
readonly description: "Max required skill level (1-10) with one-decimal precision.";
|
|
6884
6890
|
readonly nullable: true;
|
|
6885
|
-
readonly type: "
|
|
6891
|
+
readonly type: "number";
|
|
6886
6892
|
};
|
|
6887
6893
|
readonly level_min: {
|
|
6888
|
-
readonly
|
|
6894
|
+
readonly description: "Min required skill level (1-10) with one-decimal precision.";
|
|
6889
6895
|
readonly nullable: true;
|
|
6890
|
-
readonly type: "
|
|
6896
|
+
readonly type: "number";
|
|
6891
6897
|
};
|
|
6892
6898
|
readonly members_only: {
|
|
6893
6899
|
readonly type: "boolean";
|
package/dist/main/index.js
CHANGED
|
@@ -10,7 +10,7 @@ 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
11
|
`,enum:["ADMIN","MEMBER","UNKNOWN"],type:"string"},user:{$ref:"#/components/schemas/Member"}},required:["type"],type:"object"},Uo={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},To={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"},vo={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},_o={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"},ko={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Ao={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"},Go={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"},Lo={properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},required:["content"],type:"object"},No={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},wo={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"},qo={properties:{config:{items:{type:"object"},type:"array"},link:{nullable:!0,type:"string"},logo:{nullable:!0,type:"string"},name:{type:"string"}},required:["name"],type:"object"},Fo={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"},zo={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},jo={additionalProperties:!1,properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},Bo={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"},Ko={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"},$o={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"},Vo={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Qo={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},Ho={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},Yo={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Wo={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Jo={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Xo={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"},Zo={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},es={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},ts={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"},rs={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"},os={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},ss={enum:["ACTIVITY","MATCH"],type:"string"},is={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"},as={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},ns={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},ps={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
|
`},ls={nullable:!0,properties:{name:{type:"string"},supported_by:{nullable:!0,type:"string"}},type:"object"},cs={properties:{items:{items:{$ref:"#/components/schemas/Match"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},us={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
|
-
`,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:{
|
|
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"},ms={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.
|
|
15
15
|
`},ds={properties:{available:{format:"int32",type:"integer"},current:{format:"int32",type:"integer"},max:{format:"int32",type:"integer"},min:{format:"int32",nullable:!0,type:"integer"},users:{items:{$ref:"#/components/schemas/ParticipantSummary"},type:"array"}},required:["current","max","available","users"],type:"object"},ys={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},fs={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},hs={properties:{applied_category:{type:"string"},can_use_promo_code:{type:"boolean"},currency:{type:"string"},fee:{nullable:!0,type:"number"},ordinary_price:{type:"number"},payment_methods:{additionalProperties:!0,description:"Map of available payment methods keyed by method name",type:"object"},price:{type:"number"},vat:{type:"number"}},required:["price","vat","ordinary_price","currency","applied_category","can_use_promo_code","payment_methods","fee"],type:"object"},gs={properties:{first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/MemberRelation"},user_id:{format:"uuid",type:"string"}},required:["user_id","first_name","last_name"],type:"object"},bs={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Ps={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"},Os={enum:["ACTIVE","INVITED","LEFT"],type:"string"},Ss={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},Es={properties:{created_at:{format:"date-time",type:"string"},id:{format:"uuid",type:"string"},payload:{$ref:"#/components/schemas/NotificationPayload"},read_at:{format:"date-time",type:"string"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["id","topic","source","source_id","created_at","payload"],type:"object"},Rs={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"},{$ref:"#/components/schemas/CommunityPayload"}]},Cs={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Is={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Ds={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},xs={properties:{count:{type:"integer"},global_count:{type:"integer"},global_unread_count:{type:"integer"},unread_count:{type:"integer"}},required:["count","unread_count","global_count","global_unread_count"],type:"object"},Us={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"},total_count:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},Ts={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},vs={allOf:[{$ref:"#/components/schemas/ParticipantSummary"},{properties:{joined_at:{format:"date-time",type:"string"}},required:["joined_at"],type:"object"}],description:"Participant with join timestamp. Extends ParticipantSummary."},_s={properties:{first_name:{nullable:!0,type:"string"},last_name:{nullable:!0,type:"string"},level:{nullable:!0,type:"string"},profile_image_url:{nullable:!0,type:"string"},user_id:{format:"uuid",nullable:!0,type:"string"}},required:["user_id","first_name","last_name"],type:"object"},ks={properties:{is_read:{type:"boolean"}},type:"object"},As={properties:{is_read:{type:"boolean"}},type:"object"},Gs={description:"Payment selection mirroring the webapp activity-booking shape.",properties:{coupon_id:{nullable:!0,type:"string"},method:{nullable:!0,type:"string"},return_url:{nullable:!0,type:"string"}},type:"object"},Ms={description:"Order/payment envelope for an accepted match participation. For async\npayment methods (e.g. Adyen-backed checkout) `checkout_url` is set and\nthe mobile client redirects there. For inline/free flows `checkout_url`\nis absent.\n",properties:{checkout_token:{nullable:!0,type:"string"},checkout_url:{nullable:!0,type:"string"},currency:{nullable:!0,type:"string"},id:{format:"int64",type:"integer"},price:{nullable:!0,type:"number"},status:{nullable:!0,type:"string"}},required:["id"],type:"object"},Ls={properties:{author:{$ref:"#/components/schemas/Author"},comment_count:{type:"integer"},community_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"},post_id:{format:"uuid",type:"string"},unread_comment_count:{type:"integer"},updated_at:{format:"date-time",type:"string"}},required:["post_id","community_id","author","comment_count","unread_comment_count","is_read","created_at","updated_at"],type:"object"},Ns={properties:{link_reference_id:{type:"string"},link_type:{$ref:"#/components/schemas/LinkType"}},required:["link_type","link_reference_id"],type:"object"},ws={properties:{items:{items:{$ref:"#/components/schemas/Post"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},qs={enum:["ADMINS","MEMBERS"],type:"string"},Fs={properties:{channels:{$ref:"#/components/schemas/Channels"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["topic","channels"],type:"object"},zs={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},js={description:`A personalized recommendation. The common fields describe what, where, and when. Use type + id to navigate to the specific entity.
|
|
16
16
|
`,properties:{connections:{description:"Social context \u2014 which of the user's connections are signed up.",properties:{count:{description:"Number of the user's connections signed up.",type:"integer"},user_ids:{description:"User IDs of connected participants, ordered by connection strength.",items:{type:"string"},type:"array"}},required:["count"],type:"object"},date_end:{format:"date-time",type:"string"},date_start:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_name:{type:"string"},id:{description:`The recommended entity's ID. Use together with type to navigate to the appropriate detail page. Currently represents activity occasion IDs but may reference other entity types as the recommendation engine expands.
|
package/dist/main/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ 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
11
|
`,enum:["ADMIN","MEMBER","UNKNOWN"],type:"string"},user:{$ref:"#/components/schemas/Member"}},required:["type"],type:"object"},Co={properties:{inapp:{type:"boolean"},push:{type:"boolean"}},required:["inapp","push"],type:"object"},Io={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"},Do={properties:{items:{items:{$ref:"#/components/schemas/Comment"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},xo={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"},Uo={properties:{items:{items:{$ref:"#/components/schemas/CommunityItem"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},To={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"},vo={properties:{content:{maxLength:2e3,minLength:1,type:"string"}},required:["content"],type:"object"},_o={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"},ko={properties:{content:{maxLength:5e3,minLength:1,type:"string"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"}},required:["content"],type:"object"},Ao={properties:{authority_slug:{description:'Rating authority (defaults to "matchi" if omitted)',type:"string"},level:{type:"string"}},required:["level"],type:"object"},Go={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"},Lo={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"},No={properties:{items:{items:{$ref:"#/components/schemas/Facility"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},wo={additionalProperties:!1,properties:{description:{type:"string"},image_url:{type:"string"},title:{type:"string"}},required:["title","description"],type:"object"},qo={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"},Fo={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"},zo={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"},jo={properties:{courts:{items:{properties:{id:{type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},type:"array"}},required:["courts"],type:"object"},Bo={properties:{end_date:{format:"date",type:"string"},start_date:{format:"date",type:"string"}},required:["start_date","end_date"],type:"object"},Ko={properties:{nr_of_hours:{type:"integer"}},required:["nr_of_hours"],type:"object"},$o={properties:{end_time:{format:"time",type:"string"},start_time:{format:"time",type:"string"}},required:["start_time","end_time"],type:"object"},Vo={properties:{weekdays:{items:{description:"Interger representation of weekday. 1 (Monday), 7 (Sunday).",type:"integer"},type:"array"}},required:["weekdays"],type:"object"},Qo={properties:{data:{items:{$ref:"#/components/schemas/FacilityOffer"},type:"array","x-deprecated-pagination-style":!0},meta:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"}},required:["data","meta"],type:"object"},Ho={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"},Yo={properties:{facility_id:{type:"string"},roles:{items:{type:"string"},type:"array"},scopes:{items:{type:"string"},type:"array"}},required:["facility_id","roles","scopes"],type:"object"},Wo={properties:{items:{items:{$ref:"#/components/schemas/FacilityPermission"},type:"array"}},required:["items"],type:"object"},Jo={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"},Xo={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"},Zo={enum:["MALE","FEMALE","OTHER","NOT_SPECIFIED"],type:"string"},es={enum:["ACTIVITY","MATCH"],type:"string"},ts={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"},rs={properties:{currency:{type:"string"},default_price:{type:"number"},members_price:{nullable:!0,type:"number"}},required:["default_price","currency"],type:"object"},os={properties:{id:{format:"int64",type:"integer"},name:{type:"string"}},required:["id","name"],type:"object"},ss={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
|
`},is={nullable:!0,properties:{name:{type:"string"},supported_by:{nullable:!0,type:"string"}},type:"object"},as={properties:{items:{items:{$ref:"#/components/schemas/Match"},type:"array"},meta:{$ref:"#/components/schemas/OffsetPaginatedResultSet"}},required:["items","meta"],type:"object"},ns={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
|
-
`,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:{
|
|
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"},ps={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.
|
|
15
15
|
`},ls={properties:{available:{format:"int32",type:"integer"},current:{format:"int32",type:"integer"},max:{format:"int32",type:"integer"},min:{format:"int32",nullable:!0,type:"integer"},users:{items:{$ref:"#/components/schemas/ParticipantSummary"},type:"array"}},required:["current","max","available","users"],type:"object"},cs={properties:{category_name:{type:"string"},is_default_category:{type:"boolean"},price:{nullable:!0,type:"number"}},required:["price","category_name","is_default_category"],type:"object"},us={enum:["OPEN","FULL","REGISTRATION_CLOSED","REGISTRATION_NOT_OPEN","CANCELLED","COMPLETED","MEMBERS_ONLY"],type:"string"},ms={properties:{applied_category:{type:"string"},can_use_promo_code:{type:"boolean"},currency:{type:"string"},fee:{nullable:!0,type:"number"},ordinary_price:{type:"number"},payment_methods:{additionalProperties:!0,description:"Map of available payment methods keyed by method name",type:"object"},price:{type:"number"},vat:{type:"number"}},required:["price","vat","ordinary_price","currency","applied_category","can_use_promo_code","payment_methods","fee"],type:"object"},ds={properties:{first_name:{type:"string"},last_name:{type:"string"},profile_image_url:{type:"string"},relation_status:{$ref:"#/components/schemas/MemberRelation"},user_id:{format:"uuid",type:"string"}},required:["user_id","first_name","last_name"],type:"object"},ys={properties:{items:{items:{$ref:"#/components/schemas/Member"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},fs={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"},hs={enum:["ACTIVE","INVITED","LEFT"],type:"string"},gs={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedCursorPaginatedResultSet"},summary:{$ref:"#/components/schemas/NotificationsSummary"}},required:["summary"],type:"object"},bs={properties:{created_at:{format:"date-time",type:"string"},id:{format:"uuid",type:"string"},payload:{$ref:"#/components/schemas/NotificationPayload"},read_at:{format:"date-time",type:"string"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["id","topic","source","source_id","created_at","payload"],type:"object"},Ps={oneOf:[{$ref:"#/components/schemas/FacilityMessagePayload"},{$ref:"#/components/schemas/CommunityPayload"}]},Os={properties:{is_read:{description:"true to mark as read, false to mark as unread",type:"boolean"}},type:"object"},Ss={properties:{source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},type:"object"},Es={properties:{items:{items:{$ref:"#/components/schemas/Notification"},type:"array"},meta:{$ref:"#/components/schemas/Metadata"}},required:["items","meta"],type:"object"},Rs={properties:{count:{type:"integer"},global_count:{type:"integer"},global_unread_count:{type:"integer"},unread_count:{type:"integer"}},required:["count","unread_count","global_count","global_unread_count"],type:"object"},Cs={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"},total_count:{type:"integer"}},required:["offset","limit","more_results"],type:"object"},Is={properties:{pagination:{$ref:"#/components/schemas/pkgOpenapiSharedOffsetPaginatedResultSet"},summary:{properties:{total:{type:"integer"}},required:["total"],type:"object"}},required:["pagination","summary"],type:"object"},Ds={allOf:[{$ref:"#/components/schemas/ParticipantSummary"},{properties:{joined_at:{format:"date-time",type:"string"}},required:["joined_at"],type:"object"}],description:"Participant with join timestamp. Extends ParticipantSummary."},xs={properties:{first_name:{nullable:!0,type:"string"},last_name:{nullable:!0,type:"string"},level:{nullable:!0,type:"string"},profile_image_url:{nullable:!0,type:"string"},user_id:{format:"uuid",nullable:!0,type:"string"}},required:["user_id","first_name","last_name"],type:"object"},Us={properties:{is_read:{type:"boolean"}},type:"object"},Ts={properties:{is_read:{type:"boolean"}},type:"object"},vs={description:"Payment selection mirroring the webapp activity-booking shape.",properties:{coupon_id:{nullable:!0,type:"string"},method:{nullable:!0,type:"string"},return_url:{nullable:!0,type:"string"}},type:"object"},_s={description:"Order/payment envelope for an accepted match participation. For async\npayment methods (e.g. Adyen-backed checkout) `checkout_url` is set and\nthe mobile client redirects there. For inline/free flows `checkout_url`\nis absent.\n",properties:{checkout_token:{nullable:!0,type:"string"},checkout_url:{nullable:!0,type:"string"},currency:{nullable:!0,type:"string"},id:{format:"int64",type:"integer"},price:{nullable:!0,type:"number"},status:{nullable:!0,type:"string"}},required:["id"],type:"object"},ks={properties:{author:{$ref:"#/components/schemas/Author"},comment_count:{type:"integer"},community_id:{format:"uuid",type:"string"},content:{type:"string"},created_at:{format:"date-time",type:"string"},is_read:{type:"boolean"},links:{items:{$ref:"#/components/schemas/PostLink"},type:"array"},post_id:{format:"uuid",type:"string"},unread_comment_count:{type:"integer"},updated_at:{format:"date-time",type:"string"}},required:["post_id","community_id","author","comment_count","unread_comment_count","is_read","created_at","updated_at"],type:"object"},As={properties:{link_reference_id:{type:"string"},link_type:{$ref:"#/components/schemas/LinkType"}},required:["link_type","link_reference_id"],type:"object"},Gs={properties:{items:{items:{$ref:"#/components/schemas/Post"},type:"array"},meta:{$ref:"#/components/schemas/PaginationMeta"}},required:["items","meta"],type:"object"},Ms={enum:["ADMINS","MEMBERS"],type:"string"},Ls={properties:{channels:{$ref:"#/components/schemas/Channels"},source:{$ref:"#/components/schemas/Source"},source_id:{type:"string"},topic:{$ref:"#/components/schemas/Topic"}},required:["topic","channels"],type:"object"},Ns={properties:{items:{items:{$ref:"#/components/schemas/Preference"},type:"array"}},required:["items"],type:"object"},ws={description:`A personalized recommendation. The common fields describe what, where, and when. Use type + id to navigate to the specific entity.
|
|
16
16
|
`,properties:{connections:{description:"Social context \u2014 which of the user's connections are signed up.",properties:{count:{description:"Number of the user's connections signed up.",type:"integer"},user_ids:{description:"User IDs of connected participants, ordered by connection strength.",items:{type:"string"},type:"array"}},required:["count"],type:"object"},date_end:{format:"date-time",type:"string"},date_start:{format:"date-time",type:"string"},facility_id:{type:"integer"},facility_name:{type:"string"},id:{description:`The recommended entity's ID. Use together with type to navigate to the appropriate detail page. Currently represents activity occasion IDs but may reference other entity types as the recommendation engine expands.
|