@ecency/sdk 1.1.22 → 1.2.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.
Files changed (120) hide show
  1. package/dist/index.cjs +1671 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +1075 -0
  4. package/dist/index.d.ts +1075 -10
  5. package/dist/index.mjs +1589 -0
  6. package/dist/index.mjs.map +1 -0
  7. package/package.json +34 -19
  8. package/dist/ecency-sdk.es.js +0 -1458
  9. package/dist/modules/accounts/index.d.ts +0 -3
  10. package/dist/modules/accounts/mutations/bookmarks/index.d.ts +0 -2
  11. package/dist/modules/accounts/mutations/bookmarks/use-account-bookmark-add.d.ts +0 -6
  12. package/dist/modules/accounts/mutations/bookmarks/use-account-bookmark-delete.d.ts +0 -1
  13. package/dist/modules/accounts/mutations/favourites/index.d.ts +0 -2
  14. package/dist/modules/accounts/mutations/favourites/use-account-favourite-add.d.ts +0 -1
  15. package/dist/modules/accounts/mutations/favourites/use-account-favourite-delete.d.ts +0 -1
  16. package/dist/modules/accounts/mutations/index.d.ts +0 -9
  17. package/dist/modules/accounts/mutations/use-account-relations-update.d.ts +0 -9
  18. package/dist/modules/accounts/mutations/use-account-revoke-key.d.ts +0 -19
  19. package/dist/modules/accounts/mutations/use-account-revoke-posting.d.ts +0 -10
  20. package/dist/modules/accounts/mutations/use-account-update-key-auths.d.ts +0 -19
  21. package/dist/modules/accounts/mutations/use-account-update-password.d.ts +0 -12
  22. package/dist/modules/accounts/mutations/use-account-update-recovery.d.ts +0 -11
  23. package/dist/modules/accounts/mutations/use-account-update.d.ts +0 -7
  24. package/dist/modules/accounts/queries/check-username-wallets-pending-query-options.d.ts +0 -16
  25. package/dist/modules/accounts/queries/get-account-full-query-options.d.ts +0 -245
  26. package/dist/modules/accounts/queries/get-account-pending-recovery-query-options.d.ts +0 -8
  27. package/dist/modules/accounts/queries/get-account-recoveries-query-options.d.ts +0 -9
  28. package/dist/modules/accounts/queries/get-account-subscriptions-query-options.d.ts +0 -10
  29. package/dist/modules/accounts/queries/get-active-account-bookmarks-query-options.d.ts +0 -9
  30. package/dist/modules/accounts/queries/get-active-account-favourites-query-options.d.ts +0 -9
  31. package/dist/modules/accounts/queries/get-relationship-between-accounts-query-options.d.ts +0 -9
  32. package/dist/modules/accounts/queries/index.d.ts +0 -9
  33. package/dist/modules/accounts/queries/search-accounts-by-username-query-options.d.ts +0 -8
  34. package/dist/modules/accounts/types/account-bookmark.d.ts +0 -7
  35. package/dist/modules/accounts/types/account-favourite.d.ts +0 -5
  36. package/dist/modules/accounts/types/account-follow-stats.d.ts +0 -5
  37. package/dist/modules/accounts/types/account-profile.d.ts +0 -19
  38. package/dist/modules/accounts/types/account-recovery.d.ts +0 -8
  39. package/dist/modules/accounts/types/account-relationship.d.ts +0 -6
  40. package/dist/modules/accounts/types/account-reputation.d.ts +0 -4
  41. package/dist/modules/accounts/types/full-account.d.ts +0 -52
  42. package/dist/modules/accounts/types/index.d.ts +0 -8
  43. package/dist/modules/analytics/index.d.ts +0 -2
  44. package/dist/modules/analytics/mutations/index.d.ts +0 -1
  45. package/dist/modules/analytics/mutations/use-record-activity.d.ts +0 -3
  46. package/dist/modules/communities/index.d.ts +0 -3
  47. package/dist/modules/communities/queries/get-communities-query-options.d.ts +0 -9
  48. package/dist/modules/communities/queries/get-community-context-query-options.d.ts +0 -20
  49. package/dist/modules/communities/queries/index.d.ts +0 -2
  50. package/dist/modules/communities/types/community.d.ts +0 -33
  51. package/dist/modules/communities/types/index.d.ts +0 -1
  52. package/dist/modules/communities/utils/index.d.ts +0 -11
  53. package/dist/modules/core/config.d.ts +0 -15
  54. package/dist/modules/core/entities/index.d.ts +0 -1
  55. package/dist/modules/core/entities/user.d.ts +0 -9
  56. package/dist/modules/core/index.d.ts +0 -7
  57. package/dist/modules/core/mock-storage.d.ts +0 -9
  58. package/dist/modules/core/mutations/broadcast-json.d.ts +0 -1
  59. package/dist/modules/core/mutations/index.d.ts +0 -2
  60. package/dist/modules/core/mutations/use-broadcast-mutation.d.ts +0 -3
  61. package/dist/modules/core/queries/get-dynamic-props-query-options.d.ts +0 -9
  62. package/dist/modules/core/queries/index.d.ts +0 -1
  63. package/dist/modules/core/queries-manager.d.ts +0 -21
  64. package/dist/modules/core/storage.d.ts +0 -6
  65. package/dist/modules/core/types/dynamic-props.d.ts +0 -15
  66. package/dist/modules/core/types/index.d.ts +0 -1
  67. package/dist/modules/core/utils/decoder-encoder.d.ts +0 -2
  68. package/dist/modules/core/utils/index.d.ts +0 -2
  69. package/dist/modules/core/utils/parse-asset.d.ts +0 -17
  70. package/dist/modules/games/index.d.ts +0 -3
  71. package/dist/modules/games/mutations/game-claim.d.ts +0 -2
  72. package/dist/modules/games/mutations/index.d.ts +0 -1
  73. package/dist/modules/games/queries/game-status-check-query-options.d.ts +0 -9
  74. package/dist/modules/games/queries/index.d.ts +0 -1
  75. package/dist/modules/games/types/game-claim.d.ts +0 -3
  76. package/dist/modules/games/types/get-game-status.d.ts +0 -7
  77. package/dist/modules/games/types/index.d.ts +0 -2
  78. package/dist/modules/integrations/3speak/index.d.ts +0 -6
  79. package/dist/modules/integrations/3speak/queries/get-account-token-query-options.d.ts +0 -8
  80. package/dist/modules/integrations/3speak/queries/get-account-videos-query-options.d.ts +0 -9
  81. package/dist/modules/integrations/3speak/queries/index.d.ts +0 -2
  82. package/dist/modules/integrations/3speak/types/index.d.ts +0 -1
  83. package/dist/modules/integrations/3speak/types/three-speak-video.d.ts +0 -52
  84. package/dist/modules/integrations/hiveposh/index.d.ts +0 -1
  85. package/dist/modules/integrations/hiveposh/queries/get-hiveposh-links-query-options.d.ts +0 -44
  86. package/dist/modules/integrations/hiveposh/queries/index.d.ts +0 -1
  87. package/dist/modules/integrations/hivesigner/index.d.ts +0 -5
  88. package/dist/modules/integrations/hivesigner/queries/get-decode-memo-query-options.d.ts +0 -8
  89. package/dist/modules/integrations/hivesigner/queries/index.d.ts +0 -1
  90. package/dist/modules/integrations/index.d.ts +0 -4
  91. package/dist/modules/integrations/plausible/index.d.ts +0 -1
  92. package/dist/modules/integrations/plausible/queries/get-stats-query-options.d.ts +0 -29
  93. package/dist/modules/integrations/plausible/queries/index.d.ts +0 -1
  94. package/dist/modules/keychain/index.d.ts +0 -2
  95. package/dist/modules/keychain/keychain.d.ts +0 -10
  96. package/dist/modules/operations/index.d.ts +0 -2
  97. package/dist/modules/operations/mutations/index.d.ts +0 -3
  98. package/dist/modules/operations/mutations/sign-operation-by-hivesigner.d.ts +0 -4
  99. package/dist/modules/operations/mutations/sign-operation-by-key.d.ts +0 -5
  100. package/dist/modules/operations/mutations/sign-operation-by-keychain.d.ts +0 -5
  101. package/dist/modules/operations/queries/get-chain-properties-query-options.d.ts +0 -8
  102. package/dist/modules/operations/queries/index.d.ts +0 -1
  103. package/dist/modules/posts/index.d.ts +0 -3
  104. package/dist/modules/posts/mutations/add-fragment.d.ts +0 -5
  105. package/dist/modules/posts/mutations/edit-fragment.d.ts +0 -5
  106. package/dist/modules/posts/mutations/index.d.ts +0 -3
  107. package/dist/modules/posts/mutations/remove-fragment.d.ts +0 -1
  108. package/dist/modules/posts/queries/get-fragments-query-options.d.ts +0 -9
  109. package/dist/modules/posts/queries/get-promoted-posts-query-options.d.ts +0 -8
  110. package/dist/modules/posts/queries/get-trending-tags-query-options.d.ts +0 -12
  111. package/dist/modules/posts/queries/index.d.ts +0 -3
  112. package/dist/modules/posts/types/fragment.d.ts +0 -7
  113. package/dist/modules/posts/types/index.d.ts +0 -2
  114. package/dist/modules/posts/types/trending-tag.d.ts +0 -6
  115. package/dist/modules/resource-credits/index.d.ts +0 -2
  116. package/dist/modules/resource-credits/queries/get-account-rc-query-options.d.ts +0 -8
  117. package/dist/modules/resource-credits/queries/get-rc-stats-query-options.d.ts +0 -8
  118. package/dist/modules/resource-credits/queries/index.d.ts +0 -2
  119. package/dist/modules/resource-credits/types/index.d.ts +0 -1
  120. package/dist/modules/resource-credits/types/stats.d.ts +0 -67
