@navios/core 0.1.5 → 0.1.7
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/_tsup-dts-rollup.d.mts +1485 -0
- package/dist/_tsup-dts-rollup.d.ts +1485 -0
- package/dist/index.d.mts +134 -940
- package/dist/index.d.ts +134 -940
- package/dist/index.js +19 -1
- package/dist/index.mjs +19 -1
- package/package.json +4 -4
- package/src/__tests__/controller.spec.mts +2 -2
- package/src/decorators/endpoint.decorator.mts +1 -1
- package/src/navios.application.mts +17 -0
- package/src/services/module-loader.service.mts +5 -0
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,940 +1,134 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
private registerLocalInstanceRef;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Evaluates to `true` if `T` is `any`. `false` otherwise.
|
|
140
|
-
* (c) https://stackoverflow.com/a/68633327/5290447
|
|
141
|
-
*/
|
|
142
|
-
type IsAny<T> = unknown extends T ? [keyof T] extends [never] ? false : true : false;
|
|
143
|
-
type ExcludedParts = 'services' | 'mailer' | 'aws' | 'computedTimeRates' | 'aiModelsRates';
|
|
144
|
-
type ExcludedKeys = 'computedTimeRates' | 'aiModelsRates' | 'aiModel';
|
|
145
|
-
type PathImpl<T, Key extends keyof T> = Key extends string ? Key extends ExcludedKeys ? never : IsAny<T[Key]> extends true ? never : T[Key] extends string ? never : T[Key] extends any[] ? never : T[Key] extends Record<string, any> ? Key extends ExcludedParts ? `${Key}.${Exclude<keyof T[Key], keyof any[]> & string}` : `${Key}.${PathImpl<T[Key], Exclude<keyof T[Key], keyof any[]>> & string}` | `${Key}.${Exclude<keyof T[Key], keyof any[]> & string}` : never : never;
|
|
146
|
-
type PathImpl2<T> = PathImpl<T, keyof T> | keyof T;
|
|
147
|
-
type Path<T> = keyof T extends string ? PathImpl2<T> extends infer P ? P extends string | keyof T ? P : keyof T : keyof T : never;
|
|
148
|
-
type PathValue<T, P extends Path<T>> = P extends `${infer Key}.${infer Rest}` ? Key extends keyof T ? Rest extends Path<T[Key]> ? PathValue<T[Key], Rest> : never : never : P extends keyof T ? T[P] : never;
|
|
149
|
-
|
|
150
|
-
interface ConfigService<Config = Record<string, unknown>> {
|
|
151
|
-
getConfig: () => Config;
|
|
152
|
-
get: <Key extends Path<Config>>(key: Key) => PathValue<Config, Key> | null;
|
|
153
|
-
getOrDefault: <Key extends Path<Config>>(key: Key, defaultValue: PathValue<Config, Key>) => PathValue<Config, Key>;
|
|
154
|
-
getOrThrow: <Key extends Path<Config>>(key: Key, errorMessage?: string) => PathValue<Config, Key>;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
type ClassType = new (...args: any[]) => any;
|
|
158
|
-
type ClassTypeWithInstance<T> = new (...args: any[]) => T;
|
|
159
|
-
declare class InjectionToken<T, S extends AnyZodObject | ZodOptional<AnyZodObject> | unknown = unknown> {
|
|
160
|
-
readonly name: string | symbol | ClassType;
|
|
161
|
-
readonly schema: AnyZodObject | undefined;
|
|
162
|
-
id: `${string}-${string}-${string}-${string}-${string}`;
|
|
163
|
-
constructor(name: string | symbol | ClassType, schema: AnyZodObject | undefined);
|
|
164
|
-
static create<T extends ClassType>(name: T): InjectionToken<InstanceType<T>, undefined>;
|
|
165
|
-
static create<T extends ClassType, Schema extends AnyZodObject | ZodOptional<AnyZodObject>>(name: T, schema: Schema): InjectionToken<InstanceType<T>, Schema>;
|
|
166
|
-
static create<T>(name: string | symbol): InjectionToken<T, undefined>;
|
|
167
|
-
static create<T, Schema extends AnyZodObject | ZodOptional<AnyZodObject>>(name: string | any, schema: Schema): InjectionToken<T, Schema>;
|
|
168
|
-
static bound<T, S extends AnyZodObject | ZodOptional<AnyZodObject>>(token: InjectionToken<T, S>, value: z.input<S>): BoundInjectionToken<T, S>;
|
|
169
|
-
static factory<T, S extends AnyZodObject | ZodOptional<AnyZodObject>>(token: InjectionToken<T, S>, factory: () => Promise<z.input<S>>): FactoryInjectionToken<T, S>;
|
|
170
|
-
static refineType<T>(token: BoundInjectionToken<any, any>): BoundInjectionToken<T, any>;
|
|
171
|
-
}
|
|
172
|
-
declare class BoundInjectionToken<T, S extends AnyZodObject | ZodOptional<AnyZodObject>> extends InjectionToken<T, undefined> {
|
|
173
|
-
readonly token: InjectionToken<T, S>;
|
|
174
|
-
readonly value: z.input<S>;
|
|
175
|
-
constructor(token: InjectionToken<T, S>, value: z.input<S>);
|
|
176
|
-
}
|
|
177
|
-
declare class FactoryInjectionToken<T, S extends AnyZodObject | ZodOptional<AnyZodObject>> extends InjectionToken<T, S> {
|
|
178
|
-
readonly token: InjectionToken<T, S>;
|
|
179
|
-
readonly factory: () => Promise<z.input<S>>;
|
|
180
|
-
value?: z.input<S>;
|
|
181
|
-
resolved: boolean;
|
|
182
|
-
constructor(token: InjectionToken<T, S>, factory: () => Promise<z.input<S>>);
|
|
183
|
-
resolve(): Promise<z.input<S>>;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
declare function getInjectableToken<R>(target: ClassType): R extends {
|
|
187
|
-
create(...args: any[]): infer V;
|
|
188
|
-
} ? InjectionToken<V> : InjectionToken<R>;
|
|
189
|
-
|
|
190
|
-
declare enum InjectableScope {
|
|
191
|
-
/**
|
|
192
|
-
* Singleton scope: The instance is created once and shared across the application.
|
|
193
|
-
*/
|
|
194
|
-
Singleton = "Singleton",
|
|
195
|
-
/**
|
|
196
|
-
* Instance scope: A new instance is created for each injection.
|
|
197
|
-
*/
|
|
198
|
-
Instance = "Instance"
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
declare enum InjectableType {
|
|
202
|
-
Class = "Class",
|
|
203
|
-
Factory = "Factory"
|
|
204
|
-
}
|
|
205
|
-
interface InjectableOptions {
|
|
206
|
-
scope?: InjectableScope;
|
|
207
|
-
type?: InjectableType;
|
|
208
|
-
token?: InjectionToken<any, any>;
|
|
209
|
-
}
|
|
210
|
-
declare const InjectableTokenMeta: unique symbol;
|
|
211
|
-
declare function Injectable({ scope, type, token, }?: InjectableOptions): (target: ClassType, context: ClassDecoratorContext) => ClassType;
|
|
212
|
-
|
|
213
|
-
declare enum ErrorsEnum {
|
|
214
|
-
InstanceExpired = "InstanceExpired",
|
|
215
|
-
InstanceNotFound = "InstanceNotFound",
|
|
216
|
-
InstanceDestroying = "InstanceDestroying",
|
|
217
|
-
UnknownError = "UnknownError",
|
|
218
|
-
FactoryNotFound = "FactoryNotFound",
|
|
219
|
-
FactoryTokenNotResolved = "FactoryTokenNotResolved"
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
declare class FactoryNotFound extends Error {
|
|
223
|
-
name: string;
|
|
224
|
-
code: ErrorsEnum;
|
|
225
|
-
constructor(name: string);
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
declare class FactoryTokenNotResolved extends Error {
|
|
229
|
-
code: ErrorsEnum;
|
|
230
|
-
constructor(name: string | symbol | ClassType);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
declare class InstanceDestroying extends Error {
|
|
234
|
-
name: string;
|
|
235
|
-
code: ErrorsEnum;
|
|
236
|
-
constructor(name: string);
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
declare class InstanceExpired extends Error {
|
|
240
|
-
name: string;
|
|
241
|
-
code: ErrorsEnum;
|
|
242
|
-
constructor(name: string);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
declare class InstanceNotFound extends Error {
|
|
246
|
-
name: string;
|
|
247
|
-
code: ErrorsEnum;
|
|
248
|
-
constructor(name: string);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
declare class UnknownError extends Error {
|
|
252
|
-
code: ErrorsEnum;
|
|
253
|
-
parent?: Error;
|
|
254
|
-
constructor(message: string | Error);
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
type EventsConfig = {
|
|
258
|
-
[event: string]: any[];
|
|
259
|
-
};
|
|
260
|
-
type EventsNames<Events extends EventsConfig> = Exclude<keyof Events, symbol | number>;
|
|
261
|
-
type EventsArgs<Events extends EventsConfig, Name extends EventsNames<Events>> = Events[Name] extends any[] ? Events[Name] : [];
|
|
262
|
-
type ChannelEmitter<Events extends EventsConfig, Ns extends string, E extends EventsNames<Events>> = {
|
|
263
|
-
emit<Args extends EventsArgs<Events, E>>(ns: Ns, event: E, ...args: Args): Promise<any>;
|
|
264
|
-
};
|
|
265
|
-
interface EventEmitterInterface<Events extends EventsConfig> {
|
|
266
|
-
on<E extends EventsNames<Events>, Args extends EventsArgs<Events, E>>(event: E, listener: (...args: Args) => void): () => void;
|
|
267
|
-
emit<E extends EventsNames<Events>, Args extends EventsArgs<Events, E>>(event: E, ...args: Args): void;
|
|
268
|
-
addChannel<E extends EventsNames<Events>, Ns extends string, Emmiter extends ChannelEmitter<Events, Ns, E>>(ns: Ns, event: E, target: Emmiter): () => void;
|
|
269
|
-
}
|
|
270
|
-
declare class EventEmitter<Events extends EventsConfig = {}> implements EventEmitterInterface<Events> {
|
|
271
|
-
private listeners;
|
|
272
|
-
on<E extends EventsNames<Events>, Args extends EventsArgs<Events, E>>(event: E, listener: (...args: Args) => void): () => void;
|
|
273
|
-
off<E extends EventsNames<Events>, Args extends EventsArgs<Events, E>>(event: E, listener: (...args: Args) => void): void;
|
|
274
|
-
once<E extends EventsNames<Events>, Args extends EventsArgs<Events, E>>(event: E, listener: (...args: Args) => void): () => void;
|
|
275
|
-
emit<E extends EventsNames<Events>, Args extends EventsArgs<Events, E>>(event: E, ...args: Args): Promise<any>;
|
|
276
|
-
addChannel<E extends EventsNames<Events>, Ns extends string, Emitter extends ChannelEmitter<Events, Ns, E>>(ns: Ns, event: E, target: Emitter): () => void;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
declare function inject<T extends ClassType>(token: T): Promise<InstanceType<T>>;
|
|
280
|
-
declare function inject<T, S extends AnyZodObject>(token: InjectionToken<T, S>, args: z.input<S>): Promise<T>;
|
|
281
|
-
declare function inject<T, S extends ZodOptional<AnyZodObject>>(token: InjectionToken<T, S>, args?: z.input<S>): Promise<T>;
|
|
282
|
-
declare function inject<T>(token: InjectionToken<T, undefined>): Promise<T>;
|
|
283
|
-
|
|
284
|
-
declare class ServiceLocatorEventBus {
|
|
285
|
-
private readonly logger;
|
|
286
|
-
private listeners;
|
|
287
|
-
constructor(logger?: Console | null);
|
|
288
|
-
on<Event extends string | `pre:${string}` | `post:${string}`>(ns: string, event: Event, listener: (event: Event) => void): () => void;
|
|
289
|
-
emit(key: string, event: string): Promise<PromiseSettledResult<any>[] | undefined>;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
interface ServiceLocatorAbstractFactoryContext {
|
|
293
|
-
inject: typeof inject;
|
|
294
|
-
addDependency: ((token: InjectionToken<any, undefined>) => void) | (<S extends AnyZodObject>(token: InjectionToken<any, S>, args: z.input<S>) => void);
|
|
295
|
-
on: ServiceLocatorEventBus['on'];
|
|
296
|
-
getDependencies: () => string[];
|
|
297
|
-
invalidate: () => void;
|
|
298
|
-
addEffect: (listener: () => void) => void;
|
|
299
|
-
getDestroyListeners: () => (() => void)[];
|
|
300
|
-
setTtl: (ttl: number) => void;
|
|
301
|
-
getTtl: () => number;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
declare class ServiceLocator {
|
|
305
|
-
private readonly logger;
|
|
306
|
-
private abstractFactories;
|
|
307
|
-
private instanceFactories;
|
|
308
|
-
private readonly eventBus;
|
|
309
|
-
private readonly manager;
|
|
310
|
-
constructor(logger?: Console | null);
|
|
311
|
-
getEventBus(): ServiceLocatorEventBus;
|
|
312
|
-
registerInstance<Instance>(token: InjectionToken<Instance, undefined>, instance: Instance): void;
|
|
313
|
-
removeInstance<Instance>(token: InjectionToken<Instance, undefined>): Promise<any>;
|
|
314
|
-
registerAbstractFactory<Instance, Schema extends AnyZodObject | ZodOptional<AnyZodObject> | undefined>(token: InjectionToken<Instance, Schema>, factory: (ctx: ServiceLocatorAbstractFactoryContext, values: Schema extends AnyZodObject ? z.output<Schema> : undefined) => Promise<Instance>, type?: InjectableScope): void;
|
|
315
|
-
private resolveTokenArgs;
|
|
316
|
-
getInstanceIdentifier<Instance, Schema extends AnyZodObject | ZodOptional<AnyZodObject> | undefined>(token: InjectionToken<Instance, Schema>, args: Schema extends AnyZodObject ? z.input<Schema> : Schema extends ZodOptional<AnyZodObject> ? z.input<Schema> | undefined : undefined): string;
|
|
317
|
-
getInstance<Instance, Schema extends AnyZodObject | ZodOptional<AnyZodObject> | undefined>(token: InjectionToken<Instance, Schema>, args: Schema extends AnyZodObject ? z.input<Schema> : Schema extends ZodOptional<AnyZodObject> ? z.input<Schema> | undefined : undefined): Promise<[undefined, Instance] | [UnknownError | FactoryNotFound]>;
|
|
318
|
-
getOrThrowInstance<Instance, Schema extends AnyZodObject | ZodOptional<AnyZodObject> | undefined>(token: InjectionToken<Instance, Schema>, args: Schema extends AnyZodObject ? z.input<Schema> : Schema extends ZodOptional<AnyZodObject> ? z.input<Schema> | undefined : undefined): Promise<Instance>;
|
|
319
|
-
private notifyListeners;
|
|
320
|
-
private createInstance;
|
|
321
|
-
private createInstanceFromAbstractFactory;
|
|
322
|
-
private createContextForAbstractFactory;
|
|
323
|
-
getSyncInstance<Instance, Schema extends AnyZodObject | ZodOptional<AnyZodObject> | undefined>(token: InjectionToken<Instance, Schema>, args: Schema extends AnyZodObject ? z.input<Schema> : Schema extends ZodOptional<AnyZodObject> ? z.input<Schema> | undefined : undefined): Instance | null;
|
|
324
|
-
invalidate(service: string, round?: number): Promise<any>;
|
|
325
|
-
ready(): Promise<null>;
|
|
326
|
-
makeInstanceName(token: InjectionToken<any, any>, args: any): string;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
declare function provideServiceLocator(locator: ServiceLocator): ServiceLocator;
|
|
330
|
-
declare function getServiceLocator(): ServiceLocator;
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* Useful for tests or when you want to override a service
|
|
334
|
-
* with a different implementation.
|
|
335
|
-
*/
|
|
336
|
-
declare function override<T>(token: InjectionToken<T>, target: ClassType): () => void;
|
|
337
|
-
|
|
338
|
-
declare enum ServiceLocatorInstanceHolderKind {
|
|
339
|
-
Instance = "instance",
|
|
340
|
-
Factory = "factory",
|
|
341
|
-
AbstractFactory = "abstractFactory"
|
|
342
|
-
}
|
|
343
|
-
declare enum ServiceLocatorInstanceHolderStatus {
|
|
344
|
-
Created = "created",
|
|
345
|
-
Creating = "creating",
|
|
346
|
-
Destroying = "destroying"
|
|
347
|
-
}
|
|
348
|
-
type ServiceLocatorInstanceEffect = () => void;
|
|
349
|
-
type ServiceLocatorInstanceDestroyListener = () => void | Promise<void>;
|
|
350
|
-
interface ServiceLocatorInstanceHolderCreating<Instance> {
|
|
351
|
-
status: ServiceLocatorInstanceHolderStatus.Creating;
|
|
352
|
-
name: string;
|
|
353
|
-
instance: null;
|
|
354
|
-
creationPromise: Promise<[undefined, Instance]> | null;
|
|
355
|
-
destroyPromise: null;
|
|
356
|
-
kind: ServiceLocatorInstanceHolderKind;
|
|
357
|
-
effects: ServiceLocatorInstanceEffect[];
|
|
358
|
-
deps: string[];
|
|
359
|
-
destroyListeners: ServiceLocatorInstanceDestroyListener[];
|
|
360
|
-
createdAt: number;
|
|
361
|
-
ttl: number;
|
|
362
|
-
}
|
|
363
|
-
interface ServiceLocatorInstanceHolderCreated<Instance> {
|
|
364
|
-
status: ServiceLocatorInstanceHolderStatus.Created;
|
|
365
|
-
name: string;
|
|
366
|
-
instance: Instance;
|
|
367
|
-
creationPromise: null;
|
|
368
|
-
destroyPromise: null;
|
|
369
|
-
kind: ServiceLocatorInstanceHolderKind;
|
|
370
|
-
effects: ServiceLocatorInstanceEffect[];
|
|
371
|
-
deps: string[];
|
|
372
|
-
destroyListeners: ServiceLocatorInstanceDestroyListener[];
|
|
373
|
-
createdAt: number;
|
|
374
|
-
ttl: number;
|
|
375
|
-
}
|
|
376
|
-
interface ServiceLocatorInstanceHolderDestroying<Instance> {
|
|
377
|
-
status: ServiceLocatorInstanceHolderStatus.Destroying;
|
|
378
|
-
name: string;
|
|
379
|
-
instance: Instance | null;
|
|
380
|
-
creationPromise: null;
|
|
381
|
-
destroyPromise: Promise<void>;
|
|
382
|
-
kind: ServiceLocatorInstanceHolderKind;
|
|
383
|
-
effects: ServiceLocatorInstanceEffect[];
|
|
384
|
-
deps: string[];
|
|
385
|
-
destroyListeners: ServiceLocatorInstanceDestroyListener[];
|
|
386
|
-
createdAt: number;
|
|
387
|
-
ttl: number;
|
|
388
|
-
}
|
|
389
|
-
type ServiceLocatorInstanceHolder<Instance = unknown> = ServiceLocatorInstanceHolderCreating<Instance> | ServiceLocatorInstanceHolderCreated<Instance> | ServiceLocatorInstanceHolderDestroying<Instance>;
|
|
390
|
-
|
|
391
|
-
declare class ServiceLocatorManager {
|
|
392
|
-
private readonly logger;
|
|
393
|
-
private readonly instancesHolders;
|
|
394
|
-
constructor(logger?: Console | null);
|
|
395
|
-
get(name: string): [InstanceExpired | InstanceDestroying, ServiceLocatorInstanceHolder] | [InstanceNotFound] | [undefined, ServiceLocatorInstanceHolder];
|
|
396
|
-
set(name: string, holder: ServiceLocatorInstanceHolder): void;
|
|
397
|
-
has(name: string): [InstanceExpired | InstanceDestroying] | [undefined, boolean];
|
|
398
|
-
delete(name: string): boolean;
|
|
399
|
-
filter(predicate: (value: ServiceLocatorInstanceHolder<any>, key: string) => boolean): Map<string, ServiceLocatorInstanceHolder>;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
declare let promiseCollector: null | ((promise: Promise<any>) => void);
|
|
403
|
-
declare function syncInject<T extends ClassType>(token: T): InstanceType<T>;
|
|
404
|
-
declare function syncInject<T, S extends AnyZodObject>(token: InjectionToken<T, S>, args: z.input<S>): T;
|
|
405
|
-
declare function syncInject<T, S extends ZodOptional<AnyZodObject>>(token: InjectionToken<T, S>, args: z.input<S>): T;
|
|
406
|
-
declare function syncInject<T>(token: InjectionToken<T, undefined>): T;
|
|
407
|
-
declare function setPromiseCollector(collector: null | ((promise: Promise<any>) => void)): typeof promiseCollector;
|
|
408
|
-
|
|
409
|
-
declare function resolveService<T extends ClassType>(ctx: ServiceLocatorAbstractFactoryContext, target: T, args?: any[]): Promise<InstanceType<T>>;
|
|
410
|
-
|
|
411
|
-
declare const clc: {
|
|
412
|
-
bold: (text: string) => string;
|
|
413
|
-
green: (text: string) => string;
|
|
414
|
-
yellow: (text: string) => string;
|
|
415
|
-
red: (text: string) => string;
|
|
416
|
-
magentaBright: (text: string) => string;
|
|
417
|
-
cyanBright: (text: string) => string;
|
|
418
|
-
};
|
|
419
|
-
declare const yellow: (text: string) => string;
|
|
420
|
-
|
|
421
|
-
/**
|
|
422
|
-
* @publicApi
|
|
423
|
-
*/
|
|
424
|
-
declare function filterLogLevels(parseableString?: string): LogLevel[];
|
|
425
|
-
|
|
426
|
-
/**
|
|
427
|
-
* @publicApi
|
|
428
|
-
*/
|
|
429
|
-
declare function isLogLevel(maybeLogLevel: any): maybeLogLevel is LogLevel;
|
|
430
|
-
|
|
431
|
-
/**
|
|
432
|
-
* Checks if target level is enabled.
|
|
433
|
-
* @param targetLevel target level
|
|
434
|
-
* @param logLevels array of enabled log levels
|
|
435
|
-
*/
|
|
436
|
-
declare function isLogLevelEnabled(targetLevel: LogLevel, logLevels: LogLevel[] | undefined): boolean;
|
|
437
|
-
|
|
438
|
-
declare const isUndefined: (obj: any) => obj is undefined;
|
|
439
|
-
declare const isObject: (fn: any) => fn is object;
|
|
440
|
-
declare const isPlainObject: (fn: any) => fn is object;
|
|
441
|
-
declare const addLeadingSlash: (path?: string) => string;
|
|
442
|
-
declare const normalizePath: (path?: string) => string;
|
|
443
|
-
declare const stripEndSlash: (path: string) => string;
|
|
444
|
-
declare const isFunction: (val: any) => val is Function;
|
|
445
|
-
declare const isString: (val: any) => val is string;
|
|
446
|
-
declare const isNumber: (val: any) => val is number;
|
|
447
|
-
declare const isConstructor: (val: any) => boolean;
|
|
448
|
-
declare const isNil: (val: any) => val is null | undefined;
|
|
449
|
-
declare const isEmpty: (array: any) => boolean;
|
|
450
|
-
declare const isSymbol: (val: any) => val is symbol;
|
|
451
|
-
|
|
452
|
-
/**
|
|
453
|
-
* @publicApi
|
|
454
|
-
*/
|
|
455
|
-
interface ConsoleLoggerOptions {
|
|
456
|
-
/**
|
|
457
|
-
* Enabled log levels.
|
|
458
|
-
*/
|
|
459
|
-
logLevels?: LogLevel[];
|
|
460
|
-
/**
|
|
461
|
-
* If enabled, will print timestamp (time difference) between current and previous log message.
|
|
462
|
-
* Note: This option is not used when `json` is enabled.
|
|
463
|
-
*/
|
|
464
|
-
timestamp?: boolean;
|
|
465
|
-
/**
|
|
466
|
-
* A prefix to be used for each log message.
|
|
467
|
-
* Note: This option is not used when `json` is enabled.
|
|
468
|
-
*/
|
|
469
|
-
prefix?: string;
|
|
470
|
-
/**
|
|
471
|
-
* If enabled, will print the log message in JSON format.
|
|
472
|
-
*/
|
|
473
|
-
json?: boolean;
|
|
474
|
-
/**
|
|
475
|
-
* If enabled, will print the log message in color.
|
|
476
|
-
* Default true if json is disabled, false otherwise
|
|
477
|
-
*/
|
|
478
|
-
colors?: boolean;
|
|
479
|
-
/**
|
|
480
|
-
* The context of the logger.
|
|
481
|
-
*/
|
|
482
|
-
context?: string;
|
|
483
|
-
/**
|
|
484
|
-
* If enabled, will print the log message in a single line, even if it is an object with multiple properties.
|
|
485
|
-
* If set to a number, the most n inner elements are united on a single line as long as all properties fit into breakLength. Short array elements are also grouped together.
|
|
486
|
-
* Default true when `json` is enabled, false otherwise.
|
|
487
|
-
*/
|
|
488
|
-
compact?: boolean | number;
|
|
489
|
-
/**
|
|
490
|
-
* Specifies the maximum number of Array, TypedArray, Map, Set, WeakMap, and WeakSet elements to include when formatting.
|
|
491
|
-
* Set to null or Infinity to show all elements. Set to 0 or negative to show no elements.
|
|
492
|
-
* Ignored when `json` is enabled, colors are disabled, and `compact` is set to true as it produces a parseable JSON output.
|
|
493
|
-
* @default 100
|
|
494
|
-
*/
|
|
495
|
-
maxArrayLength?: number;
|
|
496
|
-
/**
|
|
497
|
-
* Specifies the maximum number of characters to include when formatting.
|
|
498
|
-
* Set to null or Infinity to show all elements. Set to 0 or negative to show no characters.
|
|
499
|
-
* Ignored when `json` is enabled, colors are disabled, and `compact` is set to true as it produces a parseable JSON output.
|
|
500
|
-
* @default 10000.
|
|
501
|
-
*/
|
|
502
|
-
maxStringLength?: number;
|
|
503
|
-
/**
|
|
504
|
-
* If enabled, will sort keys while formatting objects.
|
|
505
|
-
* Can also be a custom sorting function.
|
|
506
|
-
* Ignored when `json` is enabled, colors are disabled, and `compact` is set to true as it produces a parseable JSON output.
|
|
507
|
-
* @default false
|
|
508
|
-
*/
|
|
509
|
-
sorted?: boolean | ((a: string, b: string) => number);
|
|
510
|
-
/**
|
|
511
|
-
* Specifies the number of times to recurse while formatting object. T
|
|
512
|
-
* This is useful for inspecting large objects. To recurse up to the maximum call stack size pass Infinity or null.
|
|
513
|
-
* Ignored when `json` is enabled, colors are disabled, and `compact` is set to true as it produces a parseable JSON output.
|
|
514
|
-
* @default 5
|
|
515
|
-
*/
|
|
516
|
-
depth?: number;
|
|
517
|
-
/**
|
|
518
|
-
* If true, object's non-enumerable symbols and properties are included in the formatted result.
|
|
519
|
-
* WeakMap and WeakSet entries are also included as well as user defined prototype properties
|
|
520
|
-
* @default false
|
|
521
|
-
*/
|
|
522
|
-
showHidden?: boolean;
|
|
523
|
-
/**
|
|
524
|
-
* The length at which input values are split across multiple lines. Set to Infinity to format the input as a single line (in combination with "compact" set to true).
|
|
525
|
-
* Default Infinity when "compact" is true, 80 otherwise.
|
|
526
|
-
* Ignored when `json` is enabled, colors are disabled, and `compact` is set to true as it produces a parseable JSON output.
|
|
527
|
-
*/
|
|
528
|
-
breakLength?: number;
|
|
529
|
-
}
|
|
530
|
-
/**
|
|
531
|
-
* @publicApi
|
|
532
|
-
*/
|
|
533
|
-
declare class ConsoleLogger implements LoggerService {
|
|
534
|
-
/**
|
|
535
|
-
* The options of the logger.
|
|
536
|
-
*/
|
|
537
|
-
protected options: ConsoleLoggerOptions;
|
|
538
|
-
/**
|
|
539
|
-
* The context of the logger (can be set manually or automatically inferred).
|
|
540
|
-
*/
|
|
541
|
-
protected context?: string;
|
|
542
|
-
/**
|
|
543
|
-
* The original context of the logger (set in the constructor).
|
|
544
|
-
*/
|
|
545
|
-
protected originalContext?: string;
|
|
546
|
-
/**
|
|
547
|
-
* The options used for the "inspect" method.
|
|
548
|
-
*/
|
|
549
|
-
protected inspectOptions: InspectOptions;
|
|
550
|
-
/**
|
|
551
|
-
* The last timestamp at which the log message was printed.
|
|
552
|
-
*/
|
|
553
|
-
protected static lastTimestampAt?: number;
|
|
554
|
-
constructor();
|
|
555
|
-
constructor(context: string);
|
|
556
|
-
constructor(options: ConsoleLoggerOptions);
|
|
557
|
-
constructor(context: string, options: ConsoleLoggerOptions);
|
|
558
|
-
/**
|
|
559
|
-
* Write a 'log' level log, if the configured level allows for it.
|
|
560
|
-
* Prints to `stdout` with newline.
|
|
561
|
-
*/
|
|
562
|
-
log(message: any, context?: string): void;
|
|
563
|
-
log(message: any, ...optionalParams: [...any, string?]): void;
|
|
564
|
-
/**
|
|
565
|
-
* Write an 'error' level log, if the configured level allows for it.
|
|
566
|
-
* Prints to `stderr` with newline.
|
|
567
|
-
*/
|
|
568
|
-
error(message: any, stackOrContext?: string): void;
|
|
569
|
-
error(message: any, stack?: string, context?: string): void;
|
|
570
|
-
error(message: any, ...optionalParams: [...any, string?, string?]): void;
|
|
571
|
-
/**
|
|
572
|
-
* Write a 'warn' level log, if the configured level allows for it.
|
|
573
|
-
* Prints to `stdout` with newline.
|
|
574
|
-
*/
|
|
575
|
-
warn(message: any, context?: string): void;
|
|
576
|
-
warn(message: any, ...optionalParams: [...any, string?]): void;
|
|
577
|
-
/**
|
|
578
|
-
* Write a 'debug' level log, if the configured level allows for it.
|
|
579
|
-
* Prints to `stdout` with newline.
|
|
580
|
-
*/
|
|
581
|
-
debug(message: any, context?: string): void;
|
|
582
|
-
debug(message: any, ...optionalParams: [...any, string?]): void;
|
|
583
|
-
/**
|
|
584
|
-
* Write a 'verbose' level log, if the configured level allows for it.
|
|
585
|
-
* Prints to `stdout` with newline.
|
|
586
|
-
*/
|
|
587
|
-
verbose(message: any, context?: string): void;
|
|
588
|
-
verbose(message: any, ...optionalParams: [...any, string?]): void;
|
|
589
|
-
/**
|
|
590
|
-
* Write a 'fatal' level log, if the configured level allows for it.
|
|
591
|
-
* Prints to `stdout` with newline.
|
|
592
|
-
*/
|
|
593
|
-
fatal(message: any, context?: string): void;
|
|
594
|
-
fatal(message: any, ...optionalParams: [...any, string?]): void;
|
|
595
|
-
/**
|
|
596
|
-
* Set log levels
|
|
597
|
-
* @param levels log levels
|
|
598
|
-
*/
|
|
599
|
-
setLogLevels(levels: LogLevel[]): void;
|
|
600
|
-
/**
|
|
601
|
-
* Set logger context
|
|
602
|
-
* @param context context
|
|
603
|
-
*/
|
|
604
|
-
setContext(context: string): void;
|
|
605
|
-
/**
|
|
606
|
-
* Resets the logger context to the value that was passed in the constructor.
|
|
607
|
-
*/
|
|
608
|
-
resetContext(): void;
|
|
609
|
-
isLevelEnabled(level: LogLevel): boolean;
|
|
610
|
-
protected getTimestamp(): string;
|
|
611
|
-
protected printMessages(messages: unknown[], context?: string, logLevel?: LogLevel, writeStreamType?: 'stdout' | 'stderr', errorStack?: unknown): void;
|
|
612
|
-
protected printAsJson(message: unknown, options: {
|
|
613
|
-
context: string;
|
|
614
|
-
logLevel: LogLevel;
|
|
615
|
-
writeStreamType?: 'stdout' | 'stderr';
|
|
616
|
-
errorStack?: unknown;
|
|
617
|
-
}): void;
|
|
618
|
-
protected formatPid(pid: number): string;
|
|
619
|
-
protected formatContext(context: string): string;
|
|
620
|
-
protected formatMessage(logLevel: LogLevel, message: unknown, pidMessage: string, formattedLogLevel: string, contextMessage: string, timestampDiff: string): string;
|
|
621
|
-
protected stringifyMessage(message: unknown, logLevel: LogLevel): string;
|
|
622
|
-
protected colorize(message: string, logLevel: LogLevel): string;
|
|
623
|
-
protected printStackTrace(stack: string): void;
|
|
624
|
-
protected updateAndGetTimestampDiff(): string;
|
|
625
|
-
protected formatTimestampDiff(timestampDiff: number): string;
|
|
626
|
-
protected getInspectOptions(): InspectOptions;
|
|
627
|
-
protected stringifyReplacer(key: string, value: unknown): unknown;
|
|
628
|
-
private getContextAndMessagesToPrint;
|
|
629
|
-
private getContextAndStackAndMessagesToPrint;
|
|
630
|
-
private isStackFormat;
|
|
631
|
-
private getColorByLogLevel;
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
declare const LoggerInjectionToken = "LoggerInjectionToken";
|
|
635
|
-
declare const LoggerOptions: z.ZodOptional<z.ZodObject<{
|
|
636
|
-
context: z.ZodOptional<z.ZodString>;
|
|
637
|
-
options: z.ZodOptional<z.ZodObject<{
|
|
638
|
-
timestamp: z.ZodOptional<z.ZodBoolean>;
|
|
639
|
-
}, "strip", z.ZodTypeAny, {
|
|
640
|
-
timestamp?: boolean | undefined;
|
|
641
|
-
}, {
|
|
642
|
-
timestamp?: boolean | undefined;
|
|
643
|
-
}>>;
|
|
644
|
-
}, "strip", z.ZodTypeAny, {
|
|
645
|
-
options?: {
|
|
646
|
-
timestamp?: boolean | undefined;
|
|
647
|
-
} | undefined;
|
|
648
|
-
context?: string | undefined;
|
|
649
|
-
}, {
|
|
650
|
-
options?: {
|
|
651
|
-
timestamp?: boolean | undefined;
|
|
652
|
-
} | undefined;
|
|
653
|
-
context?: string | undefined;
|
|
654
|
-
}>>;
|
|
655
|
-
declare const Logger: InjectionToken<LoggerInstance, z.ZodOptional<z.ZodObject<{
|
|
656
|
-
context: z.ZodOptional<z.ZodString>;
|
|
657
|
-
options: z.ZodOptional<z.ZodObject<{
|
|
658
|
-
timestamp: z.ZodOptional<z.ZodBoolean>;
|
|
659
|
-
}, "strip", z.ZodTypeAny, {
|
|
660
|
-
timestamp?: boolean | undefined;
|
|
661
|
-
}, {
|
|
662
|
-
timestamp?: boolean | undefined;
|
|
663
|
-
}>>;
|
|
664
|
-
}, "strip", z.ZodTypeAny, {
|
|
665
|
-
options?: {
|
|
666
|
-
timestamp?: boolean | undefined;
|
|
667
|
-
} | undefined;
|
|
668
|
-
context?: string | undefined;
|
|
669
|
-
}, {
|
|
670
|
-
options?: {
|
|
671
|
-
timestamp?: boolean | undefined;
|
|
672
|
-
} | undefined;
|
|
673
|
-
context?: string | undefined;
|
|
674
|
-
}>>>;
|
|
675
|
-
declare class LoggerFactory {
|
|
676
|
-
create(ctx: any, args: z.infer<typeof LoggerOptions>): LoggerInstance;
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
declare class PinoWrapper {
|
|
680
|
-
protected readonly logger: LoggerService;
|
|
681
|
-
constructor(logger: LoggerService);
|
|
682
|
-
fatal(message: any, ...optionalParams: any[]): void;
|
|
683
|
-
error(message: any, ...optionalParams: any[]): void;
|
|
684
|
-
warn(message: any, ...optionalParams: any[]): void;
|
|
685
|
-
info(): void;
|
|
686
|
-
debug(message: any, ...optionalParams: any[]): void;
|
|
687
|
-
trace(message: any, ...optionalParams: any[]): void;
|
|
688
|
-
silent(): void;
|
|
689
|
-
child(options: any): PinoWrapper;
|
|
690
|
-
get level(): any;
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
declare class ConfigServiceInstance<Config = Record<string, unknown>> implements ConfigService<Config> {
|
|
694
|
-
private config;
|
|
695
|
-
private logger;
|
|
696
|
-
constructor(config: Config | undefined, logger: LoggerService);
|
|
697
|
-
getConfig(): Config;
|
|
698
|
-
get<Key extends Path<Config>>(key: Key): PathValue<Config, Key> | null;
|
|
699
|
-
getOrDefault<Key extends Path<Config>>(key: Key, defaultValue: PathValue<Config, Key>): PathValue<Config, Key>;
|
|
700
|
-
getOrThrow<Key extends Path<Config>>(key: Key, errorMessage?: string): PathValue<Config, Key>;
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
declare const ConfigProviderOptions: z.ZodObject<{
|
|
704
|
-
load: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>;
|
|
705
|
-
}, "strip", z.ZodTypeAny, {
|
|
706
|
-
load: (...args: unknown[]) => unknown;
|
|
707
|
-
}, {
|
|
708
|
-
load: (...args: unknown[]) => unknown;
|
|
709
|
-
}>;
|
|
710
|
-
declare const ConfigProvider: InjectionToken<ConfigService<Record<string, unknown>>, z.ZodObject<{
|
|
711
|
-
load: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>;
|
|
712
|
-
}, "strip", z.ZodTypeAny, {
|
|
713
|
-
load: (...args: unknown[]) => unknown;
|
|
714
|
-
}, {
|
|
715
|
-
load: (...args: unknown[]) => unknown;
|
|
716
|
-
}>>;
|
|
717
|
-
declare class ConfigProviderFactory {
|
|
718
|
-
logger: LoggerInstance;
|
|
719
|
-
create(ctx: any, args: z.infer<typeof ConfigProviderOptions>): Promise<ConfigServiceInstance<unknown>>;
|
|
720
|
-
}
|
|
721
|
-
declare function provideConfig<ConfigMap extends Record<string, unknown>>(options: z.input<typeof ConfigProviderOptions>): InjectionToken<ConfigServiceInstance<ConfigMap>, undefined>;
|
|
722
|
-
|
|
723
|
-
interface ControllerOptions {
|
|
724
|
-
guards?: ClassType[] | Set<ClassType>;
|
|
725
|
-
}
|
|
726
|
-
declare function Controller({ guards }?: ControllerOptions): (target: ClassType, context: ClassDecoratorContext) => ClassType;
|
|
727
|
-
|
|
728
|
-
type EndpointParams<EndpointDeclaration extends {
|
|
729
|
-
config: BaseEndpointConfig<any, any, any, any, any>;
|
|
730
|
-
}, Url extends string = EndpointDeclaration['config']['url'], QuerySchema = EndpointDeclaration['config']['querySchema']> = QuerySchema extends AnyZodObject ? EndpointDeclaration['config']['requestSchema'] extends ZodType ? EndpointFunctionArgs<Url, QuerySchema, EndpointDeclaration['config']['requestSchema']> : EndpointFunctionArgs<Url, QuerySchema, undefined> : EndpointDeclaration['config']['requestSchema'] extends ZodType ? EndpointFunctionArgs<Url, undefined, EndpointDeclaration['config']['requestSchema']> : EndpointFunctionArgs<Url, undefined, undefined>;
|
|
731
|
-
declare function Endpoint<Method extends HttpMethod = HttpMethod, Url extends string = string, QuerySchema = undefined, ResponseSchema extends ZodType = ZodType, RequestSchema = ZodType>(endpoint: {
|
|
732
|
-
config: BaseEndpointConfig<Method, Url, QuerySchema, ResponseSchema, RequestSchema>;
|
|
733
|
-
}): (target: (params: QuerySchema extends AnyZodObject ? RequestSchema extends ZodType ? EndpointFunctionArgs<Url, QuerySchema, RequestSchema> : EndpointFunctionArgs<Url, QuerySchema, undefined> : RequestSchema extends ZodType ? EndpointFunctionArgs<Url, undefined, RequestSchema> : EndpointFunctionArgs<Url, undefined, undefined>) => z.input<ResponseSchema>, context: ClassMethodDecoratorContext) => (params: QuerySchema extends AnyZodObject ? RequestSchema extends ZodType ? EndpointFunctionArgs<Url, QuerySchema, RequestSchema> : EndpointFunctionArgs<Url, QuerySchema, undefined> : RequestSchema extends ZodType ? EndpointFunctionArgs<Url, undefined, RequestSchema> : EndpointFunctionArgs<Url, undefined, undefined>) => z.input<ResponseSchema>;
|
|
734
|
-
|
|
735
|
-
declare function Header(name: HttpHeader, value: string | number | string[]): <T extends Function>(target: T, context: ClassMethodDecoratorContext) => T;
|
|
736
|
-
|
|
737
|
-
declare function HttpCode(code: number): <T extends Function>(target: T, context: ClassMethodDecoratorContext) => T;
|
|
738
|
-
|
|
739
|
-
interface ModuleOptions {
|
|
740
|
-
controllers?: ClassType[] | Set<ClassType>;
|
|
741
|
-
imports?: ClassType[] | Set<ClassType>;
|
|
742
|
-
guards?: ClassType[] | Set<ClassType>;
|
|
743
|
-
}
|
|
744
|
-
declare function Module(metadata: ModuleOptions): (target: ClassType, context: ClassDecoratorContext) => ClassType;
|
|
745
|
-
|
|
746
|
-
declare const EndpointMetadataKey: unique symbol;
|
|
747
|
-
declare enum EndpointType {
|
|
748
|
-
Unknown = "unknown",
|
|
749
|
-
Config = "config",
|
|
750
|
-
Handler = "handler"
|
|
751
|
-
}
|
|
752
|
-
interface EndpointMetadata {
|
|
753
|
-
classMethod: string;
|
|
754
|
-
url: string;
|
|
755
|
-
successStatusCode: number;
|
|
756
|
-
type: EndpointType;
|
|
757
|
-
headers: Partial<Record<HttpHeader, number | string | string[] | undefined>>;
|
|
758
|
-
httpMethod: HttpMethod;
|
|
759
|
-
config: BaseEndpointConfig | null;
|
|
760
|
-
guards: Set<ClassTypeWithInstance<CanActivate> | InjectionToken<CanActivate, undefined>>;
|
|
761
|
-
customAttributes: Map<string | symbol, any>;
|
|
762
|
-
}
|
|
763
|
-
declare function getAllEndpointMetadata(context: ClassMethodDecoratorContext | ClassDecoratorContext): Set<EndpointMetadata>;
|
|
764
|
-
declare function getEndpointMetadata(target: Function, context: ClassMethodDecoratorContext): EndpointMetadata;
|
|
765
|
-
|
|
766
|
-
declare const ControllerMetadataKey: unique symbol;
|
|
767
|
-
interface ControllerMetadata {
|
|
768
|
-
endpoints: Set<EndpointMetadata>;
|
|
769
|
-
guards: Set<ClassTypeWithInstance<CanActivate> | InjectionToken<CanActivate, undefined>>;
|
|
770
|
-
customAttributes: Map<string | symbol, any>;
|
|
771
|
-
}
|
|
772
|
-
declare function getControllerMetadata(target: ClassType, context: ClassDecoratorContext): ControllerMetadata;
|
|
773
|
-
declare function extractControllerMetadata(target: ClassType): ControllerMetadata;
|
|
774
|
-
declare function hasControllerMetadata(target: ClassType): boolean;
|
|
775
|
-
|
|
776
|
-
interface InjectableMetadata<Instance = any, Schema = any> {
|
|
777
|
-
type: InjectableType;
|
|
778
|
-
scope: InjectableScope;
|
|
779
|
-
token: InjectionToken<Instance, Schema>;
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
declare const ModuleMetadataKey: unique symbol;
|
|
783
|
-
interface ModuleMetadata {
|
|
784
|
-
controllers: Set<ClassType>;
|
|
785
|
-
imports: Set<ClassType>;
|
|
786
|
-
guards: Set<ClassTypeWithInstance<CanActivate> | InjectionToken<CanActivate, undefined>>;
|
|
787
|
-
customAttributes: Map<string | symbol, any>;
|
|
788
|
-
}
|
|
789
|
-
declare function getModuleMetadata(target: ClassType, context: ClassDecoratorContext): ModuleMetadata;
|
|
790
|
-
declare function extractModuleMetadata(target: ClassType): ModuleMetadata;
|
|
791
|
-
declare function hasModuleMetadata(target: ClassType): boolean;
|
|
792
|
-
|
|
793
|
-
declare class ExecutionContext {
|
|
794
|
-
private readonly module;
|
|
795
|
-
private readonly controller;
|
|
796
|
-
private readonly handler;
|
|
797
|
-
private request;
|
|
798
|
-
private reply;
|
|
799
|
-
constructor(module: ModuleMetadata, controller: ControllerMetadata, handler: EndpointMetadata);
|
|
800
|
-
getModule(): ModuleMetadata;
|
|
801
|
-
getController(): ControllerMetadata;
|
|
802
|
-
getHandler(): EndpointMetadata;
|
|
803
|
-
getRequest(): FastifyRequest;
|
|
804
|
-
getReply(): FastifyReply;
|
|
805
|
-
provideRequest(request: FastifyRequest): void;
|
|
806
|
-
provideReply(reply: FastifyReply): void;
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
declare class GuardRunnerService {
|
|
810
|
-
runGuards(allGuards: Set<ClassTypeWithInstance<CanActivate> | InjectionToken<CanActivate, undefined>>, executionContext: ExecutionContext): Promise<boolean>;
|
|
811
|
-
makeContext(executionContext: ExecutionContext): Set<ClassTypeWithInstance<CanActivate> | InjectionToken<CanActivate, undefined>>;
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
declare class ControllerAdapterService {
|
|
815
|
-
guardRunner: GuardRunnerService;
|
|
816
|
-
private logger;
|
|
817
|
-
setupController(controller: ClassType, instance: FastifyInstance, moduleMetadata: ModuleMetadata): void;
|
|
818
|
-
providePreHandler(executionContext: ExecutionContext): ((request: FastifyRequest, reply: FastifyReply) => Promise<undefined>) | undefined;
|
|
819
|
-
private provideSchemaForConfig;
|
|
820
|
-
private provideHandler;
|
|
821
|
-
private provideHandlerForConfig;
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
declare class ModuleLoaderService {
|
|
825
|
-
private logger;
|
|
826
|
-
private modulesMetadata;
|
|
827
|
-
private loadedModules;
|
|
828
|
-
private initialized;
|
|
829
|
-
loadModules(appModule: ClassTypeWithInstance<NaviosModule>): Promise<void>;
|
|
830
|
-
private traverseModules;
|
|
831
|
-
private mergeMetadata;
|
|
832
|
-
getAllModules(): Map<string, ModuleMetadata>;
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
interface CanActivate {
|
|
836
|
-
canActivate(executionContext: ExecutionContext): Promise<boolean> | boolean;
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
interface NaviosModule {
|
|
840
|
-
onModuleInit?: () => Promise<void> | void;
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
declare function UseGuards(...guards: (ClassTypeWithInstance<CanActivate> | InjectionToken<CanActivate, undefined>)[]): <T extends Function>(target: T, context: ClassMethodDecoratorContext | ClassDecoratorContext) => T;
|
|
844
|
-
|
|
845
|
-
declare class HttpException {
|
|
846
|
-
readonly statusCode: number;
|
|
847
|
-
readonly response: string | object;
|
|
848
|
-
readonly error?: Error | undefined;
|
|
849
|
-
constructor(statusCode: number, response: string | object, error?: Error | undefined);
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
declare class BadRequestException extends HttpException {
|
|
853
|
-
constructor(message: string | object);
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
declare class ForbiddenException extends HttpException {
|
|
857
|
-
constructor(message: string);
|
|
858
|
-
}
|
|
859
|
-
|
|
860
|
-
declare class InternalServerErrorException extends HttpException {
|
|
861
|
-
constructor(message: string | object, error?: Error);
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
declare class NotFoundException extends HttpException {
|
|
865
|
-
readonly response: string | object;
|
|
866
|
-
readonly error?: Error | undefined;
|
|
867
|
-
constructor(response: string | object, error?: Error | undefined);
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
declare class UnauthorizedException extends HttpException {
|
|
871
|
-
constructor(message: string | object, error?: Error);
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
declare class ConflictException extends HttpException {
|
|
875
|
-
constructor(message: string | object, error?: Error);
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
declare const Application: InjectionToken<FastifyInstance<fastify.RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, fastify.FastifyBaseLogger, fastify.FastifyTypeProviderDefault>, undefined>;
|
|
879
|
-
|
|
880
|
-
declare const ExecutionContextInjectionToken = "ExecutionContextInjectionToken";
|
|
881
|
-
declare const ExecutionContextToken: InjectionToken<ExecutionContext, undefined>;
|
|
882
|
-
|
|
883
|
-
declare const Reply: InjectionToken<FastifyReply<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, unknown, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown>, undefined>;
|
|
884
|
-
|
|
885
|
-
declare const Request: InjectionToken<FastifyRequest<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown, fastify.FastifyBaseLogger, fastify_types_type_provider_js.ResolveFastifyRequestType<fastify.FastifyTypeProviderDefault, fastify.FastifySchema, fastify.RouteGenericInterface>>, undefined>;
|
|
886
|
-
|
|
887
|
-
type ClassAttribute = (() => <T>(target: T, context: ClassDecoratorContext | ClassMethodDecoratorContext) => T) & {
|
|
888
|
-
token: symbol;
|
|
889
|
-
};
|
|
890
|
-
type ClassSchemaAttribute<T extends ZodType> = ((value: z.input<T>) => <T extends ClassType>(target: T, context: ClassDecoratorContext | ClassMethodDecoratorContext) => T) & {
|
|
891
|
-
token: symbol;
|
|
892
|
-
schema: ZodType;
|
|
893
|
-
};
|
|
894
|
-
declare class AttributeFactory {
|
|
895
|
-
static createAttribute(token: symbol): ClassAttribute;
|
|
896
|
-
static createAttribute<T extends ZodType>(token: symbol, schema: T): ClassSchemaAttribute<T>;
|
|
897
|
-
static get(attribute: ClassAttribute, target: ModuleMetadata | ControllerMetadata | EndpointMetadata): true | null;
|
|
898
|
-
static get<T extends ZodType>(attribute: ClassSchemaAttribute<T>, target: ModuleMetadata | ControllerMetadata | EndpointMetadata): z.output<T> | null;
|
|
899
|
-
static getAll(attribute: ClassAttribute, target: ModuleMetadata | ControllerMetadata | EndpointMetadata): Array<true> | null;
|
|
900
|
-
static getAll<T extends ZodType>(attribute: ClassSchemaAttribute<T>, target: ModuleMetadata | ControllerMetadata | EndpointMetadata): Array<z.output<T>> | null;
|
|
901
|
-
static getLast(attribute: ClassAttribute, target: (ModuleMetadata | ControllerMetadata | EndpointMetadata)[]): true | null;
|
|
902
|
-
static getLast<T extends ZodType>(attribute: ClassSchemaAttribute<T>, target: (ModuleMetadata | ControllerMetadata | EndpointMetadata)[]): z.output<T> | null;
|
|
903
|
-
static has(attribute: ClassAttribute, target: ModuleMetadata | ControllerMetadata | EndpointMetadata): boolean;
|
|
904
|
-
static has<T extends ZodType>(attribute: ClassSchemaAttribute<T>, target: ModuleMetadata | ControllerMetadata | EndpointMetadata): boolean;
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
interface NaviosApplicationContextOptions {
|
|
908
|
-
/**
|
|
909
|
-
* Specifies the logger to use. Pass `false` to turn off logging.
|
|
910
|
-
*/
|
|
911
|
-
logger?: LoggerService | LogLevel[] | false;
|
|
912
|
-
}
|
|
913
|
-
interface NaviosApplicationOptions extends Omit<FastifyServerOptions, 'logger'>, NaviosApplicationContextOptions {
|
|
914
|
-
}
|
|
915
|
-
declare class NaviosApplication {
|
|
916
|
-
private moduleLoader;
|
|
917
|
-
private controllerAdapter;
|
|
918
|
-
private logger;
|
|
919
|
-
private server;
|
|
920
|
-
private corsOptions;
|
|
921
|
-
private globalPrefix;
|
|
922
|
-
private appModule;
|
|
923
|
-
private options;
|
|
924
|
-
setup(appModule: ClassTypeWithInstance<NaviosModule>, options?: NaviosApplicationOptions): void;
|
|
925
|
-
init(): Promise<void>;
|
|
926
|
-
private getFastifyInstance;
|
|
927
|
-
private configureFastifyInstance;
|
|
928
|
-
private initModules;
|
|
929
|
-
enableCors(options: FastifyCorsOptions): void;
|
|
930
|
-
setGlobalPrefix(prefix: string): void;
|
|
931
|
-
getServer(): FastifyInstance;
|
|
932
|
-
listen(options: FastifyListenOptions): Promise<void>;
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
declare class NaviosFactory {
|
|
936
|
-
static create(appModule: ClassTypeWithInstance<NaviosModule>, options?: NaviosApplicationOptions): Promise<NaviosApplication>;
|
|
937
|
-
private static registerLoggerConfiguration;
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
export { Application, AttributeFactory, BadRequestException, BoundInjectionToken, type CanActivate, type ChannelEmitter, type ClassAttribute, type ClassSchemaAttribute, type ClassType, type ClassTypeWithInstance, ConfigProvider, ConfigProviderFactory, ConfigProviderOptions, type ConfigService, ConfigServiceInstance, ConflictException, ConsoleLogger, type ConsoleLoggerOptions, Controller, ControllerAdapterService, type ControllerMetadata, ControllerMetadataKey, type ControllerOptions, Endpoint, type EndpointMetadata, EndpointMetadataKey, type EndpointParams, EndpointType, ErrorsEnum, EventEmitter, type EventEmitterInterface, type EventsArgs, type EventsConfig, type EventsNames, ExecutionContext, ExecutionContextInjectionToken, ExecutionContextToken, FactoryInjectionToken, FactoryNotFound, FactoryTokenNotResolved, ForbiddenException, GuardRunnerService, Header, HttpCode, HttpException, Injectable, type InjectableMetadata, type InjectableOptions, InjectableScope, InjectableTokenMeta, InjectableType, InjectionToken, InstanceDestroying, InstanceExpired, InstanceNotFound, InternalServerErrorException, LOG_LEVELS, type LogLevel, Logger, LoggerFactory, LoggerInjectionToken, LoggerInstance, LoggerOptions, type LoggerService, Module, ModuleLoaderService, type ModuleMetadata, ModuleMetadataKey, type ModuleOptions, NaviosApplication, type NaviosApplicationContextOptions, type NaviosApplicationOptions, NaviosFactory, type NaviosModule, NotFoundException, type Path, type PathImpl, type PathImpl2, type PathValue, PinoWrapper, Reply, Request, ServiceLocator, type ServiceLocatorAbstractFactoryContext, ServiceLocatorEventBus, type ServiceLocatorInstanceDestroyListener, type ServiceLocatorInstanceEffect, type ServiceLocatorInstanceHolder, type ServiceLocatorInstanceHolderCreated, type ServiceLocatorInstanceHolderCreating, type ServiceLocatorInstanceHolderDestroying, ServiceLocatorInstanceHolderKind, ServiceLocatorInstanceHolderStatus, ServiceLocatorManager, UnauthorizedException, UnknownError, UseGuards, addLeadingSlash, clc, envInt, envString, extractControllerMetadata, extractModuleMetadata, filterLogLevels, getAllEndpointMetadata, getControllerMetadata, getEndpointMetadata, getInjectableToken, getModuleMetadata, getServiceLocator, hasControllerMetadata, hasModuleMetadata, inject, isConstructor, isEmpty, isFunction, isLogLevel, isLogLevelEnabled, isNil, isNumber, isObject, isPlainObject, isString, isSymbol, isUndefined, normalizePath, override, provideConfig, provideServiceLocator, resolveService, setPromiseCollector, stripEndSlash, syncInject, yellow };
|
|
1
|
+
export { envInt } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { envString } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { provideConfig } from './_tsup-dts-rollup.js';
|
|
4
|
+
export { ConfigProviderOptions } from './_tsup-dts-rollup.js';
|
|
5
|
+
export { ConfigProvider } from './_tsup-dts-rollup.js';
|
|
6
|
+
export { ConfigProviderFactory } from './_tsup-dts-rollup.js';
|
|
7
|
+
export { ConfigServiceInstance } from './_tsup-dts-rollup.js';
|
|
8
|
+
export { ConfigService } from './_tsup-dts-rollup.js';
|
|
9
|
+
export { PathImpl } from './_tsup-dts-rollup.js';
|
|
10
|
+
export { PathImpl2 } from './_tsup-dts-rollup.js';
|
|
11
|
+
export { Path } from './_tsup-dts-rollup.js';
|
|
12
|
+
export { PathValue } from './_tsup-dts-rollup.js';
|
|
13
|
+
export { Controller } from './_tsup-dts-rollup.js';
|
|
14
|
+
export { ControllerOptions } from './_tsup-dts-rollup.js';
|
|
15
|
+
export { Endpoint } from './_tsup-dts-rollup.js';
|
|
16
|
+
export { EndpointParams } from './_tsup-dts-rollup.js';
|
|
17
|
+
export { Header } from './_tsup-dts-rollup.js';
|
|
18
|
+
export { HttpCode } from './_tsup-dts-rollup.js';
|
|
19
|
+
export { Module } from './_tsup-dts-rollup.js';
|
|
20
|
+
export { ModuleOptions } from './_tsup-dts-rollup.js';
|
|
21
|
+
export { UseGuards } from './_tsup-dts-rollup.js';
|
|
22
|
+
export { HttpException } from './_tsup-dts-rollup.js';
|
|
23
|
+
export { BadRequestException } from './_tsup-dts-rollup.js';
|
|
24
|
+
export { ForbiddenException } from './_tsup-dts-rollup.js';
|
|
25
|
+
export { InternalServerErrorException } from './_tsup-dts-rollup.js';
|
|
26
|
+
export { NotFoundException } from './_tsup-dts-rollup.js';
|
|
27
|
+
export { UnauthorizedException } from './_tsup-dts-rollup.js';
|
|
28
|
+
export { ConflictException } from './_tsup-dts-rollup.js';
|
|
29
|
+
export { CanActivate } from './_tsup-dts-rollup.js';
|
|
30
|
+
export { NaviosModule } from './_tsup-dts-rollup.js';
|
|
31
|
+
export { clc } from './_tsup-dts-rollup.js';
|
|
32
|
+
export { yellow } from './_tsup-dts-rollup.js';
|
|
33
|
+
export { filterLogLevels } from './_tsup-dts-rollup.js';
|
|
34
|
+
export { isLogLevel } from './_tsup-dts-rollup.js';
|
|
35
|
+
export { isLogLevelEnabled } from './_tsup-dts-rollup.js';
|
|
36
|
+
export { isUndefined } from './_tsup-dts-rollup.js';
|
|
37
|
+
export { isObject } from './_tsup-dts-rollup.js';
|
|
38
|
+
export { isPlainObject } from './_tsup-dts-rollup.js';
|
|
39
|
+
export { addLeadingSlash } from './_tsup-dts-rollup.js';
|
|
40
|
+
export { normalizePath } from './_tsup-dts-rollup.js';
|
|
41
|
+
export { stripEndSlash } from './_tsup-dts-rollup.js';
|
|
42
|
+
export { isFunction } from './_tsup-dts-rollup.js';
|
|
43
|
+
export { isString } from './_tsup-dts-rollup.js';
|
|
44
|
+
export { isNumber } from './_tsup-dts-rollup.js';
|
|
45
|
+
export { isConstructor } from './_tsup-dts-rollup.js';
|
|
46
|
+
export { isNil } from './_tsup-dts-rollup.js';
|
|
47
|
+
export { isEmpty } from './_tsup-dts-rollup.js';
|
|
48
|
+
export { isSymbol } from './_tsup-dts-rollup.js';
|
|
49
|
+
export { ConsoleLoggerOptions } from './_tsup-dts-rollup.js';
|
|
50
|
+
export { ConsoleLogger } from './_tsup-dts-rollup.js';
|
|
51
|
+
export { LOG_LEVELS } from './_tsup-dts-rollup.js';
|
|
52
|
+
export { LogLevel } from './_tsup-dts-rollup.js';
|
|
53
|
+
export { LoggerInjectionToken } from './_tsup-dts-rollup.js';
|
|
54
|
+
export { LoggerOptions } from './_tsup-dts-rollup.js';
|
|
55
|
+
export { Logger } from './_tsup-dts-rollup.js';
|
|
56
|
+
export { LoggerFactory } from './_tsup-dts-rollup.js';
|
|
57
|
+
export { LoggerInstance } from './_tsup-dts-rollup.js';
|
|
58
|
+
export { LoggerService } from './_tsup-dts-rollup.js';
|
|
59
|
+
export { PinoWrapper } from './_tsup-dts-rollup.js';
|
|
60
|
+
export { getControllerMetadata } from './_tsup-dts-rollup.js';
|
|
61
|
+
export { extractControllerMetadata } from './_tsup-dts-rollup.js';
|
|
62
|
+
export { hasControllerMetadata } from './_tsup-dts-rollup.js';
|
|
63
|
+
export { ControllerMetadataKey } from './_tsup-dts-rollup.js';
|
|
64
|
+
export { ControllerMetadata } from './_tsup-dts-rollup.js';
|
|
65
|
+
export { getAllEndpointMetadata } from './_tsup-dts-rollup.js';
|
|
66
|
+
export { getEndpointMetadata } from './_tsup-dts-rollup.js';
|
|
67
|
+
export { EndpointMetadataKey } from './_tsup-dts-rollup.js';
|
|
68
|
+
export { EndpointType } from './_tsup-dts-rollup.js';
|
|
69
|
+
export { EndpointMetadata } from './_tsup-dts-rollup.js';
|
|
70
|
+
export { InjectableMetadata } from './_tsup-dts-rollup.js';
|
|
71
|
+
export { getModuleMetadata } from './_tsup-dts-rollup.js';
|
|
72
|
+
export { extractModuleMetadata } from './_tsup-dts-rollup.js';
|
|
73
|
+
export { hasModuleMetadata } from './_tsup-dts-rollup.js';
|
|
74
|
+
export { ModuleMetadataKey } from './_tsup-dts-rollup.js';
|
|
75
|
+
export { ModuleMetadata } from './_tsup-dts-rollup.js';
|
|
76
|
+
export { getInjectableToken } from './_tsup-dts-rollup.js';
|
|
77
|
+
export { Injectable } from './_tsup-dts-rollup.js';
|
|
78
|
+
export { InjectableType } from './_tsup-dts-rollup.js';
|
|
79
|
+
export { InjectableOptions } from './_tsup-dts-rollup.js';
|
|
80
|
+
export { InjectableTokenMeta } from './_tsup-dts-rollup.js';
|
|
81
|
+
export { InjectableScope } from './_tsup-dts-rollup.js';
|
|
82
|
+
export { ErrorsEnum } from './_tsup-dts-rollup.js';
|
|
83
|
+
export { FactoryNotFound } from './_tsup-dts-rollup.js';
|
|
84
|
+
export { FactoryTokenNotResolved } from './_tsup-dts-rollup.js';
|
|
85
|
+
export { InstanceDestroying } from './_tsup-dts-rollup.js';
|
|
86
|
+
export { InstanceExpired } from './_tsup-dts-rollup.js';
|
|
87
|
+
export { InstanceNotFound } from './_tsup-dts-rollup.js';
|
|
88
|
+
export { UnknownError } from './_tsup-dts-rollup.js';
|
|
89
|
+
export { EventsConfig } from './_tsup-dts-rollup.js';
|
|
90
|
+
export { EventsNames } from './_tsup-dts-rollup.js';
|
|
91
|
+
export { EventsArgs } from './_tsup-dts-rollup.js';
|
|
92
|
+
export { ChannelEmitter } from './_tsup-dts-rollup.js';
|
|
93
|
+
export { EventEmitterInterface } from './_tsup-dts-rollup.js';
|
|
94
|
+
export { EventEmitter } from './_tsup-dts-rollup.js';
|
|
95
|
+
export { inject } from './_tsup-dts-rollup.js';
|
|
96
|
+
export { ClassType } from './_tsup-dts-rollup.js';
|
|
97
|
+
export { ClassTypeWithInstance } from './_tsup-dts-rollup.js';
|
|
98
|
+
export { InjectionToken } from './_tsup-dts-rollup.js';
|
|
99
|
+
export { BoundInjectionToken } from './_tsup-dts-rollup.js';
|
|
100
|
+
export { FactoryInjectionToken } from './_tsup-dts-rollup.js';
|
|
101
|
+
export { provideServiceLocator } from './_tsup-dts-rollup.js';
|
|
102
|
+
export { getServiceLocator } from './_tsup-dts-rollup.js';
|
|
103
|
+
export { override } from './_tsup-dts-rollup.js';
|
|
104
|
+
export { ServiceLocator } from './_tsup-dts-rollup.js';
|
|
105
|
+
export { ServiceLocatorAbstractFactoryContext } from './_tsup-dts-rollup.js';
|
|
106
|
+
export { ServiceLocatorEventBus } from './_tsup-dts-rollup.js';
|
|
107
|
+
export { ServiceLocatorInstanceHolderKind } from './_tsup-dts-rollup.js';
|
|
108
|
+
export { ServiceLocatorInstanceHolderStatus } from './_tsup-dts-rollup.js';
|
|
109
|
+
export { ServiceLocatorInstanceEffect } from './_tsup-dts-rollup.js';
|
|
110
|
+
export { ServiceLocatorInstanceDestroyListener } from './_tsup-dts-rollup.js';
|
|
111
|
+
export { ServiceLocatorInstanceHolderCreating } from './_tsup-dts-rollup.js';
|
|
112
|
+
export { ServiceLocatorInstanceHolderCreated } from './_tsup-dts-rollup.js';
|
|
113
|
+
export { ServiceLocatorInstanceHolderDestroying } from './_tsup-dts-rollup.js';
|
|
114
|
+
export { ServiceLocatorInstanceHolder } from './_tsup-dts-rollup.js';
|
|
115
|
+
export { ServiceLocatorManager } from './_tsup-dts-rollup.js';
|
|
116
|
+
export { syncInject } from './_tsup-dts-rollup.js';
|
|
117
|
+
export { setPromiseCollector } from './_tsup-dts-rollup.js';
|
|
118
|
+
export { resolveService } from './_tsup-dts-rollup.js';
|
|
119
|
+
export { ControllerAdapterService } from './_tsup-dts-rollup.js';
|
|
120
|
+
export { ExecutionContext } from './_tsup-dts-rollup.js';
|
|
121
|
+
export { GuardRunnerService } from './_tsup-dts-rollup.js';
|
|
122
|
+
export { ModuleLoaderService } from './_tsup-dts-rollup.js';
|
|
123
|
+
export { Application } from './_tsup-dts-rollup.js';
|
|
124
|
+
export { ExecutionContextInjectionToken } from './_tsup-dts-rollup.js';
|
|
125
|
+
export { ExecutionContextToken } from './_tsup-dts-rollup.js';
|
|
126
|
+
export { Reply } from './_tsup-dts-rollup.js';
|
|
127
|
+
export { Request } from './_tsup-dts-rollup.js';
|
|
128
|
+
export { ClassAttribute_alias_1 as ClassAttribute } from './_tsup-dts-rollup.js';
|
|
129
|
+
export { ClassSchemaAttribute_alias_1 as ClassSchemaAttribute } from './_tsup-dts-rollup.js';
|
|
130
|
+
export { AttributeFactory_alias_1 as AttributeFactory } from './_tsup-dts-rollup.js';
|
|
131
|
+
export { NaviosApplicationContextOptions } from './_tsup-dts-rollup.js';
|
|
132
|
+
export { NaviosApplicationOptions } from './_tsup-dts-rollup.js';
|
|
133
|
+
export { NaviosApplication } from './_tsup-dts-rollup.js';
|
|
134
|
+
export { NaviosFactory } from './_tsup-dts-rollup.js';
|