@omnigraph/grpc 0.0.1 → 0.1.0-alpha-20241031134131-d06cb180bef699178c0a23c3f25d328ef7d1e084
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/cjs/directives.js +2 -33
- package/esm/directives.js +2 -33
- package/package.json +1 -1
- package/typings/directives.d.cts +1 -3
- package/typings/directives.d.ts +1 -3
package/cjs/directives.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.transportDirective = exports.
|
|
3
|
+
exports.transportDirective = exports.grpcRootJsonDirective = exports.EnumDirective = exports.grpcConnectivityStateDirective = exports.grpcMethodDirective = void 0;
|
|
4
4
|
const graphql_1 = require("graphql");
|
|
5
5
|
const transport_common_1 = require("@graphql-mesh/transport-common");
|
|
6
6
|
exports.grpcMethodDirective = new graphql_1.GraphQLDirective({
|
|
@@ -70,37 +70,6 @@ exports.grpcRootJsonDirective = new graphql_1.GraphQLDirective({
|
|
|
70
70
|
},
|
|
71
71
|
isRepeatable: true,
|
|
72
72
|
});
|
|
73
|
-
exports.GrpcCredentialsSsl = new graphql_1.GraphQLInputObjectType({
|
|
74
|
-
name: 'GrpcCredentialsSsl',
|
|
75
|
-
fields: {
|
|
76
|
-
rootCA: {
|
|
77
|
-
type: graphql_1.GraphQLString,
|
|
78
|
-
},
|
|
79
|
-
certChain: {
|
|
80
|
-
type: graphql_1.GraphQLString,
|
|
81
|
-
},
|
|
82
|
-
privateKey: {
|
|
83
|
-
type: graphql_1.GraphQLString,
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
});
|
|
87
|
-
exports.TransportOptions = new graphql_1.GraphQLInputObjectType({
|
|
88
|
-
name: 'TransportOptions',
|
|
89
|
-
fields: {
|
|
90
|
-
requestTimeout: {
|
|
91
|
-
type: graphql_1.GraphQLInt,
|
|
92
|
-
},
|
|
93
|
-
credentialsSsl: {
|
|
94
|
-
type: exports.GrpcCredentialsSsl,
|
|
95
|
-
},
|
|
96
|
-
useHTTPS: {
|
|
97
|
-
type: graphql_1.GraphQLBoolean,
|
|
98
|
-
},
|
|
99
|
-
metaData: {
|
|
100
|
-
type: transport_common_1.ObjMapScalar,
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
});
|
|
104
73
|
exports.transportDirective = new graphql_1.GraphQLDirective({
|
|
105
74
|
name: 'transport',
|
|
106
75
|
args: {
|
|
@@ -114,7 +83,7 @@ exports.transportDirective = new graphql_1.GraphQLDirective({
|
|
|
114
83
|
type: graphql_1.GraphQLString,
|
|
115
84
|
},
|
|
116
85
|
options: {
|
|
117
|
-
type:
|
|
86
|
+
type: new graphql_1.GraphQLScalarType({ name: 'TransportOptions' }),
|
|
118
87
|
},
|
|
119
88
|
},
|
|
120
89
|
isRepeatable: true,
|
package/esm/directives.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DirectiveLocation, GraphQLBoolean, GraphQLDirective,
|
|
1
|
+
import { DirectiveLocation, GraphQLBoolean, GraphQLDirective, GraphQLScalarType, GraphQLString, } from 'graphql';
|
|
2
2
|
import { ObjMapScalar } from '@graphql-mesh/transport-common';
|
|
3
3
|
export const grpcMethodDirective = new GraphQLDirective({
|
|
4
4
|
name: 'grpcMethod',
|
|
@@ -67,37 +67,6 @@ export const grpcRootJsonDirective = new GraphQLDirective({
|
|
|
67
67
|
},
|
|
68
68
|
isRepeatable: true,
|
|
69
69
|
});
|
|
70
|
-
export const GrpcCredentialsSsl = new GraphQLInputObjectType({
|
|
71
|
-
name: 'GrpcCredentialsSsl',
|
|
72
|
-
fields: {
|
|
73
|
-
rootCA: {
|
|
74
|
-
type: GraphQLString,
|
|
75
|
-
},
|
|
76
|
-
certChain: {
|
|
77
|
-
type: GraphQLString,
|
|
78
|
-
},
|
|
79
|
-
privateKey: {
|
|
80
|
-
type: GraphQLString,
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
});
|
|
84
|
-
export const TransportOptions = new GraphQLInputObjectType({
|
|
85
|
-
name: 'TransportOptions',
|
|
86
|
-
fields: {
|
|
87
|
-
requestTimeout: {
|
|
88
|
-
type: GraphQLInt,
|
|
89
|
-
},
|
|
90
|
-
credentialsSsl: {
|
|
91
|
-
type: GrpcCredentialsSsl,
|
|
92
|
-
},
|
|
93
|
-
useHTTPS: {
|
|
94
|
-
type: GraphQLBoolean,
|
|
95
|
-
},
|
|
96
|
-
metaData: {
|
|
97
|
-
type: ObjMapScalar,
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
});
|
|
101
70
|
export const transportDirective = new GraphQLDirective({
|
|
102
71
|
name: 'transport',
|
|
103
72
|
args: {
|
|
@@ -111,7 +80,7 @@ export const transportDirective = new GraphQLDirective({
|
|
|
111
80
|
type: GraphQLString,
|
|
112
81
|
},
|
|
113
82
|
options: {
|
|
114
|
-
type: TransportOptions,
|
|
83
|
+
type: new GraphQLScalarType({ name: 'TransportOptions' }),
|
|
115
84
|
},
|
|
116
85
|
},
|
|
117
86
|
isRepeatable: true,
|
package/package.json
CHANGED
package/typings/directives.d.cts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { GraphQLDirective
|
|
1
|
+
import { GraphQLDirective } from 'graphql';
|
|
2
2
|
export declare const grpcMethodDirective: GraphQLDirective;
|
|
3
3
|
export declare const grpcConnectivityStateDirective: GraphQLDirective;
|
|
4
4
|
export declare const EnumDirective: GraphQLDirective;
|
|
5
5
|
export declare const grpcRootJsonDirective: GraphQLDirective;
|
|
6
|
-
export declare const GrpcCredentialsSsl: GraphQLInputObjectType;
|
|
7
|
-
export declare const TransportOptions: GraphQLInputObjectType;
|
|
8
6
|
export declare const transportDirective: GraphQLDirective;
|
package/typings/directives.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { GraphQLDirective
|
|
1
|
+
import { GraphQLDirective } from 'graphql';
|
|
2
2
|
export declare const grpcMethodDirective: GraphQLDirective;
|
|
3
3
|
export declare const grpcConnectivityStateDirective: GraphQLDirective;
|
|
4
4
|
export declare const EnumDirective: GraphQLDirective;
|
|
5
5
|
export declare const grpcRootJsonDirective: GraphQLDirective;
|
|
6
|
-
export declare const GrpcCredentialsSsl: GraphQLInputObjectType;
|
|
7
|
-
export declare const TransportOptions: GraphQLInputObjectType;
|
|
8
6
|
export declare const transportDirective: GraphQLDirective;
|