@ahoo-wang/fetcher-wow
Version:
Support for Wow(https://github.com/Ahoo-Wang/Wow) in Fetcher
24 lines • 1.3 kB
TypeScript
import { DomainEventStream } from './domainEventStream';
import { QueryApi } from '../queryApi';
/**
* Interface for event stream query API operations.
* Extends the base QueryApi interface but omits the 'single' method,
* as event stream queries typically work with collections of events rather than single events.
* @template DomainEventStream - The type of domain event stream this API works with
*/
export interface EventStreamQueryApi<DomainEventBody = any, FIELDS extends string = string> extends Omit<QueryApi<DomainEventStream<DomainEventBody>, FIELDS>, 'single'> {
}
/**
* Provides endpoint paths for event stream query operations.
*
* This class contains static readonly properties that define the endpoint paths used for various event stream query operations.
* These paths are used when making API calls to retrieve event stream data in different formats such as counts, lists, and paged results.
* The paths are constructed based on a base resource name and extended with specific operation identifiers.
*/
export declare class EventStreamQueryEndpointPaths {
static readonly EVENT_STREAM_RESOURCE_NAME = "event";
static readonly COUNT: string;
static readonly LIST: string;
static readonly PAGED: string;
}
//# sourceMappingURL=eventStreamQueryApi.d.ts.map