@ecency/sdk 1.2.1 → 1.3.1
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} +28 -78
- package/dist/browser/index.js +1652 -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 +1736 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.mjs +1648 -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 {
|
|
@@ -245,25 +245,7 @@ declare function getAccountFullQueryOptions(username: string | undefined): _tans
|
|
|
245
245
|
downvote_manabar: any;
|
|
246
246
|
follow_stats: AccountFollowStats | undefined;
|
|
247
247
|
reputation: number;
|
|
248
|
-
profile:
|
|
249
|
-
reputation: number;
|
|
250
|
-
about?: string;
|
|
251
|
-
cover_image?: string;
|
|
252
|
-
location?: string;
|
|
253
|
-
name?: string;
|
|
254
|
-
profile_image?: string;
|
|
255
|
-
website?: string;
|
|
256
|
-
pinned?: string;
|
|
257
|
-
beneficiary?: {
|
|
258
|
-
account: string;
|
|
259
|
-
weight: number;
|
|
260
|
-
};
|
|
261
|
-
tokens?: {
|
|
262
|
-
symbol: string;
|
|
263
|
-
type: string;
|
|
264
|
-
meta: Record<string, any>;
|
|
265
|
-
}[];
|
|
266
|
-
};
|
|
248
|
+
profile: AccountProfile;
|
|
267
249
|
}, Error, {
|
|
268
250
|
name: any;
|
|
269
251
|
owner: any;
|
|
@@ -304,25 +286,7 @@ declare function getAccountFullQueryOptions(username: string | undefined): _tans
|
|
|
304
286
|
downvote_manabar: any;
|
|
305
287
|
follow_stats: AccountFollowStats | undefined;
|
|
306
288
|
reputation: number;
|
|
307
|
-
profile:
|
|
308
|
-
reputation: number;
|
|
309
|
-
about?: string;
|
|
310
|
-
cover_image?: string;
|
|
311
|
-
location?: string;
|
|
312
|
-
name?: string;
|
|
313
|
-
profile_image?: string;
|
|
314
|
-
website?: string;
|
|
315
|
-
pinned?: string;
|
|
316
|
-
beneficiary?: {
|
|
317
|
-
account: string;
|
|
318
|
-
weight: number;
|
|
319
|
-
};
|
|
320
|
-
tokens?: {
|
|
321
|
-
symbol: string;
|
|
322
|
-
type: string;
|
|
323
|
-
meta: Record<string, any>;
|
|
324
|
-
}[];
|
|
325
|
-
};
|
|
289
|
+
profile: AccountProfile;
|
|
326
290
|
}, (string | undefined)[]>, "queryFn"> & {
|
|
327
291
|
queryFn?: _tanstack_react_query.QueryFunction<{
|
|
328
292
|
name: any;
|
|
@@ -364,25 +328,7 @@ declare function getAccountFullQueryOptions(username: string | undefined): _tans
|
|
|
364
328
|
downvote_manabar: any;
|
|
365
329
|
follow_stats: AccountFollowStats | undefined;
|
|
366
330
|
reputation: number;
|
|
367
|
-
profile:
|
|
368
|
-
reputation: number;
|
|
369
|
-
about?: string;
|
|
370
|
-
cover_image?: string;
|
|
371
|
-
location?: string;
|
|
372
|
-
name?: string;
|
|
373
|
-
profile_image?: string;
|
|
374
|
-
website?: string;
|
|
375
|
-
pinned?: string;
|
|
376
|
-
beneficiary?: {
|
|
377
|
-
account: string;
|
|
378
|
-
weight: number;
|
|
379
|
-
};
|
|
380
|
-
tokens?: {
|
|
381
|
-
symbol: string;
|
|
382
|
-
type: string;
|
|
383
|
-
meta: Record<string, any>;
|
|
384
|
-
}[];
|
|
385
|
-
};
|
|
331
|
+
profile: AccountProfile;
|
|
386
332
|
}, (string | undefined)[], never> | undefined;
|
|
387
333
|
} & {
|
|
388
334
|
queryKey: (string | undefined)[] & {
|
|
@@ -426,25 +372,7 @@ declare function getAccountFullQueryOptions(username: string | undefined): _tans
|
|
|
426
372
|
downvote_manabar: any;
|
|
427
373
|
follow_stats: AccountFollowStats | undefined;
|
|
428
374
|
reputation: number;
|
|
429
|
-
profile:
|
|
430
|
-
reputation: number;
|
|
431
|
-
about?: string;
|
|
432
|
-
cover_image?: string;
|
|
433
|
-
location?: string;
|
|
434
|
-
name?: string;
|
|
435
|
-
profile_image?: string;
|
|
436
|
-
website?: string;
|
|
437
|
-
pinned?: string;
|
|
438
|
-
beneficiary?: {
|
|
439
|
-
account: string;
|
|
440
|
-
weight: number;
|
|
441
|
-
};
|
|
442
|
-
tokens?: {
|
|
443
|
-
symbol: string;
|
|
444
|
-
type: string;
|
|
445
|
-
meta: Record<string, any>;
|
|
446
|
-
}[];
|
|
447
|
-
};
|
|
375
|
+
profile: AccountProfile;
|
|
448
376
|
};
|
|
449
377
|
[dataTagErrorSymbol]: Error;
|
|
450
378
|
};
|
|
@@ -650,6 +578,28 @@ declare function getDynamicPropsQueryOptions(): _tanstack_react_query.OmitKeyof<
|
|
|
650
578
|
};
|
|
651
579
|
};
|
|
652
580
|
|
|
581
|
+
declare function encodeObj(o: any): string;
|
|
582
|
+
declare function decodeObj(o: any): any;
|
|
583
|
+
|
|
584
|
+
declare enum Symbol {
|
|
585
|
+
HIVE = "HIVE",
|
|
586
|
+
HBD = "HBD",
|
|
587
|
+
VESTS = "VESTS",
|
|
588
|
+
SPK = "SPK"
|
|
589
|
+
}
|
|
590
|
+
declare enum NaiMap {
|
|
591
|
+
"@@000000021" = "HIVE",
|
|
592
|
+
"@@000000013" = "HBD",
|
|
593
|
+
"@@000000037" = "VESTS"
|
|
594
|
+
}
|
|
595
|
+
interface Asset {
|
|
596
|
+
amount: number;
|
|
597
|
+
symbol: Symbol;
|
|
598
|
+
}
|
|
599
|
+
declare function parseAsset(sval: string | SMTAsset): Asset;
|
|
600
|
+
|
|
601
|
+
declare function getBoundFetch(): typeof fetch;
|
|
602
|
+
|
|
653
603
|
declare function getTrendingTagsQueryOptions(limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<string[], Error, _tanstack_react_query.InfiniteData<string[], unknown>, string[], {
|
|
654
604
|
afterTag: string;
|
|
655
605
|
}>, "queryFn"> & {
|
|
@@ -1072,4 +1022,4 @@ declare function getCommunityPermissions({ communityType, userRole, subscribed,
|
|
|
1072
1022
|
isModerator: boolean;
|
|
1073
1023
|
};
|
|
1074
1024
|
|
|
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 };
|
|
1025
|
+
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 };
|