export = SharePlatformApplicationValidator; /** * @typedef CreateShortLinkParam * @property {SharePlatformModel.ShortLinkReq} body */ /** * @typedef GetShortLinkByHashParam * @property {string} hash - Hash of short url */ /** * @typedef GetShortLinkClickStatsParam * @property {string} surlId - Short link ID for which click statistics are to * be retrieved. */ /** * @typedef GetShortLinksParam * @property {number} [pageNo] - Current page number * @property {number} [pageSize] - Current page size * @property {string} [createdBy] - Short link creator * @property {string} [active] - Short link active status * @property {string} [shortUrl] - Search for short url * @property {string} [originalUrl] - Search for original url * @property {string} [title] - Search text for title */ /** * @typedef UpdateShortLinkByIdParam * @property {string} id - Short link document identifier * @property {SharePlatformModel.ShortLinkReq} body */ declare class SharePlatformApplicationValidator { /** @returns {CreateShortLinkParam} */ static createShortLink(): CreateShortLinkParam; /** @returns {GetShortLinkByHashParam} */ static getShortLinkByHash(): GetShortLinkByHashParam; /** @returns {GetShortLinkClickStatsParam} */ static getShortLinkClickStats(): GetShortLinkClickStatsParam; /** @returns {GetShortLinksParam} */ static getShortLinks(): GetShortLinksParam; /** @returns {UpdateShortLinkByIdParam} */ static updateShortLinkById(): UpdateShortLinkByIdParam; } declare namespace SharePlatformApplicationValidator { export { CreateShortLinkParam, GetShortLinkByHashParam, GetShortLinkClickStatsParam, GetShortLinksParam, UpdateShortLinkByIdParam }; } type CreateShortLinkParam = { body: SharePlatformModel.ShortLinkReq; }; type GetShortLinkByHashParam = { /** * - Hash of short url */ hash: string; }; type GetShortLinkClickStatsParam = { /** * - Short link ID for which click statistics are to * be retrieved. */ surlId: string; }; type GetShortLinksParam = { /** * - Current page number */ pageNo?: number; /** * - Current page size */ pageSize?: number; /** * - Short link creator */ createdBy?: string; /** * - Short link active status */ active?: string; /** * - Search for short url */ shortUrl?: string; /** * - Search for original url */ originalUrl?: string; /** * - Search text for title */ title?: string; }; type UpdateShortLinkByIdParam = { /** * - Short link document identifier */ id: string; body: SharePlatformModel.ShortLinkReq; }; import SharePlatformModel = require("./SharePlatformModel");