chore: updating api-report with deprecations

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-03-03 10:28:42 +01:00
parent b753d22a56
commit db5bf53ffe
2 changed files with 18 additions and 3 deletions
+17 -2
View File
@@ -218,8 +218,14 @@ export class CatalogBuilder {
key: string,
resolver: PlaceholderResolver,
): CatalogBuilder;
setProcessingInterval(
processingInterval: ProcessingIntervalFunction,
): CatalogBuilder;
setProcessingIntervalSeconds(seconds: number): CatalogBuilder;
// @deprecated
setRefreshInterval(refreshInterval: RefreshIntervalFunction): CatalogBuilder;
setRefreshIntervalSeconds(seconds: number): CatalogBuilder;
// @deprecated
setRefreshIntervalSecon0ds(seconds: number): CatalogBuilder;
}
// @alpha
@@ -408,6 +414,12 @@ export const createCatalogPolicyDecision: (
) => ConditionalPolicyDecision;
// @public
export function createRandomProcessingInterval(options: {
minSeconds: number;
maxSeconds: number;
}): ProcessingIntervalFunction;
// @public @deprecated
export function createRandomRefreshInterval(options: {
minSeconds: number;
maxSeconds: number;
@@ -989,6 +1001,9 @@ export type PlaceholderResolverResolveUrl = (
base: string,
) => string;
// @public
export type ProcessingIntervalFunction = () => number;
// @public
export const processingResult: Readonly<{
readonly notFoundError: (
@@ -1023,7 +1038,7 @@ export type RecursivePartial<T> = {
: T[P];
};
// @public
// @public @deprecated
export type RefreshIntervalFunction = () => number;
// @public
@@ -210,7 +210,7 @@ export class CatalogBuilder {
/**
* Processing interval determines how often entities should be processed.
* Seconds provided will be multiplied by 1.5
* The default processing duration is 100-150 seconds.
* The default processing interval is 100-150 seconds.
* setting this too low will potentially deplete request quotas to upstream services.
*/
setProcessingIntervalSeconds(seconds: number): CatalogBuilder {