132 lines
4.2 KiB
TypeScript
132 lines
4.2 KiB
TypeScript
/*!
|
|
* Sitemap
|
|
* Copyright(c) 2011 Eugene Kalinin
|
|
* MIT Licensed
|
|
*/
|
|
/**
|
|
* URL in SitemapItem does not exist
|
|
*/
|
|
export declare class NoURLError extends Error {
|
|
constructor(message?: string);
|
|
}
|
|
/**
|
|
* Config was not passed to SitemapItem constructor
|
|
*/
|
|
export declare class NoConfigError extends Error {
|
|
constructor(message?: string);
|
|
}
|
|
/**
|
|
* changefreq property in sitemap is invalid
|
|
*/
|
|
export declare class ChangeFreqInvalidError extends Error {
|
|
constructor(url: string, changefreq: any);
|
|
}
|
|
/**
|
|
* priority property in sitemap is invalid
|
|
*/
|
|
export declare class PriorityInvalidError extends Error {
|
|
constructor(url: string, priority: any);
|
|
}
|
|
export declare class InvalidVideoFormat extends Error {
|
|
constructor(url: string);
|
|
}
|
|
export declare class InvalidVideoDuration extends Error {
|
|
constructor(url: string, duration: any);
|
|
}
|
|
export declare class InvalidVideoDescription extends Error {
|
|
constructor(url: string, length: number);
|
|
}
|
|
export declare class InvalidVideoRating extends Error {
|
|
constructor(url: string, title: any, rating: any);
|
|
}
|
|
export declare class InvalidAttrValue extends Error {
|
|
constructor(key: string, val: any, validator: RegExp, url?: string);
|
|
}
|
|
export declare class InvalidAttr extends Error {
|
|
constructor(key: string);
|
|
}
|
|
export declare class InvalidNewsFormat extends Error {
|
|
constructor(url: string);
|
|
}
|
|
export declare class InvalidNewsAccessValue extends Error {
|
|
constructor(url: string, access: any);
|
|
}
|
|
export declare class XMLLintUnavailable extends Error {
|
|
constructor(message?: string);
|
|
}
|
|
export declare class InvalidVideoTitle extends Error {
|
|
constructor(url: string, length: number);
|
|
}
|
|
export declare class InvalidVideoViewCount extends Error {
|
|
constructor(url: string, count: number);
|
|
}
|
|
export declare class InvalidVideoTagCount extends Error {
|
|
constructor(url: string, count: number);
|
|
}
|
|
export declare class InvalidVideoCategory extends Error {
|
|
constructor(url: string, count: number);
|
|
}
|
|
export declare class InvalidVideoFamilyFriendly extends Error {
|
|
constructor(url: string, fam: string);
|
|
}
|
|
export declare class InvalidVideoYesNo extends Error {
|
|
constructor(url: string, field: string, value: string);
|
|
}
|
|
/**
|
|
* An alternate link has no `lang` or `hreflang`
|
|
*/
|
|
export declare class InvalidLinkHreflang extends Error {
|
|
constructor(url: string, href: string, value: unknown);
|
|
}
|
|
export declare class InvalidVideoRestriction extends Error {
|
|
constructor(url: string, code: string);
|
|
}
|
|
export declare class InvalidVideoRestrictionRelationship extends Error {
|
|
constructor(url: string, val?: string);
|
|
}
|
|
export declare class InvalidVideoPriceType extends Error {
|
|
constructor(url: string, priceType?: string, price?: string);
|
|
}
|
|
export declare class InvalidVideoResolution extends Error {
|
|
constructor(url: string, resolution: string);
|
|
}
|
|
export declare class InvalidVideoPriceCurrency extends Error {
|
|
constructor(url: string, currency: string);
|
|
}
|
|
export declare class EmptyStream extends Error {
|
|
constructor();
|
|
}
|
|
/**
|
|
* @deprecated No longer thrown: since 10.0.0, `SitemapStream` emits an empty
|
|
* `<urlset>` when it ends without items. Kept so existing imports still resolve.
|
|
*/
|
|
export declare class EmptySitemap extends Error {
|
|
constructor();
|
|
}
|
|
export declare class InvalidPathError extends Error {
|
|
constructor(path: string, reason: string);
|
|
}
|
|
export declare class InvalidHostnameError extends Error {
|
|
constructor(hostname: string, reason: string);
|
|
}
|
|
/**
|
|
* A URL failed validateURL. Extends InvalidHostnameError so existing
|
|
* `instanceof InvalidHostnameError` checks keep working; the offending value
|
|
* is truncated so attacker-sized input is not copied into every message.
|
|
*/
|
|
export declare class InvalidURLError extends InvalidHostnameError {
|
|
constructor(url: string, reason: string);
|
|
}
|
|
export declare class InvalidLimitError extends Error {
|
|
constructor(limit: any);
|
|
}
|
|
export declare class InvalidPublicBasePathError extends Error {
|
|
constructor(publicBasePath: string, reason: string);
|
|
}
|
|
export declare class InvalidXSLUrlError extends Error {
|
|
constructor(xslUrl: string, reason: string);
|
|
}
|
|
export declare class InvalidXMLAttributeNameError extends Error {
|
|
constructor(attributeName: string);
|
|
}
|