@walkeros/web-destination-api
Version:
Web API destination for walkerOS
74 lines (62 loc) • 2.38 kB
text/typescript
import { Destination as Destination$1, SendHeaders, Mapping as Mapping$1, SendDataValue } from '@walkeros/core';
import { DestinationWeb, SendWebTransport, sendWeb } from '@walkeros/web-core';
interface Settings {
url: string;
headers?: SendHeaders;
method?: string;
transform?: Transform;
transport?: SendWebTransport;
}
interface Mapping {
}
interface Env extends DestinationWeb.Env {
sendWeb?: typeof sendWeb;
}
type Types = Destination$1.Types<Settings, Mapping, Env>;
type Destination = DestinationWeb.Destination<Types>;
type Config = DestinationWeb.Config<Types>;
type Rule = Mapping$1.Rule<Mapping>;
type Rules = Mapping$1.Rules<Rule>;
type Transform = (data?: unknown, config?: Config, mapping?: Mapping$1.Rule<Mapping>) => SendDataValue;
type index$1_Config = Config;
type index$1_Destination = Destination;
type index$1_Env = Env;
type index$1_Mapping = Mapping;
type index$1_Rule = Rule;
type index$1_Rules = Rules;
type index$1_Settings = Settings;
type index$1_Transform = Transform;
type index$1_Types = Types;
declare namespace index$1 {
export type { index$1_Config as Config, index$1_Destination as Destination, index$1_Env as Env, index$1_Mapping as Mapping, index$1_Rule as Rule, index$1_Rules as Rules, index$1_Settings as Settings, index$1_Transform as Transform, index$1_Types as Types };
}
declare const init: Env | undefined;
declare const push: Env;
declare const env_init: typeof init;
declare const env_push: typeof push;
declare namespace env {
export { env_init as init, env_push as push };
}
declare function entity_action$1(): string;
declare namespace events {
export { entity_action$1 as entity_action };
}
declare const entity_action: Rule;
declare const config: {
entity: {
action: Rule;
};
};
declare const mapping_config: typeof config;
declare const mapping_entity_action: typeof entity_action;
declare namespace mapping {
export { mapping_config as config, mapping_entity_action as entity_action };
}
declare const index_env: typeof env;
declare const index_events: typeof events;
declare const index_mapping: typeof mapping;
declare namespace index {
export { index_env as env, index_events as events, index_mapping as mapping };
}
declare const destinationAPI: Destination;
export { index$1 as DestinationAPI, destinationAPI as default, destinationAPI, index as examples };