@ecency/sdk 1.0.53 → 1.0.55
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/ecency-sdk.es.js +113 -101
- package/dist/modules/accounts/mutations/use-account-update.d.ts +8 -2
- package/dist/modules/accounts/queries/get-account-full-query-options.d.ts +328 -336
- package/dist/modules/communities/types/community.d.ts +2 -0
- package/dist/modules/communities/utils/index.d.ts +1 -3
- package/package.json +1 -1
package/dist/ecency-sdk.es.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var
|
4
|
-
import { QueryClient as K, useMutation as l, useQuery as
|
1
|
+
var Q = Object.defineProperty;
|
2
|
+
var _ = (e, t, n) => t in e ? Q(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
3
|
+
var S = (e, t, n) => _(e, typeof t != "symbol" ? t + "" : t, n);
|
4
|
+
import { QueryClient as K, useMutation as l, useQuery as q, useInfiniteQuery as j, queryOptions as p, infiniteQueryOptions as F } from "@tanstack/react-query";
|
5
5
|
import { Client as D, PrivateKey as h, cryptoUtils as P, RCAPI as N } from "@hiveio/dhive";
|
6
6
|
import g from "hivesigner";
|
7
7
|
class M {
|
8
8
|
constructor() {
|
9
|
-
|
9
|
+
S(this, "length", 0);
|
10
10
|
}
|
11
11
|
clear() {
|
12
12
|
throw new Error("Method not implemented.");
|
@@ -52,13 +52,13 @@ const i = {
|
|
52
52
|
queryClient: new K(),
|
53
53
|
plausibleHost: "https://pl.ecency.com"
|
54
54
|
};
|
55
|
-
var
|
55
|
+
var C;
|
56
56
|
((e) => {
|
57
57
|
function t(n) {
|
58
58
|
i.queryClient = n;
|
59
59
|
}
|
60
60
|
e.setQueryClient = t;
|
61
|
-
})(
|
61
|
+
})(C || (C = {}));
|
62
62
|
function E(e) {
|
63
63
|
let t = atob(e);
|
64
64
|
if (t[0] === "{")
|
@@ -74,7 +74,7 @@ const f = (e) => {
|
|
74
74
|
console.error(t);
|
75
75
|
return;
|
76
76
|
}
|
77
|
-
}, y = (e) => f(e) && f(e).accessToken,
|
77
|
+
}, y = (e) => f(e) && f(e).accessToken, k = (e) => f(e) && f(e).postingKey, T = (e) => f(e) && f(e).loginType, L = (e) => f(e) && f(e).refreshToken;
|
78
78
|
function J() {
|
79
79
|
return new Promise((e) => {
|
80
80
|
var t;
|
@@ -94,7 +94,7 @@ const w = (e, t, n, o = null) => new Promise((r, c) => {
|
|
94
94
|
},
|
95
95
|
o
|
96
96
|
);
|
97
|
-
}),
|
97
|
+
}), R = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
98
98
|
__proto__: null,
|
99
99
|
broadcast: w,
|
100
100
|
handshake: J
|
@@ -107,7 +107,7 @@ function I(e = [], t, n) {
|
|
107
107
|
throw new Error(
|
108
108
|
"[Core][Broadcast] Attempted to call broadcast API with anon user"
|
109
109
|
);
|
110
|
-
const r =
|
110
|
+
const r = k(t);
|
111
111
|
if (r) {
|
112
112
|
const s = h.fromString(r);
|
113
113
|
return i.hiveClient.broadcast.sendOperations(
|
@@ -115,7 +115,7 @@ function I(e = [], t, n) {
|
|
115
115
|
s
|
116
116
|
);
|
117
117
|
}
|
118
|
-
const c =
|
118
|
+
const c = T(t);
|
119
119
|
if (c && c == "keychain")
|
120
120
|
return w(t, n(o), "Posting").then((s) => s.result);
|
121
121
|
let a = y(t);
|
@@ -139,7 +139,7 @@ async function B(e, t, n) {
|
|
139
139
|
required_auths: [],
|
140
140
|
required_posting_auths: [e],
|
141
141
|
json: JSON.stringify(n)
|
142
|
-
}, r =
|
142
|
+
}, r = k(e);
|
143
143
|
if (r) {
|
144
144
|
const s = h.fromString(r);
|
145
145
|
return i.hiveClient.broadcast.json(
|
@@ -147,7 +147,7 @@ async function B(e, t, n) {
|
|
147
147
|
s
|
148
148
|
);
|
149
149
|
}
|
150
|
-
const c =
|
150
|
+
const c = T(e);
|
151
151
|
if (c && c == "keychain")
|
152
152
|
return w(e, [["custom_json", o]], "Posting").then((s) => s.result);
|
153
153
|
let a = y(e);
|
@@ -159,7 +159,7 @@ async function B(e, t, n) {
|
|
159
159
|
"[SDK][Broadcast] – cannot broadcast w/o posting key or token"
|
160
160
|
);
|
161
161
|
}
|
162
|
-
function
|
162
|
+
function ee() {
|
163
163
|
return new K({
|
164
164
|
defaultOptions: {
|
165
165
|
queries: {
|
@@ -173,7 +173,7 @@ function R() {
|
|
173
173
|
});
|
174
174
|
}
|
175
175
|
const u = () => i.queryClient;
|
176
|
-
var
|
176
|
+
var b;
|
177
177
|
((e) => {
|
178
178
|
function t(s) {
|
179
179
|
return u().getQueryData(s);
|
@@ -195,7 +195,7 @@ var S;
|
|
195
195
|
return {
|
196
196
|
prefetch: () => o(s),
|
197
197
|
getData: () => t(s.queryKey),
|
198
|
-
useClientQuery: () =>
|
198
|
+
useClientQuery: () => q(s),
|
199
199
|
fetchAndGet: () => u().fetchQuery(s)
|
200
200
|
};
|
201
201
|
}
|
@@ -204,36 +204,13 @@ var S;
|
|
204
204
|
return {
|
205
205
|
prefetch: () => r(s),
|
206
206
|
getData: () => n(s.queryKey),
|
207
|
-
useClientQuery: () =>
|
207
|
+
useClientQuery: () => j(s),
|
208
208
|
fetchAndGet: () => u().fetchInfiniteQuery(s)
|
209
209
|
};
|
210
210
|
}
|
211
211
|
e.generateClientServerInfiniteQuery = a;
|
212
|
-
})(
|
213
|
-
function
|
214
|
-
return I(
|
215
|
-
["accounts", "update"],
|
216
|
-
e,
|
217
|
-
({
|
218
|
-
profile: t,
|
219
|
-
tokens: n
|
220
|
-
}) => [
|
221
|
-
[
|
222
|
-
"account_update2",
|
223
|
-
{
|
224
|
-
account: e,
|
225
|
-
json_metadata: "",
|
226
|
-
posting_json_metadata: JSON.stringify({
|
227
|
-
profile: { ...t, version: 2 },
|
228
|
-
tokens: n
|
229
|
-
}),
|
230
|
-
extensions: []
|
231
|
-
}
|
232
|
-
]
|
233
|
-
]
|
234
|
-
);
|
235
|
-
}
|
236
|
-
function te(e) {
|
212
|
+
})(b || (b = {}));
|
213
|
+
function H(e) {
|
237
214
|
return p({
|
238
215
|
queryKey: ["get-account-full", e],
|
239
216
|
queryFn: async () => {
|
@@ -257,7 +234,7 @@ function te(e) {
|
|
257
234
|
[e, 1]
|
258
235
|
);
|
259
236
|
return {
|
260
|
-
...t,
|
237
|
+
...t[0],
|
261
238
|
follow_stats: o,
|
262
239
|
reputation: r[0].reputation,
|
263
240
|
profile: {
|
@@ -270,7 +247,7 @@ function te(e) {
|
|
270
247
|
staleTime: 6e4
|
271
248
|
});
|
272
249
|
}
|
273
|
-
function
|
250
|
+
function te(e, t = 5, n = []) {
|
274
251
|
return p({
|
275
252
|
queryKey: ["accounts", "search", e, n],
|
276
253
|
enabled: !!e,
|
@@ -282,7 +259,7 @@ function ne(e, t = 5, n = []) {
|
|
282
259
|
)
|
283
260
|
});
|
284
261
|
}
|
285
|
-
function
|
262
|
+
function ne(e) {
|
286
263
|
return p({
|
287
264
|
queryKey: ["accounts", "check-wallet-pending", e],
|
288
265
|
queryFn: async () => await (await fetch(
|
@@ -301,7 +278,7 @@ function oe(e) {
|
|
301
278
|
refetchOnMount: !0
|
302
279
|
});
|
303
280
|
}
|
304
|
-
function
|
281
|
+
function x(e, t) {
|
305
282
|
return p({
|
306
283
|
queryKey: ["accounts", "relations", e, t],
|
307
284
|
enabled: !!e && !!t,
|
@@ -314,7 +291,7 @@ function H(e, t) {
|
|
314
291
|
)
|
315
292
|
});
|
316
293
|
}
|
317
|
-
function
|
294
|
+
function oe(e) {
|
318
295
|
return p({
|
319
296
|
queryKey: ["accounts", "subscriptions", e],
|
320
297
|
enabled: !!e,
|
@@ -327,7 +304,7 @@ function re(e) {
|
|
327
304
|
) ?? []
|
328
305
|
});
|
329
306
|
}
|
330
|
-
function
|
307
|
+
function re(e) {
|
331
308
|
return p({
|
332
309
|
queryKey: ["accounts", "bookmarks", e],
|
333
310
|
enabled: !!e,
|
@@ -347,7 +324,7 @@ function ie(e) {
|
|
347
324
|
}
|
348
325
|
});
|
349
326
|
}
|
350
|
-
function
|
327
|
+
function ie(e) {
|
351
328
|
return p({
|
352
329
|
queryKey: ["accounts", "favourites", e],
|
353
330
|
enabled: !!e,
|
@@ -367,11 +344,40 @@ function se(e) {
|
|
367
344
|
}
|
368
345
|
});
|
369
346
|
}
|
347
|
+
function se(e) {
|
348
|
+
const { data: t } = q(H(e));
|
349
|
+
return I(
|
350
|
+
["accounts", "update", t],
|
351
|
+
e,
|
352
|
+
({ profile: n, tokens: o, beneficiary: r }) => [
|
353
|
+
[
|
354
|
+
"account_update2",
|
355
|
+
{
|
356
|
+
account: e,
|
357
|
+
json_metadata: "",
|
358
|
+
posting_json_metadata: JSON.stringify({
|
359
|
+
...JSON.parse((t == null ? void 0 : t.posting_json_metadata) || "{}"),
|
360
|
+
profile: { ...n, version: 2 },
|
361
|
+
tokens: o,
|
362
|
+
// See https://docs.ecency.com/communities/default-beneficiary/
|
363
|
+
...r ? {
|
364
|
+
beneficiary: {
|
365
|
+
account: r == null ? void 0 : r.username,
|
366
|
+
weight: r == null ? void 0 : r.reward
|
367
|
+
}
|
368
|
+
} : {}
|
369
|
+
}),
|
370
|
+
extensions: []
|
371
|
+
}
|
372
|
+
]
|
373
|
+
]
|
374
|
+
);
|
375
|
+
}
|
370
376
|
function ae(e, t, n, o) {
|
371
377
|
return l({
|
372
378
|
mutationKey: [],
|
373
379
|
mutationFn: async (r) => {
|
374
|
-
const c =
|
380
|
+
const c = x(
|
375
381
|
e,
|
376
382
|
t
|
377
383
|
);
|
@@ -598,7 +604,7 @@ function we(e = 20) {
|
|
598
604
|
refetchOnMount: !0
|
599
605
|
});
|
600
606
|
}
|
601
|
-
function
|
607
|
+
function O(e) {
|
602
608
|
return p({
|
603
609
|
queryKey: ["posts", "fragments", e],
|
604
610
|
queryFn: async () => (await fetch(
|
@@ -651,13 +657,13 @@ function me(e) {
|
|
651
657
|
)).json(),
|
652
658
|
onSuccess(t) {
|
653
659
|
u().setQueryData(
|
654
|
-
|
660
|
+
O(e).queryKey,
|
655
661
|
(n) => [t, ...n ?? []]
|
656
662
|
);
|
657
663
|
}
|
658
664
|
});
|
659
665
|
}
|
660
|
-
function
|
666
|
+
function Oe(e, t) {
|
661
667
|
return l({
|
662
668
|
mutationKey: ["posts", "edit-fragment", e, t],
|
663
669
|
mutationFn: async ({ title: n, body: o }) => (await fetch(
|
@@ -677,7 +683,7 @@ function be(e, t) {
|
|
677
683
|
)).json(),
|
678
684
|
onSuccess(n) {
|
679
685
|
u().setQueryData(
|
680
|
-
|
686
|
+
O(e).queryKey,
|
681
687
|
(o) => {
|
682
688
|
if (!o)
|
683
689
|
return [];
|
@@ -688,7 +694,7 @@ function be(e, t) {
|
|
688
694
|
}
|
689
695
|
});
|
690
696
|
}
|
691
|
-
function
|
697
|
+
function Se(e, t) {
|
692
698
|
return l({
|
693
699
|
mutationKey: ["posts", "remove-fragment", e],
|
694
700
|
mutationFn: async () => fetch(i.privateApiHost + "/private-api/fragments-delete", {
|
@@ -703,13 +709,13 @@ function Ce(e, t) {
|
|
703
709
|
}),
|
704
710
|
onSuccess() {
|
705
711
|
u().setQueryData(
|
706
|
-
|
712
|
+
O(e).queryKey,
|
707
713
|
(n) => [...n ?? []].filter(({ id: o }) => o !== t)
|
708
714
|
);
|
709
715
|
}
|
710
716
|
});
|
711
717
|
}
|
712
|
-
function
|
718
|
+
function A(e, t) {
|
713
719
|
return l({
|
714
720
|
mutationKey: ["analytics", t],
|
715
721
|
mutationFn: async () => {
|
@@ -732,11 +738,11 @@ function T(e, t) {
|
|
732
738
|
}
|
733
739
|
});
|
734
740
|
}
|
735
|
-
const
|
741
|
+
const Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
736
742
|
__proto__: null,
|
737
|
-
useRecordActivity:
|
743
|
+
useRecordActivity: A
|
738
744
|
}, Symbol.toStringTag, { value: "Module" }));
|
739
|
-
function
|
745
|
+
function G(e, t) {
|
740
746
|
return p({
|
741
747
|
queryKey: ["integrations", "hivesigner", "decode-memo", e],
|
742
748
|
queryFn: async () => {
|
@@ -748,11 +754,11 @@ function x(e, t) {
|
|
748
754
|
}
|
749
755
|
});
|
750
756
|
}
|
751
|
-
const
|
757
|
+
const W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
752
758
|
__proto__: null,
|
753
|
-
getDecodeMemoQueryOptions:
|
754
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
755
|
-
queries:
|
759
|
+
getDecodeMemoQueryOptions: G
|
760
|
+
}, Symbol.toStringTag, { value: "Module" })), U = {
|
761
|
+
queries: W
|
756
762
|
};
|
757
763
|
function m(e) {
|
758
764
|
return p({
|
@@ -768,7 +774,7 @@ function m(e) {
|
|
768
774
|
"Content-Type": "application/json"
|
769
775
|
}
|
770
776
|
}
|
771
|
-
), n =
|
777
|
+
), n = U.queries.getDecodeMemoQueryOptions(
|
772
778
|
e,
|
773
779
|
(await t.json()).memo
|
774
780
|
);
|
@@ -780,7 +786,7 @@ function m(e) {
|
|
780
786
|
}
|
781
787
|
});
|
782
788
|
}
|
783
|
-
function
|
789
|
+
function z(e) {
|
784
790
|
return p({
|
785
791
|
queryKey: ["integrations", "3speak", "videos", e],
|
786
792
|
enabled: !!e,
|
@@ -803,12 +809,12 @@ function U(e) {
|
|
803
809
|
}
|
804
810
|
});
|
805
811
|
}
|
806
|
-
const
|
812
|
+
const $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
807
813
|
__proto__: null,
|
808
814
|
getAccountTokenQueryOptions: m,
|
809
|
-
getAccountVideosQueryOptions:
|
810
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
811
|
-
queries:
|
815
|
+
getAccountVideosQueryOptions: z
|
816
|
+
}, Symbol.toStringTag, { value: "Module" })), be = {
|
817
|
+
queries: $
|
812
818
|
};
|
813
819
|
function Ke() {
|
814
820
|
return p({
|
@@ -851,7 +857,7 @@ function ke(e, t) {
|
|
851
857
|
});
|
852
858
|
}
|
853
859
|
function Te(e, t, n) {
|
854
|
-
const { mutateAsync: o } =
|
860
|
+
const { mutateAsync: o } = A(
|
855
861
|
e,
|
856
862
|
"spin-rolled"
|
857
863
|
);
|
@@ -905,10 +911,14 @@ function Qe(e, t) {
|
|
905
911
|
queryKey: ["community", "context", e, t],
|
906
912
|
enabled: !!e && !!t,
|
907
913
|
queryFn: async () => {
|
908
|
-
const n = await i.hiveClient.call(
|
909
|
-
|
910
|
-
|
911
|
-
|
914
|
+
const n = await i.hiveClient.call(
|
915
|
+
"bridge",
|
916
|
+
"get_community_context",
|
917
|
+
{
|
918
|
+
account: e,
|
919
|
+
name: t
|
920
|
+
}
|
921
|
+
);
|
912
922
|
return {
|
913
923
|
role: (n == null ? void 0 : n.role) ?? "guest",
|
914
924
|
subscribed: (n == null ? void 0 : n.subscribed) ?? !1
|
@@ -917,7 +927,7 @@ function Qe(e, t) {
|
|
917
927
|
});
|
918
928
|
}
|
919
929
|
var d = /* @__PURE__ */ ((e) => (e.OWNER = "owner", e.ADMIN = "admin", e.MOD = "mod", e.MEMBER = "member", e.GUEST = "guest", e.MUTED = "muted", e))(d || {});
|
920
|
-
const
|
930
|
+
const _e = {
|
921
931
|
owner: [
|
922
932
|
"admin",
|
923
933
|
"mod",
|
@@ -940,7 +950,7 @@ const je = {
|
|
940
950
|
/* MUTED */
|
941
951
|
]
|
942
952
|
};
|
943
|
-
function
|
953
|
+
function je(e, t) {
|
944
954
|
return e.startsWith("hive-3") || t === 3 ? "Council" : e.startsWith("hive-2") || t === 2 ? "Journal" : "Topic";
|
945
955
|
}
|
946
956
|
function Fe({
|
@@ -948,7 +958,9 @@ function Fe({
|
|
948
958
|
userRole: t,
|
949
959
|
subscribed: n
|
950
960
|
}) {
|
951
|
-
const o = t === d.MUTED ? !1 : e === "Topic" ? !0 : [d.OWNER, d.ADMIN, d.MOD, d.MEMBER].includes(
|
961
|
+
const o = t === d.MUTED ? !1 : e === "Topic" ? !0 : [d.OWNER, d.ADMIN, d.MOD, d.MEMBER].includes(
|
962
|
+
t
|
963
|
+
), r = (() => {
|
952
964
|
if (t === d.MUTED) return !1;
|
953
965
|
switch (e) {
|
954
966
|
case "Topic":
|
@@ -967,52 +979,52 @@ function Fe({
|
|
967
979
|
}
|
968
980
|
export {
|
969
981
|
i as CONFIG,
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
982
|
+
C as ConfigManager,
|
983
|
+
Ce as EcencyAnalytics,
|
984
|
+
b as EcencyQueriesManager,
|
985
|
+
U as HiveSignerIntegration,
|
986
|
+
R as Keychain,
|
975
987
|
d as ROLES,
|
976
|
-
|
988
|
+
be as ThreeSpeakIntegration,
|
977
989
|
B as broadcastJson,
|
978
|
-
|
990
|
+
ne as checkUsernameWalletsPendingQueryOptions,
|
979
991
|
y as getAccessToken,
|
980
|
-
|
992
|
+
H as getAccountFullQueryOptions,
|
981
993
|
qe as getAccountRcQueryOptions,
|
982
|
-
|
983
|
-
|
984
|
-
|
994
|
+
oe as getAccountSubscriptionsQueryOptions,
|
995
|
+
re as getActiveAccountBookmarksQueryOptions,
|
996
|
+
ie as getActiveAccountFavouritesQueryOptions,
|
985
997
|
he as getChainPropertiesQueryOptions,
|
986
998
|
Ae as getCommunitiesQueryOptions,
|
987
999
|
Qe as getCommunityContextQueryOptions,
|
988
1000
|
Fe as getCommunityPermissions,
|
989
|
-
|
990
|
-
|
1001
|
+
je as getCommunityType,
|
1002
|
+
O as getFragmentsQueryOptions,
|
991
1003
|
ke as getGameStatusCheckQueryOptions,
|
992
1004
|
ge as getHiveEngineTokensListQueryOptions,
|
993
|
-
|
994
|
-
|
1005
|
+
T as getLoginType,
|
1006
|
+
k as getPostingKey,
|
995
1007
|
ve as getPromotedPostsQuery,
|
996
1008
|
u as getQueryClient,
|
997
1009
|
Ke as getRcStatsQueryOptions,
|
998
|
-
|
999
|
-
|
1000
|
-
|
1010
|
+
L as getRefreshToken,
|
1011
|
+
x as getRelationshipBetweenAccountsQueryOptions,
|
1012
|
+
te as getSearchAccountsByUsernameQueryOptions,
|
1001
1013
|
we as getTrendingTagsQueryOptions,
|
1002
1014
|
f as getUser,
|
1003
|
-
|
1004
|
-
|
1015
|
+
ee as makeQueryClient,
|
1016
|
+
_e as roleMap,
|
1005
1017
|
pe as useAccountFavouriteAdd,
|
1006
1018
|
ye as useAccountFavouriteDelete,
|
1007
1019
|
ae as useAccountRelationsUpdate,
|
1008
|
-
|
1020
|
+
se as useAccountUpdate,
|
1009
1021
|
me as useAddFragment,
|
1010
1022
|
ce as useBookmarkAdd,
|
1011
1023
|
ue as useBookmarkDelete,
|
1012
1024
|
I as useBroadcastMutation,
|
1013
|
-
|
1025
|
+
Oe as useEditFragment,
|
1014
1026
|
Te as useGameClaim,
|
1015
|
-
|
1027
|
+
Se as useRemoveFragment,
|
1016
1028
|
fe as useSignOperationByHivesigner,
|
1017
1029
|
le as useSignOperationByKey,
|
1018
1030
|
de as useSignOperationByKeychain
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
interface Payload {
|
2
2
|
profile: Record<string, any>;
|
3
3
|
tokens: {
|
4
4
|
symbol: string;
|
@@ -6,4 +6,10 @@ export declare function useAccountUpdate(username: string): import('@tanstack/re
|
|
6
6
|
address: string;
|
7
7
|
};
|
8
8
|
}[];
|
9
|
-
|
9
|
+
beneficiary: {
|
10
|
+
username: string;
|
11
|
+
reward: number;
|
12
|
+
};
|
13
|
+
}
|
14
|
+
export declare function useAccountUpdate(username: string): import('@tanstack/react-query').UseMutationResult<any, Error, Partial<Payload>, unknown>;
|
15
|
+
export {};
|
@@ -1,352 +1,344 @@
|
|
1
1
|
import { AccountFollowStats } from '../types';
|
2
2
|
export declare function getAccountFullQueryOptions(username: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
|
3
|
-
follow_stats: AccountFollowStats | undefined;
|
4
|
-
reputation: number;
|
5
|
-
profile: any;
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
[x: number]: boolean | undefined;
|
51
|
-
length?: boolean | undefined;
|
52
|
-
toString?: boolean | undefined;
|
53
|
-
toLocaleString?: boolean | undefined;
|
54
|
-
pop?: boolean | undefined;
|
55
|
-
push?: boolean | undefined;
|
56
|
-
concat?: boolean | undefined;
|
57
|
-
join?: boolean | undefined;
|
58
|
-
reverse?: boolean | undefined;
|
59
|
-
shift?: boolean | undefined;
|
60
|
-
slice?: boolean | undefined;
|
61
|
-
sort?: boolean | undefined;
|
62
|
-
splice?: boolean | undefined;
|
63
|
-
unshift?: boolean | undefined;
|
64
|
-
indexOf?: boolean | undefined;
|
65
|
-
lastIndexOf?: boolean | undefined;
|
66
|
-
every?: boolean | undefined;
|
67
|
-
some?: boolean | undefined;
|
68
|
-
forEach?: boolean | undefined;
|
69
|
-
map?: boolean | undefined;
|
70
|
-
filter?: boolean | undefined;
|
71
|
-
reduce?: boolean | undefined;
|
72
|
-
reduceRight?: boolean | undefined;
|
73
|
-
find?: boolean | undefined;
|
74
|
-
findIndex?: boolean | undefined;
|
75
|
-
fill?: boolean | undefined;
|
76
|
-
copyWithin?: boolean | undefined;
|
77
|
-
entries?: boolean | undefined;
|
78
|
-
keys?: boolean | undefined;
|
79
|
-
values?: boolean | undefined;
|
80
|
-
includes?: boolean | undefined;
|
81
|
-
flatMap?: boolean | undefined;
|
82
|
-
flat?: boolean | undefined;
|
83
|
-
[Symbol.iterator]?: boolean | undefined;
|
84
|
-
readonly [Symbol.unscopables]?: boolean | undefined;
|
85
|
-
at?: boolean | undefined;
|
3
|
+
readonly follow_stats: AccountFollowStats | undefined;
|
4
|
+
readonly reputation: number;
|
5
|
+
readonly profile: any;
|
6
|
+
readonly vesting_balance: string | import('@hiveio/dhive').Asset;
|
7
|
+
readonly transfer_history: any[];
|
8
|
+
readonly market_history: any[];
|
9
|
+
readonly post_history: any[];
|
10
|
+
readonly vote_history: any[];
|
11
|
+
readonly other_history: any[];
|
12
|
+
readonly witness_votes: string[];
|
13
|
+
readonly tags_usage: string[];
|
14
|
+
readonly guest_bloggers: string[];
|
15
|
+
readonly open_orders?: any[];
|
16
|
+
readonly comments?: any[];
|
17
|
+
readonly blog?: any[];
|
18
|
+
readonly feed?: any[];
|
19
|
+
readonly recent_replies?: any[];
|
20
|
+
readonly recommended?: any[];
|
21
|
+
readonly id: number;
|
22
|
+
readonly name: string;
|
23
|
+
readonly owner: import('@hiveio/dhive').Authority;
|
24
|
+
readonly active: import('@hiveio/dhive').Authority;
|
25
|
+
readonly posting: import('@hiveio/dhive').Authority;
|
26
|
+
readonly memo_key: string;
|
27
|
+
readonly json_metadata: string;
|
28
|
+
readonly posting_json_metadata: string;
|
29
|
+
readonly proxy: string;
|
30
|
+
readonly last_owner_update: string;
|
31
|
+
readonly last_account_update: string;
|
32
|
+
readonly created: string;
|
33
|
+
readonly mined: boolean;
|
34
|
+
readonly owner_challenged: boolean;
|
35
|
+
readonly active_challenged: boolean;
|
36
|
+
readonly last_owner_proved: string;
|
37
|
+
readonly last_active_proved: string;
|
38
|
+
readonly recovery_account: string;
|
39
|
+
readonly reset_account: string;
|
40
|
+
readonly last_account_recovery: string;
|
41
|
+
readonly comment_count: number;
|
42
|
+
readonly lifetime_vote_count: number;
|
43
|
+
readonly post_count: number;
|
44
|
+
readonly can_vote: boolean;
|
45
|
+
readonly voting_power: number;
|
46
|
+
readonly last_vote_time: string;
|
47
|
+
readonly voting_manabar: {
|
48
|
+
current_mana: string | number;
|
49
|
+
last_update_time: number;
|
86
50
|
};
|
87
|
-
|
51
|
+
readonly balance: string | import('@hiveio/dhive').Asset;
|
52
|
+
readonly savings_balance: string | import('@hiveio/dhive').Asset;
|
53
|
+
readonly hbd_balance: string | import('@hiveio/dhive').Asset;
|
54
|
+
readonly hbd_seconds: string;
|
55
|
+
readonly hbd_seconds_last_update: string;
|
56
|
+
readonly hbd_last_interest_payment: string;
|
57
|
+
readonly savings_hbd_balance: string | import('@hiveio/dhive').Asset;
|
58
|
+
readonly savings_hbd_seconds: string;
|
59
|
+
readonly savings_hbd_seconds_last_update: string;
|
60
|
+
readonly savings_hbd_last_interest_payment: string;
|
61
|
+
readonly savings_withdraw_requests: number;
|
62
|
+
readonly reward_hbd_balance: string | import('@hiveio/dhive').Asset;
|
63
|
+
readonly reward_hive_balance: string | import('@hiveio/dhive').Asset;
|
64
|
+
readonly reward_vesting_balance: string | import('@hiveio/dhive').Asset;
|
65
|
+
readonly reward_vesting_hive: string | import('@hiveio/dhive').Asset;
|
66
|
+
readonly curation_rewards: number | string;
|
67
|
+
readonly posting_rewards: number | string;
|
68
|
+
readonly vesting_shares: string | import('@hiveio/dhive').Asset;
|
69
|
+
readonly delegated_vesting_shares: string | import('@hiveio/dhive').Asset;
|
70
|
+
readonly received_vesting_shares: string | import('@hiveio/dhive').Asset;
|
71
|
+
readonly vesting_withdraw_rate: string | import('@hiveio/dhive').Asset;
|
72
|
+
readonly next_vesting_withdrawal: string;
|
73
|
+
readonly withdrawn: number | string;
|
74
|
+
readonly to_withdraw: number | string;
|
75
|
+
readonly withdraw_routes: number;
|
76
|
+
readonly proxied_vsf_votes: number[];
|
77
|
+
readonly witnesses_voted_for: number;
|
78
|
+
readonly average_bandwidth: number | string;
|
79
|
+
readonly lifetime_bandwidth: number | string;
|
80
|
+
readonly last_bandwidth_update: string;
|
81
|
+
readonly average_market_bandwidth: number | string;
|
82
|
+
readonly lifetime_market_bandwidth: number | string;
|
83
|
+
readonly last_market_bandwidth_update: string;
|
84
|
+
readonly last_post: string;
|
85
|
+
readonly last_root_post: string;
|
88
86
|
}, Error, {
|
89
|
-
follow_stats: AccountFollowStats | undefined;
|
90
|
-
reputation: number;
|
91
|
-
profile: any;
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
[x: number]: boolean | undefined;
|
137
|
-
length?: boolean | undefined;
|
138
|
-
toString?: boolean | undefined;
|
139
|
-
toLocaleString?: boolean | undefined;
|
140
|
-
pop?: boolean | undefined;
|
141
|
-
push?: boolean | undefined;
|
142
|
-
concat?: boolean | undefined;
|
143
|
-
join?: boolean | undefined;
|
144
|
-
reverse?: boolean | undefined;
|
145
|
-
shift?: boolean | undefined;
|
146
|
-
slice?: boolean | undefined;
|
147
|
-
sort?: boolean | undefined;
|
148
|
-
splice?: boolean | undefined;
|
149
|
-
unshift?: boolean | undefined;
|
150
|
-
indexOf?: boolean | undefined;
|
151
|
-
lastIndexOf?: boolean | undefined;
|
152
|
-
every?: boolean | undefined;
|
153
|
-
some?: boolean | undefined;
|
154
|
-
forEach?: boolean | undefined;
|
155
|
-
map?: boolean | undefined;
|
156
|
-
filter?: boolean | undefined;
|
157
|
-
reduce?: boolean | undefined;
|
158
|
-
reduceRight?: boolean | undefined;
|
159
|
-
find?: boolean | undefined;
|
160
|
-
findIndex?: boolean | undefined;
|
161
|
-
fill?: boolean | undefined;
|
162
|
-
copyWithin?: boolean | undefined;
|
163
|
-
entries?: boolean | undefined;
|
164
|
-
keys?: boolean | undefined;
|
165
|
-
values?: boolean | undefined;
|
166
|
-
includes?: boolean | undefined;
|
167
|
-
flatMap?: boolean | undefined;
|
168
|
-
flat?: boolean | undefined;
|
169
|
-
[Symbol.iterator]?: boolean | undefined;
|
170
|
-
readonly [Symbol.unscopables]?: boolean | undefined;
|
171
|
-
at?: boolean | undefined;
|
87
|
+
readonly follow_stats: AccountFollowStats | undefined;
|
88
|
+
readonly reputation: number;
|
89
|
+
readonly profile: any;
|
90
|
+
readonly vesting_balance: string | import('@hiveio/dhive').Asset;
|
91
|
+
readonly transfer_history: any[];
|
92
|
+
readonly market_history: any[];
|
93
|
+
readonly post_history: any[];
|
94
|
+
readonly vote_history: any[];
|
95
|
+
readonly other_history: any[];
|
96
|
+
readonly witness_votes: string[];
|
97
|
+
readonly tags_usage: string[];
|
98
|
+
readonly guest_bloggers: string[];
|
99
|
+
readonly open_orders?: any[];
|
100
|
+
readonly comments?: any[];
|
101
|
+
readonly blog?: any[];
|
102
|
+
readonly feed?: any[];
|
103
|
+
readonly recent_replies?: any[];
|
104
|
+
readonly recommended?: any[];
|
105
|
+
readonly id: number;
|
106
|
+
readonly name: string;
|
107
|
+
readonly owner: import('@hiveio/dhive').Authority;
|
108
|
+
readonly active: import('@hiveio/dhive').Authority;
|
109
|
+
readonly posting: import('@hiveio/dhive').Authority;
|
110
|
+
readonly memo_key: string;
|
111
|
+
readonly json_metadata: string;
|
112
|
+
readonly posting_json_metadata: string;
|
113
|
+
readonly proxy: string;
|
114
|
+
readonly last_owner_update: string;
|
115
|
+
readonly last_account_update: string;
|
116
|
+
readonly created: string;
|
117
|
+
readonly mined: boolean;
|
118
|
+
readonly owner_challenged: boolean;
|
119
|
+
readonly active_challenged: boolean;
|
120
|
+
readonly last_owner_proved: string;
|
121
|
+
readonly last_active_proved: string;
|
122
|
+
readonly recovery_account: string;
|
123
|
+
readonly reset_account: string;
|
124
|
+
readonly last_account_recovery: string;
|
125
|
+
readonly comment_count: number;
|
126
|
+
readonly lifetime_vote_count: number;
|
127
|
+
readonly post_count: number;
|
128
|
+
readonly can_vote: boolean;
|
129
|
+
readonly voting_power: number;
|
130
|
+
readonly last_vote_time: string;
|
131
|
+
readonly voting_manabar: {
|
132
|
+
current_mana: string | number;
|
133
|
+
last_update_time: number;
|
172
134
|
};
|
173
|
-
|
135
|
+
readonly balance: string | import('@hiveio/dhive').Asset;
|
136
|
+
readonly savings_balance: string | import('@hiveio/dhive').Asset;
|
137
|
+
readonly hbd_balance: string | import('@hiveio/dhive').Asset;
|
138
|
+
readonly hbd_seconds: string;
|
139
|
+
readonly hbd_seconds_last_update: string;
|
140
|
+
readonly hbd_last_interest_payment: string;
|
141
|
+
readonly savings_hbd_balance: string | import('@hiveio/dhive').Asset;
|
142
|
+
readonly savings_hbd_seconds: string;
|
143
|
+
readonly savings_hbd_seconds_last_update: string;
|
144
|
+
readonly savings_hbd_last_interest_payment: string;
|
145
|
+
readonly savings_withdraw_requests: number;
|
146
|
+
readonly reward_hbd_balance: string | import('@hiveio/dhive').Asset;
|
147
|
+
readonly reward_hive_balance: string | import('@hiveio/dhive').Asset;
|
148
|
+
readonly reward_vesting_balance: string | import('@hiveio/dhive').Asset;
|
149
|
+
readonly reward_vesting_hive: string | import('@hiveio/dhive').Asset;
|
150
|
+
readonly curation_rewards: number | string;
|
151
|
+
readonly posting_rewards: number | string;
|
152
|
+
readonly vesting_shares: string | import('@hiveio/dhive').Asset;
|
153
|
+
readonly delegated_vesting_shares: string | import('@hiveio/dhive').Asset;
|
154
|
+
readonly received_vesting_shares: string | import('@hiveio/dhive').Asset;
|
155
|
+
readonly vesting_withdraw_rate: string | import('@hiveio/dhive').Asset;
|
156
|
+
readonly next_vesting_withdrawal: string;
|
157
|
+
readonly withdrawn: number | string;
|
158
|
+
readonly to_withdraw: number | string;
|
159
|
+
readonly withdraw_routes: number;
|
160
|
+
readonly proxied_vsf_votes: number[];
|
161
|
+
readonly witnesses_voted_for: number;
|
162
|
+
readonly average_bandwidth: number | string;
|
163
|
+
readonly lifetime_bandwidth: number | string;
|
164
|
+
readonly last_bandwidth_update: string;
|
165
|
+
readonly average_market_bandwidth: number | string;
|
166
|
+
readonly lifetime_market_bandwidth: number | string;
|
167
|
+
readonly last_market_bandwidth_update: string;
|
168
|
+
readonly last_post: string;
|
169
|
+
readonly last_root_post: string;
|
174
170
|
}, string[]>, "queryFn"> & {
|
175
171
|
queryFn?: import('@tanstack/query-core').QueryFunction<{
|
176
|
-
follow_stats: AccountFollowStats | undefined;
|
177
|
-
reputation: number;
|
178
|
-
profile: any;
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
[x: number]: boolean | undefined;
|
224
|
-
length?: boolean | undefined;
|
225
|
-
toString?: boolean | undefined;
|
226
|
-
toLocaleString?: boolean | undefined;
|
227
|
-
pop?: boolean | undefined;
|
228
|
-
push?: boolean | undefined;
|
229
|
-
concat?: boolean | undefined;
|
230
|
-
join?: boolean | undefined;
|
231
|
-
reverse?: boolean | undefined;
|
232
|
-
shift?: boolean | undefined;
|
233
|
-
slice?: boolean | undefined;
|
234
|
-
sort?: boolean | undefined;
|
235
|
-
splice?: boolean | undefined;
|
236
|
-
unshift?: boolean | undefined;
|
237
|
-
indexOf?: boolean | undefined;
|
238
|
-
lastIndexOf?: boolean | undefined;
|
239
|
-
every?: boolean | undefined;
|
240
|
-
some?: boolean | undefined;
|
241
|
-
forEach?: boolean | undefined;
|
242
|
-
map?: boolean | undefined;
|
243
|
-
filter?: boolean | undefined;
|
244
|
-
reduce?: boolean | undefined;
|
245
|
-
reduceRight?: boolean | undefined;
|
246
|
-
find?: boolean | undefined;
|
247
|
-
findIndex?: boolean | undefined;
|
248
|
-
fill?: boolean | undefined;
|
249
|
-
copyWithin?: boolean | undefined;
|
250
|
-
entries?: boolean | undefined;
|
251
|
-
keys?: boolean | undefined;
|
252
|
-
values?: boolean | undefined;
|
253
|
-
includes?: boolean | undefined;
|
254
|
-
flatMap?: boolean | undefined;
|
255
|
-
flat?: boolean | undefined;
|
256
|
-
[Symbol.iterator]?: boolean | undefined;
|
257
|
-
readonly [Symbol.unscopables]?: boolean | undefined;
|
258
|
-
at?: boolean | undefined;
|
172
|
+
readonly follow_stats: AccountFollowStats | undefined;
|
173
|
+
readonly reputation: number;
|
174
|
+
readonly profile: any;
|
175
|
+
readonly vesting_balance: string | import('@hiveio/dhive').Asset;
|
176
|
+
readonly transfer_history: any[];
|
177
|
+
readonly market_history: any[];
|
178
|
+
readonly post_history: any[];
|
179
|
+
readonly vote_history: any[];
|
180
|
+
readonly other_history: any[];
|
181
|
+
readonly witness_votes: string[];
|
182
|
+
readonly tags_usage: string[];
|
183
|
+
readonly guest_bloggers: string[];
|
184
|
+
readonly open_orders?: any[];
|
185
|
+
readonly comments?: any[];
|
186
|
+
readonly blog?: any[];
|
187
|
+
readonly feed?: any[];
|
188
|
+
readonly recent_replies?: any[];
|
189
|
+
readonly recommended?: any[];
|
190
|
+
readonly id: number;
|
191
|
+
readonly name: string;
|
192
|
+
readonly owner: import('@hiveio/dhive').Authority;
|
193
|
+
readonly active: import('@hiveio/dhive').Authority;
|
194
|
+
readonly posting: import('@hiveio/dhive').Authority;
|
195
|
+
readonly memo_key: string;
|
196
|
+
readonly json_metadata: string;
|
197
|
+
readonly posting_json_metadata: string;
|
198
|
+
readonly proxy: string;
|
199
|
+
readonly last_owner_update: string;
|
200
|
+
readonly last_account_update: string;
|
201
|
+
readonly created: string;
|
202
|
+
readonly mined: boolean;
|
203
|
+
readonly owner_challenged: boolean;
|
204
|
+
readonly active_challenged: boolean;
|
205
|
+
readonly last_owner_proved: string;
|
206
|
+
readonly last_active_proved: string;
|
207
|
+
readonly recovery_account: string;
|
208
|
+
readonly reset_account: string;
|
209
|
+
readonly last_account_recovery: string;
|
210
|
+
readonly comment_count: number;
|
211
|
+
readonly lifetime_vote_count: number;
|
212
|
+
readonly post_count: number;
|
213
|
+
readonly can_vote: boolean;
|
214
|
+
readonly voting_power: number;
|
215
|
+
readonly last_vote_time: string;
|
216
|
+
readonly voting_manabar: {
|
217
|
+
current_mana: string | number;
|
218
|
+
last_update_time: number;
|
259
219
|
};
|
260
|
-
|
220
|
+
readonly balance: string | import('@hiveio/dhive').Asset;
|
221
|
+
readonly savings_balance: string | import('@hiveio/dhive').Asset;
|
222
|
+
readonly hbd_balance: string | import('@hiveio/dhive').Asset;
|
223
|
+
readonly hbd_seconds: string;
|
224
|
+
readonly hbd_seconds_last_update: string;
|
225
|
+
readonly hbd_last_interest_payment: string;
|
226
|
+
readonly savings_hbd_balance: string | import('@hiveio/dhive').Asset;
|
227
|
+
readonly savings_hbd_seconds: string;
|
228
|
+
readonly savings_hbd_seconds_last_update: string;
|
229
|
+
readonly savings_hbd_last_interest_payment: string;
|
230
|
+
readonly savings_withdraw_requests: number;
|
231
|
+
readonly reward_hbd_balance: string | import('@hiveio/dhive').Asset;
|
232
|
+
readonly reward_hive_balance: string | import('@hiveio/dhive').Asset;
|
233
|
+
readonly reward_vesting_balance: string | import('@hiveio/dhive').Asset;
|
234
|
+
readonly reward_vesting_hive: string | import('@hiveio/dhive').Asset;
|
235
|
+
readonly curation_rewards: number | string;
|
236
|
+
readonly posting_rewards: number | string;
|
237
|
+
readonly vesting_shares: string | import('@hiveio/dhive').Asset;
|
238
|
+
readonly delegated_vesting_shares: string | import('@hiveio/dhive').Asset;
|
239
|
+
readonly received_vesting_shares: string | import('@hiveio/dhive').Asset;
|
240
|
+
readonly vesting_withdraw_rate: string | import('@hiveio/dhive').Asset;
|
241
|
+
readonly next_vesting_withdrawal: string;
|
242
|
+
readonly withdrawn: number | string;
|
243
|
+
readonly to_withdraw: number | string;
|
244
|
+
readonly withdraw_routes: number;
|
245
|
+
readonly proxied_vsf_votes: number[];
|
246
|
+
readonly witnesses_voted_for: number;
|
247
|
+
readonly average_bandwidth: number | string;
|
248
|
+
readonly lifetime_bandwidth: number | string;
|
249
|
+
readonly last_bandwidth_update: string;
|
250
|
+
readonly average_market_bandwidth: number | string;
|
251
|
+
readonly lifetime_market_bandwidth: number | string;
|
252
|
+
readonly last_market_bandwidth_update: string;
|
253
|
+
readonly last_post: string;
|
254
|
+
readonly last_root_post: string;
|
261
255
|
}, string[], never> | undefined;
|
262
256
|
} & {
|
263
257
|
queryKey: string[] & {
|
264
258
|
[dataTagSymbol]: {
|
265
|
-
follow_stats: AccountFollowStats | undefined;
|
266
|
-
reputation: number;
|
267
|
-
profile: any;
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
[x: number]: boolean | undefined;
|
313
|
-
length?: boolean | undefined;
|
314
|
-
toString?: boolean | undefined;
|
315
|
-
toLocaleString?: boolean | undefined;
|
316
|
-
pop?: boolean | undefined;
|
317
|
-
push?: boolean | undefined;
|
318
|
-
concat?: boolean | undefined;
|
319
|
-
join?: boolean | undefined;
|
320
|
-
reverse?: boolean | undefined;
|
321
|
-
shift?: boolean | undefined;
|
322
|
-
slice?: boolean | undefined;
|
323
|
-
sort?: boolean | undefined;
|
324
|
-
splice?: boolean | undefined;
|
325
|
-
unshift?: boolean | undefined;
|
326
|
-
indexOf?: boolean | undefined;
|
327
|
-
lastIndexOf?: boolean | undefined;
|
328
|
-
every?: boolean | undefined;
|
329
|
-
some?: boolean | undefined;
|
330
|
-
forEach?: boolean | undefined;
|
331
|
-
map?: boolean | undefined;
|
332
|
-
filter?: boolean | undefined;
|
333
|
-
reduce?: boolean | undefined;
|
334
|
-
reduceRight?: boolean | undefined;
|
335
|
-
find?: boolean | undefined;
|
336
|
-
findIndex?: boolean | undefined;
|
337
|
-
fill?: boolean | undefined;
|
338
|
-
copyWithin?: boolean | undefined;
|
339
|
-
entries?: boolean | undefined;
|
340
|
-
keys?: boolean | undefined;
|
341
|
-
values?: boolean | undefined;
|
342
|
-
includes?: boolean | undefined;
|
343
|
-
flatMap?: boolean | undefined;
|
344
|
-
flat?: boolean | undefined;
|
345
|
-
[Symbol.iterator]?: boolean | undefined;
|
346
|
-
readonly [Symbol.unscopables]?: boolean | undefined;
|
347
|
-
at?: boolean | undefined;
|
259
|
+
readonly follow_stats: AccountFollowStats | undefined;
|
260
|
+
readonly reputation: number;
|
261
|
+
readonly profile: any;
|
262
|
+
readonly vesting_balance: string | import('@hiveio/dhive').Asset;
|
263
|
+
readonly transfer_history: any[];
|
264
|
+
readonly market_history: any[];
|
265
|
+
readonly post_history: any[];
|
266
|
+
readonly vote_history: any[];
|
267
|
+
readonly other_history: any[];
|
268
|
+
readonly witness_votes: string[];
|
269
|
+
readonly tags_usage: string[];
|
270
|
+
readonly guest_bloggers: string[];
|
271
|
+
readonly open_orders?: any[];
|
272
|
+
readonly comments?: any[];
|
273
|
+
readonly blog?: any[];
|
274
|
+
readonly feed?: any[];
|
275
|
+
readonly recent_replies?: any[];
|
276
|
+
readonly recommended?: any[];
|
277
|
+
readonly id: number;
|
278
|
+
readonly name: string;
|
279
|
+
readonly owner: import('@hiveio/dhive').Authority;
|
280
|
+
readonly active: import('@hiveio/dhive').Authority;
|
281
|
+
readonly posting: import('@hiveio/dhive').Authority;
|
282
|
+
readonly memo_key: string;
|
283
|
+
readonly json_metadata: string;
|
284
|
+
readonly posting_json_metadata: string;
|
285
|
+
readonly proxy: string;
|
286
|
+
readonly last_owner_update: string;
|
287
|
+
readonly last_account_update: string;
|
288
|
+
readonly created: string;
|
289
|
+
readonly mined: boolean;
|
290
|
+
readonly owner_challenged: boolean;
|
291
|
+
readonly active_challenged: boolean;
|
292
|
+
readonly last_owner_proved: string;
|
293
|
+
readonly last_active_proved: string;
|
294
|
+
readonly recovery_account: string;
|
295
|
+
readonly reset_account: string;
|
296
|
+
readonly last_account_recovery: string;
|
297
|
+
readonly comment_count: number;
|
298
|
+
readonly lifetime_vote_count: number;
|
299
|
+
readonly post_count: number;
|
300
|
+
readonly can_vote: boolean;
|
301
|
+
readonly voting_power: number;
|
302
|
+
readonly last_vote_time: string;
|
303
|
+
readonly voting_manabar: {
|
304
|
+
current_mana: string | number;
|
305
|
+
last_update_time: number;
|
348
306
|
};
|
349
|
-
|
307
|
+
readonly balance: string | import('@hiveio/dhive').Asset;
|
308
|
+
readonly savings_balance: string | import('@hiveio/dhive').Asset;
|
309
|
+
readonly hbd_balance: string | import('@hiveio/dhive').Asset;
|
310
|
+
readonly hbd_seconds: string;
|
311
|
+
readonly hbd_seconds_last_update: string;
|
312
|
+
readonly hbd_last_interest_payment: string;
|
313
|
+
readonly savings_hbd_balance: string | import('@hiveio/dhive').Asset;
|
314
|
+
readonly savings_hbd_seconds: string;
|
315
|
+
readonly savings_hbd_seconds_last_update: string;
|
316
|
+
readonly savings_hbd_last_interest_payment: string;
|
317
|
+
readonly savings_withdraw_requests: number;
|
318
|
+
readonly reward_hbd_balance: string | import('@hiveio/dhive').Asset;
|
319
|
+
readonly reward_hive_balance: string | import('@hiveio/dhive').Asset;
|
320
|
+
readonly reward_vesting_balance: string | import('@hiveio/dhive').Asset;
|
321
|
+
readonly reward_vesting_hive: string | import('@hiveio/dhive').Asset;
|
322
|
+
readonly curation_rewards: number | string;
|
323
|
+
readonly posting_rewards: number | string;
|
324
|
+
readonly vesting_shares: string | import('@hiveio/dhive').Asset;
|
325
|
+
readonly delegated_vesting_shares: string | import('@hiveio/dhive').Asset;
|
326
|
+
readonly received_vesting_shares: string | import('@hiveio/dhive').Asset;
|
327
|
+
readonly vesting_withdraw_rate: string | import('@hiveio/dhive').Asset;
|
328
|
+
readonly next_vesting_withdrawal: string;
|
329
|
+
readonly withdrawn: number | string;
|
330
|
+
readonly to_withdraw: number | string;
|
331
|
+
readonly withdraw_routes: number;
|
332
|
+
readonly proxied_vsf_votes: number[];
|
333
|
+
readonly witnesses_voted_for: number;
|
334
|
+
readonly average_bandwidth: number | string;
|
335
|
+
readonly lifetime_bandwidth: number | string;
|
336
|
+
readonly last_bandwidth_update: string;
|
337
|
+
readonly average_market_bandwidth: number | string;
|
338
|
+
readonly lifetime_market_bandwidth: number | string;
|
339
|
+
readonly last_market_bandwidth_update: string;
|
340
|
+
readonly last_post: string;
|
341
|
+
readonly last_root_post: string;
|
350
342
|
};
|
351
343
|
[dataTagErrorSymbol]: Error;
|
352
344
|
};
|
@@ -8,6 +8,8 @@ export declare enum ROLES {
|
|
8
8
|
}
|
9
9
|
export declare const roleMap: Record<string, string[]>;
|
10
10
|
export type CommunityTeam = Array<Array<string>>;
|
11
|
+
export type CommunityRole = (typeof ROLES)[keyof typeof ROLES];
|
12
|
+
export type CommunityType = "Topic" | "Journal" | "Council";
|
11
13
|
export interface Community {
|
12
14
|
about: string;
|
13
15
|
admins?: string[];
|
@@ -1,6 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
export type CommunityRole = (typeof ROLES)[keyof typeof ROLES];
|
3
|
-
export type CommunityType = "Topic" | "Journal" | "Council";
|
1
|
+
import { CommunityRole, CommunityType } from '../types';
|
4
2
|
export declare function getCommunityType(name: string, type_id: number): CommunityType;
|
5
3
|
export declare function getCommunityPermissions({ communityType, userRole, subscribed, }: {
|
6
4
|
communityType: CommunityType;
|