@graphql-mesh/types 1.0.0-alpha-20230424113259-560b18922 → 1.0.0-alpha-20230522110904-130abe0f9

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.
@@ -522,7 +522,19 @@ exports.jsonSchema = {
522
522
  $ref: '#/definitions/HTTPDetailsExtensionsConfig',
523
523
  },
524
524
  http2: {
525
- $ref: '#/definitions/Http2Plugin',
525
+ anyOf: [
526
+ {
527
+ type: 'object',
528
+ additionalProperties: true,
529
+ },
530
+ {
531
+ type: 'string',
532
+ },
533
+ {
534
+ type: 'array',
535
+ additionalItems: true,
536
+ },
537
+ ],
526
538
  },
527
539
  liveQuery: {
528
540
  $ref: '#/definitions/LiveQueryConfig',
@@ -904,6 +916,10 @@ exports.jsonSchema = {
904
916
  additionalItems: false,
905
917
  description: 'prefix to collect Query method default: list, get',
906
918
  },
919
+ schemaHeaders: {
920
+ type: 'object',
921
+ properties: {},
922
+ },
907
923
  },
908
924
  required: ['endpoint'],
909
925
  },
@@ -2165,20 +2181,6 @@ exports.jsonSchema = {
2165
2181
  },
2166
2182
  },
2167
2183
  },
2168
- Http2Plugin: {
2169
- additionalProperties: false,
2170
- type: 'object',
2171
- title: 'Http2Plugin',
2172
- properties: {
2173
- origins: {
2174
- type: 'array',
2175
- items: {
2176
- type: 'string',
2177
- },
2178
- additionalItems: false,
2179
- },
2180
- },
2181
- },
2182
2184
  LiveQueryConfig: {
2183
2185
  additionalProperties: false,
2184
2186
  type: 'object',
@@ -519,7 +519,19 @@
519
519
  "$ref": "#/definitions/HTTPDetailsExtensionsConfig"
520
520
  },
521
521
  "http2": {
522
- "$ref": "#/definitions/Http2Plugin"
522
+ "anyOf": [
523
+ {
524
+ "type": "object",
525
+ "additionalProperties": true
526
+ },
527
+ {
528
+ "type": "string"
529
+ },
530
+ {
531
+ "type": "array",
532
+ "additionalItems": true
533
+ }
534
+ ]
523
535
  },
524
536
  "liveQuery": {
525
537
  "$ref": "#/definitions/LiveQueryConfig"
@@ -900,6 +912,10 @@
900
912
  },
901
913
  "additionalItems": false,
902
914
  "description": "prefix to collect Query method default: list, get"
915
+ },
916
+ "schemaHeaders": {
917
+ "type": "object",
918
+ "properties": {}
903
919
  }
904
920
  },
905
921
  "required": ["endpoint"]
@@ -2162,20 +2178,6 @@
2162
2178
  }
2163
2179
  }
2164
2180
  },
2165
- "Http2Plugin": {
2166
- "additionalProperties": false,
2167
- "type": "object",
2168
- "title": "Http2Plugin",
2169
- "properties": {
2170
- "origins": {
2171
- "type": "array",
2172
- "items": {
2173
- "type": "string"
2174
- },
2175
- "additionalItems": false
2176
- }
2177
- }
2178
- },
2179
2181
  "LiveQueryConfig": {
2180
2182
  "additionalProperties": false,
2181
2183
  "type": "object",
@@ -519,7 +519,19 @@ export const jsonSchema = {
519
519
  $ref: '#/definitions/HTTPDetailsExtensionsConfig',
520
520
  },
521
521
  http2: {
522
- $ref: '#/definitions/Http2Plugin',
522
+ anyOf: [
523
+ {
524
+ type: 'object',
525
+ additionalProperties: true,
526
+ },
527
+ {
528
+ type: 'string',
529
+ },
530
+ {
531
+ type: 'array',
532
+ additionalItems: true,
533
+ },
534
+ ],
523
535
  },
524
536
  liveQuery: {
525
537
  $ref: '#/definitions/LiveQueryConfig',
@@ -901,6 +913,10 @@ export const jsonSchema = {
901
913
  additionalItems: false,
902
914
  description: 'prefix to collect Query method default: list, get',
903
915
  },
916
+ schemaHeaders: {
917
+ type: 'object',
918
+ properties: {},
919
+ },
904
920
  },
905
921
  required: ['endpoint'],
906
922
  },
@@ -2162,20 +2178,6 @@ export const jsonSchema = {
2162
2178
  },
2163
2179
  },
2164
2180
  },
2165
- Http2Plugin: {
2166
- additionalProperties: false,
2167
- type: 'object',
2168
- title: 'Http2Plugin',
2169
- properties: {
2170
- origins: {
2171
- type: 'array',
2172
- items: {
2173
- type: 'string',
2174
- },
2175
- additionalItems: false,
2176
- },
2177
- },
2178
- },
2179
2181
  LiveQueryConfig: {
2180
2182
  additionalProperties: false,
2181
2183
  type: 'object',
@@ -519,7 +519,19 @@
519
519
  "$ref": "#/definitions/HTTPDetailsExtensionsConfig"
520
520
  },
