@portkey/graphql 0.0.1-alpha.8.9 → 0.0.2-alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -0
- package/dist/commonjs/client.d.ts +3 -0
- package/dist/{client.js → commonjs/client.js} +0 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/caHolderInfo.d.ts +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/caHolderInfo.js +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/caHolderManagerChangeRecordInfo.d.ts +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/caHolderManagerChangeRecordInfo.js +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/caHolderManagerInfo.d.ts +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/caHolderManagerInfo.js +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/caHolderNFTBalanceInfo.d.ts +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/caHolderNFTBalanceInfo.js +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/caHolderNFTCollectionBalanceInfo.d.ts +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/caHolderNFTCollectionBalanceInfo.js +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/caHolderSearchTokenNFT.d.ts +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/caHolderSearchTokenNFT.js +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/caHolderTokenBalanceInfo.d.ts +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/caHolderTokenBalanceInfo.js +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/caHolderTransaction.d.ts +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/caHolderTransaction.js +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/caHolderTransactionAddressInfo.d.ts +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/caHolderTransactionAddressInfo.js +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/caHolderTransactionInfo.d.ts +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/caHolderTransactionInfo.js +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/loginGuardianChangeRecordInfo.d.ts +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/loginGuardianChangeRecordInfo.js +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/loginGuardianInfo.d.ts +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/loginGuardianInfo.js +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/syncState.d.ts +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/syncState.js +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/tokenInfo.d.ts +16 -1
- package/dist/{did → commonjs/did}/__generated__/hooks/tokenInfo.js +16 -1
- package/dist/{did → commonjs/did}/__generated__/types.d.ts +1 -1
- package/dist/{did → commonjs/did}/__generated__/types.js +0 -1
- package/dist/{did → commonjs/did}/index.d.ts +0 -2
- package/dist/{did → commonjs/did}/index.js +0 -1
- package/dist/commonjs/did/utils.d.ts +6 -0
- package/dist/{did → commonjs/did}/utils.js +2 -1
- package/dist/{index.d.ts → commonjs/index.d.ts} +0 -1
- package/dist/{index.js → commonjs/index.js} +0 -1
- package/dist/commonjs/package.json +1 -0
- package/dist/{types → commonjs/types}/did.d.ts +1 -2
- package/dist/{types → commonjs/types}/did.js +0 -1
- package/dist/commonjs/types/index.d.ts +8 -0
- package/dist/{types → commonjs/types}/index.js +0 -1
- package/dist/esm/client.d.ts +3 -0
- package/dist/esm/client.js +11 -0
- package/dist/esm/did/__generated__/hooks/caHolderInfo.d.ts +58 -0
- package/dist/esm/did/__generated__/hooks/caHolderInfo.js +51 -0
- package/dist/esm/did/__generated__/hooks/caHolderManagerChangeRecordInfo.d.ts +42 -0
- package/dist/esm/did/__generated__/hooks/caHolderManagerChangeRecordInfo.js +38 -0
- package/dist/esm/did/__generated__/hooks/caHolderManagerInfo.d.ts +47 -0
- package/dist/esm/did/__generated__/hooks/caHolderManagerInfo.js +42 -0
- package/dist/esm/did/__generated__/hooks/caHolderNFTBalanceInfo.d.ts +60 -0
- package/dist/esm/did/__generated__/hooks/caHolderNFTBalanceInfo.js +54 -0
- package/dist/esm/did/__generated__/hooks/caHolderNFTCollectionBalanceInfo.d.ts +58 -0
- package/dist/esm/did/__generated__/hooks/caHolderNFTCollectionBalanceInfo.js +52 -0
- package/dist/esm/did/__generated__/hooks/caHolderSearchTokenNFT.d.ts +77 -0
- package/dist/esm/did/__generated__/hooks/caHolderSearchTokenNFT.js +70 -0
- package/dist/esm/did/__generated__/hooks/caHolderTokenBalanceInfo.d.ts +62 -0
- package/dist/esm/did/__generated__/hooks/caHolderTokenBalanceInfo.js +56 -0
- package/dist/esm/did/__generated__/hooks/caHolderTransaction.d.ts +98 -0
- package/dist/esm/did/__generated__/hooks/caHolderTransaction.js +89 -0
- package/dist/esm/did/__generated__/hooks/caHolderTransactionAddressInfo.d.ts +46 -0
- package/dist/esm/did/__generated__/hooks/caHolderTransactionAddressInfo.js +41 -0
- package/dist/esm/did/__generated__/hooks/caHolderTransactionInfo.d.ts +98 -0
- package/dist/esm/did/__generated__/hooks/caHolderTransactionInfo.js +89 -0
- package/dist/esm/did/__generated__/hooks/loginGuardianChangeRecordInfo.d.ts +52 -0
- package/dist/esm/did/__generated__/hooks/loginGuardianChangeRecordInfo.js +47 -0
- package/dist/esm/did/__generated__/hooks/loginGuardianInfo.d.ts +50 -0
- package/dist/esm/did/__generated__/hooks/loginGuardianInfo.js +45 -0
- package/dist/esm/did/__generated__/hooks/syncState.d.ts +38 -0
- package/dist/esm/did/__generated__/hooks/syncState.js +34 -0
- package/dist/esm/did/__generated__/hooks/tokenInfo.d.ts +51 -0
- package/dist/esm/did/__generated__/hooks/tokenInfo.js +47 -0
- package/dist/esm/did/__generated__/types.d.ts +416 -0
- package/dist/esm/did/__generated__/types.js +22 -0
- package/dist/esm/did/index.d.ts +13 -0
- package/dist/esm/did/index.js +53 -0
- package/dist/esm/did/utils.d.ts +6 -0
- package/dist/esm/did/utils.js +28 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/types/did.d.ts +10 -0
- package/dist/esm/types/did.js +1 -0
- package/dist/esm/types/index.d.ts +8 -0
- package/dist/esm/types/index.js +6 -0
- package/dist/types/client.d.ts.map +1 -0
- package/dist/types/did/__generated__/hooks/caHolderInfo.d.ts +59 -0
- package/dist/types/did/__generated__/hooks/caHolderInfo.d.ts.map +1 -0
- package/dist/types/did/__generated__/hooks/caHolderManagerChangeRecordInfo.d.ts +43 -0
- package/dist/types/did/__generated__/hooks/caHolderManagerChangeRecordInfo.d.ts.map +1 -0
- package/dist/types/did/__generated__/hooks/caHolderManagerInfo.d.ts +48 -0
- package/dist/types/did/__generated__/hooks/caHolderManagerInfo.d.ts.map +1 -0
- package/dist/types/did/__generated__/hooks/caHolderNFTBalanceInfo.d.ts +61 -0
- package/dist/types/did/__generated__/hooks/caHolderNFTBalanceInfo.d.ts.map +1 -0
- package/dist/types/did/__generated__/hooks/caHolderNFTCollectionBalanceInfo.d.ts +59 -0
- package/dist/types/did/__generated__/hooks/caHolderNFTCollectionBalanceInfo.d.ts.map +1 -0
- package/dist/types/did/__generated__/hooks/caHolderSearchTokenNFT.d.ts +78 -0
- package/dist/types/did/__generated__/hooks/caHolderSearchTokenNFT.d.ts.map +1 -0
- package/dist/types/did/__generated__/hooks/caHolderTokenBalanceInfo.d.ts +63 -0
- package/dist/types/did/__generated__/hooks/caHolderTokenBalanceInfo.d.ts.map +1 -0
- package/dist/types/did/__generated__/hooks/caHolderTransaction.d.ts +99 -0
- package/dist/types/did/__generated__/hooks/caHolderTransaction.d.ts.map +1 -0
- package/dist/types/did/__generated__/hooks/caHolderTransactionAddressInfo.d.ts +47 -0
- package/dist/types/did/__generated__/hooks/caHolderTransactionAddressInfo.d.ts.map +1 -0
- package/dist/types/did/__generated__/hooks/caHolderTransactionInfo.d.ts +99 -0
- package/dist/types/did/__generated__/hooks/caHolderTransactionInfo.d.ts.map +1 -0
- package/dist/types/did/__generated__/hooks/loginGuardianChangeRecordInfo.d.ts +53 -0
- package/dist/types/did/__generated__/hooks/loginGuardianChangeRecordInfo.d.ts.map +1 -0
- package/dist/types/did/__generated__/hooks/loginGuardianInfo.d.ts +51 -0
- package/dist/types/did/__generated__/hooks/loginGuardianInfo.d.ts.map +1 -0
- package/dist/types/did/__generated__/hooks/syncState.d.ts +39 -0
- package/dist/types/did/__generated__/hooks/syncState.d.ts.map +1 -0
- package/dist/types/did/__generated__/hooks/tokenInfo.d.ts +52 -0
- package/dist/types/did/__generated__/hooks/tokenInfo.d.ts.map +1 -0
- package/dist/types/did/__generated__/types.d.ts +417 -0
- package/dist/types/did/__generated__/types.d.ts.map +1 -0
- package/dist/types/did/index.d.ts +14 -0
- package/dist/types/did/index.d.ts.map +1 -0
- package/dist/types/did/utils.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -7
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types/did.d.ts +11 -0
- package/dist/types/types/did.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +9 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/package.json +19 -8
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js.map +0 -1
- package/dist/did/__generated__/hooks/caHolderInfo.d.ts.map +0 -1
- package/dist/did/__generated__/hooks/caHolderInfo.js.map +0 -1
- package/dist/did/__generated__/hooks/caHolderManagerChangeRecordInfo.d.ts.map +0 -1
- package/dist/did/__generated__/hooks/caHolderManagerChangeRecordInfo.js.map +0 -1
- package/dist/did/__generated__/hooks/caHolderManagerInfo.d.ts.map +0 -1
- package/dist/did/__generated__/hooks/caHolderManagerInfo.js.map +0 -1
- package/dist/did/__generated__/hooks/caHolderNFTBalanceInfo.d.ts.map +0 -1
- package/dist/did/__generated__/hooks/caHolderNFTBalanceInfo.js.map +0 -1
- package/dist/did/__generated__/hooks/caHolderNFTCollectionBalanceInfo.d.ts.map +0 -1
- package/dist/did/__generated__/hooks/caHolderNFTCollectionBalanceInfo.js.map +0 -1
- package/dist/did/__generated__/hooks/caHolderSearchTokenNFT.d.ts.map +0 -1
- package/dist/did/__generated__/hooks/caHolderSearchTokenNFT.js.map +0 -1
- package/dist/did/__generated__/hooks/caHolderTokenBalanceInfo.d.ts.map +0 -1
- package/dist/did/__generated__/hooks/caHolderTokenBalanceInfo.js.map +0 -1
- package/dist/did/__generated__/hooks/caHolderTransaction.d.ts.map +0 -1
- package/dist/did/__generated__/hooks/caHolderTransaction.js.map +0 -1
- package/dist/did/__generated__/hooks/caHolderTransactionAddressInfo.d.ts.map +0 -1
- package/dist/did/__generated__/hooks/caHolderTransactionAddressInfo.js.map +0 -1
- package/dist/did/__generated__/hooks/caHolderTransactionInfo.d.ts.map +0 -1
- package/dist/did/__generated__/hooks/caHolderTransactionInfo.js.map +0 -1
- package/dist/did/__generated__/hooks/loginGuardianChangeRecordInfo.d.ts.map +0 -1
- package/dist/did/__generated__/hooks/loginGuardianChangeRecordInfo.js.map +0 -1
- package/dist/did/__generated__/hooks/loginGuardianInfo.d.ts.map +0 -1
- package/dist/did/__generated__/hooks/loginGuardianInfo.js.map +0 -1
- package/dist/did/__generated__/hooks/syncState.d.ts.map +0 -1
- package/dist/did/__generated__/hooks/syncState.js.map +0 -1
- package/dist/did/__generated__/hooks/tokenInfo.d.ts.map +0 -1
- package/dist/did/__generated__/hooks/tokenInfo.js.map +0 -1
- package/dist/did/__generated__/types.d.ts.map +0 -1
- package/dist/did/__generated__/types.js.map +0 -1
- package/dist/did/index.d.ts.map +0 -1
- package/dist/did/index.js.map +0 -1
- package/dist/did/utils.d.ts.map +0 -1
- package/dist/did/utils.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/types/did.d.ts.map +0 -1
- package/dist/types/did.js.map +0 -1
- package/dist/types/index.js.map +0 -1
- /package/dist/{client.d.ts → types/client.d.ts} +0 -0
- /package/dist/{did → types/did}/utils.d.ts +0 -0
@@ -23,6 +23,22 @@ export type LoginGuardianInfoQuery = {
|
|
23
23
|
} | null> | null;
|
24
24
|
};
|
25
25
|
export declare const LoginGuardianInfoDocument: Apollo.DocumentNode;
|
26
|
+
/**
|
27
|
+
* __useLoginGuardianInfoQuery__
|
28
|
+
*
|
29
|
+
* To run a query within a React component, call `useLoginGuardianInfoQuery` and pass it any options that fit your needs.
|
30
|
+
* When your component renders, `useLoginGuardianInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
31
|
+
* you can use to render your UI.
|
32
|
+
*
|
33
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
34
|
+
*
|
35
|
+
* @example
|
36
|
+
* const { data, loading, error } = useLoginGuardianInfoQuery({
|
37
|
+
* variables: {
|
38
|
+
* dto: // value for 'dto'
|
39
|
+
* },
|
40
|
+
* });
|
41
|
+
*/
|
26
42
|
export declare function useLoginGuardianInfoQuery(baseOptions?: Apollo.QueryHookOptions<LoginGuardianInfoQuery, LoginGuardianInfoQueryVariables>): Apollo.QueryResult<LoginGuardianInfoQuery, Types.Exact<{
|
27
43
|
dto?: Types.InputMaybe<Types.GetLoginGuardianInfoDto> | undefined;
|
28
44
|
}>>;
|
@@ -32,4 +48,3 @@ export declare function useLoginGuardianInfoLazyQuery(baseOptions?: Apollo.LazyQ
|
|
32
48
|
export type LoginGuardianInfoQueryHookResult = ReturnType<typeof useLoginGuardianInfoQuery>;
|
33
49
|
export type LoginGuardianInfoLazyQueryHookResult = ReturnType<typeof useLoginGuardianInfoLazyQuery>;
|
34
50
|
export type LoginGuardianInfoQueryResult = Apollo.QueryResult<LoginGuardianInfoQuery, LoginGuardianInfoQueryVariables>;
|
35
|
-
//# sourceMappingURL=loginGuardianInfo.d.ts.map
|
@@ -45,6 +45,22 @@ exports.LoginGuardianInfoDocument = (0, client_1.gql) `
|
|
45
45
|
}
|
46
46
|
}
|
47
47
|
`;
|
48
|
+
/**
|
49
|
+
* __useLoginGuardianInfoQuery__
|
50
|
+
*
|
51
|
+
* To run a query within a React component, call `useLoginGuardianInfoQuery` and pass it any options that fit your needs.
|
52
|
+
* When your component renders, `useLoginGuardianInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
53
|
+
* you can use to render your UI.
|
54
|
+
*
|
55
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
56
|
+
*
|
57
|
+
* @example
|
58
|
+
* const { data, loading, error } = useLoginGuardianInfoQuery({
|
59
|
+
* variables: {
|
60
|
+
* dto: // value for 'dto'
|
61
|
+
* },
|
62
|
+
* });
|
63
|
+
*/
|
48
64
|
function useLoginGuardianInfoQuery(baseOptions) {
|
49
65
|
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
50
66
|
return Apollo.useQuery(exports.LoginGuardianInfoDocument, options);
|
@@ -55,4 +71,3 @@ function useLoginGuardianInfoLazyQuery(baseOptions) {
|
|
55
71
|
return Apollo.useLazyQuery(exports.LoginGuardianInfoDocument, options);
|
56
72
|
}
|
57
73
|
exports.useLoginGuardianInfoLazyQuery = useLoginGuardianInfoLazyQuery;
|
58
|
-
//# sourceMappingURL=loginGuardianInfo.js.map
|
@@ -11,6 +11,22 @@ export type SyncStateQuery = {
|
|
11
11
|
} | null;
|
12
12
|
};
|
13
13
|
export declare const SyncStateDocument: Apollo.DocumentNode;
|
14
|
+
/**
|
15
|
+
* __useSyncStateQuery__
|
16
|
+
*
|
17
|
+
* To run a query within a React component, call `useSyncStateQuery` and pass it any options that fit your needs.
|
18
|
+
* When your component renders, `useSyncStateQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
19
|
+
* you can use to render your UI.
|
20
|
+
*
|
21
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
22
|
+
*
|
23
|
+
* @example
|
24
|
+
* const { data, loading, error } = useSyncStateQuery({
|
25
|
+
* variables: {
|
26
|
+
* dto: // value for 'dto'
|
27
|
+
* },
|
28
|
+
* });
|
29
|
+
*/
|
14
30
|
export declare function useSyncStateQuery(baseOptions?: Apollo.QueryHookOptions<SyncStateQuery, SyncStateQueryVariables>): Apollo.QueryResult<SyncStateQuery, Types.Exact<{
|
15
31
|
dto?: Types.InputMaybe<Types.GetSyncStateDto> | undefined;
|
16
32
|
}>>;
|
@@ -20,4 +36,3 @@ export declare function useSyncStateLazyQuery(baseOptions?: Apollo.LazyQueryHook
|
|
20
36
|
export type SyncStateQueryHookResult = ReturnType<typeof useSyncStateQuery>;
|
21
37
|
export type SyncStateLazyQueryHookResult = ReturnType<typeof useSyncStateLazyQuery>;
|
22
38
|
export type SyncStateQueryResult = Apollo.QueryResult<SyncStateQuery, SyncStateQueryVariables>;
|
23
|
-
//# sourceMappingURL=syncState.d.ts.map
|
@@ -34,6 +34,22 @@ exports.SyncStateDocument = (0, client_1.gql) `
|
|
34
34
|
}
|
35
35
|
}
|
36
36
|
`;
|
37
|
+
/**
|
38
|
+
* __useSyncStateQuery__
|
39
|
+
*
|
40
|
+
* To run a query within a React component, call `useSyncStateQuery` and pass it any options that fit your needs.
|
41
|
+
* When your component renders, `useSyncStateQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
42
|
+
* you can use to render your UI.
|
43
|
+
*
|
44
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
45
|
+
*
|
46
|
+
* @example
|
47
|
+
* const { data, loading, error } = useSyncStateQuery({
|
48
|
+
* variables: {
|
49
|
+
* dto: // value for 'dto'
|
50
|
+
* },
|
51
|
+
* });
|
52
|
+
*/
|
37
53
|
function useSyncStateQuery(baseOptions) {
|
38
54
|
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
39
55
|
return Apollo.useQuery(exports.SyncStateDocument, options);
|
@@ -44,4 +60,3 @@ function useSyncStateLazyQuery(baseOptions) {
|
|
44
60
|
return Apollo.useLazyQuery(exports.SyncStateDocument, options);
|
45
61
|
}
|
46
62
|
exports.useSyncStateLazyQuery = useSyncStateLazyQuery;
|
47
|
-
//# sourceMappingURL=syncState.js.map
|
@@ -24,6 +24,22 @@ export type TokenInfoQuery = {
|
|
24
24
|
} | null> | null;
|
25
25
|
};
|
26
26
|
export declare const TokenInfoDocument: Apollo.DocumentNode;
|
27
|
+
/**
|
28
|
+
* __useTokenInfoQuery__
|
29
|
+
*
|
30
|
+
* To run a query within a React component, call `useTokenInfoQuery` and pass it any options that fit your needs.
|
31
|
+
* When your component renders, `useTokenInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
32
|
+
* you can use to render your UI.
|
33
|
+
*
|
34
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
35
|
+
*
|
36
|
+
* @example
|
37
|
+
* const { data, loading, error } = useTokenInfoQuery({
|
38
|
+
* variables: {
|
39
|
+
* dto: // value for 'dto'
|
40
|
+
* },
|
41
|
+
* });
|
42
|
+
*/
|
27
43
|
export declare function useTokenInfoQuery(baseOptions?: Apollo.QueryHookOptions<TokenInfoQuery, TokenInfoQueryVariables>): Apollo.QueryResult<TokenInfoQuery, Types.Exact<{
|
28
44
|
dto?: Types.InputMaybe<Types.GetTokenInfoDto> | undefined;
|
29
45
|
}>>;
|
@@ -33,4 +49,3 @@ export declare function useTokenInfoLazyQuery(baseOptions?: Apollo.LazyQueryHook
|
|
33
49
|
export type TokenInfoQueryHookResult = ReturnType<typeof useTokenInfoQuery>;
|
34
50
|
export type TokenInfoLazyQueryHookResult = ReturnType<typeof useTokenInfoLazyQuery>;
|
35
51
|
export type TokenInfoQueryResult = Apollo.QueryResult<TokenInfoQuery, TokenInfoQueryVariables>;
|
36
|
-
//# sourceMappingURL=tokenInfo.d.ts.map
|
@@ -47,6 +47,22 @@ exports.TokenInfoDocument = (0, client_1.gql) `
|
|
47
47
|
}
|
48
48
|
}
|
49
49
|
`;
|
50
|
+
/**
|
51
|
+
* __useTokenInfoQuery__
|
52
|
+
*
|
53
|
+
* To run a query within a React component, call `useTokenInfoQuery` and pass it any options that fit your needs.
|
54
|
+
* When your component renders, `useTokenInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
55
|
+
* you can use to render your UI.
|
56
|
+
*
|
57
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
58
|
+
*
|
59
|
+
* @example
|
60
|
+
* const { data, loading, error } = useTokenInfoQuery({
|
61
|
+
* variables: {
|
62
|
+
* dto: // value for 'dto'
|
63
|
+
* },
|
64
|
+
* });
|
65
|
+
*/
|
50
66
|
function useTokenInfoQuery(baseOptions) {
|
51
67
|
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
52
68
|
return Apollo.useQuery(exports.TokenInfoDocument, options);
|
@@ -57,4 +73,3 @@ function useTokenInfoLazyQuery(baseOptions) {
|
|
57
73
|
return Apollo.useLazyQuery(exports.TokenInfoDocument, options);
|
58
74
|
}
|
59
75
|
exports.useTokenInfoLazyQuery = useTokenInfoLazyQuery;
|
60
|
-
//# sourceMappingURL=tokenInfo.js.map
|
@@ -11,6 +11,7 @@ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
11
11
|
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
12
12
|
[SubKey in K]: Maybe<T[SubKey]>;
|
13
13
|
};
|
14
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
14
15
|
export type Scalars = {
|
15
16
|
ID: string;
|
16
17
|
String: string;
|
@@ -413,4 +414,3 @@ export type TransferInfo = {
|
|
413
414
|
toChainId?: Maybe<Scalars['String']>;
|
414
415
|
transferTransactionId?: Maybe<Scalars['String']>;
|
415
416
|
};
|
416
|
-
//# sourceMappingURL=types.d.ts.map
|
@@ -3,7 +3,6 @@ import { CaHolderWithGuardian, IDIDGraphQL } from '../types/did';
|
|
3
3
|
import { GetCaHolderManagerInfoDto } from './__generated__/types';
|
4
4
|
export declare class DIDGraphQL<T extends IGraphQLClient = IGraphQLClient> extends BaseGraphQL<T> implements IDIDGraphQL {
|
5
5
|
protected _config?: any;
|
6
|
-
protected readonly _client: T;
|
7
6
|
constructor({ client, config }: {
|
8
7
|
client?: T;
|
9
8
|
config?: any;
|
@@ -12,4 +11,3 @@ export declare class DIDGraphQL<T extends IGraphQLClient = IGraphQLClient> exten
|
|
12
11
|
caHolderManagerInfo: CaHolderWithGuardian[];
|
13
12
|
}>;
|
14
13
|
}
|
15
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { CaHolderManagerInfoQuery, CaHolderManagerInfoQueryVariables } from './__generated__/hooks/caHolderManagerInfo';
|
2
|
+
import { LoginGuardianInfoQuery, LoginGuardianInfoQueryVariables } from './__generated__/hooks/loginGuardianInfo';
|
3
|
+
import { IGraphQLClient } from '../types';
|
4
|
+
declare const getCAHolderManagerInfo: (apolloClient: IGraphQLClient, params: CaHolderManagerInfoQueryVariables) => Promise<import("@apollo/client").ApolloQueryResult<CaHolderManagerInfoQuery>>;
|
5
|
+
declare const getLoginGuardianAccount: (apolloClient: IGraphQLClient, params: LoginGuardianInfoQueryVariables) => Promise<import("@apollo/client").ApolloQueryResult<LoginGuardianInfoQuery>>;
|
6
|
+
export { getCAHolderManagerInfo, getLoginGuardianAccount };
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getLoginGuardianAccount = exports.getCAHolderManagerInfo = void 0;
|
13
13
|
const caHolderManagerInfo_1 = require("./__generated__/hooks/caHolderManagerInfo");
|
14
14
|
const loginGuardianInfo_1 = require("./__generated__/hooks/loginGuardianInfo");
|
15
|
+
// CAHolderManager
|
15
16
|
const getCAHolderManagerInfo = (apolloClient, params) => __awaiter(void 0, void 0, void 0, function* () {
|
16
17
|
const result = yield apolloClient.query({
|
17
18
|
query: caHolderManagerInfo_1.CaHolderManagerInfoDocument,
|
@@ -20,6 +21,7 @@ const getCAHolderManagerInfo = (apolloClient, params) => __awaiter(void 0, void
|
|
20
21
|
return result;
|
21
22
|
});
|
22
23
|
exports.getCAHolderManagerInfo = getCAHolderManagerInfo;
|
24
|
+
// LoginGuardianType
|
23
25
|
const getLoginGuardianAccount = (apolloClient, params) => __awaiter(void 0, void 0, void 0, function* () {
|
24
26
|
const result = yield apolloClient.query({
|
25
27
|
query: loginGuardianInfo_1.LoginGuardianInfoDocument,
|
@@ -28,4 +30,3 @@ const getLoginGuardianAccount = (apolloClient, params) => __awaiter(void 0, void
|
|
28
30
|
return result;
|
29
31
|
});
|
30
32
|
exports.getLoginGuardianAccount = getLoginGuardianAccount;
|
31
|
-
//# sourceMappingURL=utils.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"type": "commonjs"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CaHolderManagerDto, GetCaHolderManagerInfoDto, LoginGuardianDto } from '../did/__generated__/types';
|
2
|
-
export type GetCAHolderByManagerParamsType = Required<Pick<GetCaHolderManagerInfoDto, 'manager' | 'chainId'>>;
|
2
|
+
export type GetCAHolderByManagerParamsType = Partial<Omit<GetCaHolderManagerInfoDto, 'manager' | 'chainId'>> & Required<Pick<GetCaHolderManagerInfoDto, 'manager' | 'chainId'>>;
|
3
3
|
export type CaHolderWithGuardian = CaHolderManagerDto & {
|
4
4
|
loginGuardianInfo: Array<LoginGuardianDto | null>;
|
5
5
|
};
|
@@ -8,4 +8,3 @@ export interface IDIDGraphQL {
|
|
8
8
|
caHolderManagerInfo: CaHolderWithGuardian[];
|
9
9
|
}>;
|
10
10
|
}
|
11
|
-
//# sourceMappingURL=did.d.ts.map
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
2
|
+
export interface IGraphQLClient extends ApolloClient<NormalizedCacheObject> {
|
3
|
+
}
|
4
|
+
export declare abstract class BaseGraphQL<T extends IGraphQLClient = IGraphQLClient> {
|
5
|
+
protected readonly _client: T;
|
6
|
+
constructor(client: T);
|
7
|
+
}
|
8
|
+
export * from './did';
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ApolloClient, InMemoryCache, HttpLink } from '@apollo/client';
|
2
|
+
export const getGraphQLClientProvider = (graphqlUrl, defaultOptions = {}) => new ApolloClient({
|
3
|
+
cache: new InMemoryCache(),
|
4
|
+
queryDeduplication: false,
|
5
|
+
defaultOptions: Object.assign({ watchQuery: {
|
6
|
+
fetchPolicy: 'cache-and-network',
|
7
|
+
}, query: {
|
8
|
+
fetchPolicy: 'network-only',
|
9
|
+
} }, defaultOptions),
|
10
|
+
link: new HttpLink({ uri: graphqlUrl }),
|
11
|
+
});
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import * as Types from '../types.js';
|
2
|
+
import * as Apollo from '@apollo/client';
|
3
|
+
export type CaHolderInfoQueryVariables = Types.Exact<{
|
4
|
+
dto?: Types.InputMaybe<Types.GetCaHolderInfoDto>;
|
5
|
+
}>;
|
6
|
+
export type CaHolderInfoQuery = {
|
7
|
+
__typename?: 'Query';
|
8
|
+
caHolderInfo?: Array<{
|
9
|
+
__typename?: 'CAHolderInfoDto';
|
10
|
+
id?: string | null;
|
11
|
+
chainId?: string | null;
|
12
|
+
caHash?: string | null;
|
13
|
+
caAddress?: string | null;
|
14
|
+
originChainId?: string | null;
|
15
|
+
managerInfos?: Array<{
|
16
|
+
__typename?: 'ManagerInfo';
|
17
|
+
address?: string | null;
|
18
|
+
extraData?: string | null;
|
19
|
+
} | null> | null;
|
20
|
+
guardianList?: {
|
21
|
+
__typename?: 'GuardianList';
|
22
|
+
guardians?: Array<{
|
23
|
+
__typename?: 'Guardian';
|
24
|
+
type: number;
|
25
|
+
verifierId?: string | null;
|
26
|
+
identifierHash?: string | null;
|
27
|
+
salt?: string | null;
|
28
|
+
isLoginGuardian: boolean;
|
29
|
+
} | null> | null;
|
30
|
+
} | null;
|
31
|
+
} | null> | null;
|
32
|
+
};
|
33
|
+
export declare const CaHolderInfoDocument: Apollo.DocumentNode;
|
34
|
+
/**
|
35
|
+
* __useCaHolderInfoQuery__
|
36
|
+
*
|
37
|
+
* To run a query within a React component, call `useCaHolderInfoQuery` and pass it any options that fit your needs.
|
38
|
+
* When your component renders, `useCaHolderInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
39
|
+
* you can use to render your UI.
|
40
|
+
*
|
41
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
42
|
+
*
|
43
|
+
* @example
|
44
|
+
* const { data, loading, error } = useCaHolderInfoQuery({
|
45
|
+
* variables: {
|
46
|
+
* dto: // value for 'dto'
|
47
|
+
* },
|
48
|
+
* });
|
49
|
+
*/
|
50
|
+
export declare function useCaHolderInfoQuery(baseOptions?: Apollo.QueryHookOptions<CaHolderInfoQuery, CaHolderInfoQueryVariables>): Apollo.QueryResult<CaHolderInfoQuery, Types.Exact<{
|
51
|
+
dto?: Types.InputMaybe<Types.GetCaHolderInfoDto> | undefined;
|
52
|
+
}>>;
|
53
|
+
export declare function useCaHolderInfoLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<CaHolderInfoQuery, CaHolderInfoQueryVariables>): Apollo.LazyQueryResultTuple<CaHolderInfoQuery, Types.Exact<{
|
54
|
+
dto?: Types.InputMaybe<Types.GetCaHolderInfoDto> | undefined;
|
55
|
+
}>>;
|
56
|
+
export type CaHolderInfoQueryHookResult = ReturnType<typeof useCaHolderInfoQuery>;
|
57
|
+
export type CaHolderInfoLazyQueryHookResult = ReturnType<typeof useCaHolderInfoLazyQuery>;
|
58
|
+
export type CaHolderInfoQueryResult = Apollo.QueryResult<CaHolderInfoQuery, CaHolderInfoQueryVariables>;
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import { gql } from '@apollo/client';
|
2
|
+
import * as Apollo from '@apollo/client';
|
3
|
+
const defaultOptions = {};
|
4
|
+
export const CaHolderInfoDocument = gql `
|
5
|
+
query caHolderInfo($dto: GetCAHolderInfoDto) {
|
6
|
+
caHolderInfo(dto: $dto) {
|
7
|
+
id
|
8
|
+
chainId
|
9
|
+
caHash
|
10
|
+
caAddress
|
11
|
+
managerInfos {
|
12
|
+
address
|
13
|
+
extraData
|
14
|
+
}
|
15
|
+
originChainId
|
16
|
+
guardianList {
|
17
|
+
guardians {
|
18
|
+
type
|
19
|
+
verifierId
|
20
|
+
identifierHash
|
21
|
+
salt
|
22
|
+
isLoginGuardian
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
`;
|
28
|
+
/**
|
29
|
+
* __useCaHolderInfoQuery__
|
30
|
+
*
|
31
|
+
* To run a query within a React component, call `useCaHolderInfoQuery` and pass it any options that fit your needs.
|
32
|
+
* When your component renders, `useCaHolderInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
33
|
+
* you can use to render your UI.
|
34
|
+
*
|
35
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
36
|
+
*
|
37
|
+
* @example
|
38
|
+
* const { data, loading, error } = useCaHolderInfoQuery({
|
39
|
+
* variables: {
|
40
|
+
* dto: // value for 'dto'
|
41
|
+
* },
|
42
|
+
* });
|
43
|
+
*/
|
44
|
+
export function useCaHolderInfoQuery(baseOptions) {
|
45
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
46
|
+
return Apollo.useQuery(CaHolderInfoDocument, options);
|
47
|
+
}
|
48
|
+
export function useCaHolderInfoLazyQuery(baseOptions) {
|
49
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
50
|
+
return Apollo.useLazyQuery(CaHolderInfoDocument, options);
|
51
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import * as Types from '../types.js';
|
2
|
+
import * as Apollo from '@apollo/client';
|
3
|
+
export type CaHolderManagerChangeRecordInfoQueryVariables = Types.Exact<{
|
4
|
+
dto?: Types.InputMaybe<Types.GetCaHolderManagerChangeRecordDto>;
|
5
|
+
}>;
|
6
|
+
export type CaHolderManagerChangeRecordInfoQuery = {
|
7
|
+
__typename?: 'Query';
|
8
|
+
caHolderManagerChangeRecordInfo?: Array<{
|
9
|
+
__typename?: 'CAHolderManagerChangeRecordDto';
|
10
|
+
caAddress?: string | null;
|
11
|
+
caHash?: string | null;
|
12
|
+
manager?: string | null;
|
13
|
+
changeType?: string | null;
|
14
|
+
blockHeight: number;
|
15
|
+
} | null> | null;
|
16
|
+
};
|
17
|
+
export declare const CaHolderManagerChangeRecordInfoDocument: Apollo.DocumentNode;
|
18
|
+
/**
|
19
|
+
* __useCaHolderManagerChangeRecordInfoQuery__
|
20
|
+
*
|
21
|
+
* To run a query within a React component, call `useCaHolderManagerChangeRecordInfoQuery` and pass it any options that fit your needs.
|
22
|
+
* When your component renders, `useCaHolderManagerChangeRecordInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
23
|
+
* you can use to render your UI.
|
24
|
+
*
|
25
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
26
|
+
*
|
27
|
+
* @example
|
28
|
+
* const { data, loading, error } = useCaHolderManagerChangeRecordInfoQuery({
|
29
|
+
* variables: {
|
30
|
+
* dto: // value for 'dto'
|
31
|
+
* },
|
32
|
+
* });
|
33
|
+
*/
|
34
|
+
export declare function useCaHolderManagerChangeRecordInfoQuery(baseOptions?: Apollo.QueryHookOptions<CaHolderManagerChangeRecordInfoQuery, CaHolderManagerChangeRecordInfoQueryVariables>): Apollo.QueryResult<CaHolderManagerChangeRecordInfoQuery, Types.Exact<{
|
35
|
+
dto?: Types.InputMaybe<Types.GetCaHolderManagerChangeRecordDto> | undefined;
|
36
|
+
}>>;
|
37
|
+
export declare function useCaHolderManagerChangeRecordInfoLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<CaHolderManagerChangeRecordInfoQuery, CaHolderManagerChangeRecordInfoQueryVariables>): Apollo.LazyQueryResultTuple<CaHolderManagerChangeRecordInfoQuery, Types.Exact<{
|
38
|
+
dto?: Types.InputMaybe<Types.GetCaHolderManagerChangeRecordDto> | undefined;
|
39
|
+
}>>;
|
40
|
+
export type CaHolderManagerChangeRecordInfoQueryHookResult = ReturnType<typeof useCaHolderManagerChangeRecordInfoQuery>;
|
41
|
+
export type CaHolderManagerChangeRecordInfoLazyQueryHookResult = ReturnType<typeof useCaHolderManagerChangeRecordInfoLazyQuery>;
|
42
|
+
export type CaHolderManagerChangeRecordInfoQueryResult = Apollo.QueryResult<CaHolderManagerChangeRecordInfoQuery, CaHolderManagerChangeRecordInfoQueryVariables>;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { gql } from '@apollo/client';
|
2
|
+
import * as Apollo from '@apollo/client';
|
3
|
+
const defaultOptions = {};
|
4
|
+
export const CaHolderManagerChangeRecordInfoDocument = gql `
|
5
|
+
query caHolderManagerChangeRecordInfo($dto: GetCAHolderManagerChangeRecordDto) {
|
6
|
+
caHolderManagerChangeRecordInfo(dto: $dto) {
|
7
|
+
caAddress
|
8
|
+
caHash
|
9
|
+
manager
|
10
|
+
changeType
|
11
|
+
blockHeight
|
12
|
+
}
|
13
|
+
}
|
14
|
+
`;
|
15
|
+
/**
|
16
|
+
* __useCaHolderManagerChangeRecordInfoQuery__
|
17
|
+
*
|
18
|
+
* To run a query within a React component, call `useCaHolderManagerChangeRecordInfoQuery` and pass it any options that fit your needs.
|
19
|
+
* When your component renders, `useCaHolderManagerChangeRecordInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
20
|
+
* you can use to render your UI.
|
21
|
+
*
|
22
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
23
|
+
*
|
24
|
+
* @example
|
25
|
+
* const { data, loading, error } = useCaHolderManagerChangeRecordInfoQuery({
|
26
|
+
* variables: {
|
27
|
+
* dto: // value for 'dto'
|
28
|
+
* },
|
29
|
+
* });
|
30
|
+
*/
|
31
|
+
export function useCaHolderManagerChangeRecordInfoQuery(baseOptions) {
|
32
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
33
|
+
return Apollo.useQuery(CaHolderManagerChangeRecordInfoDocument, options);
|
34
|
+
}
|
35
|
+
export function useCaHolderManagerChangeRecordInfoLazyQuery(baseOptions) {
|
36
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
37
|
+
return Apollo.useLazyQuery(CaHolderManagerChangeRecordInfoDocument, options);
|
38
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import * as Types from '../types.js';
|
2
|
+
import * as Apollo from '@apollo/client';
|
3
|
+
export type CaHolderManagerInfoQueryVariables = Types.Exact<{
|
4
|
+
dto?: Types.InputMaybe<Types.GetCaHolderManagerInfoDto>;
|
5
|
+
}>;
|
6
|
+
export type CaHolderManagerInfoQuery = {
|
7
|
+
__typename?: 'Query';
|
8
|
+
caHolderManagerInfo?: Array<{
|
9
|
+
__typename?: 'CAHolderManagerDto';
|
10
|
+
id?: string | null;
|
11
|
+
chainId?: string | null;
|
12
|
+
caHash?: string | null;
|
13
|
+
caAddress?: string | null;
|
14
|
+
originChainId?: string | null;
|
15
|
+
managerInfos?: Array<{
|
16
|
+
__typename?: 'ManagerInfo';
|
17
|
+
address?: string | null;
|
18
|
+
extraData?: string | null;
|
19
|
+
} | null> | null;
|
20
|
+
} | null> | null;
|
21
|
+
};
|
22
|
+
export declare const CaHolderManagerInfoDocument: Apollo.DocumentNode;
|
23
|
+
/**
|
24
|
+
* __useCaHolderManagerInfoQuery__
|
25
|
+
*
|
26
|
+
* To run a query within a React component, call `useCaHolderManagerInfoQuery` and pass it any options that fit your needs.
|
27
|
+
* When your component renders, `useCaHolderManagerInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
28
|
+
* you can use to render your UI.
|
29
|
+
*
|
30
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
31
|
+
*
|
32
|
+
* @example
|
33
|
+
* const { data, loading, error } = useCaHolderManagerInfoQuery({
|
34
|
+
* variables: {
|
35
|
+
* dto: // value for 'dto'
|
36
|
+
* },
|
37
|
+
* });
|
38
|
+
*/
|
39
|
+
export declare function useCaHolderManagerInfoQuery(baseOptions?: Apollo.QueryHookOptions<CaHolderManagerInfoQuery, CaHolderManagerInfoQueryVariables>): Apollo.QueryResult<CaHolderManagerInfoQuery, Types.Exact<{
|
40
|
+
dto?: Types.InputMaybe<Types.GetCaHolderManagerInfoDto> | undefined;
|
41
|
+
}>>;
|
42
|
+
export declare function useCaHolderManagerInfoLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<CaHolderManagerInfoQuery, CaHolderManagerInfoQueryVariables>): Apollo.LazyQueryResultTuple<CaHolderManagerInfoQuery, Types.Exact<{
|
43
|
+
dto?: Types.InputMaybe<Types.GetCaHolderManagerInfoDto> | undefined;
|
44
|
+
}>>;
|
45
|
+
export type CaHolderManagerInfoQueryHookResult = ReturnType<typeof useCaHolderManagerInfoQuery>;
|
46
|
+
export type CaHolderManagerInfoLazyQueryHookResult = ReturnType<typeof useCaHolderManagerInfoLazyQuery>;
|
47
|
+
export type CaHolderManagerInfoQueryResult = Apollo.QueryResult<CaHolderManagerInfoQuery, CaHolderManagerInfoQueryVariables>;
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { gql } from '@apollo/client';
|
2
|
+
import * as Apollo from '@apollo/client';
|
3
|
+
const defaultOptions = {};
|
4
|
+
export const CaHolderManagerInfoDocument = gql `
|
5
|
+
query caHolderManagerInfo($dto: GetCAHolderManagerInfoDto) {
|
6
|
+
caHolderManagerInfo(dto: $dto) {
|
7
|
+
id
|
8
|
+
chainId
|
9
|
+
caHash
|
10
|
+
caAddress
|
11
|
+
managerInfos {
|
12
|
+
address
|
13
|
+
extraData
|
14
|
+
}
|
15
|
+
originChainId
|
16
|
+
}
|
17
|
+
}
|
18
|
+
`;
|
19
|
+
/**
|
20
|
+
* __useCaHolderManagerInfoQuery__
|
21
|
+
*
|
22
|
+
* To run a query within a React component, call `useCaHolderManagerInfoQuery` and pass it any options that fit your needs.
|
23
|
+
* When your component renders, `useCaHolderManagerInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
24
|
+
* you can use to render your UI.
|
25
|
+
*
|
26
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
27
|
+
*
|
28
|
+
* @example
|
29
|
+
* const { data, loading, error } = useCaHolderManagerInfoQuery({
|
30
|
+
* variables: {
|
31
|
+
* dto: // value for 'dto'
|
32
|
+
* },
|
33
|
+
* });
|
34
|
+
*/
|
35
|
+
export function useCaHolderManagerInfoQuery(baseOptions) {
|
36
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
37
|
+
return Apollo.useQuery(CaHolderManagerInfoDocument, options);
|
38
|
+
}
|
39
|
+
export function useCaHolderManagerInfoLazyQuery(baseOptions) {
|
40
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
41
|
+
return Apollo.useLazyQuery(CaHolderManagerInfoDocument, options);
|
42
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import * as Types from '../types.js';
|
2
|
+
import * as Apollo from '@apollo/client';
|
3
|
+
export type CaHolderNftBalanceInfoQueryVariables = Types.Exact<{
|
4
|
+
dto?: Types.InputMaybe<Types.GetCaHolderNftInfoDto>;
|
5
|
+
}>;
|
6
|
+
export type CaHolderNftBalanceInfoQuery = {
|
7
|
+
__typename?: 'Query';
|
8
|
+
caHolderNFTBalanceInfo?: {
|
9
|
+
__typename?: 'CAHolderNFTBalancePageResultDto';
|
10
|
+
totalRecordCount: number;
|
11
|
+
data?: Array<{
|
12
|
+
__typename?: 'CAHolderNFTBalanceInfoDto';
|
13
|
+
id?: string | null;
|
14
|
+
chainId?: string | null;
|
15
|
+
caAddress?: string | null;
|
16
|
+
balance: number;
|
17
|
+
nftInfo?: {
|
18
|
+
__typename?: 'NFTItemInfoDto';
|
19
|
+
symbol?: string | null;
|
20
|
+
tokenContractAddress?: string | null;
|
21
|
+
decimals: number;
|
22
|
+
supply: number;
|
23
|
+
totalSupply: number;
|
24
|
+
tokenName?: string | null;
|
25
|
+
issuer?: string | null;
|
26
|
+
isBurnable: boolean;
|
27
|
+
issueChainId: number;
|
28
|
+
imageUrl?: string | null;
|
29
|
+
collectionSymbol?: string | null;
|
30
|
+
collectionName?: string | null;
|
31
|
+
} | null;
|
32
|
+
} | null> | null;
|
33
|
+
} | null;
|
34
|
+
};
|
35
|
+
export declare const CaHolderNftBalanceInfoDocument: Apollo.DocumentNode;
|
36
|
+
/**
|
37
|
+
* __useCaHolderNftBalanceInfoQuery__
|
38
|
+
*
|
39
|
+
* To run a query within a React component, call `useCaHolderNftBalanceInfoQuery` and pass it any options that fit your needs.
|
40
|
+
* When your component renders, `useCaHolderNftBalanceInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
41
|
+
* you can use to render your UI.
|
42
|
+
*
|
43
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
44
|
+
*
|
45
|
+
* @example
|
46
|
+
* const { data, loading, error } = useCaHolderNftBalanceInfoQuery({
|
47
|
+
* variables: {
|
48
|
+
* dto: // value for 'dto'
|
49
|
+
* },
|
50
|
+
* });
|
51
|
+
*/
|
52
|
+
export declare function useCaHolderNftBalanceInfoQuery(baseOptions?: Apollo.QueryHookOptions<CaHolderNftBalanceInfoQuery, CaHolderNftBalanceInfoQueryVariables>): Apollo.QueryResult<CaHolderNftBalanceInfoQuery, Types.Exact<{
|
53
|
+
dto?: Types.InputMaybe<Types.GetCaHolderNftInfoDto> | undefined;
|
54
|
+
}>>;
|
55
|
+
export declare function useCaHolderNftBalanceInfoLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<CaHolderNftBalanceInfoQuery, CaHolderNftBalanceInfoQueryVariables>): Apollo.LazyQueryResultTuple<CaHolderNftBalanceInfoQuery, Types.Exact<{
|
56
|
+
dto?: Types.InputMaybe<Types.GetCaHolderNftInfoDto> | undefined;
|
57
|
+
}>>;
|
58
|
+
export type CaHolderNftBalanceInfoQueryHookResult = ReturnType<typeof useCaHolderNftBalanceInfoQuery>;
|
59
|
+
export type CaHolderNftBalanceInfoLazyQueryHookResult = ReturnType<typeof useCaHolderNftBalanceInfoLazyQuery>;
|
60
|
+
export type CaHolderNftBalanceInfoQueryResult = Apollo.QueryResult<CaHolderNftBalanceInfoQuery, CaHolderNftBalanceInfoQueryVariables>;
|