@powerlines/plugin-graphql 0.1.117 → 0.1.118
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.
|
@@ -301,6 +301,15 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
301
301
|
* @param options - Additional options for writing the builtin file
|
|
302
302
|
*/
|
|
303
303
|
emitBuiltin: (code: string, id: string, path?: string, options?: WriteOptions) => Promise<void>;
|
|
304
|
+
/**
|
|
305
|
+
* Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
306
|
+
*
|
|
307
|
+
* @param code - The source code of the builtin file
|
|
308
|
+
* @param id - The unique identifier of the builtin file
|
|
309
|
+
* @param path - An optional path to write the builtin file to
|
|
310
|
+
* @param options - Additional options for writing the builtin file
|
|
311
|
+
*/
|
|
312
|
+
emitBuiltinSync: (code: string, id: string, path?: string, options?: WriteOptions) => void;
|
|
304
313
|
/**
|
|
305
314
|
* Resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
306
315
|
*
|
|
@@ -309,6 +318,14 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
309
318
|
* @param options - Additional options for writing the entry file
|
|
310
319
|
*/
|
|
311
320
|
emitEntry: (code: string, path: string, options?: EmitEntryOptions) => Promise<void>;
|
|
321
|
+
/**
|
|
322
|
+
* Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
323
|
+
*
|
|
324
|
+
* @param code - The source code of the entry file
|
|
325
|
+
* @param path - An optional path to write the entry file to
|
|
326
|
+
* @param options - Additional options for writing the entry file
|
|
327
|
+
*/
|
|
328
|
+
emitEntrySync: (code: string, path: string, options?: EmitEntryOptions) => void;
|
|
312
329
|
/**
|
|
313
330
|
* A function to update the context fields using a new user configuration options
|
|
314
331
|
*/
|
|
@@ -303,6 +303,15 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
303
303
|
* @param options - Additional options for writing the builtin file
|
|
304
304
|
*/
|
|
305
305
|
emitBuiltin: (code: string, id: string, path?: string, options?: WriteOptions) => Promise<void>;
|
|
306
|
+
/**
|
|
307
|
+
* Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
308
|
+
*
|
|
309
|
+
* @param code - The source code of the builtin file
|
|
310
|
+
* @param id - The unique identifier of the builtin file
|
|
311
|
+
* @param path - An optional path to write the builtin file to
|
|
312
|
+
* @param options - Additional options for writing the builtin file
|
|
313
|
+
*/
|
|
314
|
+
emitBuiltinSync: (code: string, id: string, path?: string, options?: WriteOptions) => void;
|
|
306
315
|
/**
|
|
307
316
|
* Resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
308
317
|
*
|
|
@@ -311,6 +320,14 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
311
320
|
* @param options - Additional options for writing the entry file
|
|
312
321
|
*/
|
|
313
322
|
emitEntry: (code: string, path: string, options?: EmitEntryOptions) => Promise<void>;
|
|
323
|
+
/**
|
|
324
|
+
* Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
325
|
+
*
|
|
326
|
+
* @param code - The source code of the entry file
|
|
327
|
+
* @param path - An optional path to write the entry file to
|
|
328
|
+
* @param options - Additional options for writing the entry file
|
|
329
|
+
*/
|
|
330
|
+
emitEntrySync: (code: string, path: string, options?: EmitEntryOptions) => void;
|
|
314
331
|
/**
|
|
315
332
|
* A function to update the context fields using a new user configuration options
|
|
316
333
|
*/
|
|
@@ -13,6 +13,13 @@ interface StorageAdapter {
|
|
|
13
13
|
* A name identifying the storage adapter type.
|
|
14
14
|
*/
|
|
15
15
|
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* The storage preset for the adapter.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* This can be used as an alternate way to identify the type of storage being used.
|
|
21
|
+
*/
|
|
22
|
+
preset?: StoragePreset | null;
|
|
16
23
|
/**
|
|
17
24
|
* Checks if a key exists in the storage.
|
|
18
25
|
*
|
|
@@ -207,6 +214,13 @@ interface WriteOptions {
|
|
|
207
214
|
* @defaultValue false
|
|
208
215
|
*/
|
|
209
216
|
skipFormat?: boolean;
|
|
217
|
+
/**
|
|
218
|
+
* The storage preset or adapter name for the output file.
|
|
219
|
+
*
|
|
220
|
+
* @remarks
|
|
221
|
+
* If not specified, the output mode will be determined by the provided `output.mode` value.
|
|
222
|
+
*/
|
|
223
|
+
storage?: StoragePreset | string;
|
|
210
224
|
/**
|
|
211
225
|
* Additional metadata for the file.
|
|
212
226
|
*/
|
|
@@ -13,6 +13,13 @@ interface StorageAdapter {
|
|
|
13
13
|
* A name identifying the storage adapter type.
|
|
14
14
|
*/
|
|
15
15
|
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* The storage preset for the adapter.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* This can be used as an alternate way to identify the type of storage being used.
|
|
21
|
+
*/
|
|
22
|
+
preset?: StoragePreset | null;
|
|
16
23
|
/**
|
|
17
24
|
* Checks if a key exists in the storage.
|
|
18
25
|
*
|
|
@@ -207,6 +214,13 @@ interface WriteOptions {
|
|
|
207
214
|
* @defaultValue false
|
|
208
215
|
*/
|
|
209
216
|
skipFormat?: boolean;
|
|
217
|
+
/**
|
|
218
|
+
* The storage preset or adapter name for the output file.
|
|
219
|
+
*
|
|
220
|
+
* @remarks
|
|
221
|
+
* If not specified, the output mode will be determined by the provided `output.mode` value.
|
|
222
|
+
*/
|
|
223
|
+
storage?: StoragePreset | string;
|
|
210
224
|
/**
|
|
211
225
|
* Additional metadata for the file.
|
|
212
226
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-graphql",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.118",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to generate project code from GraphQL schemas.",
|
|
6
6
|
"repository": {
|
|
@@ -123,14 +123,14 @@
|
|
|
123
123
|
"@stryke/types": "^0.10.28",
|
|
124
124
|
"defu": "^6.1.4",
|
|
125
125
|
"jiti": "^2.6.1",
|
|
126
|
-
"powerlines": "^0.36.
|
|
126
|
+
"powerlines": "^0.36.22"
|
|
127
127
|
},
|
|
128
128
|
"devDependencies": {
|
|
129
129
|
"@graphql-codegen/plugin-helpers": "^6.1.0",
|
|
130
|
-
"@powerlines/nx": "^0.11.
|
|
131
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
130
|
+
"@powerlines/nx": "^0.11.48",
|
|
131
|
+
"@powerlines/plugin-plugin": "^0.12.69",
|
|
132
132
|
"@types/node": "^24.10.4"
|
|
133
133
|
},
|
|
134
134
|
"publishConfig": { "access": "public" },
|
|
135
|
-
"gitHead": "
|
|
135
|
+
"gitHead": "f88fe8eb30f96536b83fc9af884972d48e31e63a"
|
|
136
136
|
}
|