@ecency/sdk 1.2.1 → 1.3.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.d.cts → browser/index.d.ts} +24 -2
- package/dist/browser/index.js +1646 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/index.browser.mjs +1652 -0
- package/dist/index.browser.mjs.map +1 -0
- package/dist/index.cjs +99 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +24 -2
- package/dist/index.mjs +94 -35
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +1730 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.mjs +1642 -0
- package/dist/node/index.mjs.map +1 -0
- package/package.json +32 -11
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
2
2
|
import { UseMutationOptions, MutationKey, QueryClient, QueryKey, InfiniteData, UseQueryOptions, UseInfiniteQueryOptions } from '@tanstack/react-query';
|
3
3
|
import * as _hiveio_dhive from '@hiveio/dhive';
|
4
|
-
import { Authority, PrivateKey, AuthorityType, PublicKey, Operation, Client } from '@hiveio/dhive';
|
4
|
+
import { Authority, PrivateKey, AuthorityType, PublicKey, Operation, Client, SMTAsset } from '@hiveio/dhive';
|
5
5
|
import * as _hiveio_dhive_lib_chain_rc from '@hiveio/dhive/lib/chain/rc';
|
6
6
|
|
7
7
|
interface AccountFollowStats {
|
@@ -650,6 +650,28 @@ declare function getDynamicPropsQueryOptions(): _tanstack_react_query.OmitKeyof<
|
|
650
650
|
};
|
651
651
|
};
|
652
652
|
|
653
|
+
declare function encodeObj(o: any): string;
|
654
|
+
declare function decodeObj(o: any): any;
|
655
|
+
|
656
|
+
declare enum Symbol {
|
657
|
+
HIVE = "HIVE",
|
658
|
+
HBD = "HBD",
|
659
|
+
VESTS = "VESTS",
|
660
|
+
SPK = "SPK"
|
661
|
+
}
|
662
|
+
declare enum NaiMap {
|
663
|
+
"@@000000021" = "HIVE",
|
664
|
+
"@@000000013" = "HBD",
|
665
|
+
"@@000000037" = "VESTS"
|
666
|
+
}
|
667
|
+
interface Asset {
|
668
|
+
amount: number;
|
669
|
+
symbol: Symbol;
|
670
|
+
}
|
671
|
+
declare function parseAsset(sval: string | SMTAsset): Asset;
|
672
|
+
|
673
|
+
declare function getBoundFetch(): typeof fetch;
|
674
|
+
|
653
675
|
declare function getTrendingTagsQueryOptions(limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<string[], Error, _tanstack_react_query.InfiniteData<string[], unknown>, string[], {
|
654
676
|
afterTag: string;
|
655
677
|
}>, "queryFn"> & {
|
@@ -1072,4 +1094,4 @@ declare function getCommunityPermissions({ communityType, userRole, subscribed,
|
|
1072
1094
|
isModerator: boolean;
|
1073
1095
|
};
|
1074
1096
|
|
1075
|
-
export { type AccountBookmark, type AccountFavorite, type AccountFollowStats, type AccountProfile, type AccountRelationship, type AccountReputation, CONFIG, type CantAfford, type Communities, type Community, type CommunityRole, type CommunityTeam, type CommunityType, ConfigManager, type DynamicProps, index as EcencyAnalytics, EcencyQueriesManager, type Fragment, type FullAccount, type GameClaim, type GetGameStatus, type GetRecoveriesEmailResponse, HiveSignerIntegration, keychain as Keychain, type Keys, type Payer, ROLES, type RcStats, type Recoveries, type StatsResponse, type StoringUser, ThreeSpeakIntegration, type ThreeSpeakVideo, type TrendingTag, broadcastJson, checkUsernameWalletsPendingQueryOptions, dedupeAndSortKeyAuths, getAccessToken, getAccountFullQueryOptions, getAccountPendingRecoveryQueryOptions, getAccountRcQueryOptions, getAccountRecoveriesQueryOptions, getAccountSubscriptionsQueryOptions, getActiveAccountBookmarksQueryOptions, getActiveAccountFavouritesQueryOptions, getChainPropertiesQueryOptions, getCommunitiesQueryOptions, getCommunityContextQueryOptions, getCommunityPermissions, getCommunityType, getDynamicPropsQueryOptions, getFragmentsQueryOptions, getGameStatusCheckQueryOptions, getHivePoshLinksQueryOptions, getLoginType, getPostingKey, getPromotedPostsQuery, getQueryClient, getRcStatsQueryOptions, getRefreshToken, getRelationshipBetweenAccountsQueryOptions, getSearchAccountsByUsernameQueryOptions, getStatsQueryOptions, getTrendingTagsQueryOptions, getUser, makeQueryClient, roleMap, useAccountFavouriteAdd, useAccountFavouriteDelete, useAccountRelationsUpdate, useAccountRevokeKey, useAccountRevokePosting, useAccountUpdate, useAccountUpdateKeyAuths, useAccountUpdatePassword, useAccountUpdateRecovery, useAddFragment, useBookmarkAdd, useBookmarkDelete, useBroadcastMutation, useEditFragment, useGameClaim, useRemoveFragment, useSignOperationByHivesigner, useSignOperationByKey, useSignOperationByKeychain };
|
1097
|
+
export { type AccountBookmark, type AccountFavorite, type AccountFollowStats, type AccountProfile, type AccountRelationship, type AccountReputation, type Asset, CONFIG, type CantAfford, type Communities, type Community, type CommunityRole, type CommunityTeam, type CommunityType, ConfigManager, type DynamicProps, index as EcencyAnalytics, EcencyQueriesManager, type Fragment, type FullAccount, type GameClaim, type GetGameStatus, type GetRecoveriesEmailResponse, HiveSignerIntegration, keychain as Keychain, type Keys, NaiMap, type Payer, ROLES, type RcStats, type Recoveries, type StatsResponse, type StoringUser, Symbol, ThreeSpeakIntegration, type ThreeSpeakVideo, type TrendingTag, broadcastJson, checkUsernameWalletsPendingQueryOptions, decodeObj, dedupeAndSortKeyAuths, encodeObj, getAccessToken, getAccountFullQueryOptions, getAccountPendingRecoveryQueryOptions, getAccountRcQueryOptions, getAccountRecoveriesQueryOptions, getAccountSubscriptionsQueryOptions, getActiveAccountBookmarksQueryOptions, getActiveAccountFavouritesQueryOptions, getBoundFetch, getChainPropertiesQueryOptions, getCommunitiesQueryOptions, getCommunityContextQueryOptions, getCommunityPermissions, getCommunityType, getDynamicPropsQueryOptions, getFragmentsQueryOptions, getGameStatusCheckQueryOptions, getHivePoshLinksQueryOptions, getLoginType, getPostingKey, getPromotedPostsQuery, getQueryClient, getRcStatsQueryOptions, getRefreshToken, getRelationshipBetweenAccountsQueryOptions, getSearchAccountsByUsernameQueryOptions, getStatsQueryOptions, getTrendingTagsQueryOptions, getUser, makeQueryClient, parseAsset, roleMap, useAccountFavouriteAdd, useAccountFavouriteDelete, useAccountRelationsUpdate, useAccountRevokeKey, useAccountRevokePosting, useAccountUpdate, useAccountUpdateKeyAuths, useAccountUpdatePassword, useAccountUpdateRecovery, useAddFragment, useBookmarkAdd, useBookmarkDelete, useBroadcastMutation, useEditFragment, useGameClaim, useRemoveFragment, useSignOperationByHivesigner, useSignOperationByKey, useSignOperationByKeychain };
|