@gqloom/core 0.7.0 → 0.7.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/LICENSE.md +9 -0
- package/README.md +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/package.json +9 -7
package/LICENSE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Modevol https://www.modevol.com/
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -36,4 +36,4 @@ export const schema = ValibotWeaver.weave(helloResolver)
|
|
|
36
36
|
|
|
37
37
|
## Getting Started
|
|
38
38
|
|
|
39
|
-
See [Getting Started](https://gqloom.dev/
|
|
39
|
+
See [Getting Started](https://gqloom.dev/docs/getting-started) to learn how to use GQLoom.
|
package/dist/index.d.cts
CHANGED
|
@@ -183,7 +183,7 @@ interface CallableInputParser<TSchema extends InputSchema<GraphQLSilk>> {
|
|
|
183
183
|
*/
|
|
184
184
|
value: InferInputI<TSchema, GraphQLSilkIO>;
|
|
185
185
|
/**
|
|
186
|
-
* Parse the input and return the
|
|
186
|
+
* Parse the input and return the result
|
|
187
187
|
*/
|
|
188
188
|
(): Promise<StandardSchemaV1.Result<InferInputO<TSchema, GraphQLSilkIO>>>;
|
|
189
189
|
/**
|
|
@@ -238,7 +238,7 @@ declare class QueryChainFactory<TSchemaIO extends AbstractSchemaIO, TOutput exte
|
|
|
238
238
|
use(...middlewares: Middleware<FieldOrOperation<any, SchemaToSilk<TSchemaIO, TOutput>, InputSchemaToSilk<TSchemaIO, TInput>, "query">>[]): this;
|
|
239
239
|
output<TOutputNew extends TSchemaIO[0]>(output: TOutputNew): QueryChainFactory<TSchemaIO, TOutputNew, TInput>;
|
|
240
240
|
input<TInputNew extends InputSchema<TSchemaIO[0]>>(input: TInputNew): QueryChainFactory<TSchemaIO, TOutput, TInputNew>;
|
|
241
|
-
resolve(resolve: (input: InferInputO<TInput, TSchemaIO>) => MayPromise<InferSchemaO<TOutput, TSchemaIO>>): any
|
|
241
|
+
resolve(resolve: (input: InferInputO<TInput, TSchemaIO>) => MayPromise<InferSchemaO<TOutput, TSchemaIO>>): FieldOrOperation<any, SchemaToSilk<TSchemaIO, TOutput>, InputSchemaToSilk<TSchemaIO, TInput>, "query">;
|
|
242
242
|
}
|
|
243
243
|
declare class MutationChainFactory<TSchemaIO extends AbstractSchemaIO, TOutput extends TSchemaIO[0] = never, TInput extends InputSchema<TSchemaIO[0]> = undefined> extends BaseChainFactory implements IChainFactory<TSchemaIO, TOutput, TInput> {
|
|
244
244
|
static methods(): MutationChainFactory<any, never, undefined>;
|
|
@@ -246,7 +246,7 @@ declare class MutationChainFactory<TSchemaIO extends AbstractSchemaIO, TOutput e
|
|
|
246
246
|
use(...middlewares: Middleware<FieldOrOperation<any, SchemaToSilk<TSchemaIO, TOutput>, InputSchemaToSilk<TSchemaIO, TInput>, "mutation">>[]): this;
|
|
247
247
|
output<TOutputNew extends TSchemaIO[0]>(output: TOutputNew): MutationChainFactory<TSchemaIO, TOutputNew, TInput>;
|
|
248
248
|
input<TInputNew extends InputSchema<TSchemaIO[0]>>(input: TInputNew): MutationChainFactory<TSchemaIO, TOutput, TInputNew>;
|
|
249
|
-
resolve(resolve: (input: InferInputO<TInput, TSchemaIO>) => MayPromise<InferSchemaO<TOutput, TSchemaIO>>): any
|
|
249
|
+
resolve(resolve: (input: InferInputO<TInput, TSchemaIO>) => MayPromise<InferSchemaO<TOutput, TSchemaIO>>): FieldOrOperation<any, SchemaToSilk<TSchemaIO, TOutput>, InputSchemaToSilk<TSchemaIO, TInput>, "mutation">;
|
|
250
250
|
}
|
|
251
251
|
declare class SubscriptionChainFactory<TSchemaIO extends AbstractSchemaIO, TOutput extends TSchemaIO[0] = never, TInput extends InputSchema<TSchemaIO[0]> = undefined> extends BaseChainFactory implements IChainFactory<TSchemaIO, TOutput, TInput> {
|
|
252
252
|
static methods(): SubscriptionChainFactory<any, never, undefined>;
|
|
@@ -801,7 +801,7 @@ declare class GraphQLSchemaLoom {
|
|
|
801
801
|
/**
|
|
802
802
|
* Weave a GraphQL Schema from resolvers
|
|
803
803
|
* @param inputs Resolvers, Global Middlewares or WeaverConfigs
|
|
804
|
-
* @returns
|
|
804
|
+
* @returns GraphQL Schema
|
|
805
805
|
*/
|
|
806
806
|
declare const weave: typeof GraphQLSchemaLoom.weave;
|
|
807
807
|
|
package/dist/index.d.ts
CHANGED
|
@@ -183,7 +183,7 @@ interface CallableInputParser<TSchema extends InputSchema<GraphQLSilk>> {
|
|
|
183
183
|
*/
|
|
184
184
|
value: InferInputI<TSchema, GraphQLSilkIO>;
|
|
185
185
|
/**
|
|
186
|
-
* Parse the input and return the
|
|
186
|
+
* Parse the input and return the result
|
|
187
187
|
*/
|
|
188
188
|
(): Promise<StandardSchemaV1.Result<InferInputO<TSchema, GraphQLSilkIO>>>;
|
|
189
189
|
/**
|
|
@@ -238,7 +238,7 @@ declare class QueryChainFactory<TSchemaIO extends AbstractSchemaIO, TOutput exte
|
|
|
238
238
|
use(...middlewares: Middleware<FieldOrOperation<any, SchemaToSilk<TSchemaIO, TOutput>, InputSchemaToSilk<TSchemaIO, TInput>, "query">>[]): this;
|
|
239
239
|
output<TOutputNew extends TSchemaIO[0]>(output: TOutputNew): QueryChainFactory<TSchemaIO, TOutputNew, TInput>;
|
|
240
240
|
input<TInputNew extends InputSchema<TSchemaIO[0]>>(input: TInputNew): QueryChainFactory<TSchemaIO, TOutput, TInputNew>;
|
|
241
|
-
resolve(resolve: (input: InferInputO<TInput, TSchemaIO>) => MayPromise<InferSchemaO<TOutput, TSchemaIO>>): any
|
|
241
|
+
resolve(resolve: (input: InferInputO<TInput, TSchemaIO>) => MayPromise<InferSchemaO<TOutput, TSchemaIO>>): FieldOrOperation<any, SchemaToSilk<TSchemaIO, TOutput>, InputSchemaToSilk<TSchemaIO, TInput>, "query">;
|
|
242
242
|
}
|
|
243
243
|
declare class MutationChainFactory<TSchemaIO extends AbstractSchemaIO, TOutput extends TSchemaIO[0] = never, TInput extends InputSchema<TSchemaIO[0]> = undefined> extends BaseChainFactory implements IChainFactory<TSchemaIO, TOutput, TInput> {
|
|
244
244
|
static methods(): MutationChainFactory<any, never, undefined>;
|
|
@@ -246,7 +246,7 @@ declare class MutationChainFactory<TSchemaIO extends AbstractSchemaIO, TOutput e
|
|
|
246
246
|
use(...middlewares: Middleware<FieldOrOperation<any, SchemaToSilk<TSchemaIO, TOutput>, InputSchemaToSilk<TSchemaIO, TInput>, "mutation">>[]): this;
|
|
247
247
|
output<TOutputNew extends TSchemaIO[0]>(output: TOutputNew): MutationChainFactory<TSchemaIO, TOutputNew, TInput>;
|
|
248
248
|
input<TInputNew extends InputSchema<TSchemaIO[0]>>(input: TInputNew): MutationChainFactory<TSchemaIO, TOutput, TInputNew>;
|
|
249
|
-
resolve(resolve: (input: InferInputO<TInput, TSchemaIO>) => MayPromise<InferSchemaO<TOutput, TSchemaIO>>): any
|
|
249
|
+
resolve(resolve: (input: InferInputO<TInput, TSchemaIO>) => MayPromise<InferSchemaO<TOutput, TSchemaIO>>): FieldOrOperation<any, SchemaToSilk<TSchemaIO, TOutput>, InputSchemaToSilk<TSchemaIO, TInput>, "mutation">;
|
|
250
250
|
}
|
|
251
251
|
declare class SubscriptionChainFactory<TSchemaIO extends AbstractSchemaIO, TOutput extends TSchemaIO[0] = never, TInput extends InputSchema<TSchemaIO[0]> = undefined> extends BaseChainFactory implements IChainFactory<TSchemaIO, TOutput, TInput> {
|
|
252
252
|
static methods(): SubscriptionChainFactory<any, never, undefined>;
|
|
@@ -801,7 +801,7 @@ declare class GraphQLSchemaLoom {
|
|
|
801
801
|
/**
|
|
802
802
|
* Weave a GraphQL Schema from resolvers
|
|
803
803
|
* @param inputs Resolvers, Global Middlewares or WeaverConfigs
|
|
804
|
-
* @returns
|
|
804
|
+
* @returns GraphQL Schema
|
|
805
805
|
*/
|
|
806
806
|
declare const weave: typeof GraphQLSchemaLoom.weave;
|
|
807
807
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gqloom/core",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Create GraphQL schema and resolvers with TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -21,11 +21,9 @@
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
"files": ["dist"],
|
|
24
|
+
"files": [
|
|
25
|
+
"dist"
|
|
26
|
+
],
|
|
29
27
|
"peerDependencies": {
|
|
30
28
|
"graphql": ">= 16.8.0"
|
|
31
29
|
},
|
|
@@ -51,5 +49,9 @@
|
|
|
51
49
|
},
|
|
52
50
|
"devDependencies": {
|
|
53
51
|
"@standard-schema/spec": "1.0.0-beta.4"
|
|
52
|
+
},
|
|
53
|
+
"scripts": {
|
|
54
|
+
"build": "tsup --dts-resolve",
|
|
55
|
+
"check:type": "tsc --noEmit"
|
|
54
56
|
}
|
|
55
|
-
}
|
|
57
|
+
}
|