@graphql-mesh/types 0.88.0 → 0.88.1-alpha-20221207154300-4e93bfafd
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/config-schema.json +39 -96
- package/esm/config-schema.json +39 -96
- package/package.json +2 -2
- package/typings/config.d.cts +36 -65
- package/typings/config.d.ts +36 -65
package/cjs/config-schema.json
CHANGED
|
@@ -425,15 +425,8 @@
|
|
|
425
425
|
"description": "Handler for gRPC and Protobuf schemas"
|
|
426
426
|
},
|
|
427
427
|
"jsonSchema": {
|
|
428
|
-
"
|
|
429
|
-
"
|
|
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"
|
|
@@ -956,53 +949,6 @@
|
|
|
956
949
|
}
|
|
957
950
|
}
|
|
958
951
|
},
|
|
959
|
-
"JsonSchemaHandlerBundle": {
|
|
960
|
-
"additionalProperties": false,
|
|
961
|
-
"type": "object",
|
|
962
|
-
"title": "JsonSchemaHandlerBundle",
|
|
963
|
-
"properties": {
|
|
964
|
-
"bundlePath": {
|
|
965
|
-
"anyOf": [
|
|
966
|
-
{
|
|
967
|
-
"type": "object",
|
|
968
|
-
"additionalProperties": true
|
|
969
|
-
},
|
|
970
|
-
{
|
|
971
|
-
"type": "string"
|
|
972
|
-
},
|
|
973
|
-
{
|
|
974
|
-
"type": "array",
|
|
975
|
-
"additionalItems": true
|
|
976
|
-
}
|
|
977
|
-
],
|
|
978
|
-
"description": "Path to the bundle file"
|
|
979
|
-
},
|
|
980
|
-
"bundleHeaders": {
|
|
981
|
-
"type": "object",
|
|
982
|
-
"properties": {},
|
|
983
|
-
"description": "HTTP Headers to receive the bundle"
|
|
984
|
-
},
|
|
985
|
-
"baseUrl": {
|
|
986
|
-
"type": "string"
|
|
987
|
-
},
|
|
988
|
-
"operationHeaders": {
|
|
989
|
-
"description": "Any of: JSON, String",
|
|
990
|
-
"anyOf": [
|
|
991
|
-
{
|
|
992
|
-
"type": "object",
|
|
993
|
-
"properties": {}
|
|
994
|
-
},
|
|
995
|
-
{
|
|
996
|
-
"type": "string"
|
|
997
|
-
}
|
|
998
|
-
]
|
|
999
|
-
},
|
|
1000
|
-
"queryStringOptions": {
|
|
1001
|
-
"$ref": "#/definitions/QueryStringOptions"
|
|
1002
|
-
}
|
|
1003
|
-
},
|
|
1004
|
-
"required": ["bundlePath"]
|
|
1005
|
-
},
|
|
1006
952
|
"QueryStringOptions": {
|
|
1007
953
|
"additionalProperties": false,
|
|
1008
954
|
"type": "object",
|
|
@@ -1028,20 +974,16 @@
|
|
|
1028
974
|
"type": "object",
|
|
1029
975
|
"title": "JsonSchemaHandler",
|
|
1030
976
|
"properties": {
|
|
1031
|
-
"
|
|
977
|
+
"source": {
|
|
978
|
+
"type": "string",
|
|
979
|
+
"description": "Path to the bundle file"
|
|
980
|
+
},
|
|
981
|
+
"endpoint": {
|
|
1032
982
|
"type": "string"
|
|
1033
983
|
},
|
|
1034
984
|
"operationHeaders": {
|
|
1035
|
-
"
|
|
1036
|
-
"
|
|
1037
|
-
{
|
|
1038
|
-
"type": "object",
|
|
1039
|
-
"properties": {}
|
|
1040
|
-
},
|
|
1041
|
-
{
|
|
1042
|
-
"type": "string"
|
|
1043
|
-
}
|
|
1044
|
-
]
|
|
985
|
+
"type": "object",
|
|
986
|
+
"properties": {}
|
|
1045
987
|
},
|
|
1046
988
|
"schemaHeaders": {
|
|
1047
989
|
"type": "object",
|
|
@@ -1083,9 +1025,17 @@
|
|
|
1083
1025
|
},
|
|
1084
1026
|
"queryStringOptions": {
|
|
1085
1027
|
"$ref": "#/definitions/QueryStringOptions"
|
|
1028
|
+
},
|
|
1029
|
+
"bundlePath": {
|
|
1030
|
+
"type": "string",
|
|
1031
|
+
"description": "Will be removed later"
|
|
1032
|
+
},
|
|
1033
|
+
"bundleHeaders": {
|
|
1034
|
+
"type": "object",
|
|
1035
|
+
"properties": {},
|
|
1036
|
+
"description": "Will be removed later"
|
|
1086
1037
|
}
|
|
1087
|
-
}
|
|
1088
|
-
"required": ["operations"]
|
|
1038
|
+
}
|
|
1089
1039
|
},
|
|
1090
1040
|
"JsonSchemaHTTPOperation": {
|
|
1091
1041
|
"additionalProperties": false,
|
|
@@ -1831,10 +1781,14 @@
|
|
|
1831
1781
|
"type": "object",
|
|
1832
1782
|
"title": "Neo4jHandler",
|
|
1833
1783
|
"properties": {
|
|
1834
|
-
"
|
|
1784
|
+
"endpoint": {
|
|
1835
1785
|
"type": "string",
|
|
1836
1786
|
"description": "URL for the Neo4j Instance e.g. neo4j://localhost"
|
|
1837
1787
|
},
|
|
1788
|
+
"source": {
|
|
1789
|
+
"type": "string",
|
|
1790
|
+
"description": "Provide GraphQL Type Definitions instead of inferring"
|
|
1791
|
+
},
|
|
1838
1792
|
"username": {
|
|
1839
1793
|
"type": "string",
|
|
1840
1794
|
"description": "Username for basic authentication"
|
|
@@ -1850,36 +1804,32 @@
|
|
|
1850
1804
|
"database": {
|
|
1851
1805
|
"type": "string",
|
|
1852
1806
|
"description": "Specifies database name"
|
|
1853
|
-
},
|
|
1854
|
-
"typeDefs": {
|
|
1855
|
-
"type": "string",
|
|
1856
|
-
"description": "Provide GraphQL Type Definitions instead of inferring"
|
|
1857
1807
|
}
|
|
1858
1808
|
},
|
|
1859
|
-
"required": ["
|
|
1809
|
+
"required": ["endpoint", "username", "password"]
|
|
1860
1810
|
},
|
|
1861
1811
|
"ODataHandler": {
|
|
1862
1812
|
"additionalProperties": false,
|
|
1863
1813
|
"type": "object",
|
|
1864
1814
|
"title": "ODataHandler",
|
|
1865
1815
|
"properties": {
|
|
1866
|
-
"
|
|
1816
|
+
"endpoint": {
|
|
1867
1817
|
"type": "string",
|
|
1868
1818
|
"description": "Base URL for OData API"
|
|
1869
1819
|
},
|
|
1870
|
-
"
|
|
1820
|
+
"source": {
|
|
1871
1821
|
"type": "string",
|
|
1872
1822
|
"description": "Custom $metadata File or URL"
|
|
1873
1823
|
},
|
|
1874
|
-
"
|
|
1824
|
+
"schemaHeaders": {
|
|
1875
1825
|
"type": "object",
|
|
1876
1826
|
"properties": {},
|
|
1877
|
-
"description": "Headers to be used with the
|
|
1827
|
+
"description": "Headers to be used with the $metadata requests"
|
|
1878
1828
|
},
|
|
1879
|
-
"
|
|
1829
|
+
"operationHeaders": {
|
|
1880
1830
|
"type": "object",
|
|
1881
1831
|
"properties": {},
|
|
1882
|
-
"description": "Headers to be used with the
|
|
1832
|
+
"description": "Headers to be used with the operation requests"
|
|
1883
1833
|
},
|
|
1884
1834
|
"batch": {
|
|
1885
1835
|
"type": "string",
|
|
@@ -1891,7 +1841,7 @@
|
|
|
1891
1841
|
"description": "Use $expand for navigation props instead of seperate HTTP requests (Default: false)"
|
|
1892
1842
|
}
|
|
1893
1843
|
},
|
|
1894
|
-
"required": ["
|
|
1844
|
+
"required": ["endpoint"]
|
|
1895
1845
|
},
|
|
1896
1846
|
"OpenapiHandler": {
|
|
1897
1847
|
"additionalProperties": false,
|
|
@@ -1907,7 +1857,7 @@
|
|
|
1907
1857
|
"enum": ["json", "yaml", "js", "ts"],
|
|
1908
1858
|
"description": "Format of the files referenced from the source file, for cases content type isn't detected automatically (Allowed values: json, yaml, js, ts)"
|
|
1909
1859
|
},
|
|
1910
|
-
"
|
|
1860
|
+
"endpoint": {
|
|
1911
1861
|
"type": "string",
|
|
1912
1862
|
"description": "Specifies the URL on which all paths will be based on.\nOverrides the server object in the OAS."
|
|
1913
1863
|
},
|
|
@@ -1917,16 +1867,9 @@
|
|
|
1917
1867
|
"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."
|
|
1918
1868
|
},
|
|
1919
1869
|
"operationHeaders": {
|
|
1920
|
-
"
|
|
1921
|
-
"
|
|
1922
|
-
|
|
1923
|
-
"type": "object",
|
|
1924
|
-
"properties": {}
|
|
1925
|
-
},
|
|
1926
|
-
{
|
|
1927
|
-
"type": "string"
|
|
1928
|
-
}
|
|
1929
|
-
]
|
|
1870
|
+
"type": "object",
|
|
1871
|
+
"properties": {},
|
|
1872
|
+
"description": "JSON object representing the Headers to add to the runtime of the API calls"
|
|
1930
1873
|
},
|
|
1931
1874
|
"ignoreErrorResponses": {
|
|
1932
1875
|
"type": "boolean",
|
|
@@ -2728,10 +2671,10 @@
|
|
|
2728
2671
|
"type": "object",
|
|
2729
2672
|
"title": "RAMLHandler",
|
|
2730
2673
|
"properties": {
|
|
2731
|
-
"
|
|
2674
|
+
"source": {
|
|
2732
2675
|
"type": "string"
|
|
2733
2676
|
},
|
|
2734
|
-
"
|
|
2677
|
+
"endpoint": {
|
|
2735
2678
|
"type": "string"
|
|
2736
2679
|
},
|
|
2737
2680
|
"schemaHeaders": {
|
|
@@ -2768,7 +2711,7 @@
|
|
|
2768
2711
|
]
|
|
2769
2712
|
}
|
|
2770
2713
|
},
|
|
2771
|
-
"required": ["
|
|
2714
|
+
"required": ["source"]
|
|
2772
2715
|
},
|
|
2773
2716
|
"RAMLSelectQueryOrMutationFieldConfig": {
|
|
2774
2717
|
"additionalProperties": false,
|
package/esm/config-schema.json
CHANGED
|
@@ -425,15 +425,8 @@
|
|
|
425
425
|
"description": "Handler for gRPC and Protobuf schemas"
|
|
426
426
|
},
|
|
427
427
|
"jsonSchema": {
|
|
428
|
-
"
|
|
429
|
-
"
|
|
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"
|
|
@@ -956,53 +949,6 @@
|
|
|
956
949
|
}
|
|
957
950
|
}
|
|
958
951
|
},
|
|
959
|
-
"JsonSchemaHandlerBundle": {
|
|
960
|
-
"additionalProperties": false,
|
|
961
|
-
"type": "object",
|
|
962
|
-
"title": "JsonSchemaHandlerBundle",
|
|
963
|
-
"properties": {
|
|
964
|
-
"bundlePath": {
|
|
965
|
-
"anyOf": [
|
|
966
|
-
{
|
|
967
|
-
"type": "object",
|
|
968
|
-
"additionalProperties": true
|
|
969
|
-
},
|
|
970
|
-
{
|
|
971
|
-
"type": "string"
|
|
972
|
-
},
|
|
973
|
-
{
|
|
974
|
-
"type": "array",
|
|
975
|
-
"additionalItems": true
|
|
976
|
-
}
|
|
977
|
-
],
|
|
978
|
-
"description": "Path to the bundle file"
|
|
979
|
-
},
|
|
980
|
-
"bundleHeaders": {
|
|
981
|
-
"type": "object",
|
|
982
|
-
"properties": {},
|
|
983
|
-
"description": "HTTP Headers to receive the bundle"
|
|
984
|
-
},
|
|
985
|
-
"baseUrl": {
|
|
986
|
-
"type": "string"
|
|
987
|
-
},
|
|
988
|
-
"operationHeaders": {
|
|
989
|
-
"description": "Any of: JSON, String",
|
|
990
|
-
"anyOf": [
|
|
991
|
-
{
|
|
992
|
-
"type": "object",
|
|
993
|
-
"properties": {}
|
|
994
|
-
},
|
|
995
|
-
{
|
|
996
|
-
"type": "string"
|
|
997
|
-
}
|
|
998
|
-
]
|
|
999
|
-
},
|
|
1000
|
-
"queryStringOptions": {
|
|
1001
|
-
"$ref": "#/definitions/QueryStringOptions"
|
|
1002
|
-
}
|
|
1003
|
-
},
|
|
1004
|
-
"required": ["bundlePath"]
|
|
1005
|
-
},
|
|
1006
952
|
"QueryStringOptions": {
|
|
1007
953
|
"additionalProperties": false,
|
|
1008
954
|
"type": "object",
|
|
@@ -1028,20 +974,16 @@
|
|
|
1028
974
|
"type": "object",
|
|
1029
975
|
"title": "JsonSchemaHandler",
|
|
1030
976
|
"properties": {
|
|
1031
|
-
"
|
|
977
|
+
"source": {
|
|
978
|
+
"type": "string",
|
|
979
|
+
"description": "Path to the bundle file"
|
|
980
|
+
},
|
|
981
|
+
"endpoint": {
|
|
1032
982
|
"type": "string"
|
|
1033
983
|
},
|
|
1034
984
|
"operationHeaders": {
|
|
1035
|
-
"
|
|
1036
|
-
"
|
|
1037
|
-
{
|
|
1038
|
-
"type": "object",
|
|
1039
|
-
"properties": {}
|
|
1040
|
-
},
|
|
1041
|
-
{
|
|
1042
|
-
"type": "string"
|
|
1043
|
-
}
|
|
1044
|
-
]
|
|
985
|
+
"type": "object",
|
|
986
|
+
"properties": {}
|
|
1045
987
|
},
|
|
1046
988
|
"schemaHeaders": {
|
|
1047
989
|
"type": "object",
|
|
@@ -1083,9 +1025,17 @@
|
|
|
1083
1025
|
},
|
|
1084
1026
|
"queryStringOptions": {
|
|
1085
1027
|
"$ref": "#/definitions/QueryStringOptions"
|
|
1028
|
+
},
|
|
1029
|
+
"bundlePath": {
|
|
1030
|
+
"type": "string",
|
|
1031
|
+
"description": "Will be removed later"
|
|
1032
|
+
},
|
|
1033
|
+
"bundleHeaders": {
|
|
1034
|
+
"type": "object",
|
|
1035
|
+
"properties": {},
|
|
1036
|
+
"description": "Will be removed later"
|
|
1086
1037
|
}
|
|
1087
|
-
}
|
|
1088
|
-
"required": ["operations"]
|
|
1038
|
+
}
|
|
1089
1039
|
},
|
|
1090
1040
|
"JsonSchemaHTTPOperation": {
|
|
1091
1041
|
"additionalProperties": false,
|
|
@@ -1831,10 +1781,14 @@
|
|
|
1831
1781
|
"type": "object",
|
|
1832
1782
|
"title": "Neo4jHandler",
|
|
1833
1783
|
"properties": {
|
|
1834
|
-
"
|
|
1784
|
+
"endpoint": {
|
|
1835
1785
|
"type": "string",
|
|
1836
1786
|
"description": "URL for the Neo4j Instance e.g. neo4j://localhost"
|
|
1837
1787
|
},
|
|
1788
|
+
"source": {
|
|
1789
|
+
"type": "string",
|
|
1790
|
+
"description": "Provide GraphQL Type Definitions instead of inferring"
|
|
1791
|
+
},
|
|
1838
1792
|
"username": {
|
|
1839
1793
|
"type": "string",
|
|
1840
1794
|
"description": "Username for basic authentication"
|
|
@@ -1850,36 +1804,32 @@
|
|
|
1850
1804
|
"database": {
|
|
1851
1805
|
"type": "string",
|
|
1852
1806
|
"description": "Specifies database name"
|
|
1853
|
-
},
|
|
1854
|
-
"typeDefs": {
|
|
1855
|
-
"type": "string",
|
|
1856
|
-
"description": "Provide GraphQL Type Definitions instead of inferring"
|
|
1857
1807
|
}
|
|
1858
1808
|
},
|
|
1859
|
-
"required": ["
|
|
1809
|
+
"required": ["endpoint", "username", "password"]
|
|
1860
1810
|
},
|
|
1861
1811
|
"ODataHandler": {
|
|
1862
1812
|
"additionalProperties": false,
|
|
1863
1813
|
"type": "object",
|
|
1864
1814
|
"title": "ODataHandler",
|
|
1865
1815
|
"properties": {
|
|
1866
|
-
"
|
|
1816
|
+
"endpoint": {
|
|
1867
1817
|
"type": "string",
|
|
1868
1818
|
"description": "Base URL for OData API"
|
|
1869
1819
|
},
|
|
1870
|
-
"
|
|
1820
|
+
"source": {
|
|
1871
1821
|
"type": "string",
|
|
1872
1822
|
"description": "Custom $metadata File or URL"
|
|
1873
1823
|
},
|
|
1874
|
-
"
|
|
1824
|
+
"schemaHeaders": {
|
|
1875
1825
|
"type": "object",
|
|
1876
1826
|
"properties": {},
|
|
1877
|
-
"description": "Headers to be used with the
|
|
1827
|
+
"description": "Headers to be used with the $metadata requests"
|
|
1878
1828
|
},
|
|
1879
|
-
"
|
|
1829
|
+
"operationHeaders": {
|
|
1880
1830
|
"type": "object",
|
|
1881
1831
|
"properties": {},
|
|
1882
|
-
"description": "Headers to be used with the
|
|
1832
|
+
"description": "Headers to be used with the operation requests"
|
|
1883
1833
|
},
|
|
1884
1834
|
"batch": {
|
|
1885
1835
|
"type": "string",
|
|
@@ -1891,7 +1841,7 @@
|
|
|
1891
1841
|
"description": "Use $expand for navigation props instead of seperate HTTP requests (Default: false)"
|
|
1892
1842
|
}
|
|
1893
1843
|
},
|
|
1894
|
-
"required": ["
|
|
1844
|
+
"required": ["endpoint"]
|
|
1895
1845
|
},
|
|
1896
1846
|
"OpenapiHandler": {
|
|
1897
1847
|
"additionalProperties": false,
|
|
@@ -1907,7 +1857,7 @@
|
|
|
1907
1857
|
"enum": ["json", "yaml", "js", "ts"],
|
|
1908
1858
|
"description": "Format of the files referenced from the source file, for cases content type isn't detected automatically (Allowed values: json, yaml, js, ts)"
|
|
1909
1859
|
},
|
|
1910
|
-
"
|
|
1860
|
+
"endpoint": {
|
|
1911
1861
|
"type": "string",
|
|
1912
1862
|
"description": "Specifies the URL on which all paths will be based on.\nOverrides the server object in the OAS."
|
|
1913
1863
|
},
|
|
@@ -1917,16 +1867,9 @@
|
|
|
1917
1867
|
"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."
|
|
1918
1868
|
},
|
|
1919
1869
|
"operationHeaders": {
|
|
1920
|
-
"
|
|
1921
|
-
"
|
|
1922
|
-
|
|
1923
|
-
"type": "object",
|
|
1924
|
-
"properties": {}
|
|
1925
|
-
},
|
|
1926
|
-
{
|
|
1927
|
-
"type": "string"
|
|
1928
|
-
}
|
|
1929
|
-
]
|
|
1870
|
+
"type": "object",
|
|
1871
|
+
"properties": {},
|
|
1872
|
+
"description": "JSON object representing the Headers to add to the runtime of the API calls"
|
|
1930
1873
|
},
|
|
1931
1874
|
"ignoreErrorResponses": {
|
|
1932
1875
|
"type": "boolean",
|
|
@@ -2728,10 +2671,10 @@
|
|
|
2728
2671
|
"type": "object",
|
|
2729
2672
|
"title": "RAMLHandler",
|
|
2730
2673
|
"properties": {
|
|
2731
|
-
"
|
|
2674
|
+
"source": {
|
|
2732
2675
|
"type": "string"
|
|
2733
2676
|
},
|
|
2734
|
-
"
|
|
2677
|
+
"endpoint": {
|
|
2735
2678
|
"type": "string"
|
|
2736
2679
|
},
|
|
2737
2680
|
"schemaHeaders": {
|
|
@@ -2768,7 +2711,7 @@
|
|
|
2768
2711
|
]
|
|
2769
2712
|
}
|
|
2770
2713
|
},
|
|
2771
|
-
"required": ["
|
|
2714
|
+
"required": ["source"]
|
|
2772
2715
|
},
|
|
2773
2716
|
"RAMLSelectQueryOrMutationFieldConfig": {
|
|
2774
2717
|
"additionalProperties": false,
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/types",
|
|
3
|
-
"version": "0.88.
|
|
3
|
+
"version": "0.88.1-alpha-20221207154300-4e93bfafd",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "*"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@graphql-mesh/store": "0.9.
|
|
9
|
+
"@graphql-mesh/store": "0.9.1-alpha-20221207154300-4e93bfafd",
|
|
10
10
|
"@graphql-tools/batch-delegate": "8.4.12",
|
|
11
11
|
"@graphql-tools/delegate": "9.0.19",
|
|
12
12
|
"@graphql-tools/utils": "9.1.3",
|
package/typings/config.d.cts
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;
|
|
@@ -313,24 +309,39 @@ export interface GrpcCredentialsSsl {
|
|
|
313
309
|
certChain?: string;
|
|
314
310
|
privateKey?: string;
|
|
315
311
|
}
|
|
312
|
+
/**
|
|
313
|
+
* Handler for JSON Schema specification.
|
|
314
|
+
* Source could be a local json file, or a url to it.
|
|
315
|
+
*/
|
|
316
316
|
export interface JsonSchemaHandler {
|
|
317
|
-
baseUrl?: string;
|
|
318
317
|
/**
|
|
319
|
-
*
|
|
318
|
+
* Path to the bundle file
|
|
320
319
|
*/
|
|
320
|
+
source?: string;
|
|
321
|
+
endpoint?: string;
|
|
321
322
|
operationHeaders?: {
|
|
322
323
|
[k: string]: any;
|
|
323
|
-
}
|
|
324
|
+
};
|
|
324
325
|
schemaHeaders?: {
|
|
325
326
|
[k: string]: any;
|
|
326
327
|
};
|
|
327
328
|
/**
|
|
328
329
|
* Any of: JsonSchemaHTTPOperation, JsonSchemaPubSubOperation
|
|
329
330
|
*/
|
|
330
|
-
operations
|
|
331
|
+
operations?: (JsonSchemaHTTPOperation | JsonSchemaPubSubOperation)[];
|
|
331
332
|
ignoreErrorResponses?: boolean;
|
|
332
333
|
queryParams?: any;
|
|
333
334
|
queryStringOptions?: QueryStringOptions;
|
|
335
|
+
/**
|
|
336
|
+
* Will be removed later
|
|
337
|
+
*/
|
|
338
|
+
bundlePath?: string;
|
|
339
|
+
/**
|
|
340
|
+
* Will be removed later
|
|
341
|
+
*/
|
|
342
|
+
bundleHeaders?: {
|
|
343
|
+
[k: string]: any;
|
|
344
|
+
};
|
|
334
345
|
}
|
|
335
346
|
export interface JsonSchemaHTTPOperation {
|
|
336
347
|
/**
|
|
@@ -489,46 +500,6 @@ export interface QueryStringOptions {
|
|
|
489
500
|
*/
|
|
490
501
|
commaRoundTrip?: boolean;
|
|
491
502
|
}
|
|
492
|
-
export interface JsonSchemaHandlerBundle {
|
|
493
|
-
/**
|
|
494
|
-
* Path to the bundle file
|
|
495
|
-
*/
|
|
496
|
-
bundlePath: any;
|
|
497
|
-
/**
|
|
498
|
-
* HTTP Headers to receive the bundle
|
|
499
|
-
*/
|
|
500
|
-
bundleHeaders?: {
|
|
501
|
-
[k: string]: any;
|
|
502
|
-
};
|
|
503
|
-
baseUrl?: string;
|
|
504
|
-
/**
|
|
505
|
-
* Any of: JSON, String
|
|
506
|
-
*/
|
|
507
|
-
operationHeaders?: {
|
|
508
|
-
[k: string]: any;
|
|
509
|
-
} | string;
|
|
510
|
-
queryStringOptions?: QueryStringOptions1;
|
|
511
|
-
}
|
|
512
|
-
export interface QueryStringOptions1 {
|
|
513
|
-
/**
|
|
514
|
-
* When arrays are stringified, by default they are not given explicit indices:
|
|
515
|
-
* `a=b&a=c&a=d`
|
|
516
|
-
* You may override this by setting the indices option to true:
|
|
517
|
-
* `a[0]=b&a[1]=c&a[2]=d`
|
|
518
|
-
*/
|
|
519
|
-
indices?: boolean;
|
|
520
|
-
/**
|
|
521
|
-
* You can configure how to format arrays in the query strings.
|
|
522
|
-
*
|
|
523
|
-
* 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)
|
|
524
|
-
*/
|
|
525
|
-
arrayFormat?: 'indices' | 'brackets' | 'repeat' | 'comma';
|
|
526
|
-
/**
|
|
527
|
-
* Even if there is a single item in an array, this option treats them as arrays
|
|
528
|
-
* (default: false)
|
|
529
|
-
*/
|
|
530
|
-
commaRoundTrip?: boolean;
|
|
531
|
-
}
|
|
532
503
|
export interface MongooseHandler {
|
|
533
504
|
connectionString?: string;
|
|
534
505
|
models?: MongooseModel[];
|
|
@@ -756,7 +727,11 @@ export interface Neo4JHandler {
|
|
|
756
727
|
/**
|
|
757
728
|
* URL for the Neo4j Instance e.g. neo4j://localhost
|
|
758
729
|
*/
|
|
759
|
-
|
|
730
|
+
endpoint: string;
|
|
731
|
+
/**
|
|
732
|
+
* Provide GraphQL Type Definitions instead of inferring
|
|
733
|
+
*/
|
|
734
|
+
source?: string;
|
|
760
735
|
/**
|
|
761
736
|
* Username for basic authentication
|
|
762
737
|
*/
|
|
@@ -773,10 +748,6 @@ export interface Neo4JHandler {
|
|
|
773
748
|
* Specifies database name
|
|
774
749
|
*/
|
|
775
750
|
database?: string;
|
|
776
|
-
/**
|
|
777
|
-
* Provide GraphQL Type Definitions instead of inferring
|
|
778
|
-
*/
|
|
779
|
-
typeDefs?: string;
|
|
780
751
|
}
|
|
781
752
|
/**
|
|
782
753
|
* Handler for OData
|
|
@@ -785,21 +756,21 @@ export interface ODataHandler {
|
|
|
785
756
|
/**
|
|
786
757
|
* Base URL for OData API
|
|
787
758
|
*/
|
|
788
|
-
|
|
759
|
+
endpoint: string;
|
|
789
760
|
/**
|
|
790
761
|
* Custom $metadata File or URL
|
|
791
762
|
*/
|
|
792
|
-
|
|
763
|
+
source?: string;
|
|
793
764
|
/**
|
|
794
|
-
* Headers to be used with the
|
|
765
|
+
* Headers to be used with the $metadata requests
|
|
795
766
|
*/
|
|
796
|
-
|
|
767
|
+
schemaHeaders?: {
|
|
797
768
|
[k: string]: any;
|
|
798
769
|
};
|
|
799
770
|
/**
|
|
800
|
-
* Headers to be used with the
|
|
771
|
+
* Headers to be used with the operation requests
|
|
801
772
|
*/
|
|
802
|
-
|
|
773
|
+
operationHeaders?: {
|
|
803
774
|
[k: string]: any;
|
|
804
775
|
};
|
|
805
776
|
/**
|
|
@@ -827,7 +798,7 @@ export interface OpenapiHandler {
|
|
|
827
798
|
* Specifies the URL on which all paths will be based on.
|
|
828
799
|
* Overrides the server object in the OAS.
|
|
829
800
|
*/
|
|
830
|
-
|
|
801
|
+
endpoint?: string;
|
|
831
802
|
/**
|
|
832
803
|
* If you are using a remote URL endpoint to fetch your schema, you can set headers for the HTTP request to fetch your schema.
|
|
833
804
|
*/
|
|
@@ -835,11 +806,11 @@ export interface OpenapiHandler {
|
|
|
835
806
|
[k: string]: any;
|
|
836
807
|
};
|
|
837
808
|
/**
|
|
838
|
-
* JSON object representing the Headers to add to the runtime of the API calls
|
|
809
|
+
* JSON object representing the Headers to add to the runtime of the API calls
|
|
839
810
|
*/
|
|
840
811
|
operationHeaders?: {
|
|
841
812
|
[k: string]: any;
|
|
842
|
-
}
|
|
813
|
+
};
|
|
843
814
|
/**
|
|
844
815
|
* Responses are converted to a Union type grouping all possible responses.
|
|
845
816
|
* Applying this will ignore all responses with status code other than 2xx, resulting in simpler response types, usualy regular object type instead of union.
|
|
@@ -904,8 +875,8 @@ export interface PostGraphileHandler {
|
|
|
904
875
|
live?: boolean;
|
|
905
876
|
}
|
|
906
877
|
export interface RAMLHandler {
|
|
907
|
-
|
|
908
|
-
|
|
878
|
+
source: string;
|
|
879
|
+
endpoint?: string;
|
|
909
880
|
schemaHeaders?: {
|
|
910
881
|
[k: string]: any;
|
|
911
882
|
};
|
package/typings/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;
|
|
@@ -313,24 +309,39 @@ export interface GrpcCredentialsSsl {
|
|
|
313
309
|
certChain?: string;
|
|
314
310
|
privateKey?: string;
|
|
315
311
|
}
|
|
312
|
+
/**
|
|
313
|
+
* Handler for JSON Schema specification.
|
|
314
|
+
* Source could be a local json file, or a url to it.
|
|
315
|
+
*/
|
|
316
316
|
export interface JsonSchemaHandler {
|
|
317
|
-
baseUrl?: string;
|
|
318
317
|
/**
|
|
319
|
-
*
|
|
318
|
+
* Path to the bundle file
|
|
320
319
|
*/
|
|
320
|
+
source?: string;
|
|
321
|
+
endpoint?: string;
|
|
321
322
|
operationHeaders?: {
|
|
322
323
|
[k: string]: any;
|
|
323
|
-
}
|
|
324
|
+
};
|
|
324
325
|
schemaHeaders?: {
|
|
325
326
|
[k: string]: any;
|
|
326
327
|
};
|
|
327
328
|
/**
|
|
328
329
|
* Any of: JsonSchemaHTTPOperation, JsonSchemaPubSubOperation
|
|
329
330
|
*/
|
|
330
|
-
operations
|
|
331
|
+
operations?: (JsonSchemaHTTPOperation | JsonSchemaPubSubOperation)[];
|
|
331
332
|
ignoreErrorResponses?: boolean;
|
|
332
333
|
queryParams?: any;
|
|
333
334
|
queryStringOptions?: QueryStringOptions;
|
|
335
|
+
/**
|
|
336
|
+
* Will be removed later
|
|
337
|
+
*/
|
|
338
|
+
bundlePath?: string;
|
|
339
|
+
/**
|
|
340
|
+
* Will be removed later
|
|
341
|
+
*/
|
|
342
|
+
bundleHeaders?: {
|
|
343
|
+
[k: string]: any;
|
|
344
|
+
};
|
|
334
345
|
}
|
|
335
346
|
export interface JsonSchemaHTTPOperation {
|
|
336
347
|
/**
|
|
@@ -489,46 +500,6 @@ export interface QueryStringOptions {
|
|
|
489
500
|
*/
|
|
490
501
|
commaRoundTrip?: boolean;
|
|
491
502
|
}
|
|
492
|
-
export interface JsonSchemaHandlerBundle {
|
|
493
|
-
/**
|
|
494
|
-
* Path to the bundle file
|
|
495
|
-
*/
|
|
496
|
-
bundlePath: any;
|
|
497
|
-
/**
|
|
498
|
-
* HTTP Headers to receive the bundle
|
|
499
|
-
*/
|
|
500
|
-
bundleHeaders?: {
|
|
501
|
-
[k: string]: any;
|
|
502
|
-
};
|
|
503
|
-
baseUrl?: string;
|
|
504
|
-
/**
|
|
505
|
-
* Any of: JSON, String
|
|
506
|
-
*/
|
|
507
|
-
operationHeaders?: {
|
|
508
|
-
[k: string]: any;
|
|
509
|
-
} | string;
|
|
510
|
-
queryStringOptions?: QueryStringOptions1;
|
|
511
|
-
}
|
|
512
|
-
export interface QueryStringOptions1 {
|
|
513
|
-
/**
|
|
514
|
-
* When arrays are stringified, by default they are not given explicit indices:
|
|
515
|
-
* `a=b&a=c&a=d`
|
|
516
|
-
* You may override this by setting the indices option to true:
|
|
517
|
-
* `a[0]=b&a[1]=c&a[2]=d`
|
|
518
|
-
*/
|
|
519
|
-
indices?: boolean;
|
|
520
|
-
/**
|
|
521
|
-
* You can configure how to format arrays in the query strings.
|
|
522
|
-
*
|
|
523
|
-
* 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)
|
|
524
|
-
*/
|
|
525
|
-
arrayFormat?: 'indices' | 'brackets' | 'repeat' | 'comma';
|
|
526
|
-
/**
|
|
527
|
-
* Even if there is a single item in an array, this option treats them as arrays
|
|
528
|
-
* (default: false)
|
|
529
|
-
*/
|
|
530
|
-
commaRoundTrip?: boolean;
|
|
531
|
-
}
|
|
532
503
|
export interface MongooseHandler {
|
|
533
504
|
connectionString?: string;
|
|
534
505
|
models?: MongooseModel[];
|
|
@@ -756,7 +727,11 @@ export interface Neo4JHandler {
|
|
|
756
727
|
/**
|
|
757
728
|
* URL for the Neo4j Instance e.g. neo4j://localhost
|
|
758
729
|
*/
|
|
759
|
-
|
|
730
|
+
endpoint: string;
|
|
731
|
+
/**
|
|
732
|
+
* Provide GraphQL Type Definitions instead of inferring
|
|
733
|
+
*/
|
|
734
|
+
source?: string;
|
|
760
735
|
/**
|
|
761
736
|
* Username for basic authentication
|
|
762
737
|
*/
|
|
@@ -773,10 +748,6 @@ export interface Neo4JHandler {
|
|
|
773
748
|
* Specifies database name
|
|
774
749
|
*/
|
|
775
750
|
database?: string;
|
|
776
|
-
/**
|
|
777
|
-
* Provide GraphQL Type Definitions instead of inferring
|
|
778
|
-
*/
|
|
779
|
-
typeDefs?: string;
|
|
780
751
|
}
|
|
781
752
|
/**
|
|
782
753
|
* Handler for OData
|
|
@@ -785,21 +756,21 @@ export interface ODataHandler {
|
|
|
785
756
|
/**
|
|
786
757
|
* Base URL for OData API
|
|
787
758
|
*/
|
|
788
|
-
|
|
759
|
+
endpoint: string;
|
|
789
760
|
/**
|
|
790
761
|
* Custom $metadata File or URL
|
|
791
762
|
*/
|
|
792
|
-
|
|
763
|
+
source?: string;
|
|
793
764
|
/**
|
|
794
|
-
* Headers to be used with the
|
|
765
|
+
* Headers to be used with the $metadata requests
|
|
795
766
|
*/
|
|
796
|
-
|
|
767
|
+
schemaHeaders?: {
|
|
797
768
|
[k: string]: any;
|
|
798
769
|
};
|
|
799
770
|
/**
|
|
800
|
-
* Headers to be used with the
|
|
771
|
+
* Headers to be used with the operation requests
|
|
801
772
|
*/
|
|
802
|
-
|
|
773
|
+
operationHeaders?: {
|
|
803
774
|
[k: string]: any;
|
|
804
775
|
};
|
|
805
776
|
/**
|
|
@@ -827,7 +798,7 @@ export interface OpenapiHandler {
|
|
|
827
798
|
* Specifies the URL on which all paths will be based on.
|
|
828
799
|
* Overrides the server object in the OAS.
|
|
829
800
|
*/
|
|
830
|
-
|
|
801
|
+
endpoint?: string;
|
|
831
802
|
/**
|
|
832
803
|
* If you are using a remote URL endpoint to fetch your schema, you can set headers for the HTTP request to fetch your schema.
|
|
833
804
|
*/
|
|
@@ -835,11 +806,11 @@ export interface OpenapiHandler {
|
|
|
835
806
|
[k: string]: any;
|
|
836
807
|
};
|
|
837
808
|
/**
|
|
838
|
-
* JSON object representing the Headers to add to the runtime of the API calls
|
|
809
|
+
* JSON object representing the Headers to add to the runtime of the API calls
|
|
839
810
|
*/
|
|
840
811
|
operationHeaders?: {
|
|
841
812
|
[k: string]: any;
|
|
842
|
-
}
|
|
813
|
+
};
|
|
843
814
|
/**
|
|
844
815
|
* Responses are converted to a Union type grouping all possible responses.
|
|
845
816
|
* Applying this will ignore all responses with status code other than 2xx, resulting in simpler response types, usualy regular object type instead of union.
|
|
@@ -904,8 +875,8 @@ export interface PostGraphileHandler {
|
|
|
904
875
|
live?: boolean;
|
|
905
876
|
}
|
|
906
877
|
export interface RAMLHandler {
|
|
907
|
-
|
|
908
|
-
|
|
878
|
+
source: string;
|
|
879
|
+
endpoint?: string;
|
|
909
880
|
schemaHeaders?: {
|
|
910
881
|
[k: string]: any;
|
|
911
882
|
};
|