@graphql-mesh/types 0.91.13 → 0.91.14-alpha-20230404120213-9e00fe6f4
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 +39 -0
- package/cjs/config-schema.json +39 -0
- package/esm/config-schema.js +39 -0
- package/esm/config-schema.json +39 -0
- package/package.json +3 -3
- package/typings/config.d.cts +18 -0
- package/typings/config.d.ts +18 -0
package/cjs/config-schema.js
CHANGED
|
@@ -398,6 +398,10 @@ exports.jsonSchema = {
|
|
|
398
398
|
},
|
|
399
399
|
],
|
|
400
400
|
},
|
|
401
|
+
transferSchema: {
|
|
402
|
+
$ref: '#/definitions/TransferSchemaTransformConfig',
|
|
403
|
+
description: 'Transformer to transfer (move or copy) GraphQL parts of GraphQL schema across Types and Fields',
|
|
404
|
+
},
|
|
401
405
|
typeMerging: {
|
|
402
406
|
$ref: '#/definitions/TypeMergingConfig',
|
|
403
407
|
description: '[Type Merging](https://www.graphql-tools.com/docs/stitch-type-merging) Configuration',
|
|
@@ -3810,6 +3814,41 @@ exports.jsonSchema = {
|
|
|
3810
3814
|
},
|
|
3811
3815
|
required: ['resolver', 'composer'],
|
|
3812
3816
|
},
|
|
3817
|
+
TransferSchemaTransformConfig: {
|
|
3818
|
+
additionalProperties: false,
|
|
3819
|
+
type: 'object',
|
|
3820
|
+
title: 'TransferSchemaTransformConfig',
|
|
3821
|
+
properties: {
|
|
3822
|
+
transfers: {
|
|
3823
|
+
type: 'array',
|
|
3824
|
+
items: {
|
|
3825
|
+
$ref: '#/definitions/TransferSchemaTransformObject',
|
|
3826
|
+
},
|
|
3827
|
+
additionalItems: false,
|
|
3828
|
+
description: 'Array of rules to transfer fields or args',
|
|
3829
|
+
},
|
|
3830
|
+
},
|
|
3831
|
+
required: ['transfers'],
|
|
3832
|
+
},
|
|
3833
|
+
TransferSchemaTransformObject: {
|
|
3834
|
+
additionalProperties: false,
|
|
3835
|
+
type: 'object',
|
|
3836
|
+
title: 'TransferSchemaTransformObject',
|
|
3837
|
+
properties: {
|
|
3838
|
+
from: {
|
|
3839
|
+
type: 'string',
|
|
3840
|
+
},
|
|
3841
|
+
to: {
|
|
3842
|
+
type: 'string',
|
|
3843
|
+
},
|
|
3844
|
+
action: {
|
|
3845
|
+
type: 'string',
|
|
3846
|
+
enum: ['move', 'copy'],
|
|
3847
|
+
description: 'Allowed values: move, copy',
|
|
3848
|
+
},
|
|
3849
|
+
},
|
|
3850
|
+
required: ['from', 'to'],
|
|
3851
|
+
},
|
|
3813
3852
|
TypeMergingConfig: {
|
|
3814
3853
|
additionalProperties: false,
|
|
3815
3854
|
type: 'object',
|
package/cjs/config-schema.json
CHANGED
|
@@ -395,6 +395,10 @@
|
|
|
395
395
|
}
|
|
396
396
|
]
|
|
397
397
|
},
|
|
398
|
+
"transferSchema": {
|
|
399
|
+
"$ref": "#/definitions/TransferSchemaTransformConfig",
|
|
400
|
+
"description": "Transformer to transfer (move or copy) GraphQL parts of GraphQL schema across Types and Fields"
|
|
401
|
+
},
|
|
398
402
|
"typeMerging": {
|
|
399
403
|
"$ref": "#/definitions/TypeMergingConfig",
|
|
400
404
|
"description": "[Type Merging](https://www.graphql-tools.com/docs/stitch-type-merging) Configuration"
|
|
@@ -3807,6 +3811,41 @@
|
|
|
3807
3811
|
},
|
|
3808
3812
|
"required": ["resolver", "composer"]
|
|
3809
3813
|
},
|
|
3814
|
+
"TransferSchemaTransformConfig": {
|
|
3815
|
+
"additionalProperties": false,
|
|
3816
|
+
"type": "object",
|
|
3817
|
+
"title": "TransferSchemaTransformConfig",
|
|
3818
|
+
"properties": {
|
|
3819
|
+
"transfers": {
|
|
3820
|
+
"type": "array",
|
|
3821
|
+
"items": {
|
|
3822
|
+
"$ref": "#/definitions/TransferSchemaTransformObject"
|
|
3823
|
+
},
|
|
3824
|
+
"additionalItems": false,
|
|
3825
|
+
"description": "Array of rules to transfer fields or args"
|
|
3826
|
+
}
|
|
3827
|
+
},
|
|
3828
|
+
"required": ["transfers"]
|
|
3829
|
+
},
|
|
3830
|
+
"TransferSchemaTransformObject": {
|
|
3831
|
+
"additionalProperties": false,
|
|
3832
|
+
"type": "object",
|
|
3833
|
+
"title": "TransferSchemaTransformObject",
|
|
3834
|
+
"properties": {
|
|
3835
|
+
"from": {
|
|
3836
|
+
"type": "string"
|
|
3837
|
+
},
|
|
3838
|
+
"to": {
|
|
3839
|
+
"type": "string"
|
|
3840
|
+
},
|
|
3841
|
+
"action": {
|
|
3842
|
+
"type": "string",
|
|
3843
|
+
"enum": ["move", "copy"],
|
|
3844
|
+
"description": "Allowed values: move, copy"
|
|
3845
|
+
}
|
|
3846
|
+
},
|
|
3847
|
+
"required": ["from", "to"]
|
|
3848
|
+
},
|
|
3810
3849
|
"TypeMergingConfig": {
|
|
3811
3850
|
"additionalProperties": false,
|
|
3812
3851
|
"type": "object",
|
package/esm/config-schema.js
CHANGED
|
@@ -395,6 +395,10 @@ export const jsonSchema = {
|
|
|
395
395
|
},
|
|
396
396
|
],
|
|
397
397
|
},
|
|
398
|
+
transferSchema: {
|
|
399
|
+
$ref: '#/definitions/TransferSchemaTransformConfig',
|
|
400
|
+
description: 'Transformer to transfer (move or copy) GraphQL parts of GraphQL schema across Types and Fields',
|
|
401
|
+
},
|
|
398
402
|
typeMerging: {
|
|
399
403
|
$ref: '#/definitions/TypeMergingConfig',
|
|
400
404
|
description: '[Type Merging](https://www.graphql-tools.com/docs/stitch-type-merging) Configuration',
|
|
@@ -3807,6 +3811,41 @@ export const jsonSchema = {
|
|
|
3807
3811
|
},
|
|
3808
3812
|
required: ['resolver', 'composer'],
|
|
3809
3813
|
},
|
|
3814
|
+
TransferSchemaTransformConfig: {
|
|
3815
|
+
additionalProperties: false,
|
|
3816
|
+
type: 'object',
|
|
3817
|
+
title: 'TransferSchemaTransformConfig',
|
|
3818
|
+
properties: {
|
|
3819
|
+
transfers: {
|
|
3820
|
+
type: 'array',
|
|
3821
|
+
items: {
|
|
3822
|
+
$ref: '#/definitions/TransferSchemaTransformObject',
|
|
3823
|
+
},
|
|
3824
|
+
additionalItems: false,
|
|
3825
|
+
description: 'Array of rules to transfer fields or args',
|
|
3826
|
+
},
|
|
3827
|
+
},
|
|
3828
|
+
required: ['transfers'],
|
|
3829
|
+
},
|
|
3830
|
+
TransferSchemaTransformObject: {
|
|
3831
|
+
additionalProperties: false,
|
|
3832
|
+
type: 'object',
|
|
3833
|
+
title: 'TransferSchemaTransformObject',
|
|
3834
|
+
properties: {
|
|
3835
|
+
from: {
|
|
3836
|
+
type: 'string',
|
|
3837
|
+
},
|
|
3838
|
+
to: {
|
|
3839
|
+
type: 'string',
|
|
3840
|
+
},
|
|
3841
|
+
action: {
|
|
3842
|
+
type: 'string',
|
|
3843
|
+
enum: ['move', 'copy'],
|
|
3844
|
+
description: 'Allowed values: move, copy',
|
|
3845
|
+
},
|
|
3846
|
+
},
|
|
3847
|
+
required: ['from', 'to'],
|
|
3848
|
+
},
|
|
3810
3849
|
TypeMergingConfig: {
|
|
3811
3850
|
additionalProperties: false,
|
|
3812
3851
|
type: 'object',
|
package/esm/config-schema.json
CHANGED
|
@@ -395,6 +395,10 @@
|
|
|
395
395
|
}
|
|
396
396
|
]
|
|
397
397
|
},
|
|
398
|
+
"transferSchema": {
|
|
399
|
+
"$ref": "#/definitions/TransferSchemaTransformConfig",
|
|
400
|
+
"description": "Transformer to transfer (move or copy) GraphQL parts of GraphQL schema across Types and Fields"
|
|
401
|
+
},
|
|
398
402
|
"typeMerging": {
|
|
399
403
|
"$ref": "#/definitions/TypeMergingConfig",
|
|
400
404
|
"description": "[Type Merging](https://www.graphql-tools.com/docs/stitch-type-merging) Configuration"
|
|
@@ -3807,6 +3811,41 @@
|
|
|
3807
3811
|
},
|
|
3808
3812
|
"required": ["resolver", "composer"]
|
|
3809
3813
|
},
|
|
3814
|
+
"TransferSchemaTransformConfig": {
|
|
3815
|
+
"additionalProperties": false,
|
|
3816
|
+
"type": "object",
|
|
3817
|
+
"title": "TransferSchemaTransformConfig",
|
|
3818
|
+
"properties": {
|
|
3819
|
+
"transfers": {
|
|
3820
|
+
"type": "array",
|
|
3821
|
+
"items": {
|
|
3822
|
+
"$ref": "#/definitions/TransferSchemaTransformObject"
|
|
3823
|
+
},
|
|
3824
|
+
"additionalItems": false,
|
|
3825
|
+
"description": "Array of rules to transfer fields or args"
|
|
3826
|
+
}
|
|
3827
|
+
},
|
|
3828
|
+
"required": ["transfers"]
|
|
3829
|
+
},
|
|
3830
|
+
"TransferSchemaTransformObject": {
|
|
3831
|
+
"additionalProperties": false,
|
|
3832
|
+
"type": "object",
|
|
3833
|
+
"title": "TransferSchemaTransformObject",
|
|
3834
|
+
"properties": {
|
|
3835
|
+
"from": {
|
|
3836
|
+
"type": "string"
|
|
3837
|
+
},
|
|
3838
|
+
"to": {
|
|
3839
|
+
"type": "string"
|
|
3840
|
+
},
|
|
3841
|
+
"action": {
|
|
3842
|
+
"type": "string",
|
|
3843
|
+
"enum": ["move", "copy"],
|
|
3844
|
+
"description": "Allowed values: move, copy"
|
|
3845
|
+
}
|
|
3846
|
+
},
|
|
3847
|
+
"required": ["from", "to"]
|
|
3848
|
+
},
|
|
3810
3849
|
"TypeMergingConfig": {
|
|
3811
3850
|
"additionalProperties": false,
|
|
3812
3851
|
"type": "object",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/types",
|
|
3
|
-
"version": "0.91.
|
|
3
|
+
"version": "0.91.14-alpha-20230404120213-9e00fe6f4",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@graphql-mesh/store": "^0.9.20",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"tslib": "^2.4.0"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@graphql-tools/batch-delegate": "8.4.
|
|
13
|
-
"@graphql-tools/delegate": "9.0.
|
|
12
|
+
"@graphql-tools/batch-delegate": "8.4.23",
|
|
13
|
+
"@graphql-tools/delegate": "9.0.29",
|
|
14
14
|
"@graphql-typed-document-node/core": "3.2.0"
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
package/typings/config.d.cts
CHANGED
|
@@ -1026,6 +1026,7 @@ export interface Transform {
|
|
|
1026
1026
|
* Transformer to apply composition to resolvers (Any of: ResolversCompositionTransform, Any)
|
|
1027
1027
|
*/
|
|
1028
1028
|
resolversComposition?: ResolversCompositionTransform | any;
|
|
1029
|
+
transferSchema?: TransferSchemaTransformConfig;
|
|
1029
1030
|
typeMerging?: TypeMergingConfig;
|
|
1030
1031
|
[k: string]: any;
|
|
1031
1032
|
}
|
|
@@ -1391,6 +1392,23 @@ export interface ResolversCompositionTransformObject {
|
|
|
1391
1392
|
*/
|
|
1392
1393
|
composer: any;
|
|
1393
1394
|
}
|
|
1395
|
+
/**
|
|
1396
|
+
* Transformer to transfer (move or copy) GraphQL parts of GraphQL schema across Types and Fields
|
|
1397
|
+
*/
|
|
1398
|
+
export interface TransferSchemaTransformConfig {
|
|
1399
|
+
/**
|
|
1400
|
+
* Array of rules to transfer fields or args
|
|
1401
|
+
*/
|
|
1402
|
+
transfers: TransferSchemaTransformObject[];
|
|
1403
|
+
}
|
|
1404
|
+
export interface TransferSchemaTransformObject {
|
|
1405
|
+
from: string;
|
|
1406
|
+
to: string;
|
|
1407
|
+
/**
|
|
1408
|
+
* Allowed values: move, copy
|
|
1409
|
+
*/
|
|
1410
|
+
action?: 'move' | 'copy';
|
|
1411
|
+
}
|
|
1394
1412
|
/**
|
|
1395
1413
|
* [Type Merging](https://www.graphql-tools.com/docs/stitch-type-merging) Configuration
|
|
1396
1414
|
*/
|
package/typings/config.d.ts
CHANGED
|
@@ -1026,6 +1026,7 @@ export interface Transform {
|
|
|
1026
1026
|
* Transformer to apply composition to resolvers (Any of: ResolversCompositionTransform, Any)
|
|
1027
1027
|
*/
|
|
1028
1028
|
resolversComposition?: ResolversCompositionTransform | any;
|
|
1029
|
+
transferSchema?: TransferSchemaTransformConfig;
|
|
1029
1030
|
typeMerging?: TypeMergingConfig;
|
|
1030
1031
|
[k: string]: any;
|
|
1031
1032
|
}
|
|
@@ -1391,6 +1392,23 @@ export interface ResolversCompositionTransformObject {
|
|
|
1391
1392
|
*/
|
|
1392
1393
|
composer: any;
|
|
1393
1394
|
}
|
|
1395
|
+
/**
|
|
1396
|
+
* Transformer to transfer (move or copy) GraphQL parts of GraphQL schema across Types and Fields
|
|
1397
|
+
*/
|
|
1398
|
+
export interface TransferSchemaTransformConfig {
|
|
1399
|
+
/**
|
|
1400
|
+
* Array of rules to transfer fields or args
|
|
1401
|
+
*/
|
|
1402
|
+
transfers: TransferSchemaTransformObject[];
|
|
1403
|
+
}
|
|
1404
|
+
export interface TransferSchemaTransformObject {
|
|
1405
|
+
from: string;
|
|
1406
|
+
to: string;
|
|
1407
|
+
/**
|
|
1408
|
+
* Allowed values: move, copy
|
|
1409
|
+
*/
|
|
1410
|
+
action?: 'move' | 'copy';
|
|
1411
|
+
}
|
|
1394
1412
|
/**
|
|
1395
1413
|
* [Type Merging](https://www.graphql-tools.com/docs/stitch-type-merging) Configuration
|
|
1396
1414
|
*/
|