UNPKG

@mikle7/litty-api-client

Version:

TypeScript client for Litty API with clean, semantic type definitions

56 lines (55 loc) 3.23 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Litty API * Complete API documentation for the Litty platform. ## Authentication Most endpoints require authentication via Supabase JWT tokens. Include the token in the Authorization header: `Bearer <token>` ## API Structure - **Contests**: Create and manage contests, entries, and settlements - **Markets**: Manage prediction markets within contests - **Transactions**: Handle financial transactions for contest entries and rewards - **Wallet**: Manage user wallet balances (cashable, points, tickets) - **Users**: User management and profiles - **Leaderboards**: Competition rankings and scoring - **Uploads**: File upload management - **Shows**: TV show and episode management (admin only) ## Response Formats All endpoints return JSON responses with consistent error handling. Error responses include `statusCode`, `message`, and `error` fields. * * The version of the OpenAPI document: 1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.GetAllUsers200ResponsePaginationToJSONTyped = exports.GetAllUsers200ResponsePaginationToJSON = exports.GetAllUsers200ResponsePaginationFromJSONTyped = exports.GetAllUsers200ResponsePaginationFromJSON = exports.instanceOfGetAllUsers200ResponsePagination = void 0; /** * Check if a given object implements the GetAllUsers200ResponsePagination interface. */ function instanceOfGetAllUsers200ResponsePagination(value) { return true; } exports.instanceOfGetAllUsers200ResponsePagination = instanceOfGetAllUsers200ResponsePagination; function GetAllUsers200ResponsePaginationFromJSON(json) { return GetAllUsers200ResponsePaginationFromJSONTyped(json, false); } exports.GetAllUsers200ResponsePaginationFromJSON = GetAllUsers200ResponsePaginationFromJSON; function GetAllUsers200ResponsePaginationFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'page': json['page'] == null ? undefined : json['page'], 'limit': json['limit'] == null ? undefined : json['limit'], 'total': json['total'] == null ? undefined : json['total'], 'totalPages': json['totalPages'] == null ? undefined : json['totalPages'], }; } exports.GetAllUsers200ResponsePaginationFromJSONTyped = GetAllUsers200ResponsePaginationFromJSONTyped; function GetAllUsers200ResponsePaginationToJSON(json) { return GetAllUsers200ResponsePaginationToJSONTyped(json, false); } exports.GetAllUsers200ResponsePaginationToJSON = GetAllUsers200ResponsePaginationToJSON; function GetAllUsers200ResponsePaginationToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'page': value['page'], 'limit': value['limit'], 'total': value['total'], 'totalPages': value['totalPages'], }; } exports.GetAllUsers200ResponsePaginationToJSONTyped = GetAllUsers200ResponsePaginationToJSONTyped;