UNPKG

hn-api-sdk

Version:

HackerNews API with TypeScript, generated by tsdk

75 lines (74 loc) 1.97 kB
"use strict"; /** * * api-user.ts * hn-api-sdk@1.0.0 * **/ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetUserDetail = exports.GetStory = exports.GetStories = exports.GetPoll = exports.GetPart = exports.GetMaxItemId = exports.GetJob = exports.GetComment = exports.GetChangedItemsAndProfiles = exports.GetAsk = void 0; var gen_api_1 = __importDefault(require("./gen-api")); var apiconf_refs_1 = require("./apiconf-refs"); /** * Get ask detail * * @category items */ exports.GetAsk = (0, gen_api_1.default)(apiconf_refs_1.GetAskConfig); /** * Changed Items and Profiles * * @category live data */ exports.GetChangedItemsAndProfiles = (0, gen_api_1.default)(apiconf_refs_1.GetChangedItemsAndProfilesConfig); /** * Get commend detail * * @category items */ exports.GetComment = (0, gen_api_1.default)(apiconf_refs_1.GetCommentConfig); /** * Get job detail * * @category items */ exports.GetJob = (0, gen_api_1.default)(apiconf_refs_1.GetJobConfig); /** * Get the current largest item id. * * @category live data */ exports.GetMaxItemId = (0, gen_api_1.default)(apiconf_refs_1.GetMaxItemIdConfig); /** * Get part detail * * @category items */ exports.GetPart = (0, gen_api_1.default)(apiconf_refs_1.GetPartConfig); /** * Get poll detail * * @category items */ exports.GetPoll = (0, gen_api_1.default)(apiconf_refs_1.GetPollConfig); /** * Up to 200-500 stories, query `new/top/best/ask/show/job` stories * * @category live data */ exports.GetStories = (0, gen_api_1.default)(apiconf_refs_1.GetStoriesConfig); /** * Get story detail * * @category items */ exports.GetStory = (0, gen_api_1.default)(apiconf_refs_1.GetStoryConfig); /** * Query user detail * * @category users */ exports.GetUserDetail = (0, gen_api_1.default)(apiconf_refs_1.GetUserDetailConfig);