@graphql-mesh/transport-rest 0.0.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.
- package/cjs/directives/dictionary.js +19 -0
- package/cjs/directives/discriminator.js +9 -0
- package/cjs/directives/flatten.js +16 -0
- package/cjs/directives/getTypeResolverForAbstractType.js +102 -0
- package/cjs/directives/httpOperation.js +404 -0
- package/cjs/directives/isFileUpload.js +7 -0
- package/cjs/directives/jsonApiFields.js +23 -0
- package/cjs/directives/length.js +26 -0
- package/cjs/directives/link.js +67 -0
- package/cjs/directives/process.js +181 -0
- package/cjs/directives/pubsubOperation.js +31 -0
- package/cjs/directives/regexp.js +24 -0
- package/cjs/directives/resolveDataByUnionInputType.js +39 -0
- package/cjs/directives/resolveRoot.js +10 -0
- package/cjs/directives/resolveRootField.js +29 -0
- package/cjs/directives/responseMetadata.js +16 -0
- package/cjs/directives/scalars.js +53 -0
- package/cjs/directives/typescriptAnnotations.js +8 -0
- package/cjs/index.js +20 -0
- package/cjs/package.json +1 -0
- package/esm/directives/dictionary.js +15 -0
- package/esm/directives/discriminator.js +5 -0
- package/esm/directives/flatten.js +12 -0
- package/esm/directives/getTypeResolverForAbstractType.js +98 -0
- package/esm/directives/httpOperation.js +399 -0
- package/esm/directives/isFileUpload.js +3 -0
- package/esm/directives/jsonApiFields.js +18 -0
- package/esm/directives/length.js +22 -0
- package/esm/directives/link.js +63 -0
- package/esm/directives/process.js +177 -0
- package/esm/directives/pubsubOperation.js +27 -0
- package/esm/directives/regexp.js +20 -0
- package/esm/directives/resolveDataByUnionInputType.js +35 -0
- package/esm/directives/resolveRoot.js +6 -0
- package/esm/directives/resolveRootField.js +25 -0
- package/esm/directives/responseMetadata.js +12 -0
- package/esm/directives/scalars.js +48 -0
- package/esm/directives/typescriptAnnotations.js +4 -0
- package/esm/index.js +15 -0
- package/package.json +56 -0
- package/typings/directives/dictionary.d.cts +2 -0
- package/typings/directives/dictionary.d.ts +2 -0
- package/typings/directives/discriminator.d.cts +5 -0
- package/typings/directives/discriminator.d.ts +5 -0
- package/typings/directives/flatten.d.cts +2 -0
- package/typings/directives/flatten.d.ts +2 -0
- package/typings/directives/getTypeResolverForAbstractType.d.cts +7 -0
- package/typings/directives/getTypeResolverForAbstractType.d.ts +7 -0
- package/typings/directives/httpOperation.d.cts +28 -0
- package/typings/directives/httpOperation.d.ts +28 -0
- package/typings/directives/isFileUpload.d.cts +4 -0
- package/typings/directives/isFileUpload.d.ts +4 -0
- package/typings/directives/jsonApiFields.d.cts +2 -0
- package/typings/directives/jsonApiFields.d.ts +2 -0
- package/typings/directives/length.d.cts +5 -0
- package/typings/directives/length.d.ts +5 -0
- package/typings/directives/link.d.cts +2 -0
- package/typings/directives/link.d.ts +2 -0
- package/typings/directives/process.d.cts +12 -0
- package/typings/directives/process.d.ts +12 -0
- package/typings/directives/pubsubOperation.d.cts +10 -0
- package/typings/directives/pubsubOperation.d.ts +10 -0
- package/typings/directives/regexp.d.cts +2 -0
- package/typings/directives/regexp.d.ts +2 -0
- package/typings/directives/resolveDataByUnionInputType.d.cts +2 -0
- package/typings/directives/resolveDataByUnionInputType.d.ts +2 -0
- package/typings/directives/resolveRoot.d.cts +2 -0
- package/typings/directives/resolveRoot.d.ts +2 -0
- package/typings/directives/resolveRootField.d.cts +2 -0
- package/typings/directives/resolveRootField.d.ts +2 -0
- package/typings/directives/responseMetadata.d.cts +2 -0
- package/typings/directives/responseMetadata.d.ts +2 -0
- package/typings/directives/scalars.d.cts +3 -0
- package/typings/directives/scalars.d.ts +3 -0
- package/typings/directives/typescriptAnnotations.d.cts +2 -0
- package/typings/directives/typescriptAnnotations.d.ts +2 -0
- package/typings/index.d.cts +7 -0
- package/typings/index.d.ts +7 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { GraphQLScalarType, GraphQLSchema } from 'graphql';
|
|
2
|
+
export declare function processScalarType(schema: GraphQLSchema, type: GraphQLScalarType): void;
|
|
3
|
+
export declare function addExecutionLogicToScalar(nonExecutableScalar: GraphQLScalarType, actualScalar: GraphQLScalarType): void;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { GraphQLScalarType, GraphQLSchema } from 'graphql';
|
|
2
|
+
export declare function processScalarType(schema: GraphQLSchema, type: GraphQLScalarType): void;
|
|
3
|
+
export declare function addExecutionLogicToScalar(nonExecutableScalar: GraphQLScalarType, actualScalar: GraphQLScalarType): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TransportExecutorFactoryFn } from '@graphql-mesh/transport-common';
|
|
2
|
+
export interface RESTTransportOptions {
|
|
3
|
+
timeout?: number;
|
|
4
|
+
queryParams?: Record<string, string>;
|
|
5
|
+
}
|
|
6
|
+
export declare const getSubgraphExecutor: TransportExecutorFactoryFn<'rest', RESTTransportOptions>;
|
|
7
|
+
export { processDirectives, ProcessDirectiveArgs } from './directives/process';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TransportExecutorFactoryFn } from '@graphql-mesh/transport-common';
|
|
2
|
+
export interface RESTTransportOptions {
|
|
3
|
+
timeout?: number;
|
|
4
|
+
queryParams?: Record<string, string>;
|
|
5
|
+
}
|
|
6
|
+
export declare const getSubgraphExecutor: TransportExecutorFactoryFn<'rest', RESTTransportOptions>;
|
|
7
|
+
export { processDirectives, ProcessDirectiveArgs } from './directives/process';
|