@jeffusion/bungee-types 6.5.1 → 6.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configuration.d.ts +3 -10
- package/package.json +1 -1
package/dist/configuration.d.ts
CHANGED
|
@@ -36,21 +36,14 @@ export interface ConfigurationService extends ConfigurationServicePolicy {
|
|
|
36
36
|
readonly plugins: readonly PluginBinding[];
|
|
37
37
|
}
|
|
38
38
|
type ConfigurationRoutePolicy = Omit<RouteConfig, 'path' | 'service_references' | 'endpoints' | 'plugins'>;
|
|
39
|
-
interface
|
|
39
|
+
export interface ConfigurationRoute extends ConfigurationRoutePolicy {
|
|
40
40
|
readonly id: ConfigurationId;
|
|
41
41
|
readonly position: number;
|
|
42
42
|
readonly path: string;
|
|
43
43
|
readonly plugins: readonly PluginBinding[];
|
|
44
|
+
readonly service_references?: readonly [ServiceReference, ...ServiceReference[]];
|
|
45
|
+
readonly endpoints?: readonly ConfigurationUpstream[];
|
|
44
46
|
}
|
|
45
|
-
export interface ConfigurationServiceRoute extends ConfigurationRouteBase {
|
|
46
|
-
readonly service_references: readonly [ServiceReference, ...ServiceReference[]];
|
|
47
|
-
readonly endpoints?: never;
|
|
48
|
-
}
|
|
49
|
-
export interface ConfigurationDirectRoute extends ConfigurationRouteBase {
|
|
50
|
-
readonly service_references?: never;
|
|
51
|
-
readonly endpoints: readonly ConfigurationUpstream[];
|
|
52
|
-
}
|
|
53
|
-
export type ConfigurationRoute = ConfigurationServiceRoute | ConfigurationDirectRoute;
|
|
54
47
|
type ConfigurationGlobalPolicy = Omit<AppConfig, 'config_version' | 'plugins' | 'services' | 'routes'>;
|
|
55
48
|
export interface LogicalConfiguration extends ConfigurationGlobalPolicy {
|
|
56
49
|
readonly services: readonly ConfigurationService[];
|