@graphql-mesh/types 0.104.13 → 0.104.14-alpha-20250922151901-2100ea6ff399fc0053cc422e3cc6ab17fe79be1c

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.
@@ -2592,10 +2592,18 @@ exports.jsonSchema = {
2592
2592
  "invalidations": {
2593
2593
  "type": "array",
2594
2594
  "items": {
2595
- "$ref": "#/definitions/LiveQueryInvalidation"
2595
+ "description": "Any of: LiveQueryInvalidationByMutation, LiveQueryInvalidationByPolling",
2596
+ "anyOf": [
2597
+ {
2598
+ "$ref": "#/definitions/LiveQueryInvalidationByMutation"
2599
+ },
2600
+ {
2601
+ "$ref": "#/definitions/LiveQueryInvalidationByPolling"
2602
+ }
2603
+ ]
2596
2604
  },
2597
2605
  "additionalItems": false,
2598
- "description": "Invalidate a query or queries when a specific operation is done without an error"
2606
+ "description": "Invalidate a query or queries when a specific operation is done without an error (Any of: LiveQueryInvalidationByMutation, LiveQueryInvalidationByPolling)"
2599
2607
  },
2600
2608
  "resourceIdentifier": {
2601
2609
  "type": "string",
@@ -2619,10 +2627,10 @@ exports.jsonSchema = {
2619
2627
  }
2620
2628
  }
2621
2629
  },
