@graphql-mesh/types 0.87.0 → 0.87.1-alpha-20221126112426-2a7d1e362

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.
@@ -425,15 +425,8 @@
425
425
  "description": "Handler for gRPC and Protobuf schemas"
426
426
  },
427
427
  "jsonSchema": {
428
- "description": "Handler for JSON Schema specification.\nSource could be a local json file, or a url to it. (Any of: JsonSchemaHandler, JsonSchemaHandlerBundle)",
429
- "anyOf": [
430
- {
431
- "$ref": "#/definitions/JsonSchemaHandler"
432
- },
433
- {
434
- "$ref": "#/definitions/JsonSchemaHandlerBundle"
435
- }
436
- ]
428
+ "$ref": "#/definitions/JsonSchemaHandler",
429
+ "description": "Handler for JSON Schema specification.\nSource could be a local json file, or a url to it."
437
430
  },
438
431
  "mongoose": {
439
432
  "$ref": "#/definitions/MongooseHandler"
@@ -870,19 +863,8 @@
870
863
  "type": "string",
871
864
  "description": "gRPC Endpoint"
872
865
  },
873
- "protoFilePath": {
874
- "description": "gRPC Proto file that contains your protobuf schema (Any of: ProtoFilePath, String)",
875
- "anyOf": [
876
- {
877
- "$ref": "#/definitions/ProtoFilePath"
878
- },
879
- {
880
- "type": "string"
881
- }
882
- ]
883
- },
884
- "descriptorSetFilePath": {
885
- "description": "Use a binary-encoded or JSON file descriptor set file (Any of: ProtoFilePath, String)",
866
+ "source": {
867
+ "description": "gRPC Proto file that contains your protobuf schema\nOR\nUse a binary-encoded or JSON file descriptor set file (Any of: ProtoFilePath, String)",
886
868
  "anyOf": [
887
869
  {
888
870
  "$ref": "#/definitions/ProtoFilePath"
@@ -909,10 +891,6 @@
909
891
  "properties": {},
910
892
  "description": "MetaData"
911
893
  },
912
- "useReflection": {
913
- "type": "boolean",
914
- "description": "Use gRPC reflection to automatically gather the connection"
915
- },
916
894
  "prefixQueryMethod": {
917
895
  "type": "array",
918
896
  "items": {
@@ -971,53 +949,6 @@
971
949
  }
972
950
  }
973
951
  },
974
- "JsonSchemaHandlerBundle": {
975
- "additionalProperties": false,
976
- "type": "object",
977
- "title": "JsonSchemaHandlerBundle",
978
- "properties": {
979
- "bundlePath": {
980
- "anyOf": [
981
- {
982
- "type": "object",
983
- "additionalProperties": true
984
- },
985
- {
986
- "type": "string"
987
- },
988
- {
989
- "type": "array",
990
- "additionalItems": true
991
- }
992
- ],
993
- "description": "Path to the bundle file"
994
- },
995
- "bundleHeaders": {
996
- "type": "object",
997
- "properties": {},
998
- "description": "HTTP Headers to receive the bundle"
999
- },
1000
- "baseUrl": {
1001
- "type": "string"
1002
- },
1003
- "operationHeaders": {
1004
- "description": "Any of: JSON, String",
1005
- "anyOf": [
1006
- {
1007
- "type": "object",
1008
- "properties": {}
1009
- },
1010
- {
1011
- "type": "string"
1012
- }
1013
- ]
1014
- },
1015
- "queryStringOptions": {
1016
- "$ref": "#/definitions/QueryStringOptions"
1017
- }
1018
- },
1019
- "required": ["bundlePath"]
1020
- },
1021
952
  "QueryStringOptions": {
1022
953
  "additionalProperties": false,
1023
954
  "type": "object",
@@ -1043,20 +974,16 @@
1043
974
  "type": "object",
1044
975
  "title": "JsonSchemaHandler",
1045
976
  "properties": {
1046
- "baseUrl": {
977
+ "source": {
978
+ "type": "string",
979
+ "description": "Path to the bundle file"
980
+ },
981
+ "endpoint": {
1047
982
  "type": "string"
1048
983
  },
1049
984
  "operationHeaders": {
1050
- "description": "Any of: JSON, String",
1051
- "anyOf": [
1052
- {
1053
- "type": "object",
1054
- "properties": {}
1055
- },
1056
- {
1057
- "type": "string"
1058
- }
1059
- ]
985
+ "type": "object",
986
+ "properties": {}
1060
987
  },
1061
988
  "schemaHeaders": {
1062
989
  "type": "object",
@@ -1846,10 +1773,14 @@
1846
1773
  "type": "object",
1847
1774
  "title": "Neo4jHandler",
1848
1775
  "properties": {
1849
- "url": {
1776
+ "endpoint": {
1850
1777
  "type": "string",
1851
1778
  "description": "URL for the Neo4j Instance e.g. neo4j://localhost"
1852
1779
  },
1780
+ "source": {
1781
+ "type": "string",
1782
+ "description": "Provide GraphQL Type Definitions instead of inferring"
1783
+ },
1853
1784
  "username": {
1854
1785
  "type": "string",
1855
1786
  "description": "Username for basic authentication"
@@ -1865,36 +1796,32 @@
1865
1796
  "database": {
1866
1797
  "type": "string",
1867
1798
  "description": "Specifies database name"
1868
- },
1869
- "typeDefs": {
1870
- "type": "string",
1871
- "description": "Provide GraphQL Type Definitions instead of inferring"
1872
1799
  }
1873
1800
  },
1874
- "required": ["url", "username", "password"]
1801
+ "required": ["endpoint", "username", "password"]
1875
1802
  },
1876
1803
  "ODataHandler": {
1877
1804
  "additionalProperties": false,
1878
1805
  "type": "object",
1879
1806
  "title": "ODataHandler",
1880
1807
  "properties": {
1881
- "baseUrl": {
1808
+ "endpoint": {
1882
1809
  "type": "string",
1883
1810
  "description": "Base URL for OData API"
1884
1811
  },
1885
- "metadata": {
1812
+ "source": {
1886
1813
  "type": "string",
1887
1814
  "description": "Custom $metadata File or URL"
1888
1815
  },
1889
- "operationHeaders": {
1816
+ "schemaHeaders": {
1890
1817
  "type": "object",
1891
1818
  "properties": {},
1892
- "description": "Headers to be used with the operation requests"
1819
+ "description": "Headers to be used with the $metadata requests"
1893
1820
  },
1894
- "schemaHeaders": {
1821
+ "operationHeaders": {
1895
1822
  "type": "object",
1896
1823
  "properties": {},
1897
- "description": "Headers to be used with the $metadata requests"
1824
+ "description": "Headers to be used with the operation requests"
1898
1825
  },
1899
1826
  "batch": {
1900
1827
  "type": "string",
@@ -1906,7 +1833,7 @@
1906
1833
  "description": "Use $expand for navigation props instead of seperate HTTP requests (Default: false)"
1907
1834
  }
1908
1835
  },
1909
- "required": ["baseUrl"]
1836
+ "required": ["endpoint"]
1910
1837
  },
1911
1838
  "OpenapiHandler": {
1912
1839
  "additionalProperties": false,
@@ -1922,7 +1849,7 @@
1922
1849
  "enum": ["json", "yaml", "js", "ts"],
1923
1850
  "description": "Format of the files referenced from the source file, for cases content type isn't detected automatically (Allowed values: json, yaml, js, ts)"
1924
1851
  },
1925
- "baseUrl": {
1852
+ "endpoint": {
1926
1853
  "type": "string",
1927
1854
  "description": "Specifies the URL on which all paths will be based on.\nOverrides the server object in the OAS."
1928
1855
  },
@@ -1932,16 +1859,9 @@
1932
1859
  "description": "If you are using a remote URL endpoint to fetch your schema, you can set headers for the HTTP request to fetch your schema."
1933
1860
  },
1934
1861
  "operationHeaders": {
1935
- "description": "JSON object representing the Headers to add to the runtime of the API calls (Any of: JSON, String)",
1936
- "anyOf": [
1937
- {
1938
- "type": "object",
1939
- "properties": {}
1940
- },
1941
- {
1942
- "type": "string"
1943
- }
1944
- ]
1862
+ "type": "object",
1863
+ "properties": {},
1864
+ "description": "JSON object representing the Headers to add to the runtime of the API calls"
1945
1865
  },
1946
1866
  "ignoreErrorResponses": {
1947
1867
  "type": "boolean",
@@ -2743,10 +2663,10 @@
2743
2663
  "type": "object",
2744
2664
  "title": "RAMLHandler",
2745
2665
  "properties": {
2746
- "ramlFilePath": {
2666
+ "source": {
2747
2667
  "type": "string"
2748
2668
  },
2749
- "baseUrl": {
2669
+ "endpoint": {
2750
2670
  "type": "string"
2751
2671
  },
2752
2672
  "schemaHeaders": {
@@ -2783,7 +2703,7 @@
2783
2703
  ]
2784
2704
  }
2785
2705
  },
2786
- "required": ["ramlFilePath"]
2706
+ "required": ["source"]
2787
2707
  },
2788
2708
  "RAMLSelectQueryOrMutationFieldConfig": {
2789
2709
  "additionalProperties": false,
package/config.d.ts CHANGED
@@ -159,11 +159,7 @@ export interface Handler {
159
159
  */
160
160
  graphql?: GraphQLHandlerHTTPConfiguration | GraphQLHandlerCodeFirstConfiguration | GraphQLHandlerMultipleHTTPConfiguration;
161
161
  grpc?: GrpcHandler;
162
- /**
163
- * Handler for JSON Schema specification.
164
- * Source could be a local json file, or a url to it. (Any of: JsonSchemaHandler, JsonSchemaHandlerBundle)
165
- */
166
- jsonSchema?: JsonSchemaHandler | JsonSchemaHandlerBundle;
162
+ jsonSchema?: JsonSchemaHandler;
167
163
  mongoose?: MongooseHandler;
168
164
  mysql?: MySQLHandler;
169
165
  neo4j?: Neo4JHandler;
@@ -271,13 +267,11 @@ export interface GrpcHandler {
271
267
  */
272
268
  endpoint: string;
273
269
  /**
274
- * gRPC Proto file that contains your protobuf schema (Any of: ProtoFilePath, String)
275
- */
276
- protoFilePath?: ProtoFilePath | string;
277
- /**
270
+ * gRPC Proto file that contains your protobuf schema
271
+ * OR
278
272
  * Use a binary-encoded or JSON file descriptor set file (Any of: ProtoFilePath, String)
279
273
  */
280
- descriptorSetFilePath?: ProtoFilePath | string;
274
+ source?: ProtoFilePath | string;
281
275
  /**
282
276
  * Request timeout in milliseconds
283
277
  * Default: 200000
@@ -294,10 +288,6 @@ export interface GrpcHandler {
294
288
  metaData?: {
295
289
  [k: string]: any;
296
290
  };
297
- /**
298
- * Use gRPC reflection to automatically gather the connection
299
- */
300
- useReflection?: boolean;
301
291
  /**
302
292
  * prefix to collect Query method default: list, get
303
293
  */
@@ -319,14 +309,19 @@ export interface GrpcCredentialsSsl {
319
309
  certChain?: string;
320
310
  privateKey?: string;
321
311
  }
312
+ /**
313
+ * Handler for JSON Schema specification.
314
+ * Source could be a local json file, or a url to it.
315
+ */
322
316
  export interface JsonSchemaHandler {
323
- baseUrl?: string;
324
317
  /**
325
- * Any of: JSON, String
318
+ * Path to the bundle file
326
319
  */
320
+ source?: string;
321
+ endpoint?: string;
327
322
  operationHeaders?: {
328
323
  [k: string]: any;
329
- } | string;
324
+ };
330
325
  schemaHeaders?: {
331
326
  [k: string]: any;
332
327
  };
@@ -495,46 +490,6 @@ export interface QueryStringOptions {
495
490
  */
496
491
  commaRoundTrip?: boolean;
497
492
  }
498
- export interface JsonSchemaHandlerBundle {
499
- /**
500
- * Path to the bundle file
501
- */
502
- bundlePath: any;
503
- /**
504
- * HTTP Headers to receive the bundle
505
- */
506
- bundleHeaders?: {
507
- [k: string]: any;
508
- };
509
- baseUrl?: string;
510
- /**
511
- * Any of: JSON, String
512
- */
513
- operationHeaders?: {
514
- [k: string]: any;
515
- } | string;
516
- queryStringOptions?: QueryStringOptions1;
517
- }
518
- export interface QueryStringOptions1 {
519
- /**
520
- * When arrays are stringified, by default they are not given explicit indices:
521
- * `a=b&a=c&a=d`
522
- * You may override this by setting the indices option to true:
523
- * `a[0]=b&a[1]=c&a[2]=d`
524
- */
525
- indices?: boolean;
526
- /**
527
- * You can configure how to format arrays in the query strings.
528
- *
529
- * Note: when using arrayFormat set to 'comma', you can also pass the commaRoundTrip option set to true or false, to append [] on single-item arrays, so that they can round trip through a parse. (Allowed values: indices, brackets, repeat, comma)
530
- */
531
- arrayFormat?: 'indices' | 'brackets' | 'repeat' | 'comma';
532
- /**
533
- * Even if there is a single item in an array, this option treats them as arrays
534
- * (default: false)
535
- */
536
- commaRoundTrip?: boolean;
537
- }
538
493
  export interface MongooseHandler {
539
494
  connectionString?: string;
540
495
  models?: MongooseModel[];
@@ -762,7 +717,11 @@ export interface Neo4JHandler {
762
717
  /**
763
718
  * URL for the Neo4j Instance e.g. neo4j://localhost
764
719
  */
765
- url: string;
720
+ endpoint: string;
721
+ /**
722
+ * Provide GraphQL Type Definitions instead of inferring
723
+ */
724
+ source?: string;
766
725
  /**
767
726
  * Username for basic authentication
768
727
  */
@@ -779,10 +738,6 @@ export interface Neo4JHandler {
779
738
  * Specifies database name
780
739
  */
781
740
  database?: string;
782
- /**
783
- * Provide GraphQL Type Definitions instead of inferring
784
- */
785
- typeDefs?: string;
786
741
  }
787
742
  /**
788
743
  * Handler for OData
@@ -791,21 +746,21 @@ export interface ODataHandler {
791
746
  /**
792
747
  * Base URL for OData API
793
748
  */
794
- baseUrl: string;
749
+ endpoint: string;
795
750
  /**
796
751
  * Custom $metadata File or URL
797
752
  */
798
- metadata?: string;
753
+ source?: string;
799
754
  /**
800
- * Headers to be used with the operation requests
755
+ * Headers to be used with the $metadata requests
801
756
  */
802
- operationHeaders?: {
757
+ schemaHeaders?: {
803
758
  [k: string]: any;
804
759
  };
805
760
  /**
806
- * Headers to be used with the $metadata requests
761
+ * Headers to be used with the operation requests
807
762
  */
808
- schemaHeaders?: {
763
+ operationHeaders?: {
809
764
  [k: string]: any;
810
765
  };
811
766
  /**
@@ -833,7 +788,7 @@ export interface OpenapiHandler {
833
788
  * Specifies the URL on which all paths will be based on.
834
789
  * Overrides the server object in the OAS.
835
790
  */
836
- baseUrl?: string;
791
+ endpoint?: string;
837
792
  /**
838
793
  * If you are using a remote URL endpoint to fetch your schema, you can set headers for the HTTP request to fetch your schema.
839
794
  */
@@ -841,11 +796,11 @@ export interface OpenapiHandler {
841
796
  [k: string]: any;
842
797
  };
843
798
  /**
844
- * JSON object representing the Headers to add to the runtime of the API calls (Any of: JSON, String)
799
+ * JSON object representing the Headers to add to the runtime of the API calls
845
800
  */
846
801
  operationHeaders?: {
847
802
  [k: string]: any;
848
- } | string;
803
+ };
849
804
  /**
850
805
  * Responses are converted to a Union type grouping all possible responses.
851
806
  * Applying this will ignore all responses with status code other than 2xx, resulting in simpler response types, usualy regular object type instead of union.
@@ -910,8 +865,8 @@ export interface PostGraphileHandler {
910
865
  live?: boolean;
911
866
  }
912
867
  export interface RAMLHandler {
913
- ramlFilePath: string;
914
- baseUrl?: string;
868
+ source: string;
869
+ endpoint?: string;
915
870
  schemaHeaders?: {
916
871
  [k: string]: any;
917
872
  };
package/index.js CHANGED
@@ -446,15 +446,8 @@ var definitions = {
446
446
  description: "Handler for gRPC and Protobuf schemas"
447
447
  },
448
448
  jsonSchema: {
449
- description: "Handler for JSON Schema specification.\nSource could be a local json file, or a url to it. (Any of: JsonSchemaHandler, JsonSchemaHandlerBundle)",
450
- anyOf: [
451
- {
452
- $ref: "#/definitions/JsonSchemaHandler"
453
- },
454
- {
455
- $ref: "#/definitions/JsonSchemaHandlerBundle"
456
- }
457
- ]
449
+ $ref: "#/definitions/JsonSchemaHandler",
450
+ description: "Handler for JSON Schema specification.\nSource could be a local json file, or a url to it."
458
451
  },
459
452
  mongoose: {
460
453
  $ref: "#/definitions/MongooseHandler"
@@ -923,19 +916,8 @@ var definitions = {
923
916
  type: "string",
924
917
  description: "gRPC Endpoint"
925
918
  },
926
- protoFilePath: {
927
- description: "gRPC Proto file that contains your protobuf schema (Any of: ProtoFilePath, String)",
928
- anyOf: [
929
- {
930
- $ref: "#/definitions/ProtoFilePath"
931
- },
932
- {
933
- type: "string"
934
- }
935
- ]
936
- },
937
- descriptorSetFilePath: {
938
- description: "Use a binary-encoded or JSON file descriptor set file (Any of: ProtoFilePath, String)",
919
+ source: {
920
+ description: "gRPC Proto file that contains your protobuf schema\nOR\nUse a binary-encoded or JSON file descriptor set file (Any of: ProtoFilePath, String)",
939
921
  anyOf: [
940
922
  {
941
923
  $ref: "#/definitions/ProtoFilePath"
@@ -963,10 +945,6 @@ var definitions = {
963
945
  },
964
946
  description: "MetaData"
965
947
  },
966
- useReflection: {
967
- type: "boolean",
968
- description: "Use gRPC reflection to automatically gather the connection"
969
- },
970
948
  prefixQueryMethod: {
971
949
  type: "array",
972
950
  items: {
@@ -1029,57 +1007,6 @@ var definitions = {
1029
1007
  }
1030
1008
  }
1031
1009
  },
1032
- JsonSchemaHandlerBundle: {
1033
- additionalProperties: false,
1034
- type: "object",
1035
- title: "JsonSchemaHandlerBundle",
1036
- properties: {
1037
- bundlePath: {
1038
- anyOf: [
1039
- {
1040
- type: "object",
1041
- additionalProperties: true
1042
- },
1043
- {
1044
- type: "string"
1045
- },
1046
- {
1047
- type: "array",
1048
- additionalItems: true
1049
- }
1050
- ],
1051
- description: "Path to the bundle file"
1052
- },
1053
- bundleHeaders: {
1054
- type: "object",
1055
- properties: {
1056
- },
1057
- description: "HTTP Headers to receive the bundle"
1058
- },
1059
- baseUrl: {
1060
- type: "string"
1061
- },
1062
- operationHeaders: {
1063
- description: "Any of: JSON, String",
1064
- anyOf: [
1065
- {
1066
- type: "object",
1067
- properties: {
1068
- }
1069
- },
1070
- {
1071
- type: "string"
1072
- }
1073
- ]
1074
- },
1075
- queryStringOptions: {
1076
- $ref: "#/definitions/QueryStringOptions"
1077
- }
1078
- },
1079
- required: [
1080
- "bundlePath"
1081
- ]
1082
- },
1083
1010
  QueryStringOptions: {
1084
1011
  additionalProperties: false,
1085
1012
  type: "object",
@@ -1110,21 +1037,17 @@ var definitions = {
1110
1037
  type: "object",
1111
1038
  title: "JsonSchemaHandler",
1112
1039
  properties: {
1113
- baseUrl: {
1040
+ source: {
1041
+ type: "string",
1042
+ description: "Path to the bundle file"
1043
+ },
1044
+ endpoint: {
1114
1045
  type: "string"
1115
1046
  },
1116
1047
  operationHeaders: {
1117
- description: "Any of: JSON, String",
1118
- anyOf: [
1119
- {
1120
- type: "object",
1121
- properties: {
1122
- }
1123
- },
1124
- {
1125
- type: "string"
1126
- }
1127
- ]
1048
+ type: "object",
1049
+ properties: {
1050
+ }
1128
1051
  },
1129
1052
  schemaHeaders: {
1130
1053
  type: "object",
@@ -1955,10 +1878,14 @@ var definitions = {
1955
1878
  type: "object",
1956
1879
  title: "Neo4jHandler",
1957
1880
  properties: {
1958
- url: {
1881
+ endpoint: {
1959
1882
  type: "string",
1960
1883
  description: "URL for the Neo4j Instance e.g. neo4j://localhost"
1961
1884
  },
1885
+ source: {
1886
+ type: "string",
1887
+ description: "Provide GraphQL Type Definitions instead of inferring"
1888
+ },
1962
1889
  username: {
1963
1890
  type: "string",
1964
1891
  description: "Username for basic authentication"
@@ -1974,14 +1901,10 @@ var definitions = {
1974
1901
  database: {
1975
1902
  type: "string",
1976
1903
  description: "Specifies database name"
1977
- },
1978
- typeDefs: {
1979
- type: "string",
1980
- description: "Provide GraphQL Type Definitions instead of inferring"
1981
1904
  }
1982
1905
  },
1983
1906
  required: [
1984
- "url",
1907
+ "endpoint",
1985
1908
  "username",
1986
1909
  "password"
1987
1910
  ]
@@ -1991,25 +1914,25 @@ var definitions = {
1991
1914
  type: "object",
1992
1915
  title: "ODataHandler",
1993
1916
  properties: {
1994
- baseUrl: {
1917
+ endpoint: {
1995
1918
  type: "string",
1996
1919
  description: "Base URL for OData API"
1997
1920
  },
1998
- metadata: {
1921
+ source: {
1999
1922
  type: "string",
2000
1923
  description: "Custom $metadata File or URL"
2001
1924
  },
2002
- operationHeaders: {
1925
+ schemaHeaders: {
2003
1926
  type: "object",
2004
1927
  properties: {
2005
1928
  },
2006
- description: "Headers to be used with the operation requests"
1929
+ description: "Headers to be used with the $metadata requests"
2007
1930
  },
2008
- schemaHeaders: {
1931
+ operationHeaders: {
2009
1932
  type: "object",
2010
1933
  properties: {
2011
1934
  },
2012
- description: "Headers to be used with the $metadata requests"
1935
+ description: "Headers to be used with the operation requests"
2013
1936
  },
2014
1937
  batch: {
2015
1938
  type: "string",
@@ -2025,7 +1948,7 @@ var definitions = {
2025
1948
  }
2026
1949
  },
2027
1950
  required: [
2028
- "baseUrl"
1951
+ "endpoint"
2029
1952
  ]
2030
1953
  },
2031
1954
  OpenapiHandler: {
@@ -2047,7 +1970,7 @@ var definitions = {
2047
1970
  ],
2048
1971
  description: "Format of the files referenced from the source file, for cases content type isn't detected automatically (Allowed values: json, yaml, js, ts)"
2049
1972
  },
2050
- baseUrl: {
1973
+ endpoint: {
2051
1974
  type: "string",
2052
1975
  description: "Specifies the URL on which all paths will be based on.\nOverrides the server object in the OAS."
2053
1976
  },
@@ -2058,17 +1981,10 @@ var definitions = {
2058
1981
  description: "If you are using a remote URL endpoint to fetch your schema, you can set headers for the HTTP request to fetch your schema."
2059
1982
  },
2060
1983
  operationHeaders: {
2061
- description: "JSON object representing the Headers to add to the runtime of the API calls (Any of: JSON, String)",
2062
- anyOf: [
2063
- {
2064
- type: "object",
2065
- properties: {
2066
- }
2067
- },
2068
- {
2069
- type: "string"
2070
- }
2071
- ]
1984
+ type: "object",
1985
+ properties: {
1986
+ },
1987
+ description: "JSON object representing the Headers to add to the runtime of the API calls"
2072
1988
  },
2073
1989
  ignoreErrorResponses: {
2074
1990
  type: "boolean",
@@ -2911,10 +2827,10 @@ var definitions = {
2911
2827
  type: "object",
2912
2828
  title: "RAMLHandler",
2913
2829
  properties: {
2914
- ramlFilePath: {
2830
+ source: {
2915
2831
  type: "string"
2916
2832
  },
2917
- baseUrl: {
2833
+ endpoint: {
2918
2834
  type: "string"
2919
2835
  },
2920
2836
  schemaHeaders: {
@@ -2954,7 +2870,7 @@ var definitions = {
2954
2870
  }
2955
2871
  },
2956
2872
  required: [
2957
- "ramlFilePath"
2873
+ "source"
2958
2874
  ]
2959
2875
  },
2960
2876
  RAMLSelectQueryOrMutationFieldConfig: {
package/index.mjs CHANGED
@@ -442,15 +442,8 @@ var definitions = {
442
442
  description: "Handler for gRPC and Protobuf schemas"
443
443
  },
444
444
  jsonSchema: {
445
- description: "Handler for JSON Schema specification.\nSource could be a local json file, or a url to it. (Any of: JsonSchemaHandler, JsonSchemaHandlerBundle)",
446
- anyOf: [
447
- {
448
- $ref: "#/definitions/JsonSchemaHandler"
449
- },
450
- {
451
- $ref: "#/definitions/JsonSchemaHandlerBundle"
452
- }
453
- ]
445
+ $ref: "#/definitions/JsonSchemaHandler",
446
+ description: "Handler for JSON Schema specification.\nSource could be a local json file, or a url to it."
454
447
  },
455
448
  mongoose: {
456
449
  $ref: "#/definitions/MongooseHandler"
@@ -919,19 +912,8 @@ var definitions = {
919
912
  type: "string",
920
913
  description: "gRPC Endpoint"
921
914
  },
922
- protoFilePath: {
923
- description: "gRPC Proto file that contains your protobuf schema (Any of: ProtoFilePath, String)",
924
- anyOf: [
925
- {
926
- $ref: "#/definitions/ProtoFilePath"
927
- },
928
- {
929
- type: "string"
930
- }
931
- ]
932
- },
933
- descriptorSetFilePath: {
934
- description: "Use a binary-encoded or JSON file descriptor set file (Any of: ProtoFilePath, String)",
915
+ source: {
916
+ description: "gRPC Proto file that contains your protobuf schema\nOR\nUse a binary-encoded or JSON file descriptor set file (Any of: ProtoFilePath, String)",
935
917
  anyOf: [
936
918
  {
937
919
  $ref: "#/definitions/ProtoFilePath"
@@ -959,10 +941,6 @@ var definitions = {
959
941
  },
960
942
  description: "MetaData"
961
943
  },
962
- useReflection: {
963
- type: "boolean",
964
- description: "Use gRPC reflection to automatically gather the connection"
965
- },
966
944
  prefixQueryMethod: {
967
945
  type: "array",
968
946
  items: {
@@ -1025,57 +1003,6 @@ var definitions = {
1025
1003
  }
1026
1004
  }
1027
1005
  },
1028
- JsonSchemaHandlerBundle: {
1029
- additionalProperties: false,
1030
- type: "object",
1031
- title: "JsonSchemaHandlerBundle",
1032
- properties: {
1033
- bundlePath: {
1034
- anyOf: [
1035
- {
1036
- type: "object",
1037
- additionalProperties: true
1038
- },
1039
- {
1040
- type: "string"
1041
- },
1042
- {
1043
- type: "array",
1044
- additionalItems: true
1045
- }
1046
- ],
1047
- description: "Path to the bundle file"
1048
- },
1049
- bundleHeaders: {
1050
- type: "object",
1051
- properties: {
1052
- },
1053
- description: "HTTP Headers to receive the bundle"
1054
- },
1055
- baseUrl: {
1056
- type: "string"
1057
- },
1058
- operationHeaders: {
1059
- description: "Any of: JSON, String",
1060
- anyOf: [
1061
- {
1062
- type: "object",
1063
- properties: {
1064
- }
1065
- },
1066
- {
1067
- type: "string"
1068
- }
1069
- ]
1070
- },
1071
- queryStringOptions: {
1072
- $ref: "#/definitions/QueryStringOptions"
1073
- }
1074
- },
1075
- required: [
1076
- "bundlePath"
1077
- ]
1078
- },
1079
1006
  QueryStringOptions: {
1080
1007
  additionalProperties: false,
1081
1008
  type: "object",
@@ -1106,21 +1033,17 @@ var definitions = {
1106
1033
  type: "object",
1107
1034
  title: "JsonSchemaHandler",
1108
1035
  properties: {
1109
- baseUrl: {
1036
+ source: {
1037
+ type: "string",
1038
+ description: "Path to the bundle file"
1039
+ },
1040
+ endpoint: {
1110
1041
  type: "string"
1111
1042
  },
1112
1043
  operationHeaders: {
1113
- description: "Any of: JSON, String",
1114
- anyOf: [
1115
- {
1116
- type: "object",
1117
- properties: {
1118
- }
1119
- },
1120
- {
1121
- type: "string"
1122
- }
1123
- ]
1044
+ type: "object",
1045
+ properties: {
1046
+ }
1124
1047
  },
1125
1048
  schemaHeaders: {
1126
1049
  type: "object",
@@ -1951,10 +1874,14 @@ var definitions = {
1951
1874
  type: "object",
1952
1875
  title: "Neo4jHandler",
1953
1876
  properties: {
1954
- url: {
1877
+ endpoint: {
1955
1878
  type: "string",
1956
1879
  description: "URL for the Neo4j Instance e.g. neo4j://localhost"
1957
1880
  },
1881
+ source: {
1882
+ type: "string",
1883
+ description: "Provide GraphQL Type Definitions instead of inferring"
1884
+ },
1958
1885
  username: {
1959
1886
  type: "string",
1960
1887
  description: "Username for basic authentication"
@@ -1970,14 +1897,10 @@ var definitions = {
1970
1897
  database: {
1971
1898
  type: "string",
1972
1899
  description: "Specifies database name"
1973
- },
1974
- typeDefs: {
1975
- type: "string",
1976
- description: "Provide GraphQL Type Definitions instead of inferring"
1977
1900
  }
1978
1901
  },
1979
1902
  required: [
1980
- "url",
1903
+ "endpoint",
1981
1904
  "username",
1982
1905
  "password"
1983
1906
  ]
@@ -1987,25 +1910,25 @@ var definitions = {
1987
1910
  type: "object",
1988
1911
  title: "ODataHandler",
1989
1912
  properties: {
1990
- baseUrl: {
1913
+ endpoint: {
1991
1914
  type: "string",
1992
1915
  description: "Base URL for OData API"
1993
1916
  },
1994
- metadata: {
1917
+ source: {
1995
1918
  type: "string",
1996
1919
  description: "Custom $metadata File or URL"
1997
1920
  },
1998
- operationHeaders: {
1921
+ schemaHeaders: {
1999
1922
  type: "object",
2000
1923
  properties: {
2001
1924
  },
2002
- description: "Headers to be used with the operation requests"
1925
+ description: "Headers to be used with the $metadata requests"
2003
1926
  },
2004
- schemaHeaders: {
1927
+ operationHeaders: {
2005
1928
  type: "object",
2006
1929
  properties: {
2007
1930
  },
2008
- description: "Headers to be used with the $metadata requests"
1931
+ description: "Headers to be used with the operation requests"
2009
1932
  },
2010
1933
  batch: {
2011
1934
  type: "string",
@@ -2021,7 +1944,7 @@ var definitions = {
2021
1944
  }
2022
1945
  },
2023
1946
  required: [
2024
- "baseUrl"
1947
+ "endpoint"
2025
1948
  ]
2026
1949
  },
2027
1950
  OpenapiHandler: {
@@ -2043,7 +1966,7 @@ var definitions = {
2043
1966
  ],
2044
1967
  description: "Format of the files referenced from the source file, for cases content type isn't detected automatically (Allowed values: json, yaml, js, ts)"
2045
1968
  },
2046
- baseUrl: {
1969
+ endpoint: {
2047
1970
  type: "string",
2048
1971
  description: "Specifies the URL on which all paths will be based on.\nOverrides the server object in the OAS."
2049
1972
  },
@@ -2054,17 +1977,10 @@ var definitions = {
2054
1977
  description: "If you are using a remote URL endpoint to fetch your schema, you can set headers for the HTTP request to fetch your schema."
2055
1978
  },
2056
1979
  operationHeaders: {
2057
- description: "JSON object representing the Headers to add to the runtime of the API calls (Any of: JSON, String)",
2058
- anyOf: [
2059
- {
2060
- type: "object",
2061
- properties: {
2062
- }
2063
- },
2064
- {
2065
- type: "string"
2066
- }
2067
- ]
1980
+ type: "object",
1981
+ properties: {
1982
+ },
1983
+ description: "JSON object representing the Headers to add to the runtime of the API calls"
2068
1984
  },
2069
1985
  ignoreErrorResponses: {
2070
1986
  type: "boolean",
@@ -2907,10 +2823,10 @@ var definitions = {
2907
2823
  type: "object",
2908
2824
  title: "RAMLHandler",
2909
2825
  properties: {
2910
- ramlFilePath: {
2826
+ source: {
2911
2827
  type: "string"
2912
2828
  },
2913
- baseUrl: {
2829
+ endpoint: {
2914
2830
  type: "string"
2915
2831
  },
2916
2832
  schemaHeaders: {
@@ -2950,7 +2866,7 @@ var definitions = {
2950
2866
  }
2951
2867
  },
2952
2868
  required: [
2953
- "ramlFilePath"
2869
+ "source"
2954
2870
  ]
2955
2871
  },
2956
2872
  RAMLSelectQueryOrMutationFieldConfig: {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@graphql-mesh/types",
3
- "version": "0.87.0",
3
+ "version": "0.87.1-alpha-20221126112426-2a7d1e362",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "*"
7
7
  },
8
8
  "dependencies": {
9
- "@graphql-mesh/store": "0.8.64",
9
+ "@graphql-mesh/store": "0.8.65-alpha-20221126112426-2a7d1e362",
10
10
  "@graphql-tools/batch-delegate": "8.4.10",
11
11
  "@graphql-tools/delegate": "9.0.17",
12
12
  "@graphql-tools/utils": "9.1.1",