Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
49 lines
1.1 KiB
Text
49 lines
1.1 KiB
Text
import type { WaiterConfiguration as WaiterConfiguration__ } from "@smithy/types";
|
|
/**
|
|
* @internal
|
|
*/
|
|
export interface WaiterConfiguration<T> extends WaiterConfiguration__<T> {
|
|
}
|
|
/**
|
|
* @internal
|
|
*/
|
|
export declare const waiterServiceDefaults: {
|
|
minDelay: number;
|
|
maxDelay: number;
|
|
};
|
|
/**
|
|
* @internal
|
|
*/
|
|
export type WaiterOptions<Client> = WaiterConfiguration<Client> & Required<Pick<WaiterConfiguration<Client>, "minDelay" | "maxDelay">>;
|
|
/**
|
|
* @internal
|
|
*/
|
|
export declare enum WaiterState {
|
|
ABORTED = "ABORTED",
|
|
FAILURE = "FAILURE",
|
|
SUCCESS = "SUCCESS",
|
|
RETRY = "RETRY",
|
|
TIMEOUT = "TIMEOUT"
|
|
}
|
|
/**
|
|
* @internal
|
|
*/
|
|
export type WaiterResult = {
|
|
state: WaiterState;
|
|
/**
|
|
* (optional) Indicates a reason for why a waiter has reached its state.
|
|
*/
|
|
reason?: any;
|
|
/**
|
|
* Responses observed by the waiter during its polling, where the value
|
|
* is the count.
|
|
*/
|
|
observedResponses?: Record<string, number>;
|
|
};
|
|
/**
|
|
* @internal
|
|
*
|
|
* Handles and throws exceptions resulting from the waiterResult
|
|
* @param result - WaiterResult
|
|
*/
|
|
export declare const checkExceptions: (result: WaiterResult) => WaiterResult;
|