2622
- "LiveQueryInvalidation": {
2630
+ "LiveQueryInvalidationByMutation": {
2623
2631
  "additionalProperties": false,
2624
2632
  "type": "object",
2625
- "title": "LiveQueryInvalidation",
2633
+ "title": "LiveQueryInvalidationByMutation",
2626
2634
  "properties": {
2627
2635
  "field": {
2628
2636
  "type": "string",
@@ -2641,6 +2649,29 @@ exports.jsonSchema = {
2641
2649
  "invalidate"
2642
2650
  ]
2643
2651
  },
2652
+ "LiveQueryInvalidationByPolling": {
2653
+ "additionalProperties": false,
2654
+ "type": "object",
2655
+ "title": "LiveQueryInvalidationByPolling",
2656
+ "properties": {
2657
+ "pollingInterval": {
2658
+ "type": "integer",
2659
+ "description": "Polling interval in milliseconds"
2660
+ },
2661
+ "invalidate": {
2662
+ "type": "array",
2663
+ "items": {
2664
+ "type": "string"
2665
+ },
2666
+ "additionalItems": false,
2667
+ "description": "Schema coordinate of the query to be polled"
2668
+ }
2669
+ },
2670
+ "required": [
2671
+ "pollingInterval",
2672
+ "invalidate"
2673
+ ]
2674
+ },
2644
2675
  "LiveQueryIndexBy": {
2645
2676
  "additionalProperties": false,
2646
2677
  "type": "object",
@@ -2461,10 +2461,18 @@
2461
2461
  "invalidations": {
2462
2462
  "type": "array",
2463
2463
  "items": {
2464
- "$ref": "#/definitions/LiveQueryInvalidation"
2464
+ "description": "Any of: LiveQueryInvalidationByMutation, LiveQueryInvalidationByPolling",
2465
+ "anyOf": [
2466
+ {
2467
+ "$ref": "#/definitions/LiveQueryInvalidationByMutation"
2468
+ },
2469
+ {
2470
+ "$ref": "#/definitions/LiveQueryInvalidationByPolling"
2471
+ }
2472
+ ]
2465
2473
  },
2466
2474
  "additionalItems": false,
2467
- "description": "Invalidate a query or queries when a specific operation is done without an error"
2475
+ "description": "Invalidate a query or queries when a specific operation is done without an error (Any of: LiveQueryInvalidationByMutation, LiveQueryInvalidationByPolling)"
2468
2476
  },
2469
2477
  "resourceIdentifier": {
2470
2478
  "type": "string",
@@ -2488,10 +2496,10 @@
2488
2496
  }
2489
2497
  }
2490
2498
  },
2491
- "LiveQueryInvalidation": {
2499
+ "LiveQueryInvalidationByMutation": {
2492
2500
  "additionalProperties": false,
2493
2501
  "type": "object",
2494
- "title": "LiveQueryInvalidation",
2502
+ "title": "LiveQueryInvalidationByMutation",
2495
2503
  "properties": {
2496
2504
  "field": {
2497
2505
  "type": "string",
@@ -2507,6 +2515,26 @@
2507
2515
  },
2508
2516
  "required": ["field", "invalidate"]
2509
2517
  },
2518
+ "LiveQueryInvalidationByPolling": {
2519
+ "additionalProperties": false,
2520
+ "type": "object",
2521
+ "title": "LiveQueryInvalidationByPolling",
2522
+ "properties": {
2523
+ "pollingInterval": {
2524
+ "type": "integer",
2525
+ "description": "Polling interval in milliseconds"
2526
+ },
2527
+ "invalidate": {
2528
+ "type": "array",
2529
+ "items": {
2530
+ "type": "string"
2531
+ },
2532
+ "additionalItems": false,
2533
+ "description": "Schema coordinate of the query to be polled"
2534
+ }
2535
+ },
2536
+ "required": ["pollingInterval", "invalidate"]
2537
+ },
2510
2538
  "LiveQueryIndexBy": {
2511
2539
  "additionalProperties": false,
2512
2540
  "type": "object",
@@ -2589,10 +2589,18 @@ export const jsonSchema = {
2589
2589
  "invalidations": {
2590
2590
  "type": "array",
2591
2591
  "items": {
2592
- "$ref": "#/definitions/LiveQueryInvalidation"
2592
+ "description": "Any of: LiveQueryInvalidationByMutation, LiveQueryInvalidationByPolling",
2593
+ "anyOf": [
2594
+ {
2595
+ "$ref": "#/definitions/LiveQueryInvalidationByMutation"
2596
+ },
2597
+ {
2598
+ "$ref": "#/definitions/LiveQueryInvalidationByPolling"
2599
+ }
2600
+ ]
2593
2601
  },
2594
2602
  "additionalItems": false,
2595
- "description": "Invalidate a query or queries when a specific operation is done without an error"
2603
+ "description": "Invalidate a query or queries when a specific operation is done without an error (Any of: LiveQueryInvalidationByMutation, LiveQueryInvalidationByPolling)"
2596
2604
  },
2597
2605
  "resourceIdentifier": {
2598
2606
  "type": "string",
@@ -2616,10 +2624,10 @@ export const jsonSchema = {
2616
2624
  }
2617
2625
  }
2618
2626
  },
2619
- "LiveQueryInvalidation": {
2627
+ "LiveQueryInvalidationByMutation": {
2620
2628
  "additionalProperties": false,
2621
2629
  "type": "object",
2622
- "title": "LiveQueryInvalidation",
2630
+ "title": "LiveQueryInvalidationByMutation",
2623
2631
  "properties": {
2624
2632
  "field": {
2625
2633
  "type": "string",
@@ -2638,6 +2646,29 @@ export const jsonSchema = {
2638
2646
  "invalidate"
2639
2647
  ]
2640
2648
  },
2649
+ "LiveQueryInvalidationByPolling": {
2650
+ "additionalProperties": false,
2651
+ "type": "object",
2652
+ "title": "LiveQueryInvalidationByPolling",
2653
+ "properties": {
2654
+ "pollingInterval": {
2655
+ "type": "integer",
2656
+ "description": "Polling interval in milliseconds"
2657
+ },
2658
+ "invalidate": {
2659
+ "type": "array",
2660
+ "items": {
2661
+ "type": "string"
2662
+ },
2663
+ "additionalItems": false,
2664
+ "description": "Schema coordinate of the query to be polled"
2665
+ }
2666
+ },
2667
+ "required": [
2668
+ "pollingInterval",
2669
+ "invalidate"
2670
+ ]
2671
+ },
2641
2672
  "LiveQueryIndexBy": {
2642
2673
  "additionalProperties": false,
2643
2674
  "type": "object",
@@ -2461,10 +2461,18 @@
2461
2461
  "invalidations": {
2462
2462
  "type": "array",
2463
2463
  "items": {
2464
- "$ref": "#/definitions/LiveQueryInvalidation"
2464
+ "description": "Any of: LiveQueryInvalidationByMutation, LiveQueryInvalidationByPolling",
2465
+ "anyOf": [
2466
+ {
2467
+ "$ref": "#/definitions/LiveQueryInvalidationByMutation"
2468
+ },
2469
+ {
2470
+ "$ref": "#/definitions/LiveQueryInvalidationByPolling"
2471
+ }
2472
+ ]
2465
2473
  },
2466
2474
  "additionalItems": false,
2467
- "description": "Invalidate a query or queries when a specific operation is done without an error"
2475
+ "description": "Invalidate a query or queries when a specific operation is done without an error (Any of: LiveQueryInvalidationByMutation, LiveQueryInvalidationByPolling)"
2468
2476
  },
2469
2477
  "resourceIdentifier": {
2470
2478
  "type": "string",
@@ -2488,10 +2496,10 @@
2488
2496
  }
2489
2497
  }
2490
2498
  },
2491
- "LiveQueryInvalidation": {
2499
+ "LiveQueryInvalidationByMutation": {
2492
2500
  "additionalProperties": false,
2493
2501
  "type": "object",
2494
- "title": "LiveQueryInvalidation",
2502
+ "title": "LiveQueryInvalidationByMutation",
2495
2503
  "properties": {
2496
2504
  "field": {
2497
2505
  "type": "string",
@@ -2507,6 +2515,26 @@
2507
2515
  },
2508
2516
  "required": ["field", "invalidate"]
2509
2517
  },
2518
+ "LiveQueryInvalidationByPolling": {
2519
+ "additionalProperties": false,
2520
+ "type": "object",
2521
+ "title": "LiveQueryInvalidationByPolling",
2522
+ "properties": {
2523
+ "pollingInterval": {
2524
+ "type": "integer",
2525
+ "description": "Polling interval in milliseconds"
2526
+ },
2527
+ "invalidate": {
2528
+ "type": "array",
2529
+ "items": {
2530
+ "type": "string"
2531
+ },
2532
+ "additionalItems": false,
2533
+ "description": "Schema coordinate of the query to be polled"
2534
+ }
2535
+ },
2536
+ "required": ["pollingInterval", "invalidate"]
2537
+ },
2510
2538
  "LiveQueryIndexBy": {
2511
2539
  "additionalProperties": false,
2512
2540
  "type": "object",
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@graphql-mesh/types",
3
- "version": "0.104.13",
3
+ "version": "0.104.14-alpha-20250922151901-2100ea6ff399fc0053cc422e3cc6ab17fe79be1c",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "*"
7
7
  },
8
8
  "dependencies": {
9
9
  "@graphql-hive/pubsub": "next",
10
- "@graphql-mesh/store": "^0.104.13",
10
+ "@graphql-mesh/store": "0.104.14-alpha-20250922151901-2100ea6ff399fc0053cc422e3cc6ab17fe79be1c",
11
11
  "@graphql-tools/batch-delegate": "^10.0.0",
12
12
  "@graphql-tools/delegate": "^11.0.0",
13
13
  "@graphql-tools/utils": "^10.8.0",
@@ -2083,9 +2083,9 @@ export interface HTTPDetailsExtensionsConfig {
2083
2083
  }
2084
2084
  export interface LiveQueryConfig {
2085
2085
  /**
2086
- * Invalidate a query or queries when a specific operation is done without an error
2086
+ * Invalidate a query or queries when a specific operation is done without an error (Any of: LiveQueryInvalidationByMutation, LiveQueryInvalidationByPolling)
2087
2087
  */
2088
- invalidations?: LiveQueryInvalidation[];
2088
+ invalidations?: (LiveQueryInvalidationByMutation | LiveQueryInvalidationByPolling)[];
2089
2089
  /**
2090
2090
  * Custom strategy for building resources identifiers
2091
2091
  * By default resource identifiers are built by concatenating the Typename with the id separated by a color (`User:1`).
@@ -2114,13 +2114,23 @@ export interface LiveQueryConfig {
2114
2114
  */
2115
2115
  indexBy?: LiveQueryIndexBy[];
2116
2116
  }
2117
- export interface LiveQueryInvalidation {
2117
+ export interface LiveQueryInvalidationByMutation {
2118
2118
  /**
2119
2119
  * Path to the operation that could effect it. In a form: Mutation.something. Note that wildcard is not supported in this field.
2120
2120
  */
2121
2121
  field: string;
2122
2122
  invalidate: string[];
2123
2123
  }
2124
+ export interface LiveQueryInvalidationByPolling {
2125
+ /**
2126
+ * Polling interval in milliseconds
2127
+ */
2128
+ pollingInterval: number;
2129
+ /**
2130
+ * Schema coordinate of the query to be polled
2131
+ */
2132
+ invalidate: string[];
2133
+ }
2124
2134
  export interface LiveQueryIndexBy {
2125
2135
  field: string;
2126
2136
  args: string[];
@@ -2083,9 +2083,9 @@ export interface HTTPDetailsExtensionsConfig {
2083
2083
  }
2084
2084
  export interface LiveQueryConfig {
2085
2085
  /**
2086
- * Invalidate a query or queries when a specific operation is done without an error
2086
+ * Invalidate a query or queries when a specific operation is done without an error (Any of: LiveQueryInvalidationByMutation, LiveQueryInvalidationByPolling)
2087
2087
  */
2088
- invalidations?: LiveQueryInvalidation[];
2088
+ invalidations?: (LiveQueryInvalidationByMutation | LiveQueryInvalidationByPolling)[];
2089
2089
  /**
2090
2090
  * Custom strategy for building resources identifiers
2091
2091
  * By default resource identifiers are built by concatenating the Typename with the id separated by a color (`User:1`).
@@ -2114,13 +2114,23 @@ export interface LiveQueryConfig {
2114
2114
  */
2115
2115
  indexBy?: LiveQueryIndexBy[];
2116
2116
  }
2117
- export interface LiveQueryInvalidation {
2117
+ export interface LiveQueryInvalidationByMutation {
2118
2118
  /**
2119
2119
  * Path to the operation that could effect it. In a form: Mutation.something. Note that wildcard is not supported in this field.
2120
2120
  */
2121
2121
  field: string;
2122
2122
  invalidate: string[];
2123
2123
  }
2124
+ export interface LiveQueryInvalidationByPolling {
2125
+ /**
2126
+ * Polling interval in milliseconds
2127
+ */
2128
+ pollingInterval: number;
2129
+ /**
2130
+ * Schema coordinate of the query to be polled
2131
+ */
2132
+ invalidate: string[];
2133
+ }
2124
2134
  export interface LiveQueryIndexBy {
2125
2135
  field: string;
2126
2136
  args: string[];