@graphql-mesh/types 0.97.4 → 0.97.5
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 +84 -0
- package/cjs/config-schema.json +72 -0
- package/esm/config-schema.js +84 -0
- package/esm/config-schema.json +72 -0
- package/package.json +2 -2
- package/typings/config.d.cts +70 -0
- package/typings/config.d.ts +70 -0
package/cjs/config-schema.js
CHANGED
|
@@ -3329,12 +3329,96 @@ exports.jsonSchema = {
|
|
|
3329
3329
|
},
|
|
3330
3330
|
"batch": {
|
|
3331
3331
|
"type": "boolean"
|
|
3332
|
+
},
|
|
3333
|
+
"subgraphs": {
|
|
3334
|
+
"type": "array",
|
|
3335
|
+
"items": {
|
|
3336
|
+
"$ref": "#/definitions/SubgraphConfiguration"
|
|
3337
|
+
},
|
|
3338
|
+
"additionalItems": false
|
|
3332
3339
|
}
|
|
3333
3340
|
},
|
|
3334
3341
|
"required": [
|
|
3335
3342
|
"source"
|
|
3336
3343
|
]
|
|
3337
3344
|
},
|
|
3345
|
+
"SubgraphConfiguration": {
|
|
3346
|
+
"additionalProperties": false,
|
|
3347
|
+
"type": "object",
|
|
3348
|
+
"title": "SubgraphConfiguration",
|
|
3349
|
+
"properties": {
|
|
3350
|
+
"name": {
|
|
3351
|
+
"type": "string",
|
|
3352
|
+
"description": "The name of the subgraph you want to configure"
|
|
3353
|
+
},
|
|
3354
|
+
"endpoint": {
|
|
3355
|
+
"type": "string",
|
|
3356
|
+
"description": "A url or file path to your remote GraphQL endpoint.\nIf you provide a path to a code file(js or ts),\nother options will be ignored and the schema exported from the file will be used directly."
|
|
3357
|
+
},
|
|
3358
|
+
"operationHeaders": {
|
|
3359
|
+
"type": "object",
|
|
3360
|
+
"properties": {},
|
|
3361
|
+
"description": "JSON object representing the Headers to add to the runtime of the API calls only for operation during runtime"
|
|
3362
|
+
},
|
|
3363
|
+
"useGETForQueries": {
|
|
3364
|
+
"type": "boolean",
|
|
3365
|
+
"description": "Use HTTP GET for Query operations"
|
|
3366
|
+
},
|
|
3367
|
+
"method": {
|
|
3368
|
+
"type": "string",
|
|
3369
|
+
"enum": [
|
|
3370
|
+
"GET",
|
|
3371
|
+
"POST"
|
|
3372
|
+
],
|
|
3373
|
+
"description": "HTTP method used for GraphQL operations (Allowed values: GET, POST)"
|
|
3374
|
+
},
|
|
3375
|
+
"credentials": {
|
|
3376
|
+
"type": "string",
|
|
3377
|
+
"enum": [
|
|
3378
|
+
"omit",
|
|
3379
|
+
"include"
|
|
3380
|
+
],
|
|
3381
|
+
"description": "Request Credentials if your environment supports it.\n[See more](https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials)\n\n@default \"same-origin\" (Allowed values: omit, include)"
|
|
3382
|
+
},
|
|
3383
|
+
"webSocketImpl": {
|
|
3384
|
+
"type": "string",
|
|
3385
|
+
"description": "Path to a custom W3 Compatible WebSocket Implementation"
|
|
3386
|
+
},
|
|
3387
|
+
"source": {
|
|
3388
|
+
"type": "string",
|
|
3389
|
+
"description": "Path to the introspection\nYou can separately give schema introspection or SDL"
|
|
3390
|
+
},
|
|
3391
|
+
"subscriptionsProtocol": {
|
|
3392
|
+
"type": "string",
|
|
3393
|
+
"enum": [
|
|
3394
|
+
"SSE",
|
|
3395
|
+
"WS",
|
|
3396
|
+
"LEGACY_WS"
|
|
3397
|
+
],
|
|
3398
|
+
"description": "SSE - Server Sent Events\nWS - New graphql-ws\nLEGACY_WS - Legacy subscriptions-transport-ws (Allowed values: SSE, WS, LEGACY_WS)"
|
|
3399
|
+
},
|
|
3400
|
+
"subscriptionsEndpoint": {
|
|
3401
|
+
"type": "string",
|
|
3402
|
+
"description": "URL to your endpoint serving all subscription queries for this source"
|
|
3403
|
+
},
|
|
3404
|
+
"retry": {
|
|
3405
|
+
"type": "integer",
|
|
3406
|
+
"description": "Retry attempts if fails"
|
|
3407
|
+
},
|
|
3408
|
+
"timeout": {
|
|
3409
|
+
"type": "integer",
|
|
3410
|
+
"description": "Timeout in milliseconds"
|
|
3411
|
+
},
|
|
3412
|
+
"connectionParams": {
|
|
3413
|
+
"type": "object",
|
|
3414
|
+
"properties": {},
|
|
3415
|
+
"description": "JSON object representing the `connectionParams` from a WebSocket connection to add to the runtime of the API calls only for operation during runtime.\nMore information about the WebSocket `connectionParams`:\n - When using `subscriptionsProtocol=WS` (graphql-ws): https://github.com/enisdenjo/graphql-ws/blob/master/docs/interfaces/client.ClientOptions.md#connectionparams\n - When using `subscriptionsProtocol=LEGACY_WS` (subscriptions-transport-ws): https://github.com/apollographql/subscriptions-transport-ws/blob/51270cc7dbaf09c7b9aa67368f1de58148c7d334/README.md#subscriptionclient"
|
|
3416
|
+
}
|
|
3417
|
+
},
|
|
3418
|
+
"required": [
|
|
3419
|
+
"name"
|
|
3420
|
+
]
|
|
3421
|
+
},
|
|
3338
3422
|
"ThriftHandler": {
|
|
3339
3423
|
"additionalProperties": false,
|
|
3340
3424
|
"type": "object",
|
package/cjs/config-schema.json
CHANGED
|
@@ -3177,10 +3177,82 @@
|
|
|
3177
3177
|
},
|
|
3178
3178
|
"batch": {
|
|
3179
3179
|
"type": "boolean"
|
|
3180
|
+
},
|
|
3181
|
+
"subgraphs": {
|
|
3182
|
+
"type": "array",
|
|
3183
|
+
"items": {
|
|
3184
|
+
"$ref": "#/definitions/SubgraphConfiguration"
|
|
3185
|
+
},
|
|
3186
|
+
"additionalItems": false
|
|
3180
3187
|
}
|
|
3181
3188
|
},
|
|
3182
3189
|
"required": ["source"]
|
|
3183
3190
|
},
|
|
3191
|
+
"SubgraphConfiguration": {
|
|
3192
|
+
"additionalProperties": false,
|
|
3193
|
+
"type": "object",
|
|
3194
|
+
"title": "SubgraphConfiguration",
|
|
3195
|
+
"properties": {
|
|
3196
|
+
"name": {
|
|
3197
|
+
"type": "string",
|
|
3198
|
+
"description": "The name of the subgraph you want to configure"
|
|
3199
|
+
},
|
|
3200
|
+
"endpoint": {
|
|
3201
|
+
"type": "string",
|
|
3202
|
+
"description": "A url or file path to your remote GraphQL endpoint.\nIf you provide a path to a code file(js or ts),\nother options will be ignored and the schema exported from the file will be used directly."
|
|
3203
|
+
},
|
|
3204
|
+
"operationHeaders": {
|
|
3205
|
+
"type": "object",
|
|
3206
|
+
"properties": {},
|
|
3207
|
+
"description": "JSON object representing the Headers to add to the runtime of the API calls only for operation during runtime"
|
|
3208
|
+
},
|
|
3209
|
+
"useGETForQueries": {
|
|
3210
|
+
"type": "boolean",
|
|
3211
|
+
"description": "Use HTTP GET for Query operations"
|
|
3212
|
+
},
|
|
3213
|
+
"method": {
|
|
3214
|
+
"type": "string",
|
|
3215
|
+
"enum": ["GET", "POST"],
|
|
3216
|
+
"description": "HTTP method used for GraphQL operations (Allowed values: GET, POST)"
|
|
3217
|
+
},
|
|
3218
|
+
"credentials": {
|
|
3219
|
+
"type": "string",
|
|
3220
|
+
"enum": ["omit", "include"],
|
|
3221
|
+
"description": "Request Credentials if your environment supports it.\n[See more](https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials)\n\n@default \"same-origin\" (Allowed values: omit, include)"
|
|
3222
|
+
},
|
|
3223
|
+
"webSocketImpl": {
|
|
3224
|
+
"type": "string",
|
|
3225
|
+
"description": "Path to a custom W3 Compatible WebSocket Implementation"
|
|
3226
|
+
},
|
|
3227
|
+
"source": {
|
|
3228
|
+
"type": "string",
|
|
3229
|
+
"description": "Path to the introspection\nYou can separately give schema introspection or SDL"
|
|
3230
|
+
},
|
|
3231
|
+
"subscriptionsProtocol": {
|
|
3232
|
+
"type": "string",
|
|
3233
|
+
"enum": ["SSE", "WS", "LEGACY_WS"],
|
|
3234
|
+
"description": "SSE - Server Sent Events\nWS - New graphql-ws\nLEGACY_WS - Legacy subscriptions-transport-ws (Allowed values: SSE, WS, LEGACY_WS)"
|
|
3235
|
+
},
|
|
3236
|
+
"subscriptionsEndpoint": {
|
|
3237
|
+
"type": "string",
|
|
3238
|
+
"description": "URL to your endpoint serving all subscription queries for this source"
|
|
3239
|
+
},
|
|
3240
|
+
"retry": {
|
|
3241
|
+
"type": "integer",
|
|
3242
|
+
"description": "Retry attempts if fails"
|
|
3243
|
+
},
|
|
3244
|
+
"timeout": {
|
|
3245
|
+
"type": "integer",
|
|
3246
|
+
"description": "Timeout in milliseconds"
|
|
3247
|
+
},
|
|
3248
|
+
"connectionParams": {
|
|
3249
|
+
"type": "object",
|
|
3250
|
+
"properties": {},
|
|
3251
|
+
"description": "JSON object representing the `connectionParams` from a WebSocket connection to add to the runtime of the API calls only for operation during runtime.\nMore information about the WebSocket `connectionParams`:\n - When using `subscriptionsProtocol=WS` (graphql-ws): https://github.com/enisdenjo/graphql-ws/blob/master/docs/interfaces/client.ClientOptions.md#connectionparams\n - When using `subscriptionsProtocol=LEGACY_WS` (subscriptions-transport-ws): https://github.com/apollographql/subscriptions-transport-ws/blob/51270cc7dbaf09c7b9aa67368f1de58148c7d334/README.md#subscriptionclient"
|
|
3252
|
+
}
|
|
3253
|
+
},
|
|
3254
|
+
"required": ["name"]
|
|
3255
|
+
},
|
|
3184
3256
|
"ThriftHandler": {
|
|
3185
3257
|
"additionalProperties": false,
|
|
3186
3258
|
"type": "object",
|
package/esm/config-schema.js
CHANGED
|
@@ -3326,12 +3326,96 @@ export const jsonSchema = {
|
|
|
3326
3326
|
},
|
|
3327
3327
|
"batch": {
|
|
3328
3328
|
"type": "boolean"
|
|
3329
|
+
},
|
|
3330
|
+
"subgraphs": {
|
|
3331
|
+
"type": "array",
|
|
3332
|
+
"items": {
|
|
3333
|
+
"$ref": "#/definitions/SubgraphConfiguration"
|
|
3334
|
+
},
|
|
3335
|
+
"additionalItems": false
|
|
3329
3336
|
}
|
|
3330
3337
|
},
|
|
3331
3338
|
"required": [
|
|
3332
3339
|
"source"
|
|
3333
3340
|
]
|
|
3334
3341
|
},
|
|
3342
|
+
"SubgraphConfiguration": {
|
|
3343
|
+
"additionalProperties": false,
|
|
3344
|
+
"type": "object",
|
|
3345
|
+
"title": "SubgraphConfiguration",
|
|
3346
|
+
"properties": {
|
|
3347
|
+
"name": {
|
|
3348
|
+
"type": "string",
|
|
3349
|
+
"description": "The name of the subgraph you want to configure"
|
|
3350
|
+
},
|
|
3351
|
+
"endpoint": {
|
|
3352
|
+
"type": "string",
|
|
3353
|
+
"description": "A url or file path to your remote GraphQL endpoint.\nIf you provide a path to a code file(js or ts),\nother options will be ignored and the schema exported from the file will be used directly."
|
|
3354
|
+
},
|
|
3355
|
+
"operationHeaders": {
|
|
3356
|
+
"type": "object",
|
|
3357
|
+
"properties": {},
|
|
3358
|
+
"description": "JSON object representing the Headers to add to the runtime of the API calls only for operation during runtime"
|
|
3359
|
+
},
|
|
3360
|
+
"useGETForQueries": {
|
|
3361
|
+
"type": "boolean",
|
|
3362
|
+
"description": "Use HTTP GET for Query operations"
|
|
3363
|
+
},
|
|
3364
|
+
"method": {
|
|
3365
|
+
"type": "string",
|
|
3366
|
+
"enum": [
|
|
3367
|
+
"GET",
|
|
3368
|
+
"POST"
|
|
3369
|
+
],
|
|
3370
|
+
"description": "HTTP method used for GraphQL operations (Allowed values: GET, POST)"
|
|
3371
|
+
},
|
|
3372
|
+
"credentials": {
|
|
3373
|
+
"type": "string",
|
|
3374
|
+
"enum": [
|
|
3375
|
+
"omit",
|
|
3376
|
+
"include"
|
|
3377
|
+
],
|
|
3378
|
+
"description": "Request Credentials if your environment supports it.\n[See more](https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials)\n\n@default \"same-origin\" (Allowed values: omit, include)"
|
|
3379
|
+
},
|
|
3380
|
+
"webSocketImpl": {
|
|
3381
|
+
"type": "string",
|
|
3382
|
+
"description": "Path to a custom W3 Compatible WebSocket Implementation"
|
|
3383
|
+
},
|
|
3384
|
+
"source": {
|
|
3385
|
+
"type": "string",
|
|
3386
|
+
"description": "Path to the introspection\nYou can separately give schema introspection or SDL"
|
|
3387
|
+
},
|
|
3388
|
+
"subscriptionsProtocol": {
|
|
3389
|
+
"type": "string",
|
|
3390
|
+
"enum": [
|
|
3391
|
+
"SSE",
|
|
3392
|
+
"WS",
|
|
3393
|
+
"LEGACY_WS"
|
|
3394
|
+
],
|
|
3395
|
+
"description": "SSE - Server Sent Events\nWS - New graphql-ws\nLEGACY_WS - Legacy subscriptions-transport-ws (Allowed values: SSE, WS, LEGACY_WS)"
|
|
3396
|
+
},
|
|
3397
|
+
"subscriptionsEndpoint": {
|
|
3398
|
+
"type": "string",
|
|
3399
|
+
"description": "URL to your endpoint serving all subscription queries for this source"
|
|
3400
|
+
},
|
|
3401
|
+
"retry": {
|
|
3402
|
+
"type": "integer",
|
|
3403
|
+
"description": "Retry attempts if fails"
|
|
3404
|
+
},
|
|
3405
|
+
"timeout": {
|
|
3406
|
+
"type": "integer",
|
|
3407
|
+
"description": "Timeout in milliseconds"
|
|
3408
|
+
},
|
|
3409
|
+
"connectionParams": {
|
|
3410
|
+
"type": "object",
|
|
3411
|
+
"properties": {},
|
|
3412
|
+
"description": "JSON object representing the `connectionParams` from a WebSocket connection to add to the runtime of the API calls only for operation during runtime.\nMore information about the WebSocket `connectionParams`:\n - When using `subscriptionsProtocol=WS` (graphql-ws): https://github.com/enisdenjo/graphql-ws/blob/master/docs/interfaces/client.ClientOptions.md#connectionparams\n - When using `subscriptionsProtocol=LEGACY_WS` (subscriptions-transport-ws): https://github.com/apollographql/subscriptions-transport-ws/blob/51270cc7dbaf09c7b9aa67368f1de58148c7d334/README.md#subscriptionclient"
|
|
3413
|
+
}
|
|
3414
|
+
},
|
|
3415
|
+
"required": [
|
|
3416
|
+
"name"
|
|
3417
|
+
]
|
|
3418
|
+
},
|
|
3335
3419
|
"ThriftHandler": {
|
|
3336
3420
|
"additionalProperties": false,
|
|
3337
3421
|
"type": "object",
|
package/esm/config-schema.json
CHANGED
|
@@ -3177,10 +3177,82 @@
|
|
|
3177
3177
|
},
|
|
3178
3178
|
"batch": {
|
|
3179
3179
|
"type": "boolean"
|
|
3180
|
+
},
|
|
3181
|
+
"subgraphs": {
|
|
3182
|
+
"type": "array",
|
|
3183
|
+
"items": {
|
|
3184
|
+
"$ref": "#/definitions/SubgraphConfiguration"
|
|
3185
|
+
},
|
|
3186
|
+
"additionalItems": false
|
|
3180
3187
|
}
|
|
3181
3188
|
},
|
|
3182
3189
|
"required": ["source"]
|
|
3183
3190
|
},
|
|
3191
|
+
"SubgraphConfiguration": {
|
|
3192
|
+
"additionalProperties": false,
|
|
3193
|
+
"type": "object",
|
|
3194
|
+
"title": "SubgraphConfiguration",
|
|
3195
|
+
"properties": {
|
|
3196
|
+
"name": {
|
|
3197
|
+
"type": "string",
|
|
3198
|
+
"description": "The name of the subgraph you want to configure"
|
|
3199
|
+
},
|
|
3200
|
+
"endpoint": {
|
|
3201
|
+
"type": "string",
|
|
3202
|
+
"description": "A url or file path to your remote GraphQL endpoint.\nIf you provide a path to a code file(js or ts),\nother options will be ignored and the schema exported from the file will be used directly."
|
|
3203
|
+
},
|
|
3204
|
+
"operationHeaders": {
|
|
3205
|
+
"type": "object",
|
|
3206
|
+
"properties": {},
|
|
3207
|
+
"description": "JSON object representing the Headers to add to the runtime of the API calls only for operation during runtime"
|
|
3208
|
+
},
|
|
3209
|
+
"useGETForQueries": {
|
|
3210
|
+
"type": "boolean",
|
|
3211
|
+
"description": "Use HTTP GET for Query operations"
|
|
3212
|
+
},
|
|
3213
|
+
"method": {
|
|
3214
|
+
"type": "string",
|
|
3215
|
+
"enum": ["GET", "POST"],
|
|
3216
|
+
"description": "HTTP method used for GraphQL operations (Allowed values: GET, POST)"
|
|
3217
|
+
},
|
|
3218
|
+
"credentials": {
|
|
3219
|
+
"type": "string",
|
|
3220
|
+
"enum": ["omit", "include"],
|
|
3221
|
+
"description": "Request Credentials if your environment supports it.\n[See more](https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials)\n\n@default \"same-origin\" (Allowed values: omit, include)"
|
|
3222
|
+
},
|
|
3223
|
+
"webSocketImpl": {
|
|
3224
|
+
"type": "string",
|
|
3225
|
+
"description": "Path to a custom W3 Compatible WebSocket Implementation"
|
|
3226
|
+
},
|
|
3227
|
+
"source": {
|
|
3228
|
+
"type": "string",
|
|
3229
|
+
"description": "Path to the introspection\nYou can separately give schema introspection or SDL"
|
|
3230
|
+
},
|
|
3231
|
+
"subscriptionsProtocol": {
|
|
3232
|
+
"type": "string",
|
|
3233
|
+
"enum": ["SSE", "WS", "LEGACY_WS"],
|
|
3234
|
+
"description": "SSE - Server Sent Events\nWS - New graphql-ws\nLEGACY_WS - Legacy subscriptions-transport-ws (Allowed values: SSE, WS, LEGACY_WS)"
|
|
3235
|
+
},
|
|
3236
|
+
"subscriptionsEndpoint": {
|
|
3237
|
+
"type": "string",
|
|
3238
|
+
"description": "URL to your endpoint serving all subscription queries for this source"
|
|
3239
|
+
},
|
|
3240
|
+
"retry": {
|
|
3241
|
+
"type": "integer",
|
|
3242
|
+
"description": "Retry attempts if fails"
|
|
3243
|
+
},
|
|
3244
|
+
"timeout": {
|
|
3245
|
+
"type": "integer",
|
|
3246
|
+
"description": "Timeout in milliseconds"
|
|
3247
|
+
},
|
|
3248
|
+
"connectionParams": {
|
|
3249
|
+
"type": "object",
|
|
3250
|
+
"properties": {},
|
|
3251
|
+
"description": "JSON object representing the `connectionParams` from a WebSocket connection to add to the runtime of the API calls only for operation during runtime.\nMore information about the WebSocket `connectionParams`:\n - When using `subscriptionsProtocol=WS` (graphql-ws): https://github.com/enisdenjo/graphql-ws/blob/master/docs/interfaces/client.ClientOptions.md#connectionparams\n - When using `subscriptionsProtocol=LEGACY_WS` (subscriptions-transport-ws): https://github.com/apollographql/subscriptions-transport-ws/blob/51270cc7dbaf09c7b9aa67368f1de58148c7d334/README.md#subscriptionclient"
|
|
3252
|
+
}
|
|
3253
|
+
},
|
|
3254
|
+
"required": ["name"]
|
|
3255
|
+
},
|
|
3184
3256
|
"ThriftHandler": {
|
|
3185
3257
|
"additionalProperties": false,
|
|
3186
3258
|
"type": "object",
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/types",
|
|
3
|
-
"version": "0.97.
|
|
3
|
+
"version": "0.97.5",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@graphql-mesh/store": "^0.97.
|
|
6
|
+
"@graphql-mesh/store": "^0.97.5",
|
|
7
7
|
"@graphql-tools/utils": "^9.2.1 || ^10.0.0",
|
|
8
8
|
"graphql": "*",
|
|
9
9
|
"tslib": "^2.4.0"
|
package/typings/config.d.cts
CHANGED
|
@@ -994,6 +994,76 @@ export interface SupergraphHandler {
|
|
|
994
994
|
schemaHeaders?: any;
|
|
995
995
|
operationHeaders?: any;
|
|
996
996
|
batch?: boolean;
|
|
997
|
+
subgraphs?: SubgraphConfiguration[];
|
|
998
|
+
}
|
|
999
|
+
export interface SubgraphConfiguration {
|
|
1000
|
+
/**
|
|
1001
|
+
* The name of the subgraph you want to configure
|
|
1002
|
+
*/
|
|
1003
|
+
name: string;
|
|
1004
|
+
/**
|
|
1005
|
+
* A url or file path to your remote GraphQL endpoint.
|
|
1006
|
+
* If you provide a path to a code file(js or ts),
|
|
1007
|
+
* other options will be ignored and the schema exported from the file will be used directly.
|
|
1008
|
+
*/
|
|
1009
|
+
endpoint?: string;
|
|
1010
|
+
/**
|
|
1011
|
+
* JSON object representing the Headers to add to the runtime of the API calls only for operation during runtime
|
|
1012
|
+
*/
|
|
1013
|
+
operationHeaders?: {
|
|
1014
|
+
[k: string]: any;
|
|
1015
|
+
};
|
|
1016
|
+
/**
|
|
1017
|
+
* Use HTTP GET for Query operations
|
|
1018
|
+
*/
|
|
1019
|
+
useGETForQueries?: boolean;
|
|
1020
|
+
/**
|
|
1021
|
+
* HTTP method used for GraphQL operations (Allowed values: GET, POST)
|
|
1022
|
+
*/
|
|
1023
|
+
method?: 'GET' | 'POST';
|
|
1024
|
+
/**
|
|
1025
|
+
* Request Credentials if your environment supports it.
|
|
1026
|
+
* [See more](https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials)
|
|
1027
|
+
*
|
|
1028
|
+
* @default "same-origin" (Allowed values: omit, include)
|
|
1029
|
+
*/
|
|
1030
|
+
credentials?: 'omit' | 'include';
|
|
1031
|
+
/**
|
|
1032
|
+
* Path to a custom W3 Compatible WebSocket Implementation
|
|
1033
|
+
*/
|
|
1034
|
+
webSocketImpl?: string;
|
|
1035
|
+
/**
|
|
1036
|
+
* Path to the introspection
|
|
1037
|
+
* You can separately give schema introspection or SDL
|
|
1038
|
+
*/
|
|
1039
|
+
source?: string;
|
|
1040
|
+
/**
|
|
1041
|
+
* SSE - Server Sent Events
|
|
1042
|
+
* WS - New graphql-ws
|
|
1043
|
+
* LEGACY_WS - Legacy subscriptions-transport-ws (Allowed values: SSE, WS, LEGACY_WS)
|
|
1044
|
+
*/
|
|
1045
|
+
subscriptionsProtocol?: 'SSE' | 'WS' | 'LEGACY_WS';
|
|
1046
|
+
/**
|
|
1047
|
+
* URL to your endpoint serving all subscription queries for this source
|
|
1048
|
+
*/
|
|
1049
|
+
subscriptionsEndpoint?: string;
|
|
1050
|
+
/**
|
|
1051
|
+
* Retry attempts if fails
|
|
1052
|
+
*/
|
|
1053
|
+
retry?: number;
|
|
1054
|
+
/**
|
|
1055
|
+
* Timeout in milliseconds
|
|
1056
|
+
*/
|
|
1057
|
+
timeout?: number;
|
|
1058
|
+
/**
|
|
1059
|
+
* JSON object representing the `connectionParams` from a WebSocket connection to add to the runtime of the API calls only for operation during runtime.
|
|
1060
|
+
* More information about the WebSocket `connectionParams`:
|
|
1061
|
+
* - When using `subscriptionsProtocol=WS` (graphql-ws): https://github.com/enisdenjo/graphql-ws/blob/master/docs/interfaces/client.ClientOptions.md#connectionparams
|
|
1062
|
+
* - When using `subscriptionsProtocol=LEGACY_WS` (subscriptions-transport-ws): https://github.com/apollographql/subscriptions-transport-ws/blob/51270cc7dbaf09c7b9aa67368f1de58148c7d334/README.md#subscriptionclient
|
|
1063
|
+
*/
|
|
1064
|
+
connectionParams?: {
|
|
1065
|
+
[k: string]: any;
|
|
1066
|
+
};
|
|
997
1067
|
}
|
|
998
1068
|
/**
|
|
999
1069
|
* Handler for OData
|
package/typings/config.d.ts
CHANGED
|
@@ -994,6 +994,76 @@ export interface SupergraphHandler {
|
|
|
994
994
|
schemaHeaders?: any;
|
|
995
995
|
operationHeaders?: any;
|
|
996
996
|
batch?: boolean;
|
|
997
|
+
subgraphs?: SubgraphConfiguration[];
|
|
998
|
+
}
|
|
999
|
+
export interface SubgraphConfiguration {
|
|
1000
|
+
/**
|
|
1001
|
+
* The name of the subgraph you want to configure
|
|
1002
|
+
*/
|
|
1003
|
+
name: string;
|
|
1004
|
+
/**
|
|
1005
|
+
* A url or file path to your remote GraphQL endpoint.
|
|
1006
|
+
* If you provide a path to a code file(js or ts),
|
|
1007
|
+
* other options will be ignored and the schema exported from the file will be used directly.
|
|
1008
|
+
*/
|
|
1009
|
+
endpoint?: string;
|
|
1010
|
+
/**
|
|
1011
|
+
* JSON object representing the Headers to add to the runtime of the API calls only for operation during runtime
|
|
1012
|
+
*/
|
|
1013
|
+
operationHeaders?: {
|
|
1014
|
+
[k: string]: any;
|
|
1015
|
+
};
|
|
1016
|
+
/**
|
|
1017
|
+
* Use HTTP GET for Query operations
|
|
1018
|
+
*/
|
|
1019
|
+
useGETForQueries?: boolean;
|
|
1020
|
+
/**
|
|
1021
|
+
* HTTP method used for GraphQL operations (Allowed values: GET, POST)
|
|
1022
|
+
*/
|
|
1023
|
+
method?: 'GET' | 'POST';
|
|
1024
|
+
/**
|
|
1025
|
+
* Request Credentials if your environment supports it.
|
|
1026
|
+
* [See more](https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials)
|
|
1027
|
+
*
|
|
1028
|
+
* @default "same-origin" (Allowed values: omit, include)
|
|
1029
|
+
*/
|
|
1030
|
+
credentials?: 'omit' | 'include';
|
|
1031
|
+
/**
|
|
1032
|
+
* Path to a custom W3 Compatible WebSocket Implementation
|
|
1033
|
+
*/
|
|
1034
|
+
webSocketImpl?: string;
|
|
1035
|
+
/**
|
|
1036
|
+
* Path to the introspection
|
|
1037
|
+
* You can separately give schema introspection or SDL
|
|
1038
|
+
*/
|
|
1039
|
+
source?: string;
|
|
1040
|
+
/**
|
|
1041
|
+
* SSE - Server Sent Events
|
|
1042
|
+
* WS - New graphql-ws
|
|
1043
|
+
* LEGACY_WS - Legacy subscriptions-transport-ws (Allowed values: SSE, WS, LEGACY_WS)
|
|
1044
|
+
*/
|
|
1045
|
+
subscriptionsProtocol?: 'SSE' | 'WS' | 'LEGACY_WS';
|
|
1046
|
+
/**
|
|
1047
|
+
* URL to your endpoint serving all subscription queries for this source
|
|
1048
|
+
*/
|
|
1049
|
+
subscriptionsEndpoint?: string;
|
|
1050
|
+
/**
|
|
1051
|
+
* Retry attempts if fails
|
|
1052
|
+
*/
|
|
1053
|
+
retry?: number;
|
|
1054
|
+
/**
|
|
1055
|
+
* Timeout in milliseconds
|
|
1056
|
+
*/
|
|
1057
|
+
timeout?: number;
|
|
1058
|
+
/**
|
|
1059
|
+
* JSON object representing the `connectionParams` from a WebSocket connection to add to the runtime of the API calls only for operation during runtime.
|
|
1060
|
+
* More information about the WebSocket `connectionParams`:
|
|
1061
|
+
* - When using `subscriptionsProtocol=WS` (graphql-ws): https://github.com/enisdenjo/graphql-ws/blob/master/docs/interfaces/client.ClientOptions.md#connectionparams
|
|
1062
|
+
* - When using `subscriptionsProtocol=LEGACY_WS` (subscriptions-transport-ws): https://github.com/apollographql/subscriptions-transport-ws/blob/51270cc7dbaf09c7b9aa67368f1de58148c7d334/README.md#subscriptionclient
|
|
1063
|
+
*/
|
|
1064
|
+
connectionParams?: {
|
|
1065
|
+
[k: string]: any;
|
|
1066
|
+
};
|
|
997
1067
|
}
|
|
998
1068
|
/**
|
|
999
1069
|
* Handler for OData
|