@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.
Files changed (78) hide show
  1. package/cjs/directives/dictionary.js +19 -0
  2. package/cjs/directives/discriminator.js +9 -0
  3. package/cjs/directives/flatten.js +16 -0
  4. package/cjs/directives/getTypeResolverForAbstractType.js +102 -0
  5. package/cjs/directives/httpOperation.js +404 -0
  6. package/cjs/directives/isFileUpload.js +7 -0
  7. package/cjs/directives/jsonApiFields.js +23 -0
  8. package/cjs/directives/length.js +26 -0
  9. package/cjs/directives/link.js +67 -0
  10. package/cjs/directives/process.js +181 -0
  11. package/cjs/directives/pubsubOperation.js +31 -0
  12. package/cjs/directives/regexp.js +24 -0
  13. package/cjs/directives/resolveDataByUnionInputType.js +39 -0
  14. package/cjs/directives/resolveRoot.js +10 -0
  15. package/cjs/directives/resolveRootField.js +29 -0
  16. package/cjs/directives/responseMetadata.js +16 -0
  17. package/cjs/directives/scalars.js +53 -0
  18. package/cjs/directives/typescriptAnnotations.js +8 -0
  19. package/cjs/index.js +20 -0
  20. package/cjs/package.json +1 -0
  21. package/esm/directives/dictionary.js +15 -0
  22. package/esm/directives/discriminator.js +5 -0
  23. package/esm/directives/flatten.js +12 -0
  24. package/esm/directives/getTypeResolverForAbstractType.js +98 -0
  25. package/esm/directives/httpOperation.js +399 -0
  26. package/esm/directives/isFileUpload.js +3 -0
  27. package/esm/directives/jsonApiFields.js +18 -0
  28. package/esm/directives/length.js +22 -0
  29. package/esm/directives/link.js +63 -0
  30. package/esm/directives/process.js +177 -0
  31. package/esm/directives/pubsubOperation.js +27 -0
  32. package/esm/directives/regexp.js +20 -0
  33. package/esm/directives/resolveDataByUnionInputType.js +35 -0
  34. package/esm/directives/resolveRoot.js +6 -0
  35. package/esm/directives/resolveRootField.js +25 -0
  36. package/esm/directives/responseMetadata.js +12 -0
  37. package/esm/directives/scalars.js +48 -0
  38. package/esm/directives/typescriptAnnotations.js +4 -0
  39. package/esm/index.js +15 -0
  40. package/package.json +56 -0
  41. package/typings/directives/dictionary.d.cts +2 -0
  42. package/typings/directives/dictionary.d.ts +2 -0
  43. package/typings/directives/discriminator.d.cts +5 -0
  44. package/typings/directives/discriminator.d.ts +5 -0
  45. package/typings/directives/flatten.d.cts +2 -0
  46. package/typings/directives/flatten.d.ts +2 -0
  47. package/typings/directives/getTypeResolverForAbstractType.d.cts +7 -0
  48. package/typings/directives/getTypeResolverForAbstractType.d.ts +7 -0
  49. package/typings/directives/httpOperation.d.cts +28 -0
  50. package/typings/directives/httpOperation.d.ts +28 -0
  51. package/typings/directives/isFileUpload.d.cts +4 -0
  52. package/typings/directives/isFileUpload.d.ts +4 -0
  53. package/typings/directives/jsonApiFields.d.cts +2 -0
  54. package/typings/directives/jsonApiFields.d.ts +2 -0
  55. package/typings/directives/length.d.cts +5 -0
  56. package/typings/directives/length.d.ts +5 -0
  57. package/typings/directives/link.d.cts +2 -0
  58. package/typings/directives/link.d.ts +2 -0
  59. package/typings/directives/process.d.cts +12 -0
  60. package/typings/directives/process.d.ts +12 -0
  61. package/typings/directives/pubsubOperation.d.cts +10 -0
  62. package/typings/directives/pubsubOperation.d.ts +10 -0
  63. package/typings/directives/regexp.d.cts +2 -0
  64. package/typings/directives/regexp.d.ts +2 -0
  65. package/typings/directives/resolveDataByUnionInputType.d.cts +2 -0
  66. package/typings/directives/resolveDataByUnionInputType.d.ts +2 -0
  67. package/typings/directives/resolveRoot.d.cts +2 -0
  68. package/typings/directives/resolveRoot.d.ts +2 -0
  69. package/typings/directives/resolveRootField.d.cts +2 -0
  70. package/typings/directives/resolveRootField.d.ts +2 -0
  71. package/typings/directives/responseMetadata.d.cts +2 -0
  72. package/typings/directives/responseMetadata.d.ts +2 -0
  73. package/typings/directives/scalars.d.cts +3 -0
  74. package/typings/directives/scalars.d.ts +3 -0
  75. package/typings/directives/typescriptAnnotations.d.cts +2 -0
  76. package/typings/directives/typescriptAnnotations.d.ts +2 -0
  77. package/typings/index.d.cts +7 -0
  78. package/typings/index.d.ts +7 -0
@@ -0,0 +1,2 @@
1
+ import { GraphQLInputType, GraphQLSchema } from 'graphql';
2
+ export declare function resolveDataByUnionInputType(data: any, type: GraphQLInputType, schema: GraphQLSchema): any;
@@ -0,0 +1,2 @@
1
+ import { GraphQLInputType, GraphQLSchema } from 'graphql';
2
+ export declare function resolveDataByUnionInputType(data: any, type: GraphQLInputType, schema: GraphQLSchema): any;
@@ -0,0 +1,2 @@
1
+ import { GraphQLField } from 'graphql';
2
+ export declare function processResolveRootAnnotations(field: GraphQLField<any, any>): void;
@@ -0,0 +1,2 @@
1
+ import { GraphQLField } from 'graphql';
2
+ export declare function processResolveRootAnnotations(field: GraphQLField<any, any>): void;
@@ -0,0 +1,2 @@
1
+ import { GraphQLField } from 'graphql';
2
+ export declare function processResolveRootFieldAnnotations(field: GraphQLField<any, any>, propertyName: string): void;
@@ -0,0 +1,2 @@
1
+ import { GraphQLField } from 'graphql';
2
+ export declare function processResolveRootFieldAnnotations(field: GraphQLField<any, any>, propertyName: string): void;
@@ -0,0 +1,2 @@
1
+ import { GraphQLField } from 'graphql';
2
+ export declare function processResponseMetadataAnnotations(field: GraphQLField<any, any>): void;
@@ -0,0 +1,2 @@
1
+ import { GraphQLField } from 'graphql';
2
+ export declare function processResponseMetadataAnnotations(field: GraphQLField<any, any>): 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,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,2 @@
1
+ import { GraphQLLeafType } from 'graphql';
2
+ export declare function processTypeScriptAnnotations(type: GraphQLLeafType, typeDefinition: string): void;
@@ -0,0 +1,2 @@
1
+ import { GraphQLLeafType } from 'graphql';
2
+ export declare function processTypeScriptAnnotations(type: GraphQLLeafType, typeDefinition: string): 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';