UNPKG

@mikle7/litty-api-client

Version:

TypeScript client for Litty API with clean, semantic type definitions

54 lines (53 loc) 3.56 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.GetUserTransactions200ResponseToJSONTyped = exports.GetUserTransactions200ResponseToJSON = exports.GetUserTransactions200ResponseFromJSONTyped = exports.GetUserTransactions200ResponseFromJSON = exports.instanceOfGetUserTransactions200Response = void 0; const GetUserTransactions200ResponsePagination_1 = require("./GetUserTransactions200ResponsePagination"); const TransactionResponseDto_1 = require("./TransactionResponseDto"); /** * Check if a given object implements the GetUserTransactions200Response interface. */ function instanceOfGetUserTransactions200Response(value) { return true; } exports.instanceOfGetUserTransactions200Response = instanceOfGetUserTransactions200Response; function GetUserTransactions200ResponseFromJSON(json) { return GetUserTransactions200ResponseFromJSONTyped(json, false); } exports.GetUserTransactions200ResponseFromJSON = GetUserTransactions200ResponseFromJSON; function GetUserTransactions200ResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'transactions': json['transactions'] == null ? undefined : (json['transactions'].map(TransactionResponseDto_1.TransactionResponseDtoFromJSON)), 'pagination': json['pagination'] == null ? undefined : (0, GetUserTransactions200ResponsePagination_1.GetUserTransactions200ResponsePaginationFromJSON)(json['pagination']), }; } exports.GetUserTransactions200ResponseFromJSONTyped = GetUserTransactions200ResponseFromJSONTyped; function GetUserTransactions200ResponseToJSON(json) { return GetUserTransactions200ResponseToJSONTyped(json, false); } exports.GetUserTransactions200ResponseToJSON = GetUserTransactions200ResponseToJSON; function GetUserTransactions200ResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'transactions': value['transactions'] == null ? undefined : (value['transactions'].map(TransactionResponseDto_1.TransactionResponseDtoToJSON)), 'pagination': (0, GetUserTransactions200ResponsePagination_1.GetUserTransactions200ResponsePaginationToJSON)(value['pagination']), }; } exports.GetUserTransactions200ResponseToJSONTyped = GetUserTransactions200ResponseToJSONTyped;