521
521
  "http2": {
522
- "$ref": "#/definitions/Http2Plugin"
522
+ "anyOf": [
523
+ {
524
+ "type": "object",
525
+ "additionalProperties": true
526
+ },
527
+ {
528
+ "type": "string"
529
+ },
530
+ {
531
+ "type": "array",
532
+ "additionalItems": true
533
+ }
534
+ ]
523
535
  },
524
536
  "liveQuery": {
525
537
  "$ref": "#/definitions/LiveQueryConfig"
@@ -900,6 +912,10 @@
900
912
  },
901
913
  "additionalItems": false,
902
914
  "description": "prefix to collect Query method default: list, get"
915
+ },
916
+ "schemaHeaders": {
917
+ "type": "object",
918
+ "properties": {}
903
919
  }
904
920
  },
905
921
  "required": ["endpoint"]
@@ -2162,20 +2178,6 @@
2162
2178
  }
2163
2179
  }
2164
2180
  },
2165
- "Http2Plugin": {
2166
- "additionalProperties": false,
2167
- "type": "object",
2168
- "title": "Http2Plugin",
2169
- "properties": {
2170
- "origins": {
2171
- "type": "array",
2172
- "items": {
2173
- "type": "string"
2174
- },
2175
- "additionalItems": false
2176
- }
2177
- }
2178
- },
2179
2181
  "LiveQueryConfig": {
2180
2182
  "additionalProperties": false,
2181
2183
  "type": "object",
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@graphql-mesh/types",
3
- "version": "1.0.0-alpha-20230424113259-560b18922",
3
+ "version": "1.0.0-alpha-20230522110904-130abe0f9",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@graphql-mesh/store": "1.0.0-alpha-20230424113259-560b18922",
6
+ "@graphql-mesh/store": "1.0.0-alpha-20230522110904-130abe0f9",
7
7
  "@graphql-tools/utils": "^9.2.1",
8
8
  "graphql": "*",
9
9
  "tslib": "^2.4.0"
@@ -296,6 +296,9 @@ export interface GrpcHandler {
296
296
  * prefix to collect Query method default: list, get
297
297
  */
298
298
  prefixQueryMethod?: string[];
299
+ schemaHeaders?: {
300
+ [k: string]: any;
301
+ };
299
302
  }
300
303
  export interface ProtoFilePath {
301
304
  file: string;
@@ -1589,7 +1592,7 @@ export interface Plugin {
1589
1592
  hive?: HivePlugin;
1590
1593
  httpCache?: HTTPCachePlugin;
1591
1594
  httpDetailsExtensions?: HTTPDetailsExtensionsConfig;
1592
- http2?: Http2Plugin;
1595
+ http2?: any;
1593
1596
  liveQuery?: LiveQueryConfig;
1594
1597
  mock?: MockingConfig;
1595
1598
  newrelic?: NewrelicConfig;
@@ -1752,9 +1755,6 @@ export interface URLPatternObj {
1752
1755
  export interface HTTPDetailsExtensionsConfig {
1753
1756
  if?: any;
1754
1757
  }
1755
- export interface Http2Plugin {
1756
- origins?: string[];
1757
- }
1758
1758
  export interface LiveQueryConfig {
1759
1759
  /**
1760
1760
  * Invalidate a query or queries when a specific operation is done without an error
@@ -296,6 +296,9 @@ export interface GrpcHandler {
296
296
  * prefix to collect Query method default: list, get
297
297
  */
298
298
  prefixQueryMethod?: string[];
299
+ schemaHeaders?: {
300
+ [k: string]: any;
301
+ };
299
302
  }
300
303
  export interface ProtoFilePath {
301
304
  file: string;
@@ -1589,7 +1592,7 @@ export interface Plugin {
1589
1592
  hive?: HivePlugin;
1590
1593
  httpCache?: HTTPCachePlugin;
1591
1594
  httpDetailsExtensions?: HTTPDetailsExtensionsConfig;
1592
- http2?: Http2Plugin;
1595
+ http2?: any;
1593
1596
  liveQuery?: LiveQueryConfig;
1594
1597
  mock?: MockingConfig;
1595
1598
  newrelic?: NewrelicConfig;
@@ -1752,9 +1755,6 @@ export interface URLPatternObj {
1752
1755
  export interface HTTPDetailsExtensionsConfig {
1753
1756
  if?: any;
1754
1757
  }
1755
- export interface Http2Plugin {
1756
- origins?: string[];
1757
- }
1758
1758
  export interface LiveQueryConfig {
1759
1759
  /**
1760
1760
  * Invalidate a query or queries when a specific operation is done without an error