@mikle7/litty-api-client
Version:
TypeScript client for Litty API with clean, semantic type definitions
55 lines (54 loc) • 3.69 kB
JavaScript
;
/* 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.GetContestPredictions200ResponseInnerToJSONTyped = exports.GetContestPredictions200ResponseInnerToJSON = exports.GetContestPredictions200ResponseInnerFromJSONTyped = exports.GetContestPredictions200ResponseInnerFromJSON = exports.instanceOfGetContestPredictions200ResponseInner = void 0;
const GetContestPredictions200ResponseInnerPredictionsInner_1 = require("./GetContestPredictions200ResponseInnerPredictionsInner");
/**
* Check if a given object implements the GetContestPredictions200ResponseInner interface.
*/
function instanceOfGetContestPredictions200ResponseInner(value) {
return true;
}
exports.instanceOfGetContestPredictions200ResponseInner = instanceOfGetContestPredictions200ResponseInner;
function GetContestPredictions200ResponseInnerFromJSON(json) {
return GetContestPredictions200ResponseInnerFromJSONTyped(json, false);
}
exports.GetContestPredictions200ResponseInnerFromJSON = GetContestPredictions200ResponseInnerFromJSON;
function GetContestPredictions200ResponseInnerFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'entryId': json['entryId'] == null ? undefined : json['entryId'],
'userId': json['userId'] == null ? undefined : json['userId'],
'predictions': json['predictions'] == null ? undefined : (json['predictions'].map(GetContestPredictions200ResponseInnerPredictionsInner_1.GetContestPredictions200ResponseInnerPredictionsInnerFromJSON)),
};
}
exports.GetContestPredictions200ResponseInnerFromJSONTyped = GetContestPredictions200ResponseInnerFromJSONTyped;
function GetContestPredictions200ResponseInnerToJSON(json) {
return GetContestPredictions200ResponseInnerToJSONTyped(json, false);
}
exports.GetContestPredictions200ResponseInnerToJSON = GetContestPredictions200ResponseInnerToJSON;
function GetContestPredictions200ResponseInnerToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'entryId': value['entryId'],
'userId': value['userId'],
'predictions': value['predictions'] == null ? undefined : (value['predictions'].map(GetContestPredictions200ResponseInnerPredictionsInner_1.GetContestPredictions200ResponseInnerPredictionsInnerToJSON)),
};
}
exports.GetContestPredictions200ResponseInnerToJSONTyped = GetContestPredictions200ResponseInnerToJSONTyped;