UNPKG

1.89 kBTypeScriptView Raw
1import { ConfigurationResolver } from './binding-config';
2import { BindingKey } from './binding-key';
3/**
4 * Namespace for context tags
5 */
6export declare namespace ContextTags {
7 const CLASS = "class";
8 const PROVIDER = "provider";
9 const DYNAMIC_VALUE_PROVIDER = "dynamicValueProvider";
10 /**
11 * Type of the artifact
12 */
13 const TYPE = "type";
14 /**
15 * Namespace of the artifact
16 */
17 const NAMESPACE = "namespace";
18 /**
19 * Name of the artifact
20 */
21 const NAME = "name";
22 /**
23 * Binding key for the artifact
24 */
25 const KEY = "key";
26 /**
27 * Binding tag to associate a configuration binding with the target binding key
28 */
29 const CONFIGURATION_FOR = "configurationFor";
30 /**
31 * Binding tag for global interceptors
32 */
33 const GLOBAL_INTERCEPTOR = "globalInterceptor";
34 /**
35 * Binding tag for global interceptors to specify sources of invocations that
36 * the interceptor should apply. The tag value can be a string or string[], such
37 * as `'route'` or `['route', 'proxy']`.
38 */
39 const GLOBAL_INTERCEPTOR_SOURCE = "globalInterceptorSource";
40 /**
41 * Binding tag for group name of global interceptors
42 */
43 const GLOBAL_INTERCEPTOR_GROUP = "globalInterceptorGroup";
44}
45/**
46 * Default namespace for global interceptors
47 */
48export declare const GLOBAL_INTERCEPTOR_NAMESPACE = "globalInterceptors";
49/**
50 * Default namespace for local interceptors
51 */
52export declare const LOCAL_INTERCEPTOR_NAMESPACE = "interceptors";
53/**
54 * Namespace for context bindings
55 */
56export declare namespace ContextBindings {
57 /**
58 * Binding key for ConfigurationResolver
59 */
60 const CONFIGURATION_RESOLVER: BindingKey<ConfigurationResolver>;
61 /**
62 * Binding key for ordered groups of global interceptors
63 */
64 const GLOBAL_INTERCEPTOR_ORDERED_GROUPS: BindingKey<string[]>;
65}