@matchi/api 0.20260423.1 → 0.20260424.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.
@@ -2248,10 +2248,11 @@ declare class AuthorizedService {
2248
2248
  * @param offset Number of items to skip before returning the results.
2249
2249
  * @param limit Maximum number of items to return.
2250
2250
  * @param subType Filter bookings by subType
2251
+ * @param direction Filter bookings by direction (upcoming or history).
2251
2252
  * @returns bookingsResponse A list of bookings for the specified user
2252
2253
  * @throws ApiError
2253
2254
  */
2254
- static listUserBookings(offset?: number, limit?: number, subType?: bookingSubType): CancelablePromise<bookingsResponse>;
2255
+ static listUserBookings(offset?: number, limit?: number, subType?: bookingSubType, direction?: 'upcoming' | 'history'): CancelablePromise<bookingsResponse>;
2255
2256
  /**
2256
2257
  * Create a booking by timespan
2257
2258
  * @param requestBody Include resourceId, start/endtime, slots for split and players that should be included in the booking.
@@ -4429,23 +4430,23 @@ type ListMatchesData = {
4429
4430
  /**
4430
4431
  * Start of date range (ISO 8601 UTC)
4431
4432
  */
4432
- start_date_time: string;
4433
+ startDateTime: string;
4433
4434
  /**
4434
4435
  * End of date range (ISO 8601 UTC)
4435
4436
  */
4436
- end_date_time: string;
4437
+ endDateTime: string;
4437
4438
  /**
4438
4439
  * Filter by facility IDs
4439
4440
  */
4440
- facility_ids?: Array<number>;
4441
+ facilityIds?: Array<number>;
4441
4442
  /**
4442
4443
  * Filter by sport IDs
4443
4444
  */
4444
- sport_ids?: Array<number>;
4445
+ sportIds?: Array<number>;
4445
4446
  /**
4446
4447
  * Minimum number of available spots
4447
4448
  */
4448
- available_spots?: number;
4449
+ availableSpots?: number;
4449
4450
  /**
4450
4451
  * Number of items to skip before returning the results.
4451
4452
  */
@@ -4482,10 +4483,10 @@ type ListMatchesResponse = ListMatchesResponses[keyof ListMatchesResponses];
4482
4483
  type GetMatchData = {
4483
4484
  body?: never;
4484
4485
  path: {
4485
- match_id: string;
4486
+ matchId: string;
4486
4487
  };
4487
4488
  query?: never;
4488
- url: '/matches/{match_id}';
4489
+ url: '/matches/{matchId}';
4489
4490
  };
4490
4491
  type GetMatchErrors = {
4491
4492
  /**
@@ -4512,13 +4513,13 @@ type GetMatchResponse = GetMatchResponses[keyof GetMatchResponses];
4512
4513
  type GetMatchUserPriceData = {
4513
4514
  body?: never;
4514
4515
  path: {
4515
- match_id: string;
4516
- user_id: string;
4516
+ matchId: string;
4517
+ userId: string;
4517
4518
  };
4518
4519
  query?: {
4519
- promo_code?: string;
4520
+ promoCode?: string;
4520
4521
  };
4521
- url: '/matches/{match_id}/prices/{user_id}';
4522
+ url: '/matches/{matchId}/prices/{userId}';
4522
4523
  };
4523
4524
  type GetMatchUserPriceErrors = {
4524
4525
  /**
@@ -7357,7 +7358,7 @@ declare const getMatch: <ThrowOnError extends boolean = false>(options: Options<
7357
7358
  /**
7358
7359
  * Get user-specific match pricing
7359
7360
  *
7360
- * Get personalized pricing for a match. The path user_id must match the authenticated user.
7361
+ * Get personalized pricing for a match. The path userId must match the authenticated user.
7361
7362
  */
7362
7363
  declare const getMatchUserPrice: <ThrowOnError extends boolean = false>(options: Options<GetMatchUserPriceData, ThrowOnError>) => RequestResult<GetMatchUserPriceResponses, GetMatchUserPriceErrors, ThrowOnError, "fields">;
7363
7364
  /**
@@ -7637,7 +7638,7 @@ declare const getMatchUserPriceQueryKey: (options: Options<GetMatchUserPriceData
7637
7638
  /**
7638
7639
  * Get user-specific match pricing
7639
7640
  *
7640
- * Get personalized pricing for a match. The path user_id must match the authenticated user.
7641
+ * Get personalized pricing for a match. The path userId must match the authenticated user.
7641
7642
  */
7642
7643
  declare const getMatchUserPriceOptions: (options: Options<GetMatchUserPriceData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<MatchUserPrice, PkgOpenapiSharedProblemDetails, MatchUserPrice, [Pick<Options<GetMatchUserPriceData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
7643
7644
  _id: string;
@@ -2248,10 +2248,11 @@ declare class AuthorizedService {
2248
2248
  * @param offset Number of items to skip before returning the results.
2249
2249
  * @param limit Maximum number of items to return.
2250
2250
  * @param subType Filter bookings by subType
2251
+ * @param direction Filter bookings by direction (upcoming or history).
2251
2252
  * @returns bookingsResponse A list of bookings for the specified user
2252
2253
  * @throws ApiError
2253
2254
  */
2254
- static listUserBookings(offset?: number, limit?: number, subType?: bookingSubType): CancelablePromise<bookingsResponse>;
2255
+ static listUserBookings(offset?: number, limit?: number, subType?: bookingSubType, direction?: 'upcoming' | 'history'): CancelablePromise<bookingsResponse>;
2255
2256
  /**
2256
2257
  * Create a booking by timespan
2257
2258
  * @param requestBody Include resourceId, start/endtime, slots for split and players that should be included in the booking.
@@ -4429,23 +4430,23 @@ type ListMatchesData = {
4429
4430
  /**
4430
4431
  * Start of date range (ISO 8601 UTC)
4431
4432
  */
4432
- start_date_time: string;
4433
+ startDateTime: string;
4433
4434
  /**
4434
4435
  * End of date range (ISO 8601 UTC)
4435
4436
  */
4436
- end_date_time: string;
4437
+ endDateTime: string;
4437
4438
  /**
4438
4439
  * Filter by facility IDs
4439
4440
  */
4440
- facility_ids?: Array<number>;
4441
+ facilityIds?: Array<number>;
4441
4442
  /**
4442
4443
  * Filter by sport IDs
4443
4444
  */
4444
- sport_ids?: Array<number>;
4445
+ sportIds?: Array<number>;
4445
4446
  /**
4446
4447
  * Minimum number of available spots
4447
4448
  */
4448
- available_spots?: number;
4449
+ availableSpots?: number;
4449
4450
  /**
4450
4451
  * Number of items to skip before returning the results.
4451
4452
  */
@@ -4482,10 +4483,10 @@ type ListMatchesResponse = ListMatchesResponses[keyof ListMatchesResponses];
4482
4483
  type GetMatchData = {
4483
4484
  body?: never;
4484
4485
  path: {
4485
- match_id: string;
4486
+ matchId: string;
4486
4487
  };
4487
4488
  query?: never;
4488
- url: '/matches/{match_id}';
4489
+ url: '/matches/{matchId}';
4489
4490
  };
4490
4491
  type GetMatchErrors = {
4491
4492
  /**
@@ -4512,13 +4513,13 @@ type GetMatchResponse = GetMatchResponses[keyof GetMatchResponses];
4512
4513
  type GetMatchUserPriceData = {
4513
4514
  body?: never;
4514
4515
  path: {
4515
- match_id: string;
4516
- user_id: string;
4516
+ matchId: string;
4517
+ userId: string;
4517
4518
  };
4518
4519
  query?: {
4519
- promo_code?: string;
4520
+ promoCode?: string;
4520
4521
  };
4521
- url: '/matches/{match_id}/prices/{user_id}';
4522
+ url: '/matches/{matchId}/prices/{userId}';
4522
4523
  };
4523
4524
  type GetMatchUserPriceErrors = {
4524
4525
  /**
@@ -7357,7 +7358,7 @@ declare const getMatch: <ThrowOnError extends boolean = false>(options: Options<
7357
7358
  /**
7358
7359
  * Get user-specific match pricing
7359
7360
  *
7360
- * Get personalized pricing for a match. The path user_id must match the authenticated user.
7361
+ * Get personalized pricing for a match. The path userId must match the authenticated user.
7361
7362
  */
7362
7363
  declare const getMatchUserPrice: <ThrowOnError extends boolean = false>(options: Options<GetMatchUserPriceData, ThrowOnError>) => RequestResult<GetMatchUserPriceResponses, GetMatchUserPriceErrors, ThrowOnError, "fields">;
7363
7364
  /**
@@ -7637,7 +7638,7 @@ declare const getMatchUserPriceQueryKey: (options: Options<GetMatchUserPriceData
7637
7638
  /**
7638
7639
  * Get user-specific match pricing
7639
7640
  *
7640
- * Get personalized pricing for a match. The path user_id must match the authenticated user.
7641
+ * Get personalized pricing for a match. The path userId must match the authenticated user.
7641
7642
  */
7642
7643
  declare const getMatchUserPriceOptions: (options: Options<GetMatchUserPriceData>) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<MatchUserPrice, PkgOpenapiSharedProblemDetails, MatchUserPrice, [Pick<Options<GetMatchUserPriceData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
7643
7644
  _id: string;