@whisk/graphql 0.0.11 → 0.0.12

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.
@@ -0,0 +1,8 @@
1
+ import { introspection_types } from './generated/graphql-env.d.js';
2
+
3
+ type ApySide = introspection_types["ApySide"]["enumValues"];
4
+ type ApyTimeframe = introspection_types["ApyTimeframe"]["enumValues"];
5
+ type Erc4626VaultProtocol = introspection_types["Erc4626VaultProtocol"]["enumValues"];
6
+ type TokenCategory = introspection_types["TokenCategory"]["enumValues"];
7
+
8
+ export type { ApySide, ApyTimeframe, Erc4626VaultProtocol, TokenCategory };
package/dist/enums.js ADDED
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/dist/graphql.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { initGraphQLTada } from 'gql.tada';
2
2
  export { FragmentOf, ResultOf, VariablesOf, readFragment } from 'gql.tada';
3
- import { introspection, introspection_types } from './generated/graphql-env.d.js';
3
+ import { introspection } from './generated/graphql-env.d.js';
4
4
 
5
5
  declare const graphql: initGraphQLTada<{
6
6
  disableMasking: true;
@@ -14,7 +14,4 @@ declare const graphql: initGraphQLTada<{
14
14
  };
15
15
  }>;
16
16
 
17
- /** Vault protocol type from GraphQL schema */
18
- type VaultProtocol = introspection_types["Erc4626VaultProtocol"]["enumValues"];
19
-
20
- export { type VaultProtocol, graphql };
17
+ export { graphql };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graphql.ts"],"sourcesContent":["import { initGraphQLTada } from \"gql.tada\"\nimport type { introspection, introspection_types } from \"./generated/graphql-env.js\"\n\nexport const graphql = initGraphQLTada<{\n disableMasking: true\n introspection: introspection\n scalars: {\n Address: `0x${string}` // string underlying\n ChainId: number // number underlying\n BigInt: bigint // string underlying, but assumes an exchange to convert at runtime (done in client)\n Hex: `0x${string}` // string underlying\n URL: string\n }\n}>()\n\nexport type { FragmentOf, ResultOf, VariablesOf } from \"gql.tada\"\nexport { readFragment } from \"gql.tada\"\n\n/** Vault protocol type from GraphQL schema */\nexport type VaultProtocol = introspection_types[\"Erc4626VaultProtocol\"][\"enumValues\"]\n"],"mappings":"AAAA,SAAS,uBAAuB;AAGzB,MAAM,UAAU,gBAUpB;AAGH,SAAS,oBAAoB;","names":[]}
1
+ {"version":3,"sources":["../src/graphql.ts"],"sourcesContent":["import { initGraphQLTada } from \"gql.tada\"\nimport type { introspection } from \"./generated/graphql-env.js\"\n\nexport const graphql = initGraphQLTada<{\n disableMasking: true\n introspection: introspection\n scalars: {\n Address: `0x${string}` // string underlying\n ChainId: number // number underlying\n BigInt: bigint // string underlying, but assumes an exchange to convert at runtime (done in client)\n Hex: `0x${string}` // string underlying\n URL: string\n }\n}>()\n\nexport type { FragmentOf, ResultOf, VariablesOf } from \"gql.tada\"\nexport { readFragment } from \"gql.tada\"\n"],"mappings":"AAAA,SAAS,uBAAuB;AAGzB,MAAM,UAAU,gBAUpB;AAGH,SAAS,oBAAoB;","names":[]}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- export { VaultProtocol, graphql } from './graphql.js';
1
+ export { ApySide, ApyTimeframe, Erc4626VaultProtocol, TokenCategory } from './enums.js';
2
+ export { graphql } from './graphql.js';
2
3
  export { schema } from './schema.js';
3
4
  export { FragmentOf, ResultOf, VariablesOf, readFragment } from 'gql.tada';
4
5
  import './generated/graphql-env.d.js';
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ export * from "./enums.js";
1
2
  export * from "./graphql.js";
2
3
  export * from "./schema.js";
3
4
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from \"./graphql.js\"\nexport * from \"./schema.js\"\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from \"./enums.js\"\nexport * from \"./graphql.js\"\nexport * from \"./schema.js\"\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whisk/graphql",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/office-supply-ventures/whisk-sdk.git",
package/src/enums.ts ADDED
@@ -0,0 +1,6 @@
1
+ import type { introspection_types } from "./generated/graphql-env.js"
2
+
3
+ export type ApySide = introspection_types["ApySide"]["enumValues"]
4
+ export type ApyTimeframe = introspection_types["ApyTimeframe"]["enumValues"]
5
+ export type Erc4626VaultProtocol = introspection_types["Erc4626VaultProtocol"]["enumValues"]
6
+ export type TokenCategory = introspection_types["TokenCategory"]["enumValues"]
package/src/graphql.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { initGraphQLTada } from "gql.tada"
2
- import type { introspection, introspection_types } from "./generated/graphql-env.js"
2
+ import type { introspection } from "./generated/graphql-env.js"
3
3
 
4
4
  export const graphql = initGraphQLTada<{
5
5
  disableMasking: true
@@ -15,6 +15,3 @@ export const graphql = initGraphQLTada<{
15
15
 
16
16
  export type { FragmentOf, ResultOf, VariablesOf } from "gql.tada"
17
17
  export { readFragment } from "gql.tada"
18
-
19
- /** Vault protocol type from GraphQL schema */
20
- export type VaultProtocol = introspection_types["Erc4626VaultProtocol"]["enumValues"]
package/src/index.ts CHANGED
@@ -1,2 +1,3 @@
1
+ export * from "./enums.js"
1
2
  export * from "./graphql.js"
2
3
  export * from "./schema.js"