@navios/core 0.2.0 → 0.2.2
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/docs/README.md +6 -0
- package/docs/recipes/prisma.md +60 -0
- package/examples/simple-test/api/index.mts +64 -0
- package/examples/simple-test/config/config.service.mts +14 -0
- package/examples/simple-test/config/configuration.mts +7 -0
- package/examples/simple-test/index.mts +16 -0
- package/examples/simple-test/src/acl/acl-modern.guard.mts +15 -0
- package/examples/simple-test/src/acl/acl.guard.mts +14 -0
- package/examples/simple-test/src/acl/app.guard.mts +27 -0
- package/examples/simple-test/src/acl/one-more.guard.mts +15 -0
- package/examples/simple-test/src/acl/public.attribute.mts +21 -0
- package/examples/simple-test/src/app.module.mts +9 -0
- package/examples/simple-test/src/user/user.controller.mts +72 -0
- package/examples/simple-test/src/user/user.module.mts +14 -0
- package/examples/simple-test/src/user/user.service.mts +14 -0
- package/{dist → lib}/_tsup-dts-rollup.d.mts +75 -59
- package/{dist → lib}/_tsup-dts-rollup.d.ts +75 -59
- package/{dist → lib}/index.d.mts +13 -4
- package/{dist → lib}/index.d.ts +13 -4
- package/{dist → lib}/index.js +270 -490
- package/lib/index.js.map +1 -0
- package/{dist → lib}/index.mjs +140 -353
- package/lib/index.mjs.map +1 -0
- package/package.json +12 -13
- package/project.json +53 -0
- package/src/__tests__/config.service.spec.mts +41 -0
- package/src/config/config-service.interface.mts +1 -1
- package/src/config/config.provider.mts +23 -47
- package/src/config/config.service.mts +25 -8
- package/src/decorators/endpoint.decorator.mts +17 -15
- package/src/decorators/multipart.decorator.mts +17 -10
- package/src/decorators/stream.decorator.mts +17 -10
- package/tsconfig.json +16 -0
- package/tsup.config.mts +12 -0
- package/vitest.config.mts +9 -0
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import type { AnyZodObject } from 'zod';
|
|
2
2
|
import type { BaseEndpointConfig } from '@navios/common';
|
|
3
|
+
import { BaseInjectionTokenSchemaType } from '@navios/di';
|
|
3
4
|
import type { BaseStreamConfig } from '@navios/common';
|
|
4
5
|
import { BoundInjectionToken } from '@navios/di';
|
|
5
6
|
import { ChannelEmitter } from '@navios/di';
|
|
6
7
|
import { ClassType } from '@navios/di';
|
|
8
|
+
import { ClassTypeWithArgument } from '@navios/di';
|
|
7
9
|
import { ClassTypeWithInstance } from '@navios/di';
|
|
10
|
+
import { ClassTypeWithInstanceAndArgument } from '@navios/di';
|
|
11
|
+
import { ClassTypeWithInstanceAndOptionalArgument } from '@navios/di';
|
|
12
|
+
import { ClassTypeWithOptionalArgument } from '@navios/di';
|
|
8
13
|
import { CreateInjectorsOptions } from '@navios/di';
|
|
9
14
|
import type { EndpointFunctionArgs } from '@navios/common';
|
|
10
15
|
import { ErrorsEnum } from '@navios/di';
|
|
@@ -45,14 +50,15 @@ import { InjectableTokenMeta } from '@navios/di';
|
|
|
45
50
|
import { InjectableType } from '@navios/di';
|
|
46
51
|
import { InjectionFactory } from '@navios/di';
|
|
47
52
|
import { InjectionToken } from '@navios/di';
|
|
53
|
+
import { InjectionTokenSchemaType } from '@navios/di';
|
|
48
54
|
import { Injectors } from '@navios/di';
|
|
49
55
|
import { InjectorsBase } from '@navios/di';
|
|
50
56
|
import type { InspectOptions } from 'util';
|
|
51
57
|
import { InstanceDestroying } from '@navios/di';
|
|
52
58
|
import { InstanceExpired } from '@navios/di';
|
|
53
59
|
import { InstanceNotFound } from '@navios/di';
|
|
54
|
-
import { LoggerInstance as LoggerInstance_2 } from '../logger/logger.service.mjs';
|
|
55
60
|
import { makeProxyServiceLocator } from '@navios/di';
|
|
61
|
+
import { OptionalInjectionTokenSchemaType } from '@navios/di';
|
|
56
62
|
import { provideServiceLocator } from '@navios/di';
|
|
57
63
|
import { ProxyServiceLocator } from '@navios/di';
|
|
58
64
|
import { RawServerDefault } from 'fastify';
|
|
@@ -74,6 +80,7 @@ import { ServiceLocatorInstanceHolderStatus } from '@navios/di';
|
|
|
74
80
|
import { ServiceLocatorManager } from '@navios/di';
|
|
75
81
|
import { syncInject } from '@navios/di';
|
|
76
82
|
import { UnknownError } from '@navios/di';
|
|
83
|
+
import type { Util_FlatObject } from '@navios/common';
|
|
77
84
|
import { wrapSyncInit } from '@navios/di';
|
|
78
85
|
import { z } from 'zod';
|
|
79
86
|
import { ZodDiscriminatedUnion } from 'zod';
|
|
@@ -85,7 +92,7 @@ export { addLeadingSlash as addLeadingSlash_alias_1 }
|
|
|
85
92
|
export { addLeadingSlash as addLeadingSlash_alias_2 }
|
|
86
93
|
export { addLeadingSlash as addLeadingSlash_alias_3 }
|
|
87
94
|
|
|
88
|
-
declare const Application: InjectionToken<FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault>, undefined>;
|
|
95
|
+
declare const Application: InjectionToken<FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault>, undefined, false>;
|
|
89
96
|
export { Application }
|
|
90
97
|
export { Application as Application_alias_1 }
|
|
91
98
|
export { Application as Application_alias_2 }
|
|
@@ -112,6 +119,8 @@ export { BadRequestException }
|
|
|
112
119
|
export { BadRequestException as BadRequestException_alias_1 }
|
|
113
120
|
export { BadRequestException as BadRequestException_alias_2 }
|
|
114
121
|
|
|
122
|
+
export { BaseInjectionTokenSchemaType }
|
|
123
|
+
|
|
115
124
|
export { BoundInjectionToken }
|
|
116
125
|
|
|
117
126
|
declare interface CanActivate {
|
|
@@ -138,8 +147,16 @@ export { ClassSchemaAttribute as ClassSchemaAttribute_alias_1 }
|
|
|
138
147
|
|
|
139
148
|
export { ClassType }
|
|
140
149
|
|
|
150
|
+
export { ClassTypeWithArgument }
|
|
151
|
+
|
|
141
152
|
export { ClassTypeWithInstance }
|
|
142
153
|
|
|
154
|
+
export { ClassTypeWithInstanceAndArgument }
|
|
155
|
+
|
|
156
|
+
export { ClassTypeWithInstanceAndOptionalArgument }
|
|
157
|
+
|
|
158
|
+
export { ClassTypeWithOptionalArgument }
|
|
159
|
+
|
|
143
160
|
declare const clc: {
|
|
144
161
|
bold: (text: string) => string;
|
|
145
162
|
green: (text: string) => string;
|
|
@@ -153,58 +170,54 @@ export { clc as clc_alias_1 }
|
|
|
153
170
|
export { clc as clc_alias_2 }
|
|
154
171
|
export { clc as clc_alias_3 }
|
|
155
172
|
|
|
156
|
-
declare const ConfigProvider: InjectionToken<ConfigService<Record<string, unknown>>, z.ZodObject<{
|
|
157
|
-
load: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>;
|
|
158
|
-
}, "strip", z.ZodTypeAny, {
|
|
159
|
-
load: (...args: unknown[]) => unknown;
|
|
160
|
-
}, {
|
|
161
|
-
load: (...args: unknown[]) => unknown;
|
|
162
|
-
}>>;
|
|
163
|
-
export { ConfigProvider }
|
|
164
|
-
export { ConfigProvider as ConfigProvider_alias_1 }
|
|
165
|
-
export { ConfigProvider as ConfigProvider_alias_2 }
|
|
166
|
-
|
|
167
|
-
declare class ConfigProviderFactory {
|
|
168
|
-
logger: LoggerInstance_2;
|
|
169
|
-
create(ctx: any, args: z.infer<typeof ConfigProviderOptions>): Promise<ConfigService>;
|
|
170
|
-
}
|
|
171
|
-
export { ConfigProviderFactory }
|
|
172
|
-
export { ConfigProviderFactory as ConfigProviderFactory_alias_1 }
|
|
173
|
-
export { ConfigProviderFactory as ConfigProviderFactory_alias_2 }
|
|
174
|
-
|
|
175
173
|
declare const ConfigProviderOptions: z.ZodObject<{
|
|
176
|
-
load: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown
|
|
174
|
+
load: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
177
175
|
}, "strip", z.ZodTypeAny, {
|
|
178
|
-
load: (...args: unknown[]) => unknown
|
|
176
|
+
load: (...args: unknown[]) => Record<string, unknown>;
|
|
179
177
|
}, {
|
|
180
|
-
load: (...args: unknown[]) => unknown
|
|
178
|
+
load: (...args: unknown[]) => Record<string, unknown>;
|
|
181
179
|
}>;
|
|
182
180
|
export { ConfigProviderOptions }
|
|
183
181
|
export { ConfigProviderOptions as ConfigProviderOptions_alias_1 }
|
|
184
182
|
export { ConfigProviderOptions as ConfigProviderOptions_alias_2 }
|
|
185
183
|
|
|
186
|
-
declare
|
|
187
|
-
getConfig: () => Config;
|
|
188
|
-
get: <Key extends Path<Config>>(key: Key) => PathValue<Config, Key> | null;
|
|
189
|
-
getOrDefault: <Key extends Path<Config>>(key: Key, defaultValue: PathValue<Config, Key>) => PathValue<Config, Key>;
|
|
190
|
-
getOrThrow: <Key extends Path<Config>>(key: Key, errorMessage?: string) => PathValue<Config, Key>;
|
|
191
|
-
}
|
|
192
|
-
export { ConfigService }
|
|
193
|
-
export { ConfigService as ConfigService_alias_1 }
|
|
194
|
-
export { ConfigService as ConfigService_alias_2 }
|
|
195
|
-
|
|
196
|
-
declare class ConfigServiceInstance<Config = Record<string, unknown>> implements ConfigService<Config> {
|
|
184
|
+
declare class ConfigService<Config extends ConfigServiceOptions = Record<string, unknown>> implements ConfigServiceInterface<Config> {
|
|
197
185
|
private config;
|
|
198
|
-
private logger;
|
|
199
|
-
constructor(config
|
|
186
|
+
private readonly logger;
|
|
187
|
+
constructor(config?: Config);
|
|
200
188
|
getConfig(): Config;
|
|
201
189
|
get<Key extends Path<Config>>(key: Key): PathValue<Config, Key> | null;
|
|
202
190
|
getOrDefault<Key extends Path<Config>>(key: Key, defaultValue: PathValue<Config, Key>): PathValue<Config, Key>;
|
|
203
191
|
getOrThrow<Key extends Path<Config>>(key: Key, errorMessage?: string): PathValue<Config, Key>;
|
|
204
192
|
}
|
|
205
|
-
export {
|
|
206
|
-
export {
|
|
207
|
-
export {
|
|
193
|
+
export { ConfigService }
|
|
194
|
+
export { ConfigService as ConfigService_alias_1 }
|
|
195
|
+
export { ConfigService as ConfigService_alias_2 }
|
|
196
|
+
|
|
197
|
+
declare interface ConfigServiceInterface<Config = Record<string, unknown>> {
|
|
198
|
+
getConfig: () => Config;
|
|
199
|
+
get: <Key extends Path<Config>>(key: Key) => PathValue<Config, Key> | null;
|
|
200
|
+
getOrDefault: <Key extends Path<Config>>(key: Key, defaultValue: PathValue<Config, Key>) => PathValue<Config, Key>;
|
|
201
|
+
getOrThrow: <Key extends Path<Config>>(key: Key, errorMessage?: string) => PathValue<Config, Key>;
|
|
202
|
+
}
|
|
203
|
+
export { ConfigServiceInterface }
|
|
204
|
+
export { ConfigServiceInterface as ConfigServiceInterface_alias_1 }
|
|
205
|
+
export { ConfigServiceInterface as ConfigServiceInterface_alias_2 }
|
|
206
|
+
|
|
207
|
+
declare type ConfigServiceOptions = z.infer<typeof ConfigServiceOptionsSchema>;
|
|
208
|
+
export { ConfigServiceOptions }
|
|
209
|
+
export { ConfigServiceOptions as ConfigServiceOptions_alias_1 }
|
|
210
|
+
export { ConfigServiceOptions as ConfigServiceOptions_alias_2 }
|
|
211
|
+
|
|
212
|
+
declare const ConfigServiceOptionsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
213
|
+
export { ConfigServiceOptionsSchema }
|
|
214
|
+
export { ConfigServiceOptionsSchema as ConfigServiceOptionsSchema_alias_1 }
|
|
215
|
+
export { ConfigServiceOptionsSchema as ConfigServiceOptionsSchema_alias_2 }
|
|
216
|
+
|
|
217
|
+
declare const ConfigServiceToken: InjectionToken<ConfigServiceInterface<Record<string, unknown>>, z.ZodRecord<z.ZodString, z.ZodUnknown>, true>;
|
|
218
|
+
export { ConfigServiceToken }
|
|
219
|
+
export { ConfigServiceToken as ConfigServiceToken_alias_1 }
|
|
220
|
+
export { ConfigServiceToken as ConfigServiceToken_alias_2 }
|
|
208
221
|
|
|
209
222
|
declare class ConflictException extends HttpException {
|
|
210
223
|
constructor(message: string | object, error?: Error);
|
|
@@ -411,7 +424,7 @@ export { ConsoleLoggerOptions }
|
|
|
411
424
|
export { ConsoleLoggerOptions as ConsoleLoggerOptions_alias_1 }
|
|
412
425
|
export { ConsoleLoggerOptions as ConsoleLoggerOptions_alias_2 }
|
|
413
426
|
|
|
414
|
-
declare function Controller({ guards }?: ControllerOptions): (target: ClassType, context: ClassDecoratorContext) =>
|
|
427
|
+
declare function Controller({ guards }?: ControllerOptions): (target: ClassType, context: ClassDecoratorContext) => ClassType;
|
|
415
428
|
export { Controller }
|
|
416
429
|
export { Controller as Controller_alias_1 }
|
|
417
430
|
export { Controller as Controller_alias_2 }
|
|
@@ -466,7 +479,7 @@ export { EndpointAdapterService }
|
|
|
466
479
|
export { EndpointAdapterService as EndpointAdapterService_alias_1 }
|
|
467
480
|
export { EndpointAdapterService as EndpointAdapterService_alias_2 }
|
|
468
481
|
|
|
469
|
-
declare const EndpointAdapterToken: InjectionToken<EndpointAdapterService, undefined>;
|
|
482
|
+
declare const EndpointAdapterToken: InjectionToken<EndpointAdapterService, undefined, false>;
|
|
470
483
|
export { EndpointAdapterToken }
|
|
471
484
|
export { EndpointAdapterToken as EndpointAdapterToken_alias_1 }
|
|
472
485
|
export { EndpointAdapterToken as EndpointAdapterToken_alias_2 }
|
|
@@ -478,7 +491,7 @@ export { EndpointMetadataKey as EndpointMetadataKey_alias_2 }
|
|
|
478
491
|
|
|
479
492
|
declare type EndpointParams<EndpointDeclaration extends {
|
|
480
493
|
config: BaseEndpointConfig<any, any, any, any, any>;
|
|
481
|
-
}, Url extends string = EndpointDeclaration['config']['url'], QuerySchema = EndpointDeclaration['config']['querySchema']> = QuerySchema extends AnyZodObject ? EndpointDeclaration['config']['requestSchema'] extends ZodType ? EndpointFunctionArgs<Url, QuerySchema, EndpointDeclaration['config']['requestSchema']
|
|
494
|
+
}, Url extends string = EndpointDeclaration['config']['url'], QuerySchema = EndpointDeclaration['config']['querySchema']> = QuerySchema extends AnyZodObject ? EndpointDeclaration['config']['requestSchema'] extends ZodType ? Util_FlatObject<EndpointFunctionArgs<Url, QuerySchema, EndpointDeclaration['config']['requestSchema'], true>> : Util_FlatObject<EndpointFunctionArgs<Url, QuerySchema, undefined, true>> : EndpointDeclaration['config']['requestSchema'] extends ZodType ? Util_FlatObject<EndpointFunctionArgs<Url, undefined, EndpointDeclaration['config']['requestSchema'], true>> : Util_FlatObject<EndpointFunctionArgs<Url, undefined, undefined, true>>;
|
|
482
495
|
export { EndpointParams }
|
|
483
496
|
export { EndpointParams as EndpointParams_alias_1 }
|
|
484
497
|
export { EndpointParams as EndpointParams_alias_2 }
|
|
@@ -490,6 +503,11 @@ export { EndpointResult }
|
|
|
490
503
|
export { EndpointResult as EndpointResult_alias_1 }
|
|
491
504
|
export { EndpointResult as EndpointResult_alias_2 }
|
|
492
505
|
|
|
506
|
+
declare const EnvConfigProvider: BoundInjectionToken<ConfigService<Record<string, string>>, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
507
|
+
export { EnvConfigProvider }
|
|
508
|
+
export { EnvConfigProvider as EnvConfigProvider_alias_1 }
|
|
509
|
+
export { EnvConfigProvider as EnvConfigProvider_alias_2 }
|
|
510
|
+
|
|
493
511
|
declare function envInt(key: keyof NodeJS.ProcessEnv, defaultValue: number): number;
|
|
494
512
|
export { envInt }
|
|
495
513
|
export { envInt as envInt_alias_1 }
|
|
@@ -542,7 +560,7 @@ export { ExecutionContextInjectionToken }
|
|
|
542
560
|
export { ExecutionContextInjectionToken as ExecutionContextInjectionToken_alias_1 }
|
|
543
561
|
export { ExecutionContextInjectionToken as ExecutionContextInjectionToken_alias_2 }
|
|
544
562
|
|
|
545
|
-
declare const ExecutionContextToken: InjectionToken<ExecutionContext, undefined>;
|
|
563
|
+
declare const ExecutionContextToken: InjectionToken<ExecutionContext, undefined, false>;
|
|
546
564
|
export { ExecutionContextToken }
|
|
547
565
|
export { ExecutionContextToken as ExecutionContextToken_alias_1 }
|
|
548
566
|
export { ExecutionContextToken as ExecutionContextToken_alias_2 }
|
|
@@ -694,6 +712,8 @@ export { InjectionFactory }
|
|
|
694
712
|
|
|
695
713
|
export { InjectionToken }
|
|
696
714
|
|
|
715
|
+
export { InjectionTokenSchemaType }
|
|
716
|
+
|
|
697
717
|
export { Injectors }
|
|
698
718
|
|
|
699
719
|
export { InjectorsBase }
|
|
@@ -821,7 +841,7 @@ declare const Logger: InjectionToken<LoggerInstance, z.ZodOptional<z.ZodObject<{
|
|
|
821
841
|
timestamp?: boolean | undefined;
|
|
822
842
|
} | undefined;
|
|
823
843
|
context?: string | undefined;
|
|
824
|
-
}
|
|
844
|
+
}>>, false>;
|
|
825
845
|
export { Logger }
|
|
826
846
|
export { Logger as Logger_alias_1 }
|
|
827
847
|
export { Logger as Logger_alias_2 }
|
|
@@ -996,7 +1016,7 @@ export { LogLevel as LogLevel_alias_2 }
|
|
|
996
1016
|
|
|
997
1017
|
export { makeProxyServiceLocator }
|
|
998
1018
|
|
|
999
|
-
declare function Module({ controllers, imports, guards }?: ModuleOptions): (target: ClassType, context: ClassDecoratorContext) =>
|
|
1019
|
+
declare function Module({ controllers, imports, guards }?: ModuleOptions): (target: ClassType, context: ClassDecoratorContext) => ClassType;
|
|
1000
1020
|
export { Module }
|
|
1001
1021
|
export { Module as Module_alias_1 }
|
|
1002
1022
|
export { Module as Module_alias_2 }
|
|
@@ -1057,14 +1077,14 @@ export { MultipartAdapterService }
|
|
|
1057
1077
|
export { MultipartAdapterService as MultipartAdapterService_alias_1 }
|
|
1058
1078
|
export { MultipartAdapterService as MultipartAdapterService_alias_2 }
|
|
1059
1079
|
|
|
1060
|
-
declare const MultipartAdapterToken: InjectionToken<MultipartAdapterService, undefined>;
|
|
1080
|
+
declare const MultipartAdapterToken: InjectionToken<MultipartAdapterService, undefined, false>;
|
|
1061
1081
|
export { MultipartAdapterToken }
|
|
1062
1082
|
export { MultipartAdapterToken as MultipartAdapterToken_alias_1 }
|
|
1063
1083
|
export { MultipartAdapterToken as MultipartAdapterToken_alias_2 }
|
|
1064
1084
|
|
|
1065
1085
|
declare type MultipartParams<EndpointDeclaration extends {
|
|
1066
1086
|
config: BaseEndpointConfig<any, any, any, any, any>;
|
|
1067
|
-
}, Url extends string = EndpointDeclaration['config']['url'], QuerySchema = EndpointDeclaration['config']['querySchema']> = QuerySchema extends AnyZodObject ? EndpointDeclaration['config']['requestSchema'] extends ZodType ? EndpointFunctionArgs<Url, QuerySchema, EndpointDeclaration['config']['requestSchema']
|
|
1087
|
+
}, Url extends string = EndpointDeclaration['config']['url'], QuerySchema = EndpointDeclaration['config']['querySchema']> = QuerySchema extends AnyZodObject ? EndpointDeclaration['config']['requestSchema'] extends ZodType ? Util_FlatObject<EndpointFunctionArgs<Url, QuerySchema, EndpointDeclaration['config']['requestSchema'], true>> : Util_FlatObject<EndpointFunctionArgs<Url, QuerySchema, undefined, true>> : EndpointDeclaration['config']['requestSchema'] extends ZodType ? Util_FlatObject<EndpointFunctionArgs<Url, undefined, EndpointDeclaration['config']['requestSchema'], true>> : Util_FlatObject<EndpointFunctionArgs<Url, undefined, undefined, true>>;
|
|
1068
1088
|
export { MultipartParams }
|
|
1069
1089
|
export { MultipartParams as MultipartParams_alias_1 }
|
|
1070
1090
|
export { MultipartParams as MultipartParams_alias_2 }
|
|
@@ -1147,6 +1167,8 @@ export { NotFoundException }
|
|
|
1147
1167
|
export { NotFoundException as NotFoundException_alias_1 }
|
|
1148
1168
|
export { NotFoundException as NotFoundException_alias_2 }
|
|
1149
1169
|
|
|
1170
|
+
export { OptionalInjectionTokenSchemaType }
|
|
1171
|
+
|
|
1150
1172
|
declare type Path<T> = keyof T extends string ? PathImpl2<T> extends infer P ? P extends string | keyof T ? P : keyof T : keyof T : never;
|
|
1151
1173
|
export { Path }
|
|
1152
1174
|
export { Path as Path_alias_1 }
|
|
@@ -1184,13 +1206,7 @@ export { PinoWrapper }
|
|
|
1184
1206
|
export { PinoWrapper as PinoWrapper_alias_1 }
|
|
1185
1207
|
export { PinoWrapper as PinoWrapper_alias_2 }
|
|
1186
1208
|
|
|
1187
|
-
declare function provideConfig<ConfigMap extends
|
|
1188
|
-
load: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>;
|
|
1189
|
-
}, "strip", z.ZodTypeAny, {
|
|
1190
|
-
load: (...args: unknown[]) => unknown;
|
|
1191
|
-
}, {
|
|
1192
|
-
load: (...args: unknown[]) => unknown;
|
|
1193
|
-
}>>;
|
|
1209
|
+
declare function provideConfig<ConfigMap extends ConfigServiceOptions>(options: z.input<typeof ConfigProviderOptions>): FactoryInjectionToken<ConfigService<ConfigMap>, typeof ConfigServiceOptionsSchema>;
|
|
1194
1210
|
export { provideConfig }
|
|
1195
1211
|
export { provideConfig as provideConfig_alias_1 }
|
|
1196
1212
|
export { provideConfig as provideConfig_alias_2 }
|
|
@@ -1201,12 +1217,12 @@ export { ProxyServiceLocator }
|
|
|
1201
1217
|
|
|
1202
1218
|
export { Registry }
|
|
1203
1219
|
|
|
1204
|
-
declare const Reply: InjectionToken<FastifyReply<RouteGenericInterface, RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, unknown, FastifySchema, FastifyTypeProviderDefault, unknown>, undefined>;
|
|
1220
|
+
declare const Reply: InjectionToken<FastifyReply<RouteGenericInterface, RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, unknown, FastifySchema, FastifyTypeProviderDefault, unknown>, undefined, false>;
|
|
1205
1221
|
export { Reply }
|
|
1206
1222
|
export { Reply as Reply_alias_1 }
|
|
1207
1223
|
export { Reply as Reply_alias_2 }
|
|
1208
1224
|
|
|
1209
|
-
declare const Request_2: InjectionToken<FastifyRequest<RouteGenericInterface, RawServerDefault, IncomingMessage, FastifySchema, FastifyTypeProviderDefault, unknown, FastifyBaseLogger, ResolveFastifyRequestType<FastifyTypeProviderDefault, FastifySchema, RouteGenericInterface>>, undefined>;
|
|
1225
|
+
declare const Request_2: InjectionToken<FastifyRequest<RouteGenericInterface, RawServerDefault, IncomingMessage, FastifySchema, FastifyTypeProviderDefault, unknown, FastifyBaseLogger, ResolveFastifyRequestType<FastifyTypeProviderDefault, FastifySchema, RouteGenericInterface>>, undefined, false>;
|
|
1210
1226
|
export { Request_2 as Request }
|
|
1211
1227
|
export { Request_2 as Request_alias_1 }
|
|
1212
1228
|
export { Request_2 as Request_alias_2 }
|
|
@@ -1252,14 +1268,14 @@ export { StreamAdapterService }
|
|
|
1252
1268
|
export { StreamAdapterService as StreamAdapterService_alias_1 }
|
|
1253
1269
|
export { StreamAdapterService as StreamAdapterService_alias_2 }
|
|
1254
1270
|
|
|
1255
|
-
declare const StreamAdapterToken: InjectionToken<StreamAdapterService, undefined>;
|
|
1271
|
+
declare const StreamAdapterToken: InjectionToken<StreamAdapterService, undefined, false>;
|
|
1256
1272
|
export { StreamAdapterToken }
|
|
1257
1273
|
export { StreamAdapterToken as StreamAdapterToken_alias_1 }
|
|
1258
1274
|
export { StreamAdapterToken as StreamAdapterToken_alias_2 }
|
|
1259
1275
|
|
|
1260
1276
|
declare type StreamParams<EndpointDeclaration extends {
|
|
1261
1277
|
config: BaseStreamConfig<any, any, any, any>;
|
|
1262
|
-
}, Url extends string = EndpointDeclaration['config']['url'], QuerySchema = EndpointDeclaration['config']['querySchema']> = QuerySchema extends AnyZodObject ? EndpointDeclaration['config']['requestSchema'] extends ZodType ? EndpointFunctionArgs<Url, QuerySchema, EndpointDeclaration['config']['requestSchema']
|
|
1278
|
+
}, Url extends string = EndpointDeclaration['config']['url'], QuerySchema = EndpointDeclaration['config']['querySchema']> = QuerySchema extends AnyZodObject ? EndpointDeclaration['config']['requestSchema'] extends ZodType ? Util_FlatObject<EndpointFunctionArgs<Url, QuerySchema, EndpointDeclaration['config']['requestSchema'], true>> : Util_FlatObject<EndpointFunctionArgs<Url, QuerySchema, undefined, true>> : EndpointDeclaration['config']['requestSchema'] extends ZodType ? Util_FlatObject<EndpointFunctionArgs<Url, undefined, EndpointDeclaration['config']['requestSchema'], true>> : Util_FlatObject<EndpointFunctionArgs<Url, undefined, undefined, true>>;
|
|
1263
1279
|
export { StreamParams }
|
|
1264
1280
|
export { StreamParams as StreamParams_alias_1 }
|
|
1265
1281
|
export { StreamParams as StreamParams_alias_2 }
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import type { AnyZodObject } from 'zod';
|
|
2
2
|
import type { BaseEndpointConfig } from '@navios/common';
|
|
3
|
+
import { BaseInjectionTokenSchemaType } from '@navios/di';
|
|
3
4
|
import type { BaseStreamConfig } from '@navios/common';
|
|
4
5
|
import { BoundInjectionToken } from '@navios/di';
|
|
5
6
|
import { ChannelEmitter } from '@navios/di';
|
|
6
7
|
import { ClassType } from '@navios/di';
|
|
8
|
+
import { ClassTypeWithArgument } from '@navios/di';
|
|
7
9
|
import { ClassTypeWithInstance } from '@navios/di';
|
|
10
|
+
import { ClassTypeWithInstanceAndArgument } from '@navios/di';
|
|
11
|
+
import { ClassTypeWithInstanceAndOptionalArgument } from '@navios/di';
|
|
12
|
+
import { ClassTypeWithOptionalArgument } from '@navios/di';
|
|
8
13
|
import { CreateInjectorsOptions } from '@navios/di';
|
|
9
14
|
import type { EndpointFunctionArgs } from '@navios/common';
|
|
10
15
|
import { ErrorsEnum } from '@navios/di';
|
|
@@ -45,14 +50,15 @@ import { InjectableTokenMeta } from '@navios/di';
|
|
|
45
50
|
import { InjectableType } from '@navios/di';
|
|
46
51
|
import { InjectionFactory } from '@navios/di';
|
|
47
52
|
import { InjectionToken } from '@navios/di';
|
|
53
|
+
import { InjectionTokenSchemaType } from '@navios/di';
|
|
48
54
|
import { Injectors } from '@navios/di';
|
|
49
55
|
import { InjectorsBase } from '@navios/di';
|
|
50
56
|
import type { InspectOptions } from 'util';
|
|
51
57
|
import { InstanceDestroying } from '@navios/di';
|
|
52
58
|
import { InstanceExpired } from '@navios/di';
|
|
53
59
|
import { InstanceNotFound } from '@navios/di';
|
|
54
|
-
import { LoggerInstance as LoggerInstance_2 } from '../logger/logger.service.mjs';
|
|
55
60
|
import { makeProxyServiceLocator } from '@navios/di';
|
|
61
|
+
import { OptionalInjectionTokenSchemaType } from '@navios/di';
|
|
56
62
|
import { provideServiceLocator } from '@navios/di';
|
|
57
63
|
import { ProxyServiceLocator } from '@navios/di';
|
|
58
64
|
import { RawServerDefault } from 'fastify';
|
|
@@ -74,6 +80,7 @@ import { ServiceLocatorInstanceHolderStatus } from '@navios/di';
|
|
|
74
80
|
import { ServiceLocatorManager } from '@navios/di';
|
|
75
81
|
import { syncInject } from '@navios/di';
|
|
76
82
|
import { UnknownError } from '@navios/di';
|
|
83
|
+
import type { Util_FlatObject } from '@navios/common';
|
|
77
84
|
import { wrapSyncInit } from '@navios/di';
|
|
78
85
|
import { z } from 'zod';
|
|
79
86
|
import { ZodDiscriminatedUnion } from 'zod';
|
|
@@ -85,7 +92,7 @@ export { addLeadingSlash as addLeadingSlash_alias_1 }
|
|
|
85
92
|
export { addLeadingSlash as addLeadingSlash_alias_2 }
|
|
86
93
|
export { addLeadingSlash as addLeadingSlash_alias_3 }
|
|
87
94
|
|
|
88
|
-
declare const Application: InjectionToken<FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault>, undefined>;
|
|
95
|
+
declare const Application: InjectionToken<FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault>, undefined, false>;
|
|
89
96
|
export { Application }
|
|
90
97
|
export { Application as Application_alias_1 }
|
|
91
98
|
export { Application as Application_alias_2 }
|
|
@@ -112,6 +119,8 @@ export { BadRequestException }
|
|
|
112
119
|
export { BadRequestException as BadRequestException_alias_1 }
|
|
113
120
|
export { BadRequestException as BadRequestException_alias_2 }
|
|
114
121
|
|
|
122
|
+
export { BaseInjectionTokenSchemaType }
|
|
123
|
+
|
|
115
124
|
export { BoundInjectionToken }
|
|
116
125
|
|
|
117
126
|
declare interface CanActivate {
|
|
@@ -138,8 +147,16 @@ export { ClassSchemaAttribute as ClassSchemaAttribute_alias_1 }
|
|
|
138
147
|
|
|
139
148
|
export { ClassType }
|
|
140
149
|
|
|
150
|
+
export { ClassTypeWithArgument }
|
|
151
|
+
|
|
141
152
|
export { ClassTypeWithInstance }
|
|
142
153
|
|
|
154
|
+
export { ClassTypeWithInstanceAndArgument }
|
|
155
|
+
|
|
156
|
+
export { ClassTypeWithInstanceAndOptionalArgument }
|
|
157
|
+
|
|
158
|
+
export { ClassTypeWithOptionalArgument }
|
|
159
|
+
|
|
143
160
|
declare const clc: {
|
|
144
161
|
bold: (text: string) => string;
|
|
145
162
|
green: (text: string) => string;
|
|
@@ -153,58 +170,54 @@ export { clc as clc_alias_1 }
|
|
|
153
170
|
export { clc as clc_alias_2 }
|
|
154
171
|
export { clc as clc_alias_3 }
|
|
155
172
|
|
|
156
|
-
declare const ConfigProvider: InjectionToken<ConfigService<Record<string, unknown>>, z.ZodObject<{
|
|
157
|
-
load: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>;
|
|
158
|
-
}, "strip", z.ZodTypeAny, {
|
|
159
|
-
load: (...args: unknown[]) => unknown;
|
|
160
|
-
}, {
|
|
161
|
-
load: (...args: unknown[]) => unknown;
|
|
162
|
-
}>>;
|
|
163
|
-
export { ConfigProvider }
|
|
164
|
-
export { ConfigProvider as ConfigProvider_alias_1 }
|
|
165
|
-
export { ConfigProvider as ConfigProvider_alias_2 }
|
|
166
|
-
|
|
167
|
-
declare class ConfigProviderFactory {
|
|
168
|
-
logger: LoggerInstance_2;
|
|
169
|
-
create(ctx: any, args: z.infer<typeof ConfigProviderOptions>): Promise<ConfigService>;
|
|
170
|
-
}
|
|
171
|
-
export { ConfigProviderFactory }
|
|
172
|
-
export { ConfigProviderFactory as ConfigProviderFactory_alias_1 }
|
|
173
|
-
export { ConfigProviderFactory as ConfigProviderFactory_alias_2 }
|
|
174
|
-
|
|
175
173
|
declare const ConfigProviderOptions: z.ZodObject<{
|
|
176
|
-
load: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown
|
|
174
|
+
load: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
177
175
|
}, "strip", z.ZodTypeAny, {
|
|
178
|
-
load: (...args: unknown[]) => unknown
|
|
176
|
+
load: (...args: unknown[]) => Record<string, unknown>;
|
|
179
177
|
}, {
|
|
180
|
-
load: (...args: unknown[]) => unknown
|
|
178
|
+
load: (...args: unknown[]) => Record<string, unknown>;
|
|
181
179
|
}>;
|
|
182
180
|
export { ConfigProviderOptions }
|
|
183
181
|
export { ConfigProviderOptions as ConfigProviderOptions_alias_1 }
|
|
184
182
|
export { ConfigProviderOptions as ConfigProviderOptions_alias_2 }
|
|
185
183
|
|
|
186
|
-
declare
|
|
187
|
-
getConfig: () => Config;
|
|
188
|
-
get: <Key extends Path<Config>>(key: Key) => PathValue<Config, Key> | null;
|
|
189
|
-
getOrDefault: <Key extends Path<Config>>(key: Key, defaultValue: PathValue<Config, Key>) => PathValue<Config, Key>;
|
|
190
|
-
getOrThrow: <Key extends Path<Config>>(key: Key, errorMessage?: string) => PathValue<Config, Key>;
|
|
191
|
-
}
|
|
192
|
-
export { ConfigService }
|
|
193
|
-
export { ConfigService as ConfigService_alias_1 }
|
|
194
|
-
export { ConfigService as ConfigService_alias_2 }
|
|
195
|
-
|
|
196
|
-
declare class ConfigServiceInstance<Config = Record<string, unknown>> implements ConfigService<Config> {
|
|
184
|
+
declare class ConfigService<Config extends ConfigServiceOptions = Record<string, unknown>> implements ConfigServiceInterface<Config> {
|
|
197
185
|
private config;
|
|
198
|
-
private logger;
|
|
199
|
-
constructor(config
|
|
186
|
+
private readonly logger;
|
|
187
|
+
constructor(config?: Config);
|
|
200
188
|
getConfig(): Config;
|
|
201
189
|
get<Key extends Path<Config>>(key: Key): PathValue<Config, Key> | null;
|
|
202
190
|
getOrDefault<Key extends Path<Config>>(key: Key, defaultValue: PathValue<Config, Key>): PathValue<Config, Key>;
|
|
203
191
|
getOrThrow<Key extends Path<Config>>(key: Key, errorMessage?: string): PathValue<Config, Key>;
|
|
204
192
|
}
|
|
205
|
-
export {
|
|
206
|
-
export {
|
|
207
|
-
export {
|
|
193
|
+
export { ConfigService }
|
|
194
|
+
export { ConfigService as ConfigService_alias_1 }
|
|
195
|
+
export { ConfigService as ConfigService_alias_2 }
|
|
196
|
+
|
|
197
|
+
declare interface ConfigServiceInterface<Config = Record<string, unknown>> {
|
|
198
|
+
getConfig: () => Config;
|
|
199
|
+
get: <Key extends Path<Config>>(key: Key) => PathValue<Config, Key> | null;
|
|
200
|
+
getOrDefault: <Key extends Path<Config>>(key: Key, defaultValue: PathValue<Config, Key>) => PathValue<Config, Key>;
|
|
201
|
+
getOrThrow: <Key extends Path<Config>>(key: Key, errorMessage?: string) => PathValue<Config, Key>;
|
|
202
|
+
}
|
|
203
|
+
export { ConfigServiceInterface }
|
|
204
|
+
export { ConfigServiceInterface as ConfigServiceInterface_alias_1 }
|
|
205
|
+
export { ConfigServiceInterface as ConfigServiceInterface_alias_2 }
|
|
206
|
+
|
|
207
|
+
declare type ConfigServiceOptions = z.infer<typeof ConfigServiceOptionsSchema>;
|
|
208
|
+
export { ConfigServiceOptions }
|
|
209
|
+
export { ConfigServiceOptions as ConfigServiceOptions_alias_1 }
|
|
210
|
+
export { ConfigServiceOptions as ConfigServiceOptions_alias_2 }
|
|
211
|
+
|
|
212
|
+
declare const ConfigServiceOptionsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
213
|
+
export { ConfigServiceOptionsSchema }
|
|
214
|
+
export { ConfigServiceOptionsSchema as ConfigServiceOptionsSchema_alias_1 }
|
|
215
|
+
export { ConfigServiceOptionsSchema as ConfigServiceOptionsSchema_alias_2 }
|
|
216
|
+
|
|
217
|
+
declare const ConfigServiceToken: InjectionToken<ConfigServiceInterface<Record<string, unknown>>, z.ZodRecord<z.ZodString, z.ZodUnknown>, true>;
|
|
218
|
+
export { ConfigServiceToken }
|
|
219
|
+
export { ConfigServiceToken as ConfigServiceToken_alias_1 }
|
|
220
|
+
export { ConfigServiceToken as ConfigServiceToken_alias_2 }
|
|
208
221
|
|
|
209
222
|
declare class ConflictException extends HttpException {
|
|
210
223
|
constructor(message: string | object, error?: Error);
|
|
@@ -411,7 +424,7 @@ export { ConsoleLoggerOptions }
|
|
|
411
424
|
export { ConsoleLoggerOptions as ConsoleLoggerOptions_alias_1 }
|
|
412
425
|
export { ConsoleLoggerOptions as ConsoleLoggerOptions_alias_2 }
|
|
413
426
|
|
|
414
|
-
declare function Controller({ guards }?: ControllerOptions): (target: ClassType, context: ClassDecoratorContext) =>
|
|
427
|
+
declare function Controller({ guards }?: ControllerOptions): (target: ClassType, context: ClassDecoratorContext) => ClassType;
|
|
415
428
|
export { Controller }
|
|
416
429
|
export { Controller as Controller_alias_1 }
|
|
417
430
|
export { Controller as Controller_alias_2 }
|
|
@@ -466,7 +479,7 @@ export { EndpointAdapterService }
|
|
|
466
479
|
export { EndpointAdapterService as EndpointAdapterService_alias_1 }
|
|
467
480
|
export { EndpointAdapterService as EndpointAdapterService_alias_2 }
|
|
468
481
|
|
|
469
|
-
declare const EndpointAdapterToken: InjectionToken<EndpointAdapterService, undefined>;
|
|
482
|
+
declare const EndpointAdapterToken: InjectionToken<EndpointAdapterService, undefined, false>;
|
|
470
483
|
export { EndpointAdapterToken }
|
|
471
484
|
export { EndpointAdapterToken as EndpointAdapterToken_alias_1 }
|
|
472
485
|
export { EndpointAdapterToken as EndpointAdapterToken_alias_2 }
|
|
@@ -478,7 +491,7 @@ export { EndpointMetadataKey as EndpointMetadataKey_alias_2 }
|
|
|
478
491
|
|
|
479
492
|
declare type EndpointParams<EndpointDeclaration extends {
|
|
480
493
|
config: BaseEndpointConfig<any, any, any, any, any>;
|
|
481
|
-
}, Url extends string = EndpointDeclaration['config']['url'], QuerySchema = EndpointDeclaration['config']['querySchema']> = QuerySchema extends AnyZodObject ? EndpointDeclaration['config']['requestSchema'] extends ZodType ? EndpointFunctionArgs<Url, QuerySchema, EndpointDeclaration['config']['requestSchema']
|
|
494
|
+
}, Url extends string = EndpointDeclaration['config']['url'], QuerySchema = EndpointDeclaration['config']['querySchema']> = QuerySchema extends AnyZodObject ? EndpointDeclaration['config']['requestSchema'] extends ZodType ? Util_FlatObject<EndpointFunctionArgs<Url, QuerySchema, EndpointDeclaration['config']['requestSchema'], true>> : Util_FlatObject<EndpointFunctionArgs<Url, QuerySchema, undefined, true>> : EndpointDeclaration['config']['requestSchema'] extends ZodType ? Util_FlatObject<EndpointFunctionArgs<Url, undefined, EndpointDeclaration['config']['requestSchema'], true>> : Util_FlatObject<EndpointFunctionArgs<Url, undefined, undefined, true>>;
|
|
482
495
|
export { EndpointParams }
|
|
483
496
|
export { EndpointParams as EndpointParams_alias_1 }
|
|
484
497
|
export { EndpointParams as EndpointParams_alias_2 }
|
|
@@ -490,6 +503,11 @@ export { EndpointResult }
|
|
|
490
503
|
export { EndpointResult as EndpointResult_alias_1 }
|
|
491
504
|
export { EndpointResult as EndpointResult_alias_2 }
|
|
492
505
|
|
|
506
|
+
declare const EnvConfigProvider: BoundInjectionToken<ConfigService<Record<string, string>>, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
507
|
+
export { EnvConfigProvider }
|
|
508
|
+
export { EnvConfigProvider as EnvConfigProvider_alias_1 }
|
|
509
|
+
export { EnvConfigProvider as EnvConfigProvider_alias_2 }
|
|
510
|
+
|
|
493
511
|
declare function envInt(key: keyof NodeJS.ProcessEnv, defaultValue: number): number;
|
|
494
512
|
export { envInt }
|
|
495
513
|
export { envInt as envInt_alias_1 }
|
|
@@ -542,7 +560,7 @@ export { ExecutionContextInjectionToken }
|
|
|
542
560
|
export { ExecutionContextInjectionToken as ExecutionContextInjectionToken_alias_1 }
|
|
543
561
|
export { ExecutionContextInjectionToken as ExecutionContextInjectionToken_alias_2 }
|
|
544
562
|
|
|
545
|
-
declare const ExecutionContextToken: InjectionToken<ExecutionContext, undefined>;
|
|
563
|
+
declare const ExecutionContextToken: InjectionToken<ExecutionContext, undefined, false>;
|
|
546
564
|
export { ExecutionContextToken }
|
|
547
565
|
export { ExecutionContextToken as ExecutionContextToken_alias_1 }
|
|
548
566
|
export { ExecutionContextToken as ExecutionContextToken_alias_2 }
|
|
@@ -694,6 +712,8 @@ export { InjectionFactory }
|
|
|
694
712
|
|
|
695
713
|
export { InjectionToken }
|
|
696
714
|
|
|
715
|
+
export { InjectionTokenSchemaType }
|
|
716
|
+
|
|
697
717
|
export { Injectors }
|
|
698
718
|
|
|
699
719
|
export { InjectorsBase }
|
|
@@ -821,7 +841,7 @@ declare const Logger: InjectionToken<LoggerInstance, z.ZodOptional<z.ZodObject<{
|
|
|
821
841
|
timestamp?: boolean | undefined;
|
|
822
842
|
} | undefined;
|
|
823
843
|
context?: string | undefined;
|
|
824
|
-
}
|
|
844
|
+
}>>, false>;
|
|
825
845
|
export { Logger }
|
|
826
846
|
export { Logger as Logger_alias_1 }
|
|
827
847
|
export { Logger as Logger_alias_2 }
|
|
@@ -996,7 +1016,7 @@ export { LogLevel as LogLevel_alias_2 }
|
|
|
996
1016
|
|
|
997
1017
|
export { makeProxyServiceLocator }
|
|
998
1018
|
|
|
999
|
-
declare function Module({ controllers, imports, guards }?: ModuleOptions): (target: ClassType, context: ClassDecoratorContext) =>
|
|
1019
|
+
declare function Module({ controllers, imports, guards }?: ModuleOptions): (target: ClassType, context: ClassDecoratorContext) => ClassType;
|
|
1000
1020
|
export { Module }
|
|
1001
1021
|
export { Module as Module_alias_1 }
|
|
1002
1022
|
export { Module as Module_alias_2 }
|
|
@@ -1057,14 +1077,14 @@ export { MultipartAdapterService }
|
|
|
1057
1077
|
export { MultipartAdapterService as MultipartAdapterService_alias_1 }
|
|
1058
1078
|
export { MultipartAdapterService as MultipartAdapterService_alias_2 }
|
|
1059
1079
|
|
|
1060
|
-
declare const MultipartAdapterToken: InjectionToken<MultipartAdapterService, undefined>;
|
|
1080
|
+
declare const MultipartAdapterToken: InjectionToken<MultipartAdapterService, undefined, false>;
|
|
1061
1081
|
export { MultipartAdapterToken }
|
|
1062
1082
|
export { MultipartAdapterToken as MultipartAdapterToken_alias_1 }
|
|
1063
1083
|
export { MultipartAdapterToken as MultipartAdapterToken_alias_2 }
|
|
1064
1084
|
|
|
1065
1085
|
declare type MultipartParams<EndpointDeclaration extends {
|
|
1066
1086
|
config: BaseEndpointConfig<any, any, any, any, any>;
|
|
1067
|
-
}, Url extends string = EndpointDeclaration['config']['url'], QuerySchema = EndpointDeclaration['config']['querySchema']> = QuerySchema extends AnyZodObject ? EndpointDeclaration['config']['requestSchema'] extends ZodType ? EndpointFunctionArgs<Url, QuerySchema, EndpointDeclaration['config']['requestSchema']
|
|
1087
|
+
}, Url extends string = EndpointDeclaration['config']['url'], QuerySchema = EndpointDeclaration['config']['querySchema']> = QuerySchema extends AnyZodObject ? EndpointDeclaration['config']['requestSchema'] extends ZodType ? Util_FlatObject<EndpointFunctionArgs<Url, QuerySchema, EndpointDeclaration['config']['requestSchema'], true>> : Util_FlatObject<EndpointFunctionArgs<Url, QuerySchema, undefined, true>> : EndpointDeclaration['config']['requestSchema'] extends ZodType ? Util_FlatObject<EndpointFunctionArgs<Url, undefined, EndpointDeclaration['config']['requestSchema'], true>> : Util_FlatObject<EndpointFunctionArgs<Url, undefined, undefined, true>>;
|
|
1068
1088
|
export { MultipartParams }
|
|
1069
1089
|
export { MultipartParams as MultipartParams_alias_1 }
|
|
1070
1090
|
export { MultipartParams as MultipartParams_alias_2 }
|
|
@@ -1147,6 +1167,8 @@ export { NotFoundException }
|
|
|
1147
1167
|
export { NotFoundException as NotFoundException_alias_1 }
|
|
1148
1168
|
export { NotFoundException as NotFoundException_alias_2 }
|
|
1149
1169
|
|
|
1170
|
+
export { OptionalInjectionTokenSchemaType }
|
|
1171
|
+
|
|
1150
1172
|
declare type Path<T> = keyof T extends string ? PathImpl2<T> extends infer P ? P extends string | keyof T ? P : keyof T : keyof T : never;
|
|
1151
1173
|
export { Path }
|
|
1152
1174
|
export { Path as Path_alias_1 }
|
|
@@ -1184,13 +1206,7 @@ export { PinoWrapper }
|
|
|
1184
1206
|
export { PinoWrapper as PinoWrapper_alias_1 }
|
|
1185
1207
|
export { PinoWrapper as PinoWrapper_alias_2 }
|
|
1186
1208
|
|
|
1187
|
-
declare function provideConfig<ConfigMap extends
|
|
1188
|
-
load: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>;
|
|
1189
|
-
}, "strip", z.ZodTypeAny, {
|
|
1190
|
-
load: (...args: unknown[]) => unknown;
|
|
1191
|
-
}, {
|
|
1192
|
-
load: (...args: unknown[]) => unknown;
|
|
1193
|
-
}>>;
|
|
1209
|
+
declare function provideConfig<ConfigMap extends ConfigServiceOptions>(options: z.input<typeof ConfigProviderOptions>): FactoryInjectionToken<ConfigService<ConfigMap>, typeof ConfigServiceOptionsSchema>;
|
|
1194
1210
|
export { provideConfig }
|
|
1195
1211
|
export { provideConfig as provideConfig_alias_1 }
|
|
1196
1212
|
export { provideConfig as provideConfig_alias_2 }
|
|
@@ -1201,12 +1217,12 @@ export { ProxyServiceLocator }
|
|
|
1201
1217
|
|
|
1202
1218
|
export { Registry }
|
|
1203
1219
|
|
|
1204
|
-
declare const Reply: InjectionToken<FastifyReply<RouteGenericInterface, RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, unknown, FastifySchema, FastifyTypeProviderDefault, unknown>, undefined>;
|
|
1220
|
+
declare const Reply: InjectionToken<FastifyReply<RouteGenericInterface, RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, unknown, FastifySchema, FastifyTypeProviderDefault, unknown>, undefined, false>;
|
|
1205
1221
|
export { Reply }
|
|
1206
1222
|
export { Reply as Reply_alias_1 }
|
|
1207
1223
|
export { Reply as Reply_alias_2 }
|
|
1208
1224
|
|
|
1209
|
-
declare const Request_2: InjectionToken<FastifyRequest<RouteGenericInterface, RawServerDefault, IncomingMessage, FastifySchema, FastifyTypeProviderDefault, unknown, FastifyBaseLogger, ResolveFastifyRequestType<FastifyTypeProviderDefault, FastifySchema, RouteGenericInterface>>, undefined>;
|
|
1225
|
+
declare const Request_2: InjectionToken<FastifyRequest<RouteGenericInterface, RawServerDefault, IncomingMessage, FastifySchema, FastifyTypeProviderDefault, unknown, FastifyBaseLogger, ResolveFastifyRequestType<FastifyTypeProviderDefault, FastifySchema, RouteGenericInterface>>, undefined, false>;
|
|
1210
1226
|
export { Request_2 as Request }
|
|
1211
1227
|
export { Request_2 as Request_alias_1 }
|
|
1212
1228
|
export { Request_2 as Request_alias_2 }
|
|
@@ -1252,14 +1268,14 @@ export { StreamAdapterService }
|
|
|
1252
1268
|
export { StreamAdapterService as StreamAdapterService_alias_1 }
|
|
1253
1269
|
export { StreamAdapterService as StreamAdapterService_alias_2 }
|
|
1254
1270
|
|
|
1255
|
-
declare const StreamAdapterToken: InjectionToken<StreamAdapterService, undefined>;
|
|
1271
|
+
declare const StreamAdapterToken: InjectionToken<StreamAdapterService, undefined, false>;
|
|
1256
1272
|
export { StreamAdapterToken }
|
|
1257
1273
|
export { StreamAdapterToken as StreamAdapterToken_alias_1 }
|
|
1258
1274
|
export { StreamAdapterToken as StreamAdapterToken_alias_2 }
|
|
1259
1275
|
|
|
1260
1276
|
declare type StreamParams<EndpointDeclaration extends {
|
|
1261
1277
|
config: BaseStreamConfig<any, any, any, any>;
|
|
1262
|
-
}, Url extends string = EndpointDeclaration['config']['url'], QuerySchema = EndpointDeclaration['config']['querySchema']> = QuerySchema extends AnyZodObject ? EndpointDeclaration['config']['requestSchema'] extends ZodType ? EndpointFunctionArgs<Url, QuerySchema, EndpointDeclaration['config']['requestSchema']
|
|
1278
|
+
}, Url extends string = EndpointDeclaration['config']['url'], QuerySchema = EndpointDeclaration['config']['querySchema']> = QuerySchema extends AnyZodObject ? EndpointDeclaration['config']['requestSchema'] extends ZodType ? Util_FlatObject<EndpointFunctionArgs<Url, QuerySchema, EndpointDeclaration['config']['requestSchema'], true>> : Util_FlatObject<EndpointFunctionArgs<Url, QuerySchema, undefined, true>> : EndpointDeclaration['config']['requestSchema'] extends ZodType ? Util_FlatObject<EndpointFunctionArgs<Url, undefined, EndpointDeclaration['config']['requestSchema'], true>> : Util_FlatObject<EndpointFunctionArgs<Url, undefined, undefined, true>>;
|
|
1263
1279
|
export { StreamParams }
|
|
1264
1280
|
export { StreamParams as StreamParams_alias_1 }
|
|
1265
1281
|
export { StreamParams as StreamParams_alias_2 }
|