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