@graphql-mesh/types 0.91.7 → 0.91.9
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.js +74 -13
- package/cjs/config-schema.json +74 -13
- package/esm/config-schema.js +74 -13
- package/esm/config-schema.json +74 -13
- package/package.json +2 -2
- package/typings/config.d.cts +22 -1
- package/typings/config.d.ts +22 -1
package/cjs/config-schema.js
CHANGED
|
@@ -512,19 +512,7 @@ exports.jsonSchema = {
|
|
|
512
512
|
$ref: '#/definitions/HivePlugin',
|
|
513
513
|
},
|
|
514
514
|
httpCache: {
|
|
515
|
-
|
|
516
|
-
{
|
|
517
|
-
type: 'object',
|
|
518
|
-
additionalProperties: true,
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
type: 'string',
|
|
522
|
-
},
|
|
523
|
-
{
|
|
524
|
-
type: 'array',
|
|
525
|
-
additionalItems: true,
|
|
526
|
-
},
|
|
527
|
-
],
|
|
515
|
+
$ref: '#/definitions/HTTPCachePlugin',
|
|
528
516
|
},
|
|
529
517
|
httpDetailsExtensions: {
|
|
530
518
|
$ref: '#/definitions/HTTPDetailsExtensionsConfig',
|
|
@@ -2064,6 +2052,79 @@ exports.jsonSchema = {
|
|
|
2064
2052
|
},
|
|
2065
2053
|
required: ['graphqlEndpoint', 'applicationUrl'],
|
|
2066
2054
|
},
|
|
2055
|
+
HTTPCachePlugin: {
|
|
2056
|
+
additionalProperties: false,
|
|
2057
|
+
type: 'object',
|
|
2058
|
+
title: 'HTTPCachePlugin',
|
|
2059
|
+
properties: {
|
|
2060
|
+
matches: {
|
|
2061
|
+
type: 'array',
|
|
2062
|
+
items: {
|
|
2063
|
+
description: 'Any of: String, URLPatternObj',
|
|
2064
|
+
anyOf: [
|
|
2065
|
+
{
|
|
2066
|
+
type: 'string',
|
|
2067
|
+
},
|
|
2068
|
+
{
|
|
2069
|
+
$ref: '#/definitions/URLPatternObj',
|
|
2070
|
+
},
|
|
2071
|
+
],
|
|
2072
|
+
},
|
|
2073
|
+
additionalItems: false,
|
|
2074
|
+
description: 'If the following patterns match the request URL, the response will be cached. (Any of: String, URLPatternObj)',
|
|
2075
|
+
},
|
|
2076
|
+
ignores: {
|
|
2077
|
+
type: 'array',
|
|
2078
|
+
items: {
|
|
2079
|
+
description: 'Any of: String, URLPatternObj',
|
|
2080
|
+
anyOf: [
|
|
2081
|
+
{
|
|
2082
|
+
type: 'string',
|
|
2083
|
+
},
|
|
2084
|
+
{
|
|
2085
|
+
$ref: '#/definitions/URLPatternObj',
|
|
2086
|
+
},
|
|
2087
|
+
],
|
|
2088
|
+
},
|
|
2089
|
+
additionalItems: false,
|
|
2090
|
+
description: 'If the following patterns match the request URL, the response will not be cached. (Any of: String, URLPatternObj)',
|
|
2091
|
+
},
|
|
2092
|
+
},
|
|
2093
|
+
},
|
|
2094
|
+
URLPatternObj: {
|
|
2095
|
+
additionalProperties: false,
|
|
2096
|
+
type: 'object',
|
|
2097
|
+
title: 'URLPatternObj',
|
|
2098
|
+
properties: {
|
|
2099
|
+
protocol: {
|
|
2100
|
+
type: 'string',
|
|
2101
|
+
},
|
|
2102
|
+
username: {
|
|
2103
|
+
type: 'string',
|
|
2104
|
+
},
|
|
2105
|
+
password: {
|
|
2106
|
+
type: 'string',
|
|
2107
|
+
},
|
|
2108
|
+
hostname: {
|
|
2109
|
+
type: 'string',
|
|
2110
|
+
},
|
|
2111
|
+
port: {
|
|
2112
|
+
type: 'string',
|
|
2113
|
+
},
|
|
2114
|
+
pathname: {
|
|
2115
|
+
type: 'string',
|
|
2116
|
+
},
|
|
2117
|
+
search: {
|
|
2118
|
+
type: 'string',
|
|
2119
|
+
},
|
|
2120
|
+
hash: {
|
|
2121
|
+
type: 'string',
|
|
2122
|
+
},
|
|
2123
|
+
baseURL: {
|
|
2124
|
+
type: 'string',
|
|
2125
|
+
},
|
|
2126
|
+
},
|
|
2127
|
+
},
|
|
2067
2128
|
HTTPDetailsExtensionsConfig: {
|
|
2068
2129
|
additionalProperties: false,
|
|
2069
2130
|
type: 'object',
|
package/cjs/config-schema.json
CHANGED
|
@@ -509,19 +509,7 @@
|
|
|
509
509
|
"$ref": "#/definitions/HivePlugin"
|
|
510
510
|
},
|
|
511
511
|
"httpCache": {
|
|
512
|
-
"
|
|
513
|
-
{
|
|
514
|
-
"type": "object",
|
|
515
|
-
"additionalProperties": true
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
"type": "string"
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
"type": "array",
|
|
522
|
-
"additionalItems": true
|
|
523
|
-
}
|
|
524
|
-
]
|
|
512
|
+
"$ref": "#/definitions/HTTPCachePlugin"
|
|
525
513
|
},
|
|
526
514
|
"httpDetailsExtensions": {
|
|
527
515
|
"$ref": "#/definitions/HTTPDetailsExtensionsConfig"
|
|
@@ -2061,6 +2049,79 @@
|
|
|
2061
2049
|
},
|
|
2062
2050
|
"required": ["graphqlEndpoint", "applicationUrl"]
|
|
2063
2051
|
},
|
|
2052
|
+
"HTTPCachePlugin": {
|
|
2053
|
+
"additionalProperties": false,
|
|
2054
|
+
"type": "object",
|
|
2055
|
+
"title": "HTTPCachePlugin",
|
|
2056
|
+
"properties": {
|
|
2057
|
+
"matches": {
|
|
2058
|
+
"type": "array",
|
|
2059
|
+
"items": {
|
|
2060
|
+
"description": "Any of: String, URLPatternObj",
|
|
2061
|
+
"anyOf": [
|
|
2062
|
+
{
|
|
2063
|
+
"type": "string"
|
|
2064
|
+
},
|
|
2065
|
+
{
|
|
2066
|
+
"$ref": "#/definitions/URLPatternObj"
|
|
2067
|
+
}
|
|
2068
|
+
]
|
|
2069
|
+
},
|
|
2070
|
+
"additionalItems": false,
|
|
2071
|
+
"description": "If the following patterns match the request URL, the response will be cached. (Any of: String, URLPatternObj)"
|
|
2072
|
+
},
|
|
2073
|
+
"ignores": {
|
|
2074
|
+
"type": "array",
|
|
2075
|
+
"items": {
|
|
2076
|
+
"description": "Any of: String, URLPatternObj",
|
|
2077
|
+
"anyOf": [
|
|
2078
|
+
{
|
|
2079
|
+
"type": "string"
|
|
2080
|
+
},
|
|
2081
|
+
{
|
|
2082
|
+
"$ref": "#/definitions/URLPatternObj"
|
|
2083
|
+
}
|
|
2084
|
+
]
|
|
2085
|
+
},
|
|
2086
|
+
"additionalItems": false,
|
|
2087
|
+
"description": "If the following patterns match the request URL, the response will not be cached. (Any of: String, URLPatternObj)"
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
},
|
|
2091
|
+
"URLPatternObj": {
|
|
2092
|
+
"additionalProperties": false,
|
|
2093
|
+
"type": "object",
|
|
2094
|
+
"title": "URLPatternObj",
|
|
2095
|
+
"properties": {
|
|
2096
|
+
"protocol": {
|
|
2097
|
+
"type": "string"
|
|
2098
|
+
},
|
|
2099
|
+
"username": {
|
|
2100
|
+
"type": "string"
|
|
2101
|
+
},
|
|
2102
|
+
"password": {
|
|
2103
|
+
"type": "string"
|
|
2104
|
+
},
|
|
2105
|
+
"hostname": {
|
|
2106
|
+
"type": "string"
|
|
2107
|
+
},
|
|
2108
|
+
"port": {
|
|
2109
|
+
"type": "string"
|
|
2110
|
+
},
|
|
2111
|
+
"pathname": {
|
|
2112
|
+
"type": "string"
|
|
2113
|
+
},
|
|
2114
|
+
"search": {
|
|
2115
|
+
"type": "string"
|
|
2116
|
+
},
|
|
2117
|
+
"hash": {
|
|
2118
|
+
"type": "string"
|
|
2119
|
+
},
|
|
2120
|
+
"baseURL": {
|
|
2121
|
+
"type": "string"
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
},
|
|
2064
2125
|
"HTTPDetailsExtensionsConfig": {
|
|
2065
2126
|
"additionalProperties": false,
|
|
2066
2127
|
"type": "object",
|
package/esm/config-schema.js
CHANGED
|
@@ -509,19 +509,7 @@ export const jsonSchema = {
|
|
|
509
509
|
$ref: '#/definitions/HivePlugin',
|
|
510
510
|
},
|
|
511
511
|
httpCache: {
|
|
512
|
-
|
|
513
|
-
{
|
|
514
|
-
type: 'object',
|
|
515
|
-
additionalProperties: true,
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
type: 'string',
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
type: 'array',
|
|
522
|
-
additionalItems: true,
|
|
523
|
-
},
|
|
524
|
-
],
|
|
512
|
+
$ref: '#/definitions/HTTPCachePlugin',
|
|
525
513
|
},
|
|
526
514
|
httpDetailsExtensions: {
|
|
527
515
|
$ref: '#/definitions/HTTPDetailsExtensionsConfig',
|
|
@@ -2061,6 +2049,79 @@ export const jsonSchema = {
|
|
|
2061
2049
|
},
|
|
2062
2050
|
required: ['graphqlEndpoint', 'applicationUrl'],
|
|
2063
2051
|
},
|
|
2052
|
+
HTTPCachePlugin: {
|
|
2053
|
+
additionalProperties: false,
|
|
2054
|
+
type: 'object',
|
|
2055
|
+
title: 'HTTPCachePlugin',
|
|
2056
|
+
properties: {
|
|
2057
|
+
matches: {
|
|
2058
|
+
type: 'array',
|
|
2059
|
+
items: {
|
|
2060
|
+
description: 'Any of: String, URLPatternObj',
|
|
2061
|
+
anyOf: [
|
|
2062
|
+
{
|
|
2063
|
+
type: 'string',
|
|
2064
|
+
},
|
|
2065
|
+
{
|
|
2066
|
+
$ref: '#/definitions/URLPatternObj',
|
|
2067
|
+
},
|
|
2068
|
+
],
|
|
2069
|
+
},
|
|
2070
|
+
additionalItems: false,
|
|
2071
|
+
description: 'If the following patterns match the request URL, the response will be cached. (Any of: String, URLPatternObj)',
|
|
2072
|
+
},
|
|
2073
|
+
ignores: {
|
|
2074
|
+
type: 'array',
|
|
2075
|
+
items: {
|
|
2076
|
+
description: 'Any of: String, URLPatternObj',
|
|
2077
|
+
anyOf: [
|
|
2078
|
+
{
|
|
2079
|
+
type: 'string',
|
|
2080
|
+
},
|
|
2081
|
+
{
|
|
2082
|
+
$ref: '#/definitions/URLPatternObj',
|
|
2083
|
+
},
|
|
2084
|
+
],
|
|
2085
|
+
},
|
|
2086
|
+
additionalItems: false,
|
|
2087
|
+
description: 'If the following patterns match the request URL, the response will not be cached. (Any of: String, URLPatternObj)',
|
|
2088
|
+
},
|
|
2089
|
+
},
|
|
2090
|
+
},
|
|
2091
|
+
URLPatternObj: {
|
|
2092
|
+
additionalProperties: false,
|
|
2093
|
+
type: 'object',
|
|
2094
|
+
title: 'URLPatternObj',
|
|
2095
|
+
properties: {
|
|
2096
|
+
protocol: {
|
|
2097
|
+
type: 'string',
|
|
2098
|
+
},
|
|
2099
|
+
username: {
|
|
2100
|
+
type: 'string',
|
|
2101
|
+
},
|
|
2102
|
+
password: {
|
|
2103
|
+
type: 'string',
|
|
2104
|
+
},
|
|
2105
|
+
hostname: {
|
|
2106
|
+
type: 'string',
|
|
2107
|
+
},
|
|
2108
|
+
port: {
|
|
2109
|
+
type: 'string',
|
|
2110
|
+
},
|
|
2111
|
+
pathname: {
|
|
2112
|
+
type: 'string',
|
|
2113
|
+
},
|
|
2114
|
+
search: {
|
|
2115
|
+
type: 'string',
|
|
2116
|
+
},
|
|
2117
|
+
hash: {
|
|
2118
|
+
type: 'string',
|
|
2119
|
+
},
|
|
2120
|
+
baseURL: {
|
|
2121
|
+
type: 'string',
|
|
2122
|
+
},
|
|
2123
|
+
},
|
|
2124
|
+
},
|
|
2064
2125
|
HTTPDetailsExtensionsConfig: {
|
|
2065
2126
|
additionalProperties: false,
|
|
2066
2127
|
type: 'object',
|
package/esm/config-schema.json
CHANGED
|
@@ -509,19 +509,7 @@
|
|
|
509
509
|
"$ref": "#/definitions/HivePlugin"
|
|
510
510
|
},
|
|
511
511
|
"httpCache": {
|
|
512
|
-
"
|
|
513
|
-
{
|
|
514
|
-
"type": "object",
|
|
515
|
-
"additionalProperties": true
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
"type": "string"
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
"type": "array",
|
|
522
|
-
"additionalItems": true
|
|
523
|
-
}
|
|
524
|
-
]
|
|
512
|
+
"$ref": "#/definitions/HTTPCachePlugin"
|
|
525
513
|
},
|
|
526
514
|
"httpDetailsExtensions": {
|
|
527
515
|
"$ref": "#/definitions/HTTPDetailsExtensionsConfig"
|
|
@@ -2061,6 +2049,79 @@
|
|
|
2061
2049
|
},
|
|
2062
2050
|
"required": ["graphqlEndpoint", "applicationUrl"]
|
|
2063
2051
|
},
|
|
2052
|
+
"HTTPCachePlugin": {
|
|
2053
|
+
"additionalProperties": false,
|
|
2054
|
+
"type": "object",
|
|
2055
|
+
"title": "HTTPCachePlugin",
|
|
2056
|
+
"properties": {
|
|
2057
|
+
"matches": {
|
|
2058
|
+
"type": "array",
|
|
2059
|
+
"items": {
|
|
2060
|
+
"description": "Any of: String, URLPatternObj",
|
|
2061
|
+
"anyOf": [
|
|
2062
|
+
{
|
|
2063
|
+
"type": "string"
|
|
2064
|
+
},
|
|
2065
|
+
{
|
|
2066
|
+
"$ref": "#/definitions/URLPatternObj"
|
|
2067
|
+
}
|
|
2068
|
+
]
|
|
2069
|
+
},
|
|
2070
|
+
"additionalItems": false,
|
|
2071
|
+
"description": "If the following patterns match the request URL, the response will be cached. (Any of: String, URLPatternObj)"
|
|
2072
|
+
},
|
|
2073
|
+
"ignores": {
|
|
2074
|
+
"type": "array",
|
|
2075
|
+
"items": {
|
|
2076
|
+
"description": "Any of: String, URLPatternObj",
|
|
2077
|
+
"anyOf": [
|
|
2078
|
+
{
|
|
2079
|
+
"type": "string"
|
|
2080
|
+
},
|
|
2081
|
+
{
|
|
2082
|
+
"$ref": "#/definitions/URLPatternObj"
|
|
2083
|
+
}
|
|
2084
|
+
]
|
|
2085
|
+
},
|
|
2086
|
+
"additionalItems": false,
|
|
2087
|
+
"description": "If the following patterns match the request URL, the response will not be cached. (Any of: String, URLPatternObj)"
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
},
|
|
2091
|
+
"URLPatternObj": {
|
|
2092
|
+
"additionalProperties": false,
|
|
2093
|
+
"type": "object",
|
|
2094
|
+
"title": "URLPatternObj",
|
|
2095
|
+
"properties": {
|
|
2096
|
+
"protocol": {
|
|
2097
|
+
"type": "string"
|
|
2098
|
+
},
|
|
2099
|
+
"username": {
|
|
2100
|
+
"type": "string"
|
|
2101
|
+
},
|
|
2102
|
+
"password": {
|
|
2103
|
+
"type": "string"
|
|
2104
|
+
},
|
|
2105
|
+
"hostname": {
|
|
2106
|
+
"type": "string"
|
|
2107
|
+
},
|
|
2108
|
+
"port": {
|
|
2109
|
+
"type": "string"
|
|
2110
|
+
},
|
|
2111
|
+
"pathname": {
|
|
2112
|
+
"type": "string"
|
|
2113
|
+
},
|
|
2114
|
+
"search": {
|
|
2115
|
+
"type": "string"
|
|
2116
|
+
},
|
|
2117
|
+
"hash": {
|
|
2118
|
+
"type": "string"
|
|
2119
|
+
},
|
|
2120
|
+
"baseURL": {
|
|
2121
|
+
"type": "string"
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
},
|
|
2064
2125
|
"HTTPDetailsExtensionsConfig": {
|
|
2065
2126
|
"additionalProperties": false,
|
|
2066
2127
|
"type": "object",
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/types",
|
|
3
|
-
"version": "0.91.
|
|
3
|
+
"version": "0.91.9",
|
|
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.17",
|
|
10
10
|
"@graphql-tools/batch-delegate": "8.4.21",
|
|
11
11
|
"@graphql-tools/delegate": "9.0.28",
|
|
12
12
|
"@graphql-tools/utils": "9.2.1",
|
package/typings/config.d.cts
CHANGED
|
@@ -1553,7 +1553,7 @@ export interface Plugin {
|
|
|
1553
1553
|
immediateIntrospection?: any;
|
|
1554
1554
|
deduplicateRequest?: any;
|
|
1555
1555
|
hive?: HivePlugin;
|
|
1556
|
-
httpCache?:
|
|
1556
|
+
httpCache?: HTTPCachePlugin;
|
|
1557
1557
|
httpDetailsExtensions?: HTTPDetailsExtensionsConfig;
|
|
1558
1558
|
liveQuery?: LiveQueryConfig;
|
|
1559
1559
|
mock?: MockingConfig;
|
|
@@ -1692,6 +1692,27 @@ export interface HiveSelfHostingOptions {
|
|
|
1692
1692
|
*/
|
|
1693
1693
|
usageEndpoint?: string;
|
|
1694
1694
|
}
|
|
1695
|
+
export interface HTTPCachePlugin {
|
|
1696
|
+
/**
|
|
1697
|
+
* If the following patterns match the request URL, the response will be cached. (Any of: String, URLPatternObj)
|
|
1698
|
+
*/
|
|
1699
|
+
matches?: (string | URLPatternObj)[];
|
|
1700
|
+
/**
|
|
1701
|
+
* If the following patterns match the request URL, the response will not be cached. (Any of: String, URLPatternObj)
|
|
1702
|
+
*/
|
|
1703
|
+
ignores?: (string | URLPatternObj)[];
|
|
1704
|
+
}
|
|
1705
|
+
export interface URLPatternObj {
|
|
1706
|
+
protocol?: string;
|
|
1707
|
+
username?: string;
|
|
1708
|
+
password?: string;
|
|
1709
|
+
hostname?: string;
|
|
1710
|
+
port?: string;
|
|
1711
|
+
pathname?: string;
|
|
1712
|
+
search?: string;
|
|
1713
|
+
hash?: string;
|
|
1714
|
+
baseURL?: string;
|
|
1715
|
+
}
|
|
1695
1716
|
export interface HTTPDetailsExtensionsConfig {
|
|
1696
1717
|
if?: any;
|
|
1697
1718
|
}
|
package/typings/config.d.ts
CHANGED
|
@@ -1553,7 +1553,7 @@ export interface Plugin {
|
|
|
1553
1553
|
immediateIntrospection?: any;
|
|
1554
1554
|
deduplicateRequest?: any;
|
|
1555
1555
|
hive?: HivePlugin;
|
|
1556
|
-
httpCache?:
|
|
1556
|
+
httpCache?: HTTPCachePlugin;
|
|
1557
1557
|
httpDetailsExtensions?: HTTPDetailsExtensionsConfig;
|
|
1558
1558
|
liveQuery?: LiveQueryConfig;
|
|
1559
1559
|
mock?: MockingConfig;
|
|
@@ -1692,6 +1692,27 @@ export interface HiveSelfHostingOptions {
|
|
|
1692
1692
|
*/
|
|
1693
1693
|
usageEndpoint?: string;
|
|
1694
1694
|
}
|
|
1695
|
+
export interface HTTPCachePlugin {
|
|
1696
|
+
/**
|
|
1697
|
+
* If the following patterns match the request URL, the response will be cached. (Any of: String, URLPatternObj)
|
|
1698
|
+
*/
|
|
1699
|
+
matches?: (string | URLPatternObj)[];
|
|
1700
|
+
/**
|
|
1701
|
+
* If the following patterns match the request URL, the response will not be cached. (Any of: String, URLPatternObj)
|
|
1702
|
+
*/
|
|
1703
|
+
ignores?: (string | URLPatternObj)[];
|
|
1704
|
+
}
|
|
1705
|
+
export interface URLPatternObj {
|
|
1706
|
+
protocol?: string;
|
|
1707
|
+
username?: string;
|
|
1708
|
+
password?: string;
|
|
1709
|
+
hostname?: string;
|
|
1710
|
+
port?: string;
|
|
1711
|
+
pathname?: string;
|
|
1712
|
+
search?: string;
|
|
1713
|
+
hash?: string;
|
|
1714
|
+
baseURL?: string;
|
|
1715
|
+
}
|
|
1695
1716
|
export interface HTTPDetailsExtensionsConfig {
|
|
1696
1717
|
if?: any;
|
|
1697
1718
|
}
|