@ecency/sdk 1.1.21 → 1.2.0
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/index.cjs +1671 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1075 -0
- package/dist/index.d.ts +1075 -10
- package/dist/index.mjs +1589 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +29 -16
- package/dist/ecency-sdk.es.js +0 -1435
- package/dist/modules/accounts/index.d.ts +0 -3
- package/dist/modules/accounts/mutations/bookmarks/index.d.ts +0 -2
- package/dist/modules/accounts/mutations/bookmarks/use-account-bookmark-add.d.ts +0 -6
- package/dist/modules/accounts/mutations/bookmarks/use-account-bookmark-delete.d.ts +0 -1
- package/dist/modules/accounts/mutations/favourites/index.d.ts +0 -2
- package/dist/modules/accounts/mutations/favourites/use-account-favourite-add.d.ts +0 -1
- package/dist/modules/accounts/mutations/favourites/use-account-favourite-delete.d.ts +0 -1
- package/dist/modules/accounts/mutations/index.d.ts +0 -9
- package/dist/modules/accounts/mutations/use-account-relations-update.d.ts +0 -9
- package/dist/modules/accounts/mutations/use-account-revoke-key.d.ts +0 -19
- package/dist/modules/accounts/mutations/use-account-revoke-posting.d.ts +0 -10
- package/dist/modules/accounts/mutations/use-account-update-key-auths.d.ts +0 -19
- package/dist/modules/accounts/mutations/use-account-update-password.d.ts +0 -12
- package/dist/modules/accounts/mutations/use-account-update-recovery.d.ts +0 -11
- package/dist/modules/accounts/mutations/use-account-update.d.ts +0 -7
- package/dist/modules/accounts/queries/check-username-wallets-pending-query-options.d.ts +0 -16
- package/dist/modules/accounts/queries/get-account-full-query-options.d.ts +0 -245
- package/dist/modules/accounts/queries/get-account-pending-recovery-query-options.d.ts +0 -8
- package/dist/modules/accounts/queries/get-account-recoveries-query-options.d.ts +0 -9
- package/dist/modules/accounts/queries/get-account-subscriptions-query-options.d.ts +0 -10
- package/dist/modules/accounts/queries/get-active-account-bookmarks-query-options.d.ts +0 -9
- package/dist/modules/accounts/queries/get-active-account-favourites-query-options.d.ts +0 -9
- package/dist/modules/accounts/queries/get-relationship-between-accounts-query-options.d.ts +0 -9
- package/dist/modules/accounts/queries/index.d.ts +0 -9
- package/dist/modules/accounts/queries/search-accounts-by-username-query-options.d.ts +0 -8
- package/dist/modules/accounts/types/account-bookmark.d.ts +0 -7
- package/dist/modules/accounts/types/account-favourite.d.ts +0 -5
- package/dist/modules/accounts/types/account-follow-stats.d.ts +0 -5
- package/dist/modules/accounts/types/account-profile.d.ts +0 -19
- package/dist/modules/accounts/types/account-recovery.d.ts +0 -8
- package/dist/modules/accounts/types/account-relationship.d.ts +0 -6
- package/dist/modules/accounts/types/account-reputation.d.ts +0 -4
- package/dist/modules/accounts/types/full-account.d.ts +0 -52
- package/dist/modules/accounts/types/index.d.ts +0 -8
- package/dist/modules/analytics/index.d.ts +0 -2
- package/dist/modules/analytics/mutations/index.d.ts +0 -1
- package/dist/modules/analytics/mutations/use-record-activity.d.ts +0 -3
- package/dist/modules/communities/index.d.ts +0 -3
- package/dist/modules/communities/queries/get-communities-query-options.d.ts +0 -9
- package/dist/modules/communities/queries/get-community-context-query-options.d.ts +0 -20
- package/dist/modules/communities/queries/index.d.ts +0 -2
- package/dist/modules/communities/types/community.d.ts +0 -33
- package/dist/modules/communities/types/index.d.ts +0 -1
- package/dist/modules/communities/utils/index.d.ts +0 -11
- package/dist/modules/core/config.d.ts +0 -15
- package/dist/modules/core/entities/index.d.ts +0 -1
- package/dist/modules/core/entities/user.d.ts +0 -9
- package/dist/modules/core/index.d.ts +0 -7
- package/dist/modules/core/mock-storage.d.ts +0 -9
- package/dist/modules/core/mutations/broadcast-json.d.ts +0 -1
- package/dist/modules/core/mutations/index.d.ts +0 -2
- package/dist/modules/core/mutations/use-broadcast-mutation.d.ts +0 -3
- package/dist/modules/core/queries/get-dynamic-props-query-options.d.ts +0 -9
- package/dist/modules/core/queries/index.d.ts +0 -1
- package/dist/modules/core/queries-manager.d.ts +0 -21
- package/dist/modules/core/storage.d.ts +0 -6
- package/dist/modules/core/types/dynamic-props.d.ts +0 -15
- package/dist/modules/core/types/index.d.ts +0 -1
- package/dist/modules/core/utils/decoder-encoder.d.ts +0 -2
- package/dist/modules/core/utils/index.d.ts +0 -2
- package/dist/modules/core/utils/parse-asset.d.ts +0 -17
- package/dist/modules/games/index.d.ts +0 -3
- package/dist/modules/games/mutations/game-claim.d.ts +0 -2
- package/dist/modules/games/mutations/index.d.ts +0 -1
- package/dist/modules/games/queries/game-status-check-query-options.d.ts +0 -9
- package/dist/modules/games/queries/index.d.ts +0 -1
- package/dist/modules/games/types/game-claim.d.ts +0 -3
- package/dist/modules/games/types/get-game-status.d.ts +0 -7
- package/dist/modules/games/types/index.d.ts +0 -2
- package/dist/modules/integrations/3speak/index.d.ts +0 -6
- package/dist/modules/integrations/3speak/queries/get-account-token-query-options.d.ts +0 -8
- package/dist/modules/integrations/3speak/queries/get-account-videos-query-options.d.ts +0 -9
- package/dist/modules/integrations/3speak/queries/index.d.ts +0 -2
- package/dist/modules/integrations/3speak/types/index.d.ts +0 -1
- package/dist/modules/integrations/3speak/types/three-speak-video.d.ts +0 -52
- package/dist/modules/integrations/hiveposh/index.d.ts +0 -1
- package/dist/modules/integrations/hiveposh/queries/get-hiveposh-links-query-options.d.ts +0 -44
- package/dist/modules/integrations/hiveposh/queries/index.d.ts +0 -1
- package/dist/modules/integrations/hivesigner/index.d.ts +0 -5
- package/dist/modules/integrations/hivesigner/queries/get-decode-memo-query-options.d.ts +0 -8
- package/dist/modules/integrations/hivesigner/queries/index.d.ts +0 -1
- package/dist/modules/integrations/index.d.ts +0 -3
- package/dist/modules/keychain/index.d.ts +0 -2
- package/dist/modules/keychain/keychain.d.ts +0 -10
- package/dist/modules/operations/index.d.ts +0 -2
- package/dist/modules/operations/mutations/index.d.ts +0 -3
- package/dist/modules/operations/mutations/sign-operation-by-hivesigner.d.ts +0 -4
- package/dist/modules/operations/mutations/sign-operation-by-key.d.ts +0 -5
- package/dist/modules/operations/mutations/sign-operation-by-keychain.d.ts +0 -5
- package/dist/modules/operations/queries/get-chain-properties-query-options.d.ts +0 -8
- package/dist/modules/operations/queries/index.d.ts +0 -1
- package/dist/modules/posts/index.d.ts +0 -3
- package/dist/modules/posts/mutations/add-fragment.d.ts +0 -5
- package/dist/modules/posts/mutations/edit-fragment.d.ts +0 -5
- package/dist/modules/posts/mutations/index.d.ts +0 -3
- package/dist/modules/posts/mutations/remove-fragment.d.ts +0 -1
- package/dist/modules/posts/queries/get-fragments-query-options.d.ts +0 -9
- package/dist/modules/posts/queries/get-promoted-posts-query-options.d.ts +0 -8
- package/dist/modules/posts/queries/get-trending-tags-query-options.d.ts +0 -12
- package/dist/modules/posts/queries/index.d.ts +0 -3
- package/dist/modules/posts/types/fragment.d.ts +0 -7
- package/dist/modules/posts/types/index.d.ts +0 -2
- package/dist/modules/posts/types/trending-tag.d.ts +0 -6
- package/dist/modules/resource-credits/index.d.ts +0 -2
- package/dist/modules/resource-credits/queries/get-account-rc-query-options.d.ts +0 -8
- package/dist/modules/resource-credits/queries/get-rc-stats-query-options.d.ts +0 -8
- package/dist/modules/resource-credits/queries/index.d.ts +0 -2
- package/dist/modules/resource-credits/types/index.d.ts +0 -1
- package/dist/modules/resource-credits/types/stats.d.ts +0 -67
@@ -1,6 +0,0 @@
|
|
1
|
-
interface Payload {
|
2
|
-
author: string;
|
3
|
-
permlink: string;
|
4
|
-
}
|
5
|
-
export declare function useBookmarkAdd(username: string | undefined, onSuccess: () => void, onError: (e: Error) => void): import('@tanstack/react-query').UseMutationResult<any, Error, Payload, unknown>;
|
6
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare function useBookmarkDelete(username: string | undefined, onSuccess: () => void, onError: (e: Error) => void): import('@tanstack/react-query').UseMutationResult<any, Error, string, unknown>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare function useAccountFavouriteAdd(username: string | undefined, onSuccess: () => void, onError: (e: Error) => void): import('@tanstack/react-query').UseMutationResult<any, Error, string, unknown>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare function useAccountFavouriteDelete(username: string | undefined, onSuccess: () => void, onError: (e: Error) => void): import('@tanstack/react-query').UseMutationResult<any, Error, string, unknown>;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
export * from './use-account-update';
|
2
|
-
export * from './use-account-relations-update';
|
3
|
-
export * from './bookmarks';
|
4
|
-
export * from './favourites';
|
5
|
-
export * from './use-account-update-key-auths';
|
6
|
-
export * from './use-account-update-password';
|
7
|
-
export * from './use-account-revoke-posting';
|
8
|
-
export * from './use-account-update-recovery';
|
9
|
-
export * from './use-account-revoke-key';
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { AccountRelationship } from '../types';
|
2
|
-
type Kind = "toggle-ignore" | "toggle-follow";
|
3
|
-
export declare function useAccountRelationsUpdate(reference: string | undefined, target: string | undefined, onSuccess: (data: Partial<AccountRelationship> | undefined) => void, onError: (e: Error) => void): import('@tanstack/react-query').UseMutationResult<{
|
4
|
-
ignores: boolean | undefined;
|
5
|
-
follows: boolean | undefined;
|
6
|
-
is_blacklisted?: boolean | undefined;
|
7
|
-
follows_blacklists?: boolean | undefined;
|
8
|
-
}, Error, Kind, unknown>;
|
9
|
-
export {};
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { PrivateKey, PublicKey } from '@hiveio/dhive';
|
2
|
-
import { useMutation } from '@tanstack/react-query';
|
3
|
-
interface Payload {
|
4
|
-
currentKey: PrivateKey;
|
5
|
-
revokingKey: PublicKey;
|
6
|
-
}
|
7
|
-
/**
|
8
|
-
* This hook provides functionality to revoke a key from an account on the Hive blockchain.
|
9
|
-
* It leverages React Query's `useMutation` for managing the mutation state and executing
|
10
|
-
* the operation efficiently.
|
11
|
-
*
|
12
|
-
* @param username The username of the Hive account from which the key should be revoked.
|
13
|
-
* Pass `undefined` if the username is unknown or not set yet.
|
14
|
-
*
|
15
|
-
* @returns The mutation object from `useMutation`, including methods to trigger the key
|
16
|
-
* revocation and access its state (e.g., loading, success, error).
|
17
|
-
*/
|
18
|
-
export declare function useAccountRevokeKey(username: string | undefined, options?: Pick<Parameters<typeof useMutation>[0], "onSuccess" | "onError">): import('@tanstack/react-query').UseMutationResult<import('@hiveio/dhive').TransactionConfirmation, unknown, Payload, unknown>;
|
19
|
-
export {};
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { PrivateKey } from '@hiveio/dhive';
|
2
|
-
import { useMutation } from '@tanstack/react-query';
|
3
|
-
type SignType = "key" | "keychain" | "hivesigner";
|
4
|
-
interface CommonPayload {
|
5
|
-
accountName: string;
|
6
|
-
type: SignType;
|
7
|
-
key?: PrivateKey;
|
8
|
-
}
|
9
|
-
export declare function useAccountRevokePosting(username: string | undefined, options: Pick<Parameters<typeof useMutation>[0], "onSuccess" | "onError">): import('@tanstack/react-query').UseMutationResult<any, unknown, CommonPayload, unknown>;
|
10
|
-
export {};
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { AuthorityType, PrivateKey } from '@hiveio/dhive';
|
2
|
-
import { useMutation } from '@tanstack/react-query';
|
3
|
-
export interface Keys {
|
4
|
-
owner: PrivateKey;
|
5
|
-
active: PrivateKey;
|
6
|
-
posting: PrivateKey;
|
7
|
-
memo_key: PrivateKey;
|
8
|
-
}
|
9
|
-
interface Payload {
|
10
|
-
keepCurrent?: boolean;
|
11
|
-
currentKey: PrivateKey;
|
12
|
-
keys: Keys[];
|
13
|
-
}
|
14
|
-
export declare function dedupeAndSortKeyAuths(existing: AuthorityType["key_auths"], additions: [string, number][]): import('type-fest').ValueOf<{
|
15
|
-
[x: string]: [key: string, value: number];
|
16
|
-
[x: number]: [key: `${number}`, value: number];
|
17
|
-
}>[];
|
18
|
-
export declare function useAccountUpdateKeyAuths(username: string, options?: Pick<Parameters<typeof useMutation>[0], "onSuccess" | "onError">): import('@tanstack/react-query').UseMutationResult<import('@hiveio/dhive').TransactionConfirmation, unknown, Payload, unknown>;
|
19
|
-
export {};
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { useMutation } from '@tanstack/react-query';
|
2
|
-
interface Payload {
|
3
|
-
newPassword: string;
|
4
|
-
currentPassword: string;
|
5
|
-
keepCurrent?: boolean;
|
6
|
-
}
|
7
|
-
/**
|
8
|
-
* Only native Hive and custom passwords could be updated here
|
9
|
-
* Seed based password cannot be updated here, it will be in an account always for now
|
10
|
-
*/
|
11
|
-
export declare function useAccountUpdatePassword(username: string, options?: Pick<Parameters<typeof useMutation>[0], "onSuccess" | "onError">): import('@tanstack/react-query').UseMutationResult<import('@hiveio/dhive').TransactionConfirmation, unknown, Payload, unknown>;
|
12
|
-
export {};
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { PrivateKey } from '@hiveio/dhive';
|
2
|
-
import { useMutation } from '@tanstack/react-query';
|
3
|
-
type SignType = "key" | "keychain" | "hivesigner" | "ecency";
|
4
|
-
interface CommonPayload {
|
5
|
-
accountName: string;
|
6
|
-
type: SignType;
|
7
|
-
key?: PrivateKey;
|
8
|
-
email?: string;
|
9
|
-
}
|
10
|
-
export declare function useAccountUpdateRecovery(username: string | undefined, options: Pick<Parameters<typeof useMutation>[0], "onSuccess" | "onError">): import('@tanstack/react-query').UseMutationResult<unknown, unknown, CommonPayload, unknown>;
|
11
|
-
export {};
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { AccountProfile } from '../types';
|
2
|
-
interface Payload {
|
3
|
-
profile: Partial<AccountProfile>;
|
4
|
-
tokens: AccountProfile["tokens"];
|
5
|
-
}
|
6
|
-
export declare function useAccountUpdate(username: string): import('@tanstack/react-query').UseMutationResult<unknown, Error, Partial<Payload>, unknown>;
|
7
|
-
export {};
|
@@ -1,16 +0,0 @@
|
|
1
|
-
export declare function checkUsernameWalletsPendingQueryOptions(username: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
|
2
|
-
exist: boolean;
|
3
|
-
}, Error, {
|
4
|
-
exist: boolean;
|
5
|
-
}, string[]>, "queryFn"> & {
|
6
|
-
queryFn?: import('@tanstack/query-core').QueryFunction<{
|
7
|
-
exist: boolean;
|
8
|
-
}, string[], never> | undefined;
|
9
|
-
} & {
|
10
|
-
queryKey: string[] & {
|
11
|
-
[dataTagSymbol]: {
|
12
|
-
exist: boolean;
|
13
|
-
};
|
14
|
-
[dataTagErrorSymbol]: Error;
|
15
|
-
};
|
16
|
-
};
|
@@ -1,245 +0,0 @@
|
|
1
|
-
import { AccountFollowStats } from '../types';
|
2
|
-
export declare function getAccountFullQueryOptions(username: string | undefined): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
|
3
|
-
name: any;
|
4
|
-
owner: any;
|
5
|
-
active: any;
|
6
|
-
posting: any;
|
7
|
-
memo_key: any;
|
8
|
-
post_count: any;
|
9
|
-
created: any;
|
10
|
-
posting_json_metadata: any;
|
11
|
-
last_vote_time: any;
|
12
|
-
last_post: any;
|
13
|
-
json_metadata: any;
|
14
|
-
reward_hive_balance: any;
|
15
|
-
reward_hbd_balance: any;
|
16
|
-
reward_vesting_hive: any;
|
17
|
-
reward_vesting_balance: any;
|
18
|
-
balance: any;
|
19
|
-
hbd_balance: any;
|
20
|
-
savings_balance: any;
|
21
|
-
savings_hbd_balance: any;
|
22
|
-
savings_hbd_last_interest_payment: any;
|
23
|
-
savings_hbd_seconds_last_update: any;
|
24
|
-
savings_hbd_seconds: any;
|
25
|
-
next_vesting_withdrawal: any;
|
26
|
-
pending_claimed_accounts: any;
|
27
|
-
vesting_shares: any;
|
28
|
-
delegated_vesting_shares: any;
|
29
|
-
received_vesting_shares: any;
|
30
|
-
vesting_withdraw_rate: any;
|
31
|
-
to_withdraw: any;
|
32
|
-
withdrawn: any;
|
33
|
-
witness_votes: any;
|
34
|
-
proxy: any;
|
35
|
-
recovery_account: any;
|
36
|
-
proxied_vsf_votes: any;
|
37
|
-
voting_manabar: any;
|
38
|
-
voting_power: any;
|
39
|
-
downvote_manabar: any;
|
40
|
-
follow_stats: AccountFollowStats | undefined;
|
41
|
-
reputation: number;
|
42
|
-
profile: {
|
43
|
-
reputation: number;
|
44
|
-
about?: string;
|
45
|
-
cover_image?: string;
|
46
|
-
location?: string;
|
47
|
-
name?: string;
|
48
|
-
profile_image?: string;
|
49
|
-
website?: string;
|
50
|
-
pinned?: string;
|
51
|
-
beneficiary?: {
|
52
|
-
account: string;
|
53
|
-
weight: number;
|
54
|
-
};
|
55
|
-
tokens?: {
|
56
|
-
symbol: string;
|
57
|
-
type: string;
|
58
|
-
meta: Record<string, any>;
|
59
|
-
}[];
|
60
|
-
};
|
61
|
-
}, Error, {
|
62
|
-
name: any;
|
63
|
-
owner: any;
|
64
|
-
active: any;
|
65
|
-
posting: any;
|
66
|
-
memo_key: any;
|
67
|
-
post_count: any;
|
68
|
-
created: any;
|
69
|
-
posting_json_metadata: any;
|
70
|
-
last_vote_time: any;
|
71
|
-
last_post: any;
|
72
|
-
json_metadata: any;
|
73
|
-
reward_hive_balance: any;
|
74
|
-
reward_hbd_balance: any;
|
75
|
-
reward_vesting_hive: any;
|
76
|
-
reward_vesting_balance: any;
|
77
|
-
balance: any;
|
78
|
-
hbd_balance: any;
|
79
|
-
savings_balance: any;
|
80
|
-
savings_hbd_balance: any;
|
81
|
-
savings_hbd_last_interest_payment: any;
|
82
|
-
savings_hbd_seconds_last_update: any;
|
83
|
-
savings_hbd_seconds: any;
|
84
|
-
next_vesting_withdrawal: any;
|
85
|
-
pending_claimed_accounts: any;
|
86
|
-
vesting_shares: any;
|
87
|
-
delegated_vesting_shares: any;
|
88
|
-
received_vesting_shares: any;
|
89
|
-
vesting_withdraw_rate: any;
|
90
|
-
to_withdraw: any;
|
91
|
-
withdrawn: any;
|
92
|
-
witness_votes: any;
|
93
|
-
proxy: any;
|
94
|
-
recovery_account: any;
|
95
|
-
proxied_vsf_votes: any;
|
96
|
-
voting_manabar: any;
|
97
|
-
voting_power: any;
|
98
|
-
downvote_manabar: any;
|
99
|
-
follow_stats: AccountFollowStats | undefined;
|
100
|
-
reputation: number;
|
101
|
-
profile: {
|
102
|
-
reputation: number;
|
103
|
-
about?: string;
|
104
|
-
cover_image?: string;
|
105
|
-
location?: string;
|
106
|
-
name?: string;
|
107
|
-
profile_image?: string;
|
108
|
-
website?: string;
|
109
|
-
pinned?: string;
|
110
|
-
beneficiary?: {
|
111
|
-
account: string;
|
112
|
-
weight: number;
|
113
|
-
};
|
114
|
-
tokens?: {
|
115
|
-
symbol: string;
|
116
|
-
type: string;
|
117
|
-
meta: Record<string, any>;
|
118
|
-
}[];
|
119
|
-
};
|
120
|
-
}, (string | undefined)[]>, "queryFn"> & {
|
121
|
-
queryFn?: import('@tanstack/query-core').QueryFunction<{
|
122
|
-
name: any;
|
123
|
-
owner: any;
|
124
|
-
active: any;
|
125
|
-
posting: any;
|
126
|
-
memo_key: any;
|
127
|
-
post_count: any;
|
128
|
-
created: any;
|
129
|
-
posting_json_metadata: any;
|
130
|
-
last_vote_time: any;
|
131
|
-
last_post: any;
|
132
|
-
json_metadata: any;
|
133
|
-
reward_hive_balance: any;
|
134
|
-
reward_hbd_balance: any;
|
135
|
-
reward_vesting_hive: any;
|
136
|
-
reward_vesting_balance: any;
|
137
|
-
balance: any;
|
138
|
-
hbd_balance: any;
|
139
|
-
savings_balance: any;
|
140
|
-
savings_hbd_balance: any;
|
141
|
-
savings_hbd_last_interest_payment: any;
|
142
|
-
savings_hbd_seconds_last_update: any;
|
143
|
-
savings_hbd_seconds: any;
|
144
|
-
next_vesting_withdrawal: any;
|
145
|
-
pending_claimed_accounts: any;
|
146
|
-
vesting_shares: any;
|
147
|
-
delegated_vesting_shares: any;
|
148
|
-
received_vesting_shares: any;
|
149
|
-
vesting_withdraw_rate: any;
|
150
|
-
to_withdraw: any;
|
151
|
-
withdrawn: any;
|
152
|
-
witness_votes: any;
|
153
|
-
proxy: any;
|
154
|
-
recovery_account: any;
|
155
|
-
proxied_vsf_votes: any;
|
156
|
-
voting_manabar: any;
|
157
|
-
voting_power: any;
|
158
|
-
downvote_manabar: any;
|
159
|
-
follow_stats: AccountFollowStats | undefined;
|
160
|
-
reputation: number;
|
161
|
-
profile: {
|
162
|
-
reputation: number;
|
163
|
-
about?: string;
|
164
|
-
cover_image?: string;
|
165
|
-
location?: string;
|
166
|
-
name?: string;
|
167
|
-
profile_image?: string;
|
168
|
-
website?: string;
|
169
|
-
pinned?: string;
|
170
|
-
beneficiary?: {
|
171
|
-
account: string;
|
172
|
-
weight: number;
|
173
|
-
};
|
174
|
-
tokens?: {
|
175
|
-
symbol: string;
|
176
|
-
type: string;
|
177
|
-
meta: Record<string, any>;
|
178
|
-
}[];
|
179
|
-
};
|
180
|
-
}, (string | undefined)[], never> | undefined;
|
181
|
-
} & {
|
182
|
-
queryKey: (string | undefined)[] & {
|
183
|
-
[dataTagSymbol]: {
|
184
|
-
name: any;
|
185
|
-
owner: any;
|
186
|
-
active: any;
|
187
|
-
posting: any;
|
188
|
-
memo_key: any;
|
189
|
-
post_count: any;
|
190
|
-
created: any;
|
191
|
-
posting_json_metadata: any;
|
192
|
-
last_vote_time: any;
|
193
|
-
last_post: any;
|
194
|
-
json_metadata: any;
|
195
|
-
reward_hive_balance: any;
|
196
|
-
reward_hbd_balance: any;
|
197
|
-
reward_vesting_hive: any;
|
198
|
-
reward_vesting_balance: any;
|
199
|
-
balance: any;
|
200
|
-
hbd_balance: any;
|
201
|
-
savings_balance: any;
|
202
|
-
savings_hbd_balance: any;
|
203
|
-
savings_hbd_last_interest_payment: any;
|
204
|
-
savings_hbd_seconds_last_update: any;
|
205
|
-
savings_hbd_seconds: any;
|
206
|
-
next_vesting_withdrawal: any;
|
207
|
-
pending_claimed_accounts: any;
|
208
|
-
vesting_shares: any;
|
209
|
-
delegated_vesting_shares: any;
|
210
|
-
received_vesting_shares: any;
|
211
|
-
vesting_withdraw_rate: any;
|
212
|
-
to_withdraw: any;
|
213
|
-
withdrawn: any;
|
214
|
-
witness_votes: any;
|
215
|
-
proxy: any;
|
216
|
-
recovery_account: any;
|
217
|
-
proxied_vsf_votes: any;
|
218
|
-
voting_manabar: any;
|
219
|
-
voting_power: any;
|
220
|
-
downvote_manabar: any;
|
221
|
-
follow_stats: AccountFollowStats | undefined;
|
222
|
-
reputation: number;
|
223
|
-
profile: {
|
224
|
-
reputation: number;
|
225
|
-
about?: string;
|
226
|
-
cover_image?: string;
|
227
|
-
location?: string;
|
228
|
-
name?: string;
|
229
|
-
profile_image?: string;
|
230
|
-
website?: string;
|
231
|
-
pinned?: string;
|
232
|
-
beneficiary?: {
|
233
|
-
account: string;
|
234
|
-
weight: number;
|
235
|
-
};
|
236
|
-
tokens?: {
|
237
|
-
symbol: string;
|
238
|
-
type: string;
|
239
|
-
meta: Record<string, any>;
|
240
|
-
}[];
|
241
|
-
};
|
242
|
-
};
|
243
|
-
[dataTagErrorSymbol]: Error;
|
244
|
-
};
|
245
|
-
};
|
@@ -1,8 +0,0 @@
|
|
1
|
-
export declare function getAccountPendingRecoveryQueryOptions(username: string | undefined): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<any, Error, any, (string | undefined)[]>, "queryFn"> & {
|
2
|
-
queryFn?: import('@tanstack/query-core').QueryFunction<any, (string | undefined)[], never> | undefined;
|
3
|
-
} & {
|
4
|
-
queryKey: (string | undefined)[] & {
|
5
|
-
[dataTagSymbol]: any;
|
6
|
-
[dataTagErrorSymbol]: Error;
|
7
|
-
};
|
8
|
-
};
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { GetRecoveriesEmailResponse } from '../types';
|
2
|
-
export declare function getAccountRecoveriesQueryOptions(username: string | undefined): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<GetRecoveriesEmailResponse[], Error, GetRecoveriesEmailResponse[], (string | undefined)[]>, "queryFn"> & {
|
3
|
-
queryFn?: import('@tanstack/query-core').QueryFunction<GetRecoveriesEmailResponse[], (string | undefined)[], never> | undefined;
|
4
|
-
} & {
|
5
|
-
queryKey: (string | undefined)[] & {
|
6
|
-
[dataTagSymbol]: GetRecoveriesEmailResponse[];
|
7
|
-
[dataTagErrorSymbol]: Error;
|
8
|
-
};
|
9
|
-
};
|
@@ -1,10 +0,0 @@
|
|
1
|
-
type Subscriptions = string[];
|
2
|
-
export declare function getAccountSubscriptionsQueryOptions(username: string | undefined): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<Subscriptions, Error, Subscriptions, (string | undefined)[]>, "queryFn"> & {
|
3
|
-
queryFn?: import('@tanstack/query-core').QueryFunction<Subscriptions, (string | undefined)[], never> | undefined;
|
4
|
-
} & {
|
5
|
-
queryKey: (string | undefined)[] & {
|
6
|
-
[dataTagSymbol]: Subscriptions;
|
7
|
-
[dataTagErrorSymbol]: Error;
|
8
|
-
};
|
9
|
-
};
|
10
|
-
export {};
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { AccountBookmark } from '../types';
|
2
|
-
export declare function getActiveAccountBookmarksQueryOptions(activeUsername: string | undefined): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<AccountBookmark[], Error, AccountBookmark[], (string | undefined)[]>, "queryFn"> & {
|
3
|
-
queryFn?: import('@tanstack/query-core').QueryFunction<AccountBookmark[], (string | undefined)[], never> | undefined;
|
4
|
-
} & {
|
5
|
-
queryKey: (string | undefined)[] & {
|
6
|
-
[dataTagSymbol]: AccountBookmark[];
|
7
|
-
[dataTagErrorSymbol]: Error;
|
8
|
-
};
|
9
|
-
};
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { AccountFavorite } from '../types';
|
2
|
-
export declare function getActiveAccountFavouritesQueryOptions(activeUsername: string | undefined): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<AccountFavorite[], Error, AccountFavorite[], (string | undefined)[]>, "queryFn"> & {
|
3
|
-
queryFn?: import('@tanstack/query-core').QueryFunction<AccountFavorite[], (string | undefined)[], never> | undefined;
|
4
|
-
} & {
|
5
|
-
queryKey: (string | undefined)[] & {
|
6
|
-
[dataTagSymbol]: AccountFavorite[];
|
7
|
-
[dataTagErrorSymbol]: Error;
|
8
|
-
};
|
9
|
-
};
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { AccountRelationship } from '../types';
|
2
|
-
export declare function getRelationshipBetweenAccountsQueryOptions(reference: string | undefined, target: string | undefined): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<AccountRelationship, Error, AccountRelationship, (string | undefined)[]>, "queryFn"> & {
|
3
|
-
queryFn?: import('@tanstack/query-core').QueryFunction<AccountRelationship, (string | undefined)[], never> | undefined;
|
4
|
-
} & {
|
5
|
-
queryKey: (string | undefined)[] & {
|
6
|
-
[dataTagSymbol]: AccountRelationship;
|
7
|
-
[dataTagErrorSymbol]: Error;
|
8
|
-
};
|
9
|
-
};
|
@@ -1,9 +0,0 @@
|
|
1
|
-
export * from './get-account-full-query-options';
|
2
|
-
export * from './search-accounts-by-username-query-options';
|
3
|
-
export * from './check-username-wallets-pending-query-options';
|
4
|
-
export * from './get-relationship-between-accounts-query-options';
|
5
|
-
export * from './get-account-subscriptions-query-options';
|
6
|
-
export * from './get-active-account-bookmarks-query-options';
|
7
|
-
export * from './get-active-account-favourites-query-options';
|
8
|
-
export * from './get-account-recoveries-query-options';
|
9
|
-
export * from './get-account-pending-recovery-query-options';
|
@@ -1,8 +0,0 @@
|
|
1
|
-
export declare function getSearchAccountsByUsernameQueryOptions(query: string, limit?: number, excludeList?: string[]): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<string[], Error, string[], (string | string[])[]>, "queryFn"> & {
|
2
|
-
queryFn?: import('@tanstack/query-core').QueryFunction<string[], (string | string[])[], never> | undefined;
|
3
|
-
} & {
|
4
|
-
queryKey: (string | string[])[] & {
|
5
|
-
[dataTagSymbol]: string[];
|
6
|
-
[dataTagErrorSymbol]: Error;
|
7
|
-
};
|
8
|
-
};
|
@@ -1,19 +0,0 @@
|
|
1
|
-
export interface AccountProfile {
|
2
|
-
about?: string;
|
3
|
-
cover_image?: string;
|
4
|
-
location?: string;
|
5
|
-
name?: string;
|
6
|
-
profile_image?: string;
|
7
|
-
website?: string;
|
8
|
-
pinned?: string;
|
9
|
-
reputation?: number;
|
10
|
-
beneficiary?: {
|
11
|
-
account: string;
|
12
|
-
weight: number;
|
13
|
-
};
|
14
|
-
tokens?: {
|
15
|
-
symbol: string;
|
16
|
-
type: string;
|
17
|
-
meta: Record<string, any>;
|
18
|
-
}[];
|
19
|
-
}
|
@@ -1,52 +0,0 @@
|
|
1
|
-
import { Authority } from '@hiveio/dhive';
|
2
|
-
import { AccountFollowStats } from './account-follow-stats';
|
3
|
-
import { AccountProfile } from './account-profile';
|
4
|
-
export interface FullAccount {
|
5
|
-
name: string;
|
6
|
-
owner: Authority;
|
7
|
-
active: Authority;
|
8
|
-
posting: Authority;
|
9
|
-
memo_key: string;
|
10
|
-
post_count: number;
|
11
|
-
created: string;
|
12
|
-
reputation: string | number;
|
13
|
-
json_metadata: string;
|
14
|
-
posting_json_metadata: string;
|
15
|
-
last_vote_time: string;
|
16
|
-
last_post: string;
|
17
|
-
reward_hbd_balance: string;
|
18
|
-
reward_vesting_hive: string;
|
19
|
-
reward_hive_balance: string;
|
20
|
-
reward_vesting_balance: string;
|
21
|
-
balance: string;
|
22
|
-
vesting_shares: string;
|
23
|
-
hbd_balance: string;
|
24
|
-
savings_balance: string;
|
25
|
-
savings_hbd_balance: string;
|
26
|
-
savings_hbd_seconds: string;
|
27
|
-
savings_hbd_last_interest_payment: string;
|
28
|
-
savings_hbd_seconds_last_update: string;
|
29
|
-
next_vesting_withdrawal: string;
|
30
|
-
pending_claimed_accounts: number;
|
31
|
-
delegated_vesting_shares: string;
|
32
|
-
received_vesting_shares: string;
|
33
|
-
vesting_withdraw_rate: string;
|
34
|
-
to_withdraw: string;
|
35
|
-
withdrawn: string;
|
36
|
-
witness_votes: string[];
|
37
|
-
proxy: string;
|
38
|
-
recovery_account: string;
|
39
|
-
proxied_vsf_votes: number[] | string[];
|
40
|
-
voting_manabar: {
|
41
|
-
current_mana: string | number;
|
42
|
-
last_update_time: number;
|
43
|
-
};
|
44
|
-
voting_power: number;
|
45
|
-
downvote_manabar: {
|
46
|
-
current_mana: string | number;
|
47
|
-
last_update_time: number;
|
48
|
-
};
|
49
|
-
profile?: AccountProfile;
|
50
|
-
follow_stats?: AccountFollowStats;
|
51
|
-
proxyVotes?: [];
|
52
|
-
}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
export * from './account-follow-stats';
|
2
|
-
export * from './account-reputation';
|
3
|
-
export * from './full-account';
|
4
|
-
export * from './account-relationship';
|
5
|
-
export * from './account-bookmark';
|
6
|
-
export * from './account-favourite';
|
7
|
-
export * from './account-profile';
|
8
|
-
export * from './account-recovery';
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './use-record-activity';
|
@@ -1,3 +0,0 @@
|
|
1
|
-
type ActivityType = "post-created" | "post-updated" | "post-scheduled" | "draft-created" | "video-published" | "legacy-post-created" | "legacy-post-updated" | "legacy-post-scheduled" | "legacy-draft-created" | "legacy-video-published" | "perks-points-by-qr" | "perks-account-boost" | "perks-promote" | "perks-boost-plus" | "points-claimed" | "spin-rolled" | "signed-up-with-wallets" | "signed-up-with-email";
|
2
|
-
export declare function useRecordActivity(username: string | undefined, activityType: ActivityType): import('@tanstack/react-query').UseMutationResult<void, Error, void, unknown>;
|
3
|
-
export {};
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { Communities } from '../types';
|
2
|
-
export declare function getCommunitiesQueryOptions(sort: string, query?: string, limit?: number, observer?: string | undefined, enabled?: boolean): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<Communities, Error, Communities, (string | number | undefined)[]>, "queryFn"> & {
|
3
|
-
queryFn?: import('@tanstack/query-core').QueryFunction<Communities, (string | number | undefined)[], never> | undefined;
|
4
|
-
} & {
|
5
|
-
queryKey: (string | number | undefined)[] & {
|
6
|
-
[dataTagSymbol]: Communities;
|
7
|
-
[dataTagErrorSymbol]: Error;
|
8
|
-
};
|
9
|
-
};
|