@whisk/graphql 0.0.11 → 0.0.13

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/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.13",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/office-supply-ventures/whisk-sdk.git",
@@ -37,6 +37,7 @@
37
37
  "scripts": {
38
38
  "build": "tsup",
39
39
  "dev": "tsup --watch",
40
- "schema:sync": "tsx scripts/fetch-schema.ts && gql-tada generate-output"
40
+ "schema:sync": "tsx scripts/fetch-schema.ts && gql-tada generate-output",
41
+ "check:types": "tsc --noEmit"
41
42
  }
42
43
  }
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"]