@settlemint/sdk-js 2.5.2-main462e9383 → 2.5.2-main4a2c31fa

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/README.md CHANGED
@@ -209,7 +209,7 @@ Type representing a load balancer entity.
209
209
 
210
210
  > **Middleware** = `ResultOf`\<*typeof* `MiddlewareFragment`\>
211
211
 
212
- Defined in: [sdk/js/src/graphql/middleware.ts:43](https://github.com/settlemint/sdk/blob/v2.5.2/sdk/js/src/graphql/middleware.ts#L43)
212
+ Defined in: [sdk/js/src/graphql/middleware.ts:56](https://github.com/settlemint/sdk/blob/v2.5.2/sdk/js/src/graphql/middleware.ts#L56)
213
213
 
214
214
  Type representing a middleware entity.
215
215
 
@@ -219,7 +219,7 @@ Type representing a middleware entity.
219
219
 
220
220
  > **MiddlewareWithSubgraphs** = `ResultOf`\<*typeof* `getGraphMiddlewareSubgraphs`\>\[`"middlewareByUniqueName"`\]
221
221
 
222
- Defined in: [sdk/js/src/graphql/middleware.ts:101](https://github.com/settlemint/sdk/blob/v2.5.2/sdk/js/src/graphql/middleware.ts#L101)
222
+ Defined in: [sdk/js/src/graphql/middleware.ts:115](https://github.com/settlemint/sdk/blob/v2.5.2/sdk/js/src/graphql/middleware.ts#L115)
223
223
 
224
224
  Type representing a middleware entity with subgraphs.
225
225
 
@@ -1985,6 +1985,18 @@ const MiddlewareFragment = graphql(`
1985
1985
  ... on HAGraphMiddleware {
1986
1986
  specVersion
1987
1987
  }
1988
+ ... on HAGraphPostgresMiddleware {
1989
+ specVersion
1990
+ }
1991
+ }
1992
+ `);
1993
+ const SubgraphFragment = graphql(`
1994
+ fragment Subgraph on Subgraph {
1995
+ name
1996
+ graphqlQueryEndpoint {
1997
+ displayValue
1998
+ id
1999
+ }
1988
2000
  }
1989
2001
  `);
1990
2002
  /**
@@ -2018,16 +2030,17 @@ const getGraphMiddlewareSubgraphs = graphql(`
2018
2030
  ...Middleware
2019
2031
  ... on HAGraphMiddleware {
2020
2032
  subgraphs(noCache: $noCache) {
2021
- name
2022
- graphqlQueryEndpoint {
2023
- displayValue
2024
- id
2025
- }
2033
+ ...Subgraph
2034
+ }
2035
+ }
2036
+ ... on HAGraphPostgresMiddleware {
2037
+ subgraphs(noCache: $noCache) {
2038
+ ...Subgraph
2026
2039
  }
2027
2040
  }
2028
2041
  }
2029
2042
  }
2030
- `, [MiddlewareFragment]);
2043
+ `, [MiddlewareFragment, SubgraphFragment]);
2031
2044
  /**
2032
2045
  * Mutation to create a new middleware.
2033
2046
  */