@@ -1,20 +0,0 @@
1
- export declare function getCommunityContextQueryOptions(username: string | undefined, communityName: string | undefined): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
2
- role: any;
3
- subscribed: any;
4
- }, Error, {
5
- role: any;
6
- subscribed: any;
7
- }, (string | undefined)[]>, "queryFn"> & {
8
- queryFn?: import('@tanstack/query-core').QueryFunction<{
9
- role: any;
10
- subscribed: any;
11
- }, (string | undefined)[], never> | undefined;
12
- } & {
13
- queryKey: (string | undefined)[] & {
14
- [dataTagSymbol]: {
15
- role: any;
16
- subscribed: any;
17
- };
18
- [dataTagErrorSymbol]: Error;
19
- };
20
- };
@@ -1,2 +0,0 @@
1
- export * from './get-communities-query-options';
2
- export * from './get-community-context-query-options';
@@ -1,33 +0,0 @@
1
- export declare enum ROLES {
2
- OWNER = "owner",
3
- ADMIN = "admin",
4
- MOD = "mod",
5
- MEMBER = "member",
6
- GUEST = "guest",
7
- MUTED = "muted"
8
- }
9
- export declare const roleMap: Record<string, string[]>;
10
- export type CommunityTeam = Array<Array<string>>;
11
- export type CommunityRole = (typeof ROLES)[keyof typeof ROLES];
12
- export type CommunityType = "Topic" | "Journal" | "Council";
13
- export interface Community {
14
- about: string;
15
- admins?: string[];
16
- avatar_url: string;
17
- created_at: string;
18
- description: string;
19
- flag_text: string;
20
- id: number;
21
- is_nsfw: boolean;
22
- lang: string;
23
- name: string;
24
- num_authors: number;
25
- num_pending: number;
26
- subscribers: number;
27
- sum_pending: number;
28
- settings?: any;
29
- team: CommunityTeam;
30
- title: string;
31
- type_id: number;
32
- }
33
- export type Communities = Community[];
@@ -1 +0,0 @@
1
- export * from './community';
@@ -1,11 +0,0 @@
1
- import { CommunityRole, CommunityType } from '../types';
2
- export declare function getCommunityType(name: string, type_id: number): CommunityType;
3
- export declare function getCommunityPermissions({ communityType, userRole, subscribed, }: {
4
- communityType: CommunityType;
5
- userRole: CommunityRole;
6
- subscribed: boolean;
7
- }): {
8
- canPost: boolean;
9
- canComment: boolean;
10
- isModerator: boolean;
11
- };
@@ -1,15 +0,0 @@
1
- import { Client } from '@hiveio/dhive';
2
- import { QueryClient } from '@tanstack/react-query';
3
- export declare const CONFIG: {
4
- privateApiHost: string;
5
- storage: Storage;
6
- storagePrefix: string;
7
- hiveClient: Client;
8
- heliusApiKey: any;
9
- queryClient: QueryClient;
10
- plausibleHost: string;
11
- spkNode: string;
12
- };
13
- export declare namespace ConfigManager {
14
- function setQueryClient(client: QueryClient): void;
15
- }
@@ -1 +0,0 @@
1
- export * from './user';
@@ -1,9 +0,0 @@
1
- export interface StoringUser {
2
- username: string;
3
- accessToken: string;
4
- refreshToken: string;
5
- expiresIn: number;
6
- postingKey: null | undefined | string;
7
- loginType: null | undefined | string;
8
- index?: number;
9
- }
@@ -1,7 +0,0 @@
1
- export * from './mutations';
2
- export * from './storage';
3
- export * from './entities';
4
- export * from './config';
5
- export * from './queries-manager';
6
- export * from './queries';
7
- export * from './types';
@@ -1,9 +0,0 @@
1
- export declare class MockStorage implements Storage {
2
- [name: string]: any;
3
- length: number;
4
- clear(): void;
5
- getItem(key: string): string | null;
6
- key(index: number): string | null;
7
- removeItem(key: string): void;
8
- setItem(key: string, value: string): void;
9
- }
@@ -1 +0,0 @@
1
- export declare function broadcastJson<T>(username: string | undefined, id: string, payload: T): Promise<any>;
@@ -1,2 +0,0 @@
1
- export * from './use-broadcast-mutation';
2
- export * from './broadcast-json';
@@ -1,3 +0,0 @@
1
- import { useMutation } from '@tanstack/react-query';
2
- import { Operation } from '@hiveio/dhive';
3
- export declare function useBroadcastMutation<T>(mutationKey: Parameters<typeof useMutation>[0]["mutationKey"], username: string | undefined, operations: (payload: T) => Operation[], onSuccess?: Parameters<typeof useMutation<unknown, unknown, T>>[0]["onSuccess"]): import('@tanstack/react-query').UseMutationResult<unknown, Error, T, unknown>;
@@ -1,9 +0,0 @@
1
- import { DynamicProps } from '../types';
2
- export declare function getDynamicPropsQueryOptions(): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<DynamicProps, Error, DynamicProps, string[]>, "queryFn"> & {
3
- queryFn?: import('@tanstack/query-core').QueryFunction<DynamicProps, string[], never> | undefined;
4
- } & {
5
- queryKey: string[] & {
6
- [dataTagSymbol]: DynamicProps;
7
- [dataTagErrorSymbol]: Error;
8
- };
9
- };
@@ -1 +0,0 @@
1
- export * from './get-dynamic-props-query-options';
@@ -1,21 +0,0 @@
1
- import { InfiniteData, QueryClient, QueryKey, UseInfiniteQueryOptions, UseQueryOptions } from '@tanstack/react-query';
2
- export declare function makeQueryClient(): QueryClient;
3
- export declare const getQueryClient: () => QueryClient;
4
- export declare namespace EcencyQueriesManager {
5
- function getQueryData<T>(queryKey: QueryKey): T | undefined;
6
- function getInfiniteQueryData<T>(queryKey: QueryKey): InfiniteData<T, unknown> | undefined;
7
- function prefetchQuery<T>(options: UseQueryOptions<T>): Promise<T | undefined>;
8
- function prefetchInfiniteQuery<T, P>(options: UseInfiniteQueryOptions<T, Error, InfiniteData<T>, T, QueryKey, P>): Promise<InfiniteData<T, unknown> | undefined>;
9
- function generateClientServerQuery<T>(options: UseQueryOptions<T>): {
10
- prefetch: () => Promise<T | undefined>;
11
- getData: () => T | undefined;
12
- useClientQuery: () => import("@tanstack/react-query").UseQueryResult<T, Error>;
13
- fetchAndGet: () => Promise<T>;
14
- };
15
- function generateClientServerInfiniteQuery<T, P>(options: UseInfiniteQueryOptions<T, Error, InfiniteData<T>, T, QueryKey, P>): {
16
- prefetch: () => Promise<InfiniteData<T, unknown> | undefined>;
17
- getData: () => InfiniteData<T, unknown> | undefined;
18
- useClientQuery: () => import("@tanstack/react-query").UseInfiniteQueryResult<InfiniteData<T, unknown>, Error>;
19
- fetchAndGet: () => Promise<InfiniteData<T, P>>;
20
- };
21
- }
@@ -1,6 +0,0 @@
1
- import { StoringUser } from './entities';
2
- export declare const getUser: (username: string) => StoringUser | undefined;
3
- export declare const getAccessToken: (username: string) => string | undefined;
4
- export declare const getPostingKey: (username: string) => null | undefined | string;
5
- export declare const getLoginType: (username: string) => null | undefined | string;
6
- export declare const getRefreshToken: (username: string) => string | undefined;
@@ -1,15 +0,0 @@
1
- export interface DynamicProps {
2
- hivePerMVests: number;
3
- base: number;
4
- quote: number;
5
- fundRewardBalance: number;
6
- fundRecentClaims: number;
7
- hbdPrintRate: number;
8
- hbdInterestRate: number;
9
- headBlock: number;
10
- totalVestingFund: number;
11
- totalVestingShares: number;
12
- virtualSupply: number;
13
- vestingRewardPercent: number;
14
- accountCreationFee: string;
15
- }
@@ -1 +0,0 @@
1
- export * from './dynamic-props';
@@ -1,2 +0,0 @@
1
- export declare function encodeObj(o: any): string;
2
- export declare function decodeObj(o: any): any;
@@ -1,2 +0,0 @@
1
- export * from './decoder-encoder';
2
- export * from './parse-asset';
@@ -1,17 +0,0 @@
1
- import { SMTAsset } from '@hiveio/dhive';
2
- export declare enum Symbol {
3
- HIVE = "HIVE",
4
- HBD = "HBD",
5
- VESTS = "VESTS",
6
- SPK = "SPK"
7
- }
8
- export declare enum NaiMap {
9
- "@@000000021" = "HIVE",
10
- "@@000000013" = "HBD",
11
- "@@000000037" = "VESTS"
12
- }
13
- export interface Asset {
14
- amount: number;
15
- symbol: Symbol;
16
- }
17
- export declare function parseAsset(sval: string | SMTAsset): Asset;
@@ -1,3 +0,0 @@
1
- export * from './queries';
2
- export * from './types';
3
- export * from './mutations';
@@ -1,2 +0,0 @@
1
- import { GameClaim } from '../types';
2
- export declare function useGameClaim(username: string | undefined, gameType: "spin", key: string): import('@tanstack/react-query').UseMutationResult<GameClaim, Error, void, unknown>;
@@ -1 +0,0 @@
1
- export * from './game-claim';
@@ -1,9 +0,0 @@
1
- import { GetGameStatus } from '../types';
2
- export declare function getGameStatusCheckQueryOptions(username: string | undefined, gameType: "spin"): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<GetGameStatus, Error, GetGameStatus, (string | undefined)[]>, "queryFn"> & {
3
- queryFn?: import('@tanstack/query-core').QueryFunction<GetGameStatus, (string | undefined)[], never> | undefined;
4
- } & {
5
- queryKey: (string | undefined)[] & {
6
- [dataTagSymbol]: GetGameStatus;
7
- [dataTagErrorSymbol]: Error;
8
- };
9
- };
@@ -1 +0,0 @@
1
- export * from './game-status-check-query-options';
@@ -1,3 +0,0 @@
1
- export interface GameClaim {
2
- score: number;
3
- }
@@ -1,7 +0,0 @@
1
- export interface GetGameStatus {
2
- key: string;
3
- remaining: number;
4
- status: number;
5
- next_date: string;
6
- wait_secs: number;
7
- }
@@ -1,2 +0,0 @@
1
- export * from './get-game-status';
2
- export * from './game-claim';
@@ -1,6 +0,0 @@
1
- export * from './types';
2
- import * as queries from "./queries";
3
- declare const ThreeSpeakIntegration: {
4
- queries: typeof queries;
5
- };
6
- export { ThreeSpeakIntegration };
@@ -1,8 +0,0 @@
1
- export declare function getAccountTokenQueryOptions(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 { ThreeSpeakVideo } from '../types';
2
- export declare function getAccountVideosQueryOptions(username: string | undefined): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<ThreeSpeakVideo[], Error, ThreeSpeakVideo[], (string | undefined)[]>, "queryFn"> & {
3
- queryFn?: import('@tanstack/query-core').QueryFunction<ThreeSpeakVideo[], (string | undefined)[], never> | undefined;
4
- } & {
5
- queryKey: (string | undefined)[] & {
6
- [dataTagSymbol]: ThreeSpeakVideo[];
7
- [dataTagErrorSymbol]: Error;
8
- };
9
- };
@@ -1,2 +0,0 @@
1
- export * from './get-account-token-query-options';
2
- export * from './get-account-videos-query-options';
@@ -1 +0,0 @@
1
- export * from './three-speak-video';
@@ -1,52 +0,0 @@
1
- export interface ThreeSpeakVideo {
2
- app: string;
3
- beneficiaries: string;
4
- category: string;
5
- community: unknown | null;
6
- created: string;
7
- declineRewards: boolean;
8
- description: string;
9
- donations: boolean;
10
- duration: number;
11
- encoding: Record<number, boolean>;
12
- encodingProgress: number;
13
- encoding_price_steem: string;
14
- filename: string;
15
- firstUpload: boolean;
16
- fromMobile: boolean;
17
- height: unknown;
18
- hive: string;
19
- indexed: boolean;
20
- is3CJContent: boolean;
21
- isNsfwContent: boolean;
22
- isReel: boolean;
23
- isVOD: boolean;
24
- job_id: string;
25
- language: string;
26
- local_filename: string;
27
- lowRc: boolean;
28
- needsBlockchainUpdate: boolean;
29
- originalFilename: string;
30
- owner: string;
31
- paid: boolean;
32
- permlink: string;
33
- postToHiveBlog: boolean;
34
- publish_type: string;
35
- reducedUpvote: boolean;
36
- rewardPowerup: boolean;
37
- size: number;
38
- status: string;
39
- tags_v2: unknown[];
40
- thumbUrl: string;
41
- thumbnail: string;
42
- title: string;
43
- updateSteem: boolean;
44
- upload_type: string;
45
- upvoteEligible: boolean;
46
- video_v2: string;
47
- views: number;
48
- votePercent: number;
49
- width: unknown;
50
- __v: number;
51
- _id: string;
52
- }
@@ -1 +0,0 @@
1
- export * from './queries';
@@ -1,44 +0,0 @@
1
- export declare function getHivePoshLinksQueryOptions(username: string | undefined): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
2
- twitter: {
3
- username: any;
4
- profile: any;
5
- };
6
- reddit: {
7
- username: any;
8
- profile: any;
9
- };
10
- }, Error, {
11
- twitter: {
12
- username: any;
13
- profile: any;
14
- };
15
- reddit: {
16
- username: any;
17
- profile: any;
18
- };
19
- }, (string | undefined)[]>, "queryFn"> & {
20
- queryFn?: import('@tanstack/query-core').QueryFunction<{
21
- twitter: {
22
- username: any;
23
- profile: any;
24
- };
25
- reddit: {
26
- username: any;
27
- profile: any;
28
- };
29
- }, (string | undefined)[], never> | undefined;
30
- } & {
31
- queryKey: (string | undefined)[] & {
32
- [dataTagSymbol]: {
33
- twitter: {
34
- username: any;
35
- profile: any;
36
- };
37
- reddit: {
38
- username: any;
39
- profile: any;
40
- };
41
- };
42
- [dataTagErrorSymbol]: Error;
43
- };
44
- };
@@ -1 +0,0 @@
1
- export * from './get-hiveposh-links-query-options';
@@ -1,5 +0,0 @@
1
- import * as queries from "./queries";
2
- declare const HiveSignerIntegration: {
3
- queries: typeof queries;
4
- };
5
- export { HiveSignerIntegration };
@@ -1,8 +0,0 @@
1
- export declare function getDecodeMemoQueryOptions(username: string, memo: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<any, Error, any, string[]>, "queryFn"> & {
2
- queryFn?: import('@tanstack/query-core').QueryFunction<any, string[], never> | undefined;
3
- } & {
4
- queryKey: string[] & {
5
- [dataTagSymbol]: any;
6
- [dataTagErrorSymbol]: Error;
7
- };
8
- };
@@ -1 +0,0 @@
1
- export * from './get-decode-memo-query-options';
@@ -1,4 +0,0 @@
1
- export * from './3speak';
2
- export * from './hivesigner';
3
- export * from './hiveposh';
4
- export * from './plausible';
@@ -1 +0,0 @@
1
- export * from './queries';
@@ -1,29 +0,0 @@
1
- export interface StatsResponse {
2
- results: [
3
- {
4
- metrics: number[];
5
- dimensions: string[];
6
- }
7
- ];
8
- query: {
9
- site_id: string;
10
- metrics: string[];
11
- date_range: string[];
12
- filters: unknown[];
13
- };
14
- }
15
- interface UseStatsQueryOptions {
16
- url: string;
17
- dimensions?: string[];
18
- metrics?: string[];
19
- enabled?: boolean;
20
- }
21
- export declare function getStatsQueryOptions({ url, dimensions, metrics, enabled, }: UseStatsQueryOptions): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<StatsResponse, Error, StatsResponse, (string | string[])[]>, "queryFn"> & {
22
- queryFn?: import('@tanstack/query-core').QueryFunction<StatsResponse, (string | string[])[], never> | undefined;
23
- } & {
24
- queryKey: (string | string[])[] & {
25
- [dataTagSymbol]: StatsResponse;
26
- [dataTagErrorSymbol]: Error;
27
- };
28
- };
29
- export {};
@@ -1 +0,0 @@
1
- export * from './get-stats-query-options';
@@ -1,2 +0,0 @@
1
- import * as Keychain from "./keychain";
2
- export { Keychain };
@@ -1,10 +0,0 @@
1
- import { Operation } from '@hiveio/dhive';
2
- export type KeychainAuthorityTypes = "Owner" | "Active" | "Posting" | "Memo";
3
- interface TxResponse {
4
- success: boolean;
5
- result: string;
6
- }
7
- export declare function handshake(): Promise<void>;
8
- export declare const broadcast: (account: string, operations: Operation[], key: KeychainAuthorityTypes, rpc?: string | null) => Promise<TxResponse>;
9
- export declare const customJson: (account: string, id: string, key: KeychainAuthorityTypes, json: string, display_msg: string, rpc?: string | null) => Promise<TxResponse>;
10
- export {};
@@ -1,2 +0,0 @@
1
- export * from './mutations';
2
- export * from './queries';
@@ -1,3 +0,0 @@
1
- export * from './sign-operation-by-key';
2
- export * from './sign-operation-by-keychain';
3
- export * from './sign-operation-by-hivesigner';
@@ -1,4 +0,0 @@
1
- import { Operation } from '@hiveio/dhive';
2
- export declare function useSignOperationByHivesigner(callbackUri?: string): import('@tanstack/react-query').UseMutationResult<string | void, Error, {
3
- operation: Operation;
4
- }, unknown>;
@@ -1,5 +0,0 @@
1
- import { Operation } from '@hiveio/dhive';
2
- export declare function useSignOperationByKey(username: string | undefined): import('@tanstack/react-query').UseMutationResult<import('@hiveio/dhive').TransactionConfirmation, Error, {
3
- operation: Operation;
4
- keyOrSeed: string;
5
- }, unknown>;
@@ -1,5 +0,0 @@
1
- import { Keychain } from '../../keychain';
2
- import { Operation } from '@hiveio/dhive';
3
- export declare function useSignOperationByKeychain(username: string | undefined, keyType?: Keychain.KeychainAuthorityTypes): import('@tanstack/react-query').UseMutationResult<any, Error, {
4
- operation: Operation;
5
- }, unknown>;
@@ -1,8 +0,0 @@
1
- export declare function getChainPropertiesQueryOptions(): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('@hiveio/dhive').ChainProperties, Error, import('@hiveio/dhive').ChainProperties, string[]>, "queryFn"> & {
2
- queryFn?: import('@tanstack/query-core').QueryFunction<import('@hiveio/dhive').ChainProperties, string[], never> | undefined;
3
- } & {
4
- queryKey: string[] & {
5
- [dataTagSymbol]: import('@hiveio/dhive').ChainProperties;
6
- [dataTagErrorSymbol]: Error;
7
- };
8
- };
@@ -1 +0,0 @@
1
- export * from './get-chain-properties-query-options';
@@ -1,3 +0,0 @@
1
- export * from './queries';
2
- export * from './types';
3
- export * from './mutations';
@@ -1,5 +0,0 @@
1
- import { Fragment } from '../types';
2
- export declare function useAddFragment(username: string): import('@tanstack/react-query').UseMutationResult<Fragment, Error, {
3
- title: string;
4
- body: string;
5
- }, unknown>;
@@ -1,5 +0,0 @@
1
- import { Fragment } from '../types';
2
- export declare function useEditFragment(username: string, fragmentId: string): import('@tanstack/react-query').UseMutationResult<Fragment, Error, {
3
- title: string;
4
- body: string;
5
- }, unknown>;
@@ -1,3 +0,0 @@
1
- export * from './add-fragment';
2
- export * from './edit-fragment';
3
- export * from './remove-fragment';
@@ -1 +0,0 @@
1
- export declare function useRemoveFragment(username: string, fragmentId: string): import('@tanstack/react-query').UseMutationResult<Response, Error, void, unknown>;
@@ -1,9 +0,0 @@
1
- import { Fragment } from '../types';
2
- export declare function getFragmentsQueryOptions(username: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<Fragment[], Error, Fragment[], string[]>, "queryFn"> & {
3
- queryFn?: import('@tanstack/query-core').QueryFunction<Fragment[], string[], never> | undefined;
4
- } & {
5
- queryKey: string[] & {
6
- [dataTagSymbol]: Fragment[];
7
- [dataTagErrorSymbol]: Error;
8
- };
9
- };
@@ -1,8 +0,0 @@
1
- export declare function getPromotedPostsQuery<T extends any>(type?: "feed" | "waves"): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<T[], Error, T[], string[]>, "queryFn"> & {
2
- queryFn?: import('@tanstack/query-core').QueryFunction<T[], string[], never> | undefined;
3
- } & {
4
- queryKey: string[] & {
5
- [dataTagSymbol]: T[];
6
- [dataTagErrorSymbol]: Error;
7
- };
8
- };
@@ -1,12 +0,0 @@
1
- export declare function getTrendingTagsQueryOptions(limit?: number): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseInfiniteQueryOptions<string[], Error, import('@tanstack/query-core').InfiniteData<string[], unknown>, string[], string[], {
2
- afterTag: string;
3
- }>, "queryFn"> & {
4
- queryFn?: import('@tanstack/query-core').QueryFunction<string[], string[], {
5
- afterTag: string;
6
- }> | undefined;
7
- } & {
8
- queryKey: string[] & {
9
- [dataTagSymbol]: import('@tanstack/query-core').InfiniteData<string[], unknown>;
10
- [dataTagErrorSymbol]: Error;
11
- };
12
- };
@@ -1,3 +0,0 @@
1
- export * from './get-trending-tags-query-options';
2
- export * from './get-fragments-query-options';
3
- export * from './get-promoted-posts-query-options';
@@ -1,7 +0,0 @@
1
- export interface Fragment {
2
- id: string;
3
- title: string;
4
- body: string;
5
- created: string;
6
- modified: string;
7
- }
@@ -1,2 +0,0 @@
1
- export * from './trending-tag';
2
- export * from './fragment';
@@ -1,6 +0,0 @@
1
- export interface TrendingTag {
2
- comments: number;
3
- name: string;
4
- top_posts: number;
5
- total_payouts: string;
6
- }