silgi 0.20.25 → 0.20.27
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/_chunks/index.mjs +1 -1
- package/dist/cli/common.mjs +19 -48
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/dist/types/index.d.mts +73 -74
- package/dist/types/index.d.ts +73 -74
- package/package.json +1 -1
package/dist/_chunks/index.mjs
CHANGED
package/dist/cli/common.mjs
CHANGED
|
@@ -914,43 +914,40 @@ async function prepareServerFiles(silgi) {
|
|
|
914
914
|
schemas: [],
|
|
915
915
|
modulesURIs: {},
|
|
916
916
|
customImports: [],
|
|
917
|
-
importItems
|
|
917
|
+
importItems
|
|
918
918
|
};
|
|
919
919
|
if (silgi.uris) {
|
|
920
|
-
scanned.uris
|
|
920
|
+
defu$1(scanned.uris, silgi.uris);
|
|
921
921
|
}
|
|
922
922
|
if (silgi.modulesURIs) {
|
|
923
|
-
scanned.modulesURIs
|
|
923
|
+
defu$1(scanned.modulesURIs, silgi.modulesURIs);
|
|
924
924
|
}
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
925
|
+
await silgi.callHook("prepare:scan.ts", scanned);
|
|
926
|
+
scanned.services = [...new Set(scanned.services)];
|
|
927
|
+
scanned.shareds = [...new Set(scanned.shareds)];
|
|
928
|
+
scanned.schemas = [...new Set(scanned.schemas)];
|
|
929
|
+
scanned.customImports = [...new Set(scanned.customImports)];
|
|
930
|
+
if (importItems["#silgi/vfs"].import.length === 0) {
|
|
931
|
+
delete importItems["#silgi/vfs"];
|
|
930
932
|
}
|
|
931
933
|
if (scanned.services.length > 0) {
|
|
932
|
-
|
|
934
|
+
importItems.silgi.import.push({ name: "mergeServices", key: "mergeServices" });
|
|
933
935
|
}
|
|
934
936
|
if (scanned.shareds.length > 0) {
|
|
935
|
-
|
|
937
|
+
importItems.silgi.import.push({ name: "mergeShared", key: "mergeShared" });
|
|
936
938
|
}
|
|
937
939
|
if (scanned.schemas.length > 0) {
|
|
938
|
-
|
|
940
|
+
importItems.silgi.import.push({ name: "mergeSchemas", key: "mergeSchemas" });
|
|
939
941
|
}
|
|
940
|
-
for (const key in
|
|
941
|
-
|
|
942
|
+
for (const key in importItems) {
|
|
943
|
+
importItems[key].import = deduplicateImportsByKey(importItems[key].import);
|
|
942
944
|
}
|
|
943
|
-
scanned.services = deduplicateArray(scanned.services);
|
|
944
|
-
scanned.schemas = deduplicateArray(scanned.schemas);
|
|
945
|
-
scanned.shareds = deduplicateArray(scanned.shareds);
|
|
946
|
-
scanned.customImports = deduplicateArray(scanned.customImports);
|
|
947
945
|
const importsContent = [
|
|
948
|
-
...Object.entries(
|
|
949
|
-
let fromPath = from;
|
|
946
|
+
...Object.entries(importItems).map(([_name, { from, import: imports }]) => {
|
|
950
947
|
if (silgi.options.typescript.removeFileExtension) {
|
|
951
|
-
|
|
948
|
+
from = from.replace(/\.(js|ts|mjs|cjs|jsx|tsx)$/, "");
|
|
952
949
|
}
|
|
953
|
-
return `import { ${imports.map(({ type, name }) => type ? `type ${name}` : name).join(", ")} } from '${
|
|
950
|
+
return `import { ${imports.map(({ type, name }) => type ? `type ${name}` : name).join(", ")} } from '${from}'`;
|
|
954
951
|
}),
|
|
955
952
|
"",
|
|
956
953
|
...scanned.customImports,
|
|
@@ -980,10 +977,7 @@ async function prepareServerFiles(silgi) {
|
|
|
980
977
|
scanned.shareds.length > 0 ? "])" : "}",
|
|
981
978
|
""
|
|
982
979
|
];
|
|
983
|
-
|
|
984
|
-
await silgi.callHook("after:prepare:scan.ts", afterHookData);
|
|
985
|
-
importData.length = 0;
|
|
986
|
-
importData.push(...afterHookData);
|
|
980
|
+
await silgi.callHook("after:prepare:scan.ts", importData);
|
|
987
981
|
importData.unshift(...importsContent);
|
|
988
982
|
return importData;
|
|
989
983
|
}
|
|
@@ -997,9 +991,6 @@ function deduplicateImportsByKey(imports) {
|
|
|
997
991
|
return true;
|
|
998
992
|
});
|
|
999
993
|
}
|
|
1000
|
-
function deduplicateArray(array) {
|
|
1001
|
-
return [...new Set(array)];
|
|
1002
|
-
}
|
|
1003
994
|
|
|
1004
995
|
async function writeScanFiles(silgi) {
|
|
1005
996
|
const data = await prepareServerFiles(silgi);
|
|
@@ -2163,26 +2154,6 @@ async function prepareSchema(silgi) {
|
|
|
2163
2154
|
routeRules: [],
|
|
2164
2155
|
routeRulesConfig: []
|
|
2165
2156
|
};
|
|
2166
|
-
function reset() {
|
|
2167
|
-
data.options = [];
|
|
2168
|
-
data.contexts = [];
|
|
2169
|
-
data.actions = [];
|
|
2170
|
-
data.shareds = [
|
|
2171
|
-
{
|
|
2172
|
-
key: "modulesURIs",
|
|
2173
|
-
value: "{ modulesURIs: typeof modulesURIs }"
|
|
2174
|
-
}
|
|
2175
|
-
];
|
|
2176
|
-
data.events = [];
|
|
2177
|
-
data.storeBase = [];
|
|
2178
|
-
data.hooks = [];
|
|
2179
|
-
data.runtimeHooks = [];
|
|
2180
|
-
data.runtimeOptions = [];
|
|
2181
|
-
data.methods = [];
|
|
2182
|
-
data.routeRules = [];
|
|
2183
|
-
data.routeRulesConfig = [];
|
|
2184
|
-
}
|
|
2185
|
-
reset();
|
|
2186
2157
|
await silgi.callHook("prepare:schema.ts", data);
|
|
2187
2158
|
relativeWithDot(silgi.options.build.typesDir, `${silgi.options.silgi.serverDir}/core.ts`);
|
|
2188
2159
|
const silgiScanTS = relativeWithDot(silgi.options.build.typesDir, `${silgi.options.silgi.serverDir}/scan.ts`);
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
package/dist/types/index.d.mts
CHANGED
|
@@ -149,78 +149,6 @@ interface ResolvedSilgiTemplate<Options = TemplateDefaultOptions> extends SilgiT
|
|
|
149
149
|
modified?: boolean;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
type TSReference = {
|
|
153
|
-
types: string;
|
|
154
|
-
} | {
|
|
155
|
-
path: string;
|
|
156
|
-
};
|
|
157
|
-
interface SilgiHooks {
|
|
158
|
-
}
|
|
159
|
-
interface GenerateAppOptions {
|
|
160
|
-
filter?: (template: ResolvedSilgiTemplate<any>) => boolean;
|
|
161
|
-
}
|
|
162
|
-
interface PrepareCore extends ImportItem {
|
|
163
|
-
buildSilgiExtraContent: string[];
|
|
164
|
-
beforeBuildSilgiExtraContent: {
|
|
165
|
-
value: string;
|
|
166
|
-
type: 'function' | 'variable';
|
|
167
|
-
}[];
|
|
168
|
-
afterCliOptions: string[];
|
|
169
|
-
_silgiConfigs: any[];
|
|
170
|
-
}
|
|
171
|
-
interface SchemaPreparationOptions extends ImportItem {
|
|
172
|
-
options: {
|
|
173
|
-
key: string;
|
|
174
|
-
value: string;
|
|
175
|
-
}[];
|
|
176
|
-
runtimeOptions: {
|
|
177
|
-
key: string;
|
|
178
|
-
value: string;
|
|
179
|
-
}[];
|
|
180
|
-
methods: {
|
|
181
|
-
key: string;
|
|
182
|
-
value: string;
|
|
183
|
-
}[];
|
|
184
|
-
routeRules: {
|
|
185
|
-
key: string;
|
|
186
|
-
value: string;
|
|
187
|
-
}[];
|
|
188
|
-
routeRulesConfig: {
|
|
189
|
-
key: string;
|
|
190
|
-
value: string;
|
|
191
|
-
}[];
|
|
192
|
-
contexts: {
|
|
193
|
-
key: string;
|
|
194
|
-
value: string;
|
|
195
|
-
}[];
|
|
196
|
-
actions: {
|
|
197
|
-
key: string;
|
|
198
|
-
value: string;
|
|
199
|
-
}[];
|
|
200
|
-
shareds: {
|
|
201
|
-
key: string;
|
|
202
|
-
value: string;
|
|
203
|
-
}[];
|
|
204
|
-
events: {
|
|
205
|
-
key: string;
|
|
206
|
-
value: string;
|
|
207
|
-
/**
|
|
208
|
-
* Extend olursa key value interface icine eklenmez.
|
|
209
|
-
* interface SilgiModuleEventsExtends extends SilgiEvents {}
|
|
210
|
-
*/
|
|
211
|
-
extends?: boolean;
|
|
212
|
-
isSilgiContext?: boolean;
|
|
213
|
-
}[];
|
|
214
|
-
storeBase: string[];
|
|
215
|
-
hooks: {
|
|
216
|
-
key: string;
|
|
217
|
-
value: string;
|
|
218
|
-
}[];
|
|
219
|
-
runtimeHooks: {
|
|
220
|
-
key: string;
|
|
221
|
-
value: string;
|
|
222
|
-
}[];
|
|
223
|
-
}
|
|
224
152
|
interface SilgiCLIHooks extends SilgiHooks {
|
|
225
153
|
/**
|
|
226
154
|
* Called after Silgi initialization, when the Silgi instance is ready to work.
|
|
@@ -269,7 +197,59 @@ interface SilgiCLIHooks extends SilgiHooks {
|
|
|
269
197
|
modulesURIs: Record<string, string>;
|
|
270
198
|
}) => HookResult;
|
|
271
199
|
'after:prepare:scan.ts': (content: string[]) => HookResult;
|
|
272
|
-
'prepare:schema.ts': (options:
|
|
200
|
+
'prepare:schema.ts': (options: {
|
|
201
|
+
options: {
|
|
202
|
+
key: string;
|
|
203
|
+
value: string;
|
|
204
|
+
}[];
|
|
205
|
+
runtimeOptions: {
|
|
206
|
+
key: string;
|
|
207
|
+
value: string;
|
|
208
|
+
}[];
|
|
209
|
+
methods: {
|
|
210
|
+
key: string;
|
|
211
|
+
value: string;
|
|
212
|
+
}[];
|
|
213
|
+
routeRules: {
|
|
214
|
+
key: string;
|
|
215
|
+
value: string;
|
|
216
|
+
}[];
|
|
217
|
+
routeRulesConfig: {
|
|
218
|
+
key: string;
|
|
219
|
+
value: string;
|
|
220
|
+
}[];
|
|
221
|
+
contexts: {
|
|
222
|
+
key: string;
|
|
223
|
+
value: string;
|
|
224
|
+
}[];
|
|
225
|
+
actions: {
|
|
226
|
+
key: string;
|
|
227
|
+
value: string;
|
|
228
|
+
}[];
|
|
229
|
+
shareds: {
|
|
230
|
+
key: string;
|
|
231
|
+
value: string;
|
|
232
|
+
}[];
|
|
233
|
+
events: {
|
|
234
|
+
key: string;
|
|
235
|
+
value: string;
|
|
236
|
+
/**
|
|
237
|
+
* If extends is true, it won't be added to the key value interface.
|
|
238
|
+
* interface SilgiModuleEventsExtends extends SilgiEvents {}
|
|
239
|
+
*/
|
|
240
|
+
extends?: boolean;
|
|
241
|
+
isSilgiContext?: boolean;
|
|
242
|
+
}[];
|
|
243
|
+
storeBase: string[];
|
|
244
|
+
hooks: {
|
|
245
|
+
key: string;
|
|
246
|
+
value: string;
|
|
247
|
+
}[];
|
|
248
|
+
runtimeHooks: {
|
|
249
|
+
key: string;
|
|
250
|
+
value: string;
|
|
251
|
+
}[];
|
|
252
|
+
} & ImportItem) => HookResult;
|
|
273
253
|
'after:prepare:schema.ts': (content: string[]) => HookResult;
|
|
274
254
|
'prepare:framework.d.ts': (options: {} & ImportItem) => HookResult;
|
|
275
255
|
'prepare:configs.ts': (cliOptions: Record<string, any>) => HookResult;
|
|
@@ -289,6 +269,25 @@ interface SilgiCLIHooks extends SilgiHooks {
|
|
|
289
269
|
'prepare:commands': (commands: SilgiCLI['commands']) => HookResult;
|
|
290
270
|
'prepare:installPackages': (packages: Record<'dependencies' | 'devDependencies', Record<string, string>>) => HookResult;
|
|
291
271
|
}
|
|
272
|
+
type TSReference = {
|
|
273
|
+
types: string;
|
|
274
|
+
} | {
|
|
275
|
+
path: string;
|
|
276
|
+
};
|
|
277
|
+
interface SilgiHooks {
|
|
278
|
+
}
|
|
279
|
+
interface GenerateAppOptions {
|
|
280
|
+
filter?: (template: ResolvedSilgiTemplate<any>) => boolean;
|
|
281
|
+
}
|
|
282
|
+
interface PrepareCore extends ImportItem {
|
|
283
|
+
buildSilgiExtraContent: string[];
|
|
284
|
+
beforeBuildSilgiExtraContent: {
|
|
285
|
+
value: string;
|
|
286
|
+
type: 'function' | 'variable';
|
|
287
|
+
}[];
|
|
288
|
+
afterCliOptions: string[];
|
|
289
|
+
_silgiConfigs: any[];
|
|
290
|
+
}
|
|
292
291
|
|
|
293
292
|
/**
|
|
294
293
|
* Bu nitrojs, h3 event or request context.
|
|
@@ -1134,4 +1133,4 @@ interface ServiceParseModule {
|
|
|
1134
1133
|
|
|
1135
1134
|
declare const autoImportTypes: string[];
|
|
1136
1135
|
|
|
1137
|
-
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 DefaultRouteConfig, type DefaultRouteRules, 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 RouteRules, type ScanFile, type
|
|
1136
|
+
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 DefaultRouteConfig, type DefaultRouteRules, 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 RouteRules, type ScanFile, type ServiceParse, type ServiceParseModule, type ServiceType, type Silgi, type SilgiAppPlugin, type SilgiCLI, type SilgiCLIConfig, type SilgiCLIDynamicConfig, type SilgiCLIHooks, type SilgiCLIOptions, type SilgiCommands, 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 SilgiRouteRules, type SilgiRouterTypes, type SilgiRuntimeActions, type SilgiRuntimeConfig, type SilgiRuntimeContext, type SilgiRuntimeHooks, type SilgiRuntimeMethods, type SilgiRuntimeOptions, type SilgiRuntimeRouteRules, type SilgiRuntimeRouteRulesConfig, type SilgiRuntimeShareds, type SilgiRuntimeSharedsExtend, type SilgiSchema, type SilgiServiceInterface, type SilgiStorageBase, type SilgiTemplate, type SilgiURIs, type StorageConfig, type StorageKeyGenerator, type StorageKeyParams, type StorageMounts, type TSReference, type URIsTypes, autoImportTypes };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -149,78 +149,6 @@ interface ResolvedSilgiTemplate<Options = TemplateDefaultOptions> extends SilgiT
|
|
|
149
149
|
modified?: boolean;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
type TSReference = {
|
|
153
|
-
types: string;
|
|
154
|
-
} | {
|
|
155
|
-
path: string;
|
|
156
|
-
};
|
|
157
|
-
interface SilgiHooks {
|
|
158
|
-
}
|
|
159
|
-
interface GenerateAppOptions {
|
|
160
|
-
filter?: (template: ResolvedSilgiTemplate<any>) => boolean;
|
|
161
|
-
}
|
|
162
|
-
interface PrepareCore extends ImportItem {
|
|
163
|
-
buildSilgiExtraContent: string[];
|
|
164
|
-
beforeBuildSilgiExtraContent: {
|
|
165
|
-
value: string;
|
|
166
|
-
type: 'function' | 'variable';
|
|
167
|
-
}[];
|
|
168
|
-
afterCliOptions: string[];
|
|
169
|
-
_silgiConfigs: any[];
|
|
170
|
-
}
|
|
171
|
-
interface SchemaPreparationOptions extends ImportItem {
|
|
172
|
-
options: {
|
|
173
|
-
key: string;
|
|
174
|
-
value: string;
|
|
175
|
-
}[];
|
|
176
|
-
runtimeOptions: {
|
|
177
|
-
key: string;
|
|
178
|
-
value: string;
|
|
179
|
-
}[];
|
|
180
|
-
methods: {
|
|
181
|
-
key: string;
|
|
182
|
-
value: string;
|
|
183
|
-
}[];
|
|
184
|
-
routeRules: {
|
|
185
|
-
key: string;
|
|
186
|
-
value: string;
|
|
187
|
-
}[];
|
|
188
|
-
routeRulesConfig: {
|
|
189
|
-
key: string;
|
|
190
|
-
value: string;
|
|
191
|
-
}[];
|
|
192
|
-
contexts: {
|
|
193
|
-
key: string;
|
|
194
|
-
value: string;
|
|
195
|
-
}[];
|
|
196
|
-
actions: {
|
|
197
|
-
key: string;
|
|
198
|
-
value: string;
|
|
199
|
-
}[];
|
|
200
|
-
shareds: {
|
|
201
|
-
key: string;
|
|
202
|
-
value: string;
|
|
203
|
-
}[];
|
|
204
|
-
events: {
|
|
205
|
-
key: string;
|
|
206
|
-
value: string;
|
|
207
|
-
/**
|
|
208
|
-
* Extend olursa key value interface icine eklenmez.
|
|
209
|
-
* interface SilgiModuleEventsExtends extends SilgiEvents {}
|
|
210
|
-
*/
|
|
211
|
-
extends?: boolean;
|
|
212
|
-
isSilgiContext?: boolean;
|
|
213
|
-
}[];
|
|
214
|
-
storeBase: string[];
|
|
215
|
-
hooks: {
|
|
216
|
-
key: string;
|
|
217
|
-
value: string;
|
|
218
|
-
}[];
|
|
219
|
-
runtimeHooks: {
|
|
220
|
-
key: string;
|
|
221
|
-
value: string;
|
|
222
|
-
}[];
|
|
223
|
-
}
|
|
224
152
|
interface SilgiCLIHooks extends SilgiHooks {
|
|
225
153
|
/**
|
|
226
154
|
* Called after Silgi initialization, when the Silgi instance is ready to work.
|
|
@@ -269,7 +197,59 @@ interface SilgiCLIHooks extends SilgiHooks {
|
|
|
269
197
|
modulesURIs: Record<string, string>;
|
|
270
198
|
}) => HookResult;
|
|
271
199
|
'after:prepare:scan.ts': (content: string[]) => HookResult;
|
|
272
|
-
'prepare:schema.ts': (options:
|
|
200
|
+
'prepare:schema.ts': (options: {
|
|
201
|
+
options: {
|
|
202
|
+
key: string;
|
|
203
|
+
value: string;
|
|
204
|
+
}[];
|
|
205
|
+
runtimeOptions: {
|
|
206
|
+
key: string;
|
|
207
|
+
value: string;
|
|
208
|
+
}[];
|
|
209
|
+
methods: {
|
|
210
|
+
key: string;
|
|
211
|
+
value: string;
|
|
212
|
+
}[];
|
|
213
|
+
routeRules: {
|
|
214
|
+
key: string;
|
|
215
|
+
value: string;
|
|
216
|
+
}[];
|
|
217
|
+
routeRulesConfig: {
|
|
218
|
+
key: string;
|
|
219
|
+
value: string;
|
|
220
|
+
}[];
|
|
221
|
+
contexts: {
|
|
222
|
+
key: string;
|
|
223
|
+
value: string;
|
|
224
|
+
}[];
|
|
225
|
+
actions: {
|
|
226
|
+
key: string;
|
|
227
|
+
value: string;
|
|
228
|
+
}[];
|
|
229
|
+
shareds: {
|
|
230
|
+
key: string;
|
|
231
|
+
value: string;
|
|
232
|
+
}[];
|
|
233
|
+
events: {
|
|
234
|
+
key: string;
|
|
235
|
+
value: string;
|
|
236
|
+
/**
|
|
237
|
+
* If extends is true, it won't be added to the key value interface.
|
|
238
|
+
* interface SilgiModuleEventsExtends extends SilgiEvents {}
|
|
239
|
+
*/
|
|
240
|
+
extends?: boolean;
|
|
241
|
+
isSilgiContext?: boolean;
|
|
242
|
+
}[];
|
|
243
|
+
storeBase: string[];
|
|
244
|
+
hooks: {
|
|
245
|
+
key: string;
|
|
246
|
+
value: string;
|
|
247
|
+
}[];
|
|
248
|
+
runtimeHooks: {
|
|
249
|
+
key: string;
|
|
250
|
+
value: string;
|
|
251
|
+
}[];
|
|
252
|
+
} & ImportItem) => HookResult;
|
|
273
253
|
'after:prepare:schema.ts': (content: string[]) => HookResult;
|
|
274
254
|
'prepare:framework.d.ts': (options: {} & ImportItem) => HookResult;
|
|
275
255
|
'prepare:configs.ts': (cliOptions: Record<string, any>) => HookResult;
|
|
@@ -289,6 +269,25 @@ interface SilgiCLIHooks extends SilgiHooks {
|
|
|
289
269
|
'prepare:commands': (commands: SilgiCLI['commands']) => HookResult;
|
|
290
270
|
'prepare:installPackages': (packages: Record<'dependencies' | 'devDependencies', Record<string, string>>) => HookResult;
|
|
291
271
|
}
|
|
272
|
+
type TSReference = {
|
|
273
|
+
types: string;
|
|
274
|
+
} | {
|
|
275
|
+
path: string;
|
|
276
|
+
};
|
|
277
|
+
interface SilgiHooks {
|
|
278
|
+
}
|
|
279
|
+
interface GenerateAppOptions {
|
|
280
|
+
filter?: (template: ResolvedSilgiTemplate<any>) => boolean;
|
|
281
|
+
}
|
|
282
|
+
interface PrepareCore extends ImportItem {
|
|
283
|
+
buildSilgiExtraContent: string[];
|
|
284
|
+
beforeBuildSilgiExtraContent: {
|
|
285
|
+
value: string;
|
|
286
|
+
type: 'function' | 'variable';
|
|
287
|
+
}[];
|
|
288
|
+
afterCliOptions: string[];
|
|
289
|
+
_silgiConfigs: any[];
|
|
290
|
+
}
|
|
292
291
|
|
|
293
292
|
/**
|
|
294
293
|
* Bu nitrojs, h3 event or request context.
|
|
@@ -1134,4 +1133,4 @@ interface ServiceParseModule {
|
|
|
1134
1133
|
|
|
1135
1134
|
declare const autoImportTypes: string[];
|
|
1136
1135
|
|
|
1137
|
-
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 DefaultRouteConfig, type DefaultRouteRules, 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 RouteRules, type ScanFile, type
|
|
1136
|
+
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 DefaultRouteConfig, type DefaultRouteRules, 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 RouteRules, type ScanFile, type ServiceParse, type ServiceParseModule, type ServiceType, type Silgi, type SilgiAppPlugin, type SilgiCLI, type SilgiCLIConfig, type SilgiCLIDynamicConfig, type SilgiCLIHooks, type SilgiCLIOptions, type SilgiCommands, 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 SilgiRouteRules, type SilgiRouterTypes, type SilgiRuntimeActions, type SilgiRuntimeConfig, type SilgiRuntimeContext, type SilgiRuntimeHooks, type SilgiRuntimeMethods, type SilgiRuntimeOptions, type SilgiRuntimeRouteRules, type SilgiRuntimeRouteRulesConfig, type SilgiRuntimeShareds, type SilgiRuntimeSharedsExtend, type SilgiSchema, type SilgiServiceInterface, type SilgiStorageBase, type SilgiTemplate, type SilgiURIs, type StorageConfig, type StorageKeyGenerator, type StorageKeyParams, type StorageMounts, type TSReference, type URIsTypes, autoImportTypes };
|