@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.
- package/dist/enums.d.ts +8 -0
- package/dist/enums.js +1 -0
- package/dist/enums.js.map +1 -0
- package/dist/graphql.d.ts +2 -5
- package/dist/graphql.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/enums.ts +6 -0
- package/src/graphql.ts +1 -4
- package/src/index.ts +1 -0
package/dist/enums.d.ts
ADDED
|
@@ -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
|
|
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
|
-
|
|
18
|
-
type VaultProtocol = introspection_types["Erc4626VaultProtocol"]["enumValues"];
|
|
19
|
-
|
|
20
|
-
export { type VaultProtocol, graphql };
|
|
17
|
+
export { graphql };
|
package/dist/graphql.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/graphql.ts"],"sourcesContent":["import { initGraphQLTada } from \"gql.tada\"\nimport type { introspection
|
|
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 {
|
|
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
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
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
|
|
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