silgi 0.10.11 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- const version = "0.10.11";
1
+ const version = "0.11.0";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -734,22 +734,22 @@ function traverseObject(silgi, obj, currentPath = []) {
734
734
  return;
735
735
  if (path.length === 4) {
736
736
  const basePath = path.join("/");
737
- let paramString = "";
738
- if (node.router) {
739
- let params = null;
740
- if (node.router?._def?.typeName !== void 0) {
737
+ let pathString = "";
738
+ if (node.pathParams) {
739
+ let paths = null;
740
+ if (node.pathParams?._def?.typeName !== void 0) {
741
741
  try {
742
- const shape = node.router?.shape?.params?.shape;
743
- params = shape ? Object.keys(shape) : null;
742
+ const shape = node.pathParams?.shape;
743
+ paths = shape ? Object.keys(shape) : null;
744
744
  } catch {
745
- params = null;
745
+ paths = null;
746
746
  }
747
747
  }
748
- if (params?.length) {
749
- paramString = params.map((p) => `:${p}`).join("/");
748
+ if (paths?.length) {
749
+ pathString = paths.map((p) => `:${p}`).join("/");
750
750
  }
751
751
  }
752
- uriMap.set(basePath, paramString);
752
+ uriMap.set(basePath, pathString);
753
753
  return;
754
754
  }
755
755
  for (const key in node) {
@@ -1830,16 +1830,18 @@ async function generateRouterDTS(silgi) {
1830
1830
  acc[routePath][method] = {
1831
1831
  input: `ExtractInputFromURI<'${key}'>`,
1832
1832
  output: `ExtractOutputFromURI<'${key}'>`,
1833
- params: `ExtractRouterParamsFromURI<'${key}'>['params']`
1833
+ queryParams: `ExtractQueryParamsFromURI<'${key}'>`,
1834
+ pathParams: `ExtractPathParamsFromURI<'${key}'>`
1834
1835
  };
1835
1836
  return acc;
1836
1837
  }, {});
1837
1838
  const routerTypes = Object.entries(groupedRoutes).map(([path, methods]) => {
1838
- const methodEntries = Object.entries(methods).map(([method, { input, output, params }]) => {
1839
+ const methodEntries = Object.entries(methods).map(([method, { input, output, queryParams, pathParams }]) => {
1839
1840
  return ` '${method}': {
1840
1841
  input: ${input},
1841
- output: ${output}
1842
- params: ${params}
1842
+ output: ${output},
1843
+ queryParams: ${queryParams},
1844
+ pathParams: ${pathParams}
1843
1845
  }`;
1844
1846
  }).join(",\n");
1845
1847
  return ` '/${path}': {
@@ -1857,7 +1859,7 @@ ${methodEntries}
1857
1859
  ...routerTypes
1858
1860
  ].join(",\n");
1859
1861
  const context = [
1860
- "import type { ExtractInputFromURI, ExtractOutputFromURI, ExtractRouterParamsFromURI } from 'silgi/types'",
1862
+ "import type { ExtractInputFromURI, ExtractOutputFromURI, ExtractQueryParamsFromURI, ExtractPathParamsFromURI } from 'silgi/types'",
1861
1863
  "",
1862
1864
  "export interface RouterTypes {",
1863
1865
  content,
@@ -1,5 +1,5 @@
1
1
  import { createConsola } from 'consola';
2
- import defu from 'defu';
2
+ import defu, { defu as defu$1 } from 'defu';
3
3
  import { createHooks } from 'hookable';
4
4
  import { getContext } from 'unctx';
5
5
  import { Buffer } from 'node:buffer';
@@ -589,14 +589,10 @@ async function execute(uriString, input, event, source) {
589
589
  success = cacheData.success;
590
590
  cached = cacheData.cached;
591
591
  } else {
592
- const router = {
593
- params: operation.routerParams,
594
- query: operation.query
595
- };
592
+ const parameters = defu$1(operation.routerParams, operation.query) || {};
596
593
  silgiCtx.shared.silgi = (_event) => silgi(_event || event);
597
594
  result = await handler?.handler(
598
- router,
599
- input,
595
+ defu$1({ parameters }, input),
600
596
  silgiCtx.shared,
601
597
  event,
602
598
  source
@@ -1,4 +1,4 @@
1
- const version = "0.10.11";
1
+ const version = "0.11.0";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -1,4 +1,4 @@
1
- const version = "0.10.11";
1
+ const version = "0.11.0";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -289,7 +289,8 @@ type BaseSchemaType<T extends StandardSchemaV1> = {
289
289
  [Action in BaseSilgiMethodType]?: Record<string, {
290
290
  input?: T;
291
291
  output?: T;
292
- router?: T;
292
+ pathParams?: T;
293
+ queryParams?: T;
293
294
  source?: T;
294
295
  }>;
295
296
  };
@@ -329,18 +330,27 @@ type GetSource<T extends {
329
330
  }> = T['service'] extends keyof SilgiSchema ? T['entity'] extends keyof SilgiSchema[T['service']] ? T['method'] extends keyof SilgiSchema[T['service']][T['entity']] ? T['action'] extends keyof SilgiSchema[T['service']][T['entity']][T['method']] ? SilgiSchema[T['service']][T['entity']][T['method']][T['action']] extends {
330
331
  source: infer I;
331
332
  } ? I : never : never : never : never : never;
332
- type GetRouterParams<T extends {
333
+ type GetQueryParams<T extends {
333
334
  service: string;
334
335
  entity: string;
335
336
  method: string;
336
337
  action: string;
337
338
  }> = T['service'] extends keyof SilgiSchema ? T['entity'] extends keyof SilgiSchema[T['service']] ? T['method'] extends keyof SilgiSchema[T['service']][T['entity']] ? T['action'] extends keyof SilgiSchema[T['service']][T['entity']][T['method']] ? SilgiSchema[T['service']][T['entity']][T['method']][T['action']] extends {
338
- router: infer I;
339
- } ? I extends StandardSchemaV1 ? StandardSchemaV1.InferInput<I> : never : never : never : never : never : never;
339
+ queryParams: infer Q;
340
+ } ? Q : never : never : never : never : never;
341
+ type GetPathParams<T extends {
342
+ service: string;
343
+ entity: string;
344
+ method: string;
345
+ action: string;
346
+ }> = T['service'] extends keyof SilgiSchema ? T['entity'] extends keyof SilgiSchema[T['service']] ? T['method'] extends keyof SilgiSchema[T['service']][T['entity']] ? T['action'] extends keyof SilgiSchema[T['service']][T['entity']][T['method']] ? SilgiSchema[T['service']][T['entity']][T['method']][T['action']] extends {
347
+ pathParams: infer Q;
348
+ } ? Q : never : never : never : never : never;
340
349
  type ExtractInputFromURI<TURI extends keyof SilgiURIs> = GetInput<ExtractPath<TURI>>;
341
350
  type ExtractSourceFromURI<TURI extends keyof SilgiURIs> = GetSource<ExtractPath<TURI>>;
342
351
  type ExtractOutputFromURI<TURI extends keyof SilgiURIs> = GetOutput<ExtractPath<TURI>>;
343
- type ExtractRouterParamsFromURI<TURI extends keyof SilgiURIs> = GetRouterParams<ExtractPath<TURI>>;
352
+ type ExtractQueryParamsFromURI<TURI extends keyof SilgiURIs> = GetQueryParams<ExtractPath<TURI>>;
353
+ type ExtractPathParamsFromURI<TURI extends keyof SilgiURIs> = GetPathParams<ExtractPath<TURI>>;
344
354
 
345
355
  /**
346
356
  * @example
@@ -798,7 +808,14 @@ type SilgiServiceInterface<T extends BaseSchemaType<StandardSchemaV1>> = {
798
808
  [Method in keyof T[Action]]: {
799
809
  input: T[Action][Method]['input'];
800
810
  output: T[Action][Method]['output'];
801
- router: T[Action][Method]['router'];
811
+ /**
812
+ * Example: /api/v1/users/{id}/{name}/{surname}
813
+ */
814
+ pathParams: T[Action][Method]['pathParams'];
815
+ /**
816
+ * Example: /api/v1/users?name=ali&surname=veli
817
+ */
818
+ queryParams: T[Action][Method]['queryParams'];
802
819
  source: T[Action][Method]['source'];
803
820
  };
804
821
  } : never;
@@ -906,11 +923,15 @@ type MethodHandlerType<T> = {
906
923
  [Action in keyof T]: T[Action] extends Record<string, any> ? {
907
924
  [Method in keyof T[Action]]?: {
908
925
  default?: {
909
- input?: StandardSchemaV1.InferInput<T[Action][Method]['input']>;
926
+ input?: StandardSchemaV1.InferInput<T[Action][Method]['input']> & {
927
+ parameters: StandardSchemaV1.InferInput<T[Action][Method]['pathParams']> & StandardSchemaV1.InferInput<T[Action][Method]['queryParams']>;
928
+ };
910
929
  output?: StandardSchemaV1.InferInput<T[Action][Method]['output']>;
911
930
  source?: StandardSchemaV1.InferInput<T[Action][Method]['source']>;
912
931
  };
913
- handler: (router: StandardSchemaV1.InferInput<T[Action][Method]['router']>, input: StandardSchemaV1.InferInput<T[Action][Method]['input']>, shared: SilgiRuntimeShareds, event: SilgiEvents, source: StandardSchemaV1.InferInput<T[Action][Method]['source']>) => EventHandlerResponse<StandardSchemaV1.InferOutput<T[Action][Method]['output']>>;
932
+ handler: (input: StandardSchemaV1.InferInput<T[Action][Method]['input']> & {
933
+ parameters: StandardSchemaV1.InferInput<T[Action][Method]['pathParams']> & StandardSchemaV1.InferInput<T[Action][Method]['queryParams']>;
934
+ }, shared: SilgiRuntimeShareds, event: SilgiEvents, source: StandardSchemaV1.InferInput<T[Action][Method]['source']>) => EventHandlerResponse<StandardSchemaV1.InferOutput<T[Action][Method]['output']>>;
914
935
  modules?: Partial<SilgiRuntimeActions>;
915
936
  storage?: StorageConfig<T[Action][Method]['input']>;
916
937
  };
@@ -919,7 +940,9 @@ type MethodHandlerType<T> = {
919
940
  interface ResolvedMethodHandlerType {
920
941
  input?: Partial<BaseSchemaType<any>>;
921
942
  output: Partial<BaseSchemaType<any>>;
922
- handler: (router: StandardSchemaV1.InferInput<any>, input: StandardSchemaV1.InferInput<any>, shared: SilgiRuntimeShareds, event: SilgiEvents, source: StandardSchemaV1.InferInput<any>) => Promise<StandardSchemaV1.InferInput<any>>;
943
+ handler: (input: StandardSchemaV1.InferInput<any> & {
944
+ parameters: any;
945
+ }, shared: SilgiRuntimeShareds, event: SilgiEvents, source: StandardSchemaV1.InferInput<any>) => Promise<StandardSchemaV1.InferInput<any>>;
923
946
  modules?: Partial<SilgiRuntimeActions>;
924
947
  storage?: StorageConfig<StandardSchemaV1.InferInput<any>>;
925
948
  execute: (input: StandardSchemaV1.InferInput<any>, shared: SilgiRuntimeShareds, event: SilgiEvents, source: StandardSchemaV1.InferInput<any>) => Promise<StandardSchemaV1.InferInput<any>>;
@@ -956,7 +979,7 @@ interface SilgiRuntimeHooks {
956
979
  interface SilgiOptions {
957
980
  consolaOptions?: Partial<ConsolaOptions>;
958
981
  present: PresetNameInput;
959
- hooks: SilgiRuntimeHooks & DefaultHooks;
982
+ hooks: Partial<SilgiRuntimeHooks & DefaultHooks>;
960
983
  /**
961
984
  * Set to `true` to enable debug mode.
962
985
  *
@@ -1024,4 +1047,4 @@ type Namespaces<T extends BaseNamespaceType> = {
1024
1047
 
1025
1048
  declare const autoImportTypes: string[];
1026
1049
 
1027
- export { type AppConfig, type Awaitable, type BaseNamespaceType, type BaseSchemaType, type BaseSilgiMethodType, type CaptureError, type CapturedErrorContext, type CommandType, type CreateScope, type DeepPartial, type DefaultHooks, type DefaultNamespaces, type DotenvOptions, type EnvOptions, type EventHandlerResponse, type ExtendContext, type ExtendShared, type ExtractInputFromURI, type ExtractOutputFromURI, type ExtractRouterParamsFromURI, type ExtractSourceFromURI, type FrameworkContext, type GenerateAppOptions, type GraphQLJSON, type HookResult, type ImportItem, type LoadConfigOptions, type MergedSilgiSchema, type MethodHandlerType, type ModuleDefinition, type ModuleHookContext, type ModuleMeta, type ModuleOptionsCustom, type ModuleSetupInstallResult, type ModuleSetupReturn, type Namespaces, type NitroBuildInfo, type PrepareCore, type RequiredServiceType, type ResolvedMethodHandlerType, type ResolvedModuleMeta, type ResolvedModuleOptions, type ResolvedServiceType, type ResolvedSilgiTemplate, type ScanFile, type SchemaPreparationOptions, type ServiceType, type Silgi, type SilgiAppPlugin, type SilgiCLI, type SilgiCLIConfig, type SilgiCLIDynamicConfig, type SilgiCLIHooks, type SilgiCLIOptions, type SilgiCompatibility, type SilgiCompatibilityIssue, type SilgiCompatibilityIssues, type SilgiConfig, type SilgiEvents, type SilgiFrameworkInfo, type SilgiFunction, type SilgiHooks, type SilgiModule, type SilgiModuleInput, type SilgiModuleOptions, type SilgiNamespaces, type SilgiOperation, type SilgiOptions, type SilgiPreset, type SilgiPresetMeta, type SilgiRouterTypes, type SilgiRuntimeActions, type SilgiRuntimeContext, type SilgiRuntimeHooks, type SilgiRuntimeMethods, type SilgiRuntimeOptions, type SilgiRuntimeSharedExtends, type SilgiRuntimeShareds, type SilgiSchema, type SilgiServiceInterface, type SilgiStorageBase, type SilgiTemplate, type SilgiURIs, type StorageConfig, type StorageKeyGenerator, type StorageKeyParams, type StorageMounts, type TSReference, type URIsTypes, autoImportTypes };
1050
+ export { type AppConfig, type Awaitable, type BaseNamespaceType, type BaseSchemaType, type BaseSilgiMethodType, type CaptureError, type CapturedErrorContext, type CommandType, type CreateScope, type DeepPartial, type DefaultHooks, type DefaultNamespaces, type DotenvOptions, type EnvOptions, type EventHandlerResponse, type ExtendContext, type ExtendShared, type ExtractInputFromURI, type ExtractOutputFromURI, type ExtractPathParamsFromURI, type ExtractQueryParamsFromURI, type ExtractSourceFromURI, type FrameworkContext, type GenerateAppOptions, type GraphQLJSON, type HookResult, type ImportItem, type LoadConfigOptions, type MergedSilgiSchema, type MethodHandlerType, type ModuleDefinition, type ModuleHookContext, type ModuleMeta, type ModuleOptionsCustom, type ModuleSetupInstallResult, type ModuleSetupReturn, type Namespaces, type NitroBuildInfo, type PrepareCore, type RequiredServiceType, type ResolvedMethodHandlerType, type ResolvedModuleMeta, type ResolvedModuleOptions, type ResolvedServiceType, type ResolvedSilgiTemplate, type ScanFile, type SchemaPreparationOptions, type ServiceType, type Silgi, type SilgiAppPlugin, type SilgiCLI, type SilgiCLIConfig, type SilgiCLIDynamicConfig, type SilgiCLIHooks, type SilgiCLIOptions, type SilgiCompatibility, type SilgiCompatibilityIssue, type SilgiCompatibilityIssues, type SilgiConfig, type SilgiEvents, type SilgiFrameworkInfo, type SilgiFunction, type SilgiHooks, type SilgiModule, type SilgiModuleInput, type SilgiModuleOptions, type SilgiNamespaces, type SilgiOperation, type SilgiOptions, type SilgiPreset, type SilgiPresetMeta, type SilgiRouterTypes, type SilgiRuntimeActions, type SilgiRuntimeContext, type SilgiRuntimeHooks, type SilgiRuntimeMethods, type SilgiRuntimeOptions, type SilgiRuntimeSharedExtends, type SilgiRuntimeShareds, type SilgiSchema, type SilgiServiceInterface, type SilgiStorageBase, type SilgiTemplate, type SilgiURIs, type StorageConfig, type StorageKeyGenerator, type StorageKeyParams, type StorageMounts, type TSReference, type URIsTypes, autoImportTypes };
@@ -289,7 +289,8 @@ type BaseSchemaType<T extends StandardSchemaV1> = {
289
289
  [Action in BaseSilgiMethodType]?: Record<string, {
290
290
  input?: T;
291
291
  output?: T;
292
- router?: T;
292
+ pathParams?: T;
293
+ queryParams?: T;
293
294
  source?: T;
294
295
  }>;
295
296
  };
@@ -329,18 +330,27 @@ type GetSource<T extends {
329
330
  }> = T['service'] extends keyof SilgiSchema ? T['entity'] extends keyof SilgiSchema[T['service']] ? T['method'] extends keyof SilgiSchema[T['service']][T['entity']] ? T['action'] extends keyof SilgiSchema[T['service']][T['entity']][T['method']] ? SilgiSchema[T['service']][T['entity']][T['method']][T['action']] extends {
330
331
  source: infer I;
331
332
  } ? I : never : never : never : never : never;
332
- type GetRouterParams<T extends {
333
+ type GetQueryParams<T extends {
333
334
  service: string;
334
335
  entity: string;
335
336
  method: string;
336
337
  action: string;
337
338
  }> = T['service'] extends keyof SilgiSchema ? T['entity'] extends keyof SilgiSchema[T['service']] ? T['method'] extends keyof SilgiSchema[T['service']][T['entity']] ? T['action'] extends keyof SilgiSchema[T['service']][T['entity']][T['method']] ? SilgiSchema[T['service']][T['entity']][T['method']][T['action']] extends {
338
- router: infer I;
339
- } ? I extends StandardSchemaV1 ? StandardSchemaV1.InferInput<I> : never : never : never : never : never : never;
339
+ queryParams: infer Q;
340
+ } ? Q : never : never : never : never : never;
341
+ type GetPathParams<T extends {
342
+ service: string;
343
+ entity: string;
344
+ method: string;
345
+ action: string;
346
+ }> = T['service'] extends keyof SilgiSchema ? T['entity'] extends keyof SilgiSchema[T['service']] ? T['method'] extends keyof SilgiSchema[T['service']][T['entity']] ? T['action'] extends keyof SilgiSchema[T['service']][T['entity']][T['method']] ? SilgiSchema[T['service']][T['entity']][T['method']][T['action']] extends {
347
+ pathParams: infer Q;
348
+ } ? Q : never : never : never : never : never;
340
349
  type ExtractInputFromURI<TURI extends keyof SilgiURIs> = GetInput<ExtractPath<TURI>>;
341
350
  type ExtractSourceFromURI<TURI extends keyof SilgiURIs> = GetSource<ExtractPath<TURI>>;
342
351
  type ExtractOutputFromURI<TURI extends keyof SilgiURIs> = GetOutput<ExtractPath<TURI>>;
343
- type ExtractRouterParamsFromURI<TURI extends keyof SilgiURIs> = GetRouterParams<ExtractPath<TURI>>;
352
+ type ExtractQueryParamsFromURI<TURI extends keyof SilgiURIs> = GetQueryParams<ExtractPath<TURI>>;
353
+ type ExtractPathParamsFromURI<TURI extends keyof SilgiURIs> = GetPathParams<ExtractPath<TURI>>;
344
354
 
345
355
  /**
346
356
  * @example
@@ -798,7 +808,14 @@ type SilgiServiceInterface<T extends BaseSchemaType<StandardSchemaV1>> = {
798
808
  [Method in keyof T[Action]]: {
799
809
  input: T[Action][Method]['input'];
800
810
  output: T[Action][Method]['output'];
801
- router: T[Action][Method]['router'];
811
+ /**
812
+ * Example: /api/v1/users/{id}/{name}/{surname}
813
+ */
814
+ pathParams: T[Action][Method]['pathParams'];
815
+ /**
816
+ * Example: /api/v1/users?name=ali&surname=veli
817
+ */
818
+ queryParams: T[Action][Method]['queryParams'];
802
819
  source: T[Action][Method]['source'];
803
820
  };
804
821
  } : never;
@@ -906,11 +923,15 @@ type MethodHandlerType<T> = {
906
923
  [Action in keyof T]: T[Action] extends Record<string, any> ? {
907
924
  [Method in keyof T[Action]]?: {
908
925
  default?: {
909
- input?: StandardSchemaV1.InferInput<T[Action][Method]['input']>;
926
+ input?: StandardSchemaV1.InferInput<T[Action][Method]['input']> & {
927
+ parameters: StandardSchemaV1.InferInput<T[Action][Method]['pathParams']> & StandardSchemaV1.InferInput<T[Action][Method]['queryParams']>;
928
+ };
910
929
  output?: StandardSchemaV1.InferInput<T[Action][Method]['output']>;
911
930
  source?: StandardSchemaV1.InferInput<T[Action][Method]['source']>;
912
931
  };
913
- handler: (router: StandardSchemaV1.InferInput<T[Action][Method]['router']>, input: StandardSchemaV1.InferInput<T[Action][Method]['input']>, shared: SilgiRuntimeShareds, event: SilgiEvents, source: StandardSchemaV1.InferInput<T[Action][Method]['source']>) => EventHandlerResponse<StandardSchemaV1.InferOutput<T[Action][Method]['output']>>;
932
+ handler: (input: StandardSchemaV1.InferInput<T[Action][Method]['input']> & {
933
+ parameters: StandardSchemaV1.InferInput<T[Action][Method]['pathParams']> & StandardSchemaV1.InferInput<T[Action][Method]['queryParams']>;
934
+ }, shared: SilgiRuntimeShareds, event: SilgiEvents, source: StandardSchemaV1.InferInput<T[Action][Method]['source']>) => EventHandlerResponse<StandardSchemaV1.InferOutput<T[Action][Method]['output']>>;
914
935
  modules?: Partial<SilgiRuntimeActions>;
915
936
  storage?: StorageConfig<T[Action][Method]['input']>;
916
937
  };
@@ -919,7 +940,9 @@ type MethodHandlerType<T> = {
919
940
  interface ResolvedMethodHandlerType {
920
941
  input?: Partial<BaseSchemaType<any>>;
921
942
  output: Partial<BaseSchemaType<any>>;
922
- handler: (router: StandardSchemaV1.InferInput<any>, input: StandardSchemaV1.InferInput<any>, shared: SilgiRuntimeShareds, event: SilgiEvents, source: StandardSchemaV1.InferInput<any>) => Promise<StandardSchemaV1.InferInput<any>>;
943
+ handler: (input: StandardSchemaV1.InferInput<any> & {
944
+ parameters: any;
945
+ }, shared: SilgiRuntimeShareds, event: SilgiEvents, source: StandardSchemaV1.InferInput<any>) => Promise<StandardSchemaV1.InferInput<any>>;
923
946
  modules?: Partial<SilgiRuntimeActions>;
924
947
  storage?: StorageConfig<StandardSchemaV1.InferInput<any>>;
925
948
  execute: (input: StandardSchemaV1.InferInput<any>, shared: SilgiRuntimeShareds, event: SilgiEvents, source: StandardSchemaV1.InferInput<any>) => Promise<StandardSchemaV1.InferInput<any>>;
@@ -956,7 +979,7 @@ interface SilgiRuntimeHooks {
956
979
  interface SilgiOptions {
957
980
  consolaOptions?: Partial<ConsolaOptions>;
958
981
  present: PresetNameInput;
959
- hooks: SilgiRuntimeHooks & DefaultHooks;
982
+ hooks: Partial<SilgiRuntimeHooks & DefaultHooks>;
960
983
  /**
961
984
  * Set to `true` to enable debug mode.
962
985
  *
@@ -1024,4 +1047,4 @@ type Namespaces<T extends BaseNamespaceType> = {
1024
1047
 
1025
1048
  declare const autoImportTypes: string[];
1026
1049
 
1027
- export { type AppConfig, type Awaitable, type BaseNamespaceType, type BaseSchemaType, type BaseSilgiMethodType, type CaptureError, type CapturedErrorContext, type CommandType, type CreateScope, type DeepPartial, type DefaultHooks, type DefaultNamespaces, type DotenvOptions, type EnvOptions, type EventHandlerResponse, type ExtendContext, type ExtendShared, type ExtractInputFromURI, type ExtractOutputFromURI, type ExtractRouterParamsFromURI, type ExtractSourceFromURI, type FrameworkContext, type GenerateAppOptions, type GraphQLJSON, type HookResult, type ImportItem, type LoadConfigOptions, type MergedSilgiSchema, type MethodHandlerType, type ModuleDefinition, type ModuleHookContext, type ModuleMeta, type ModuleOptionsCustom, type ModuleSetupInstallResult, type ModuleSetupReturn, type Namespaces, type NitroBuildInfo, type PrepareCore, type RequiredServiceType, type ResolvedMethodHandlerType, type ResolvedModuleMeta, type ResolvedModuleOptions, type ResolvedServiceType, type ResolvedSilgiTemplate, type ScanFile, type SchemaPreparationOptions, type ServiceType, type Silgi, type SilgiAppPlugin, type SilgiCLI, type SilgiCLIConfig, type SilgiCLIDynamicConfig, type SilgiCLIHooks, type SilgiCLIOptions, type SilgiCompatibility, type SilgiCompatibilityIssue, type SilgiCompatibilityIssues, type SilgiConfig, type SilgiEvents, type SilgiFrameworkInfo, type SilgiFunction, type SilgiHooks, type SilgiModule, type SilgiModuleInput, type SilgiModuleOptions, type SilgiNamespaces, type SilgiOperation, type SilgiOptions, type SilgiPreset, type SilgiPresetMeta, type SilgiRouterTypes, type SilgiRuntimeActions, type SilgiRuntimeContext, type SilgiRuntimeHooks, type SilgiRuntimeMethods, type SilgiRuntimeOptions, type SilgiRuntimeSharedExtends, type SilgiRuntimeShareds, type SilgiSchema, type SilgiServiceInterface, type SilgiStorageBase, type SilgiTemplate, type SilgiURIs, type StorageConfig, type StorageKeyGenerator, type StorageKeyParams, type StorageMounts, type TSReference, type URIsTypes, autoImportTypes };
1050
+ export { type AppConfig, type Awaitable, type BaseNamespaceType, type BaseSchemaType, type BaseSilgiMethodType, type CaptureError, type CapturedErrorContext, type CommandType, type CreateScope, type DeepPartial, type DefaultHooks, type DefaultNamespaces, type DotenvOptions, type EnvOptions, type EventHandlerResponse, type ExtendContext, type ExtendShared, type ExtractInputFromURI, type ExtractOutputFromURI, type ExtractPathParamsFromURI, type ExtractQueryParamsFromURI, type ExtractSourceFromURI, type FrameworkContext, type GenerateAppOptions, type GraphQLJSON, type HookResult, type ImportItem, type LoadConfigOptions, type MergedSilgiSchema, type MethodHandlerType, type ModuleDefinition, type ModuleHookContext, type ModuleMeta, type ModuleOptionsCustom, type ModuleSetupInstallResult, type ModuleSetupReturn, type Namespaces, type NitroBuildInfo, type PrepareCore, type RequiredServiceType, type ResolvedMethodHandlerType, type ResolvedModuleMeta, type ResolvedModuleOptions, type ResolvedServiceType, type ResolvedSilgiTemplate, type ScanFile, type SchemaPreparationOptions, type ServiceType, type Silgi, type SilgiAppPlugin, type SilgiCLI, type SilgiCLIConfig, type SilgiCLIDynamicConfig, type SilgiCLIHooks, type SilgiCLIOptions, type SilgiCompatibility, type SilgiCompatibilityIssue, type SilgiCompatibilityIssues, type SilgiConfig, type SilgiEvents, type SilgiFrameworkInfo, type SilgiFunction, type SilgiHooks, type SilgiModule, type SilgiModuleInput, type SilgiModuleOptions, type SilgiNamespaces, type SilgiOperation, type SilgiOptions, type SilgiPreset, type SilgiPresetMeta, type SilgiRouterTypes, type SilgiRuntimeActions, type SilgiRuntimeContext, type SilgiRuntimeHooks, type SilgiRuntimeMethods, type SilgiRuntimeOptions, type SilgiRuntimeSharedExtends, type SilgiRuntimeShareds, type SilgiSchema, type SilgiServiceInterface, type SilgiStorageBase, type SilgiTemplate, type SilgiURIs, type StorageConfig, type StorageKeyGenerator, type StorageKeyParams, type StorageMounts, type TSReference, type URIsTypes, autoImportTypes };
@@ -1,7 +1,8 @@
1
1
  const autoImportTypes = [
2
2
  "ExtractInputFromURI",
3
3
  "ExtractOutputFromURI",
4
- "ExtractRouterParamsFromURI"
4
+ "ExtractPathParamsFromURI",
5
+ "ExtractQueryParamsFromURI"
5
6
  ];
6
7
 
7
8
  export { autoImportTypes };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.10.11",
4
+ "version": "0.11.0",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {