@ecency/sdk 1.0.34 → 1.0.36
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 +168 -92
- package/dist/index.d.ts +1 -0
- package/dist/modules/accounts/queries/check-username-wallets-pending-query-options.d.ts +4 -4
- package/dist/modules/analytics/mutations/use-record-activity.d.ts +1 -1
- package/dist/modules/integrations/3speak/index.d.ts +6 -0
- package/dist/modules/integrations/3speak/queries/get-account-token-query-options.d.ts +8 -0
- package/dist/modules/integrations/3speak/queries/get-account-videos-query-options.d.ts +9 -0
- package/dist/modules/integrations/3speak/queries/index.d.ts +2 -0
- package/dist/modules/integrations/3speak/types/index.d.ts +1 -0
- package/dist/modules/integrations/3speak/types/three-speak-video.d.ts +52 -0
- package/dist/modules/integrations/hivesigner/index.d.ts +5 -0
- package/dist/modules/integrations/hivesigner/queries/get-decode-memo-query-options.d.ts +8 -0
- package/dist/modules/integrations/hivesigner/queries/index.d.ts +1 -0
- package/dist/modules/integrations/index.d.ts +2 -0
- 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
|
5
|
-
import { Client as
|
6
|
-
import
|
7
|
-
class
|
1
|
+
var b = Object.defineProperty;
|
2
|
+
var Q = (e, t, n) => t in e ? b(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
3
|
+
var w = (e, t, n) => Q(e, typeof t != "symbol" ? t + "" : t, n);
|
4
|
+
import { QueryClient as C, useMutation as l, useQuery as K, useInfiniteQuery as S, queryOptions as y, infiniteQueryOptions as _ } from "@tanstack/react-query";
|
5
|
+
import { Client as k, PrivateKey as h, cryptoUtils as T } from "@hiveio/dhive";
|
6
|
+
import g from "hivesigner";
|
7
|
+
class j {
|
8
8
|
constructor() {
|
9
|
-
|
9
|
+
w(this, "length", 0);
|
10
10
|
}
|
11
11
|
clear() {
|
12
12
|
throw new Error("Method not implemented.");
|
@@ -26,9 +26,9 @@ class k {
|
|
26
26
|
}
|
27
27
|
const o = {
|
28
28
|
privateApiHost: "https://ecency.com",
|
29
|
-
storage: typeof window > "u" ? new
|
29
|
+
storage: typeof window > "u" ? new j() : window.localStorage,
|
30
30
|
storagePrefix: "ecency",
|
31
|
-
hiveClient: new
|
31
|
+
hiveClient: new k(
|
32
32
|
[
|
33
33
|
"https://api.hive.blog",
|
34
34
|
"https://api.deathwing.me",
|
@@ -49,17 +49,17 @@ const o = {
|
|
49
49
|
}
|
50
50
|
),
|
51
51
|
heliusApiKey: void 0,
|
52
|
-
queryClient: new
|
52
|
+
queryClient: new C(),
|
53
53
|
plausibleHost: "https://pl.ecency.com"
|
54
54
|
};
|
55
|
-
var
|
55
|
+
var v;
|
56
56
|
((e) => {
|
57
57
|
function t(n) {
|
58
58
|
o.queryClient = n;
|
59
59
|
}
|
60
60
|
e.setQueryClient = t;
|
61
|
-
})(
|
62
|
-
function
|
61
|
+
})(v || (v = {}));
|
62
|
+
function A(e) {
|
63
63
|
let t = atob(e);
|
64
64
|
if (t[0] === "{")
|
65
65
|
return JSON.parse(t);
|
@@ -69,32 +69,32 @@ const p = (e) => {
|
|
69
69
|
const t = o.storage.getItem(
|
70
70
|
o.storagePrefix + "_user_" + e
|
71
71
|
);
|
72
|
-
return
|
72
|
+
return A(JSON.parse(t));
|
73
73
|
} catch (t) {
|
74
74
|
console.error(t);
|
75
75
|
return;
|
76
76
|
}
|
77
|
-
},
|
78
|
-
function
|
79
|
-
return
|
77
|
+
}, O = (e) => p(e) && p(e).accessToken, D = (e) => p(e) && p(e).postingKey, W = (e) => p(e) && p(e).refreshToken;
|
78
|
+
function I(e = [], t, n) {
|
79
|
+
return l({
|
80
80
|
mutationKey: [...e, t],
|
81
81
|
mutationFn: async (r) => {
|
82
82
|
if (!t)
|
83
83
|
throw new Error(
|
84
84
|
"[Core][Broadcast] Attempted to call broadcast API with anon user"
|
85
85
|
);
|
86
|
-
const a =
|
86
|
+
const a = D(t);
|
87
87
|
if (a) {
|
88
|
-
const
|
88
|
+
const u = h.fromString(a);
|
89
89
|
return o.hiveClient.broadcast.sendOperations(
|
90
90
|
n(r),
|
91
|
-
|
91
|
+
u
|
92
92
|
);
|
93
93
|
}
|
94
|
-
let
|
95
|
-
if (
|
96
|
-
return (await new
|
97
|
-
accessToken:
|
94
|
+
let c = O(t);
|
95
|
+
if (c)
|
96
|
+
return (await new g.Client({
|
97
|
+
accessToken: c
|
98
98
|
}).broadcast(n(r))).result;
|
99
99
|
throw new Error(
|
100
100
|
"[SDK][Broadcast] – cannot broadcast w/o posting key or token"
|
@@ -102,8 +102,8 @@ function j(e = [], t, n) {
|
|
102
102
|
}
|
103
103
|
});
|
104
104
|
}
|
105
|
-
function
|
106
|
-
return new
|
105
|
+
function $() {
|
106
|
+
return new C({
|
107
107
|
defaultOptions: {
|
108
108
|
queries: {
|
109
109
|
// With SSR, we usually want to set some default staleTime
|
@@ -115,46 +115,46 @@ function x() {
|
|
115
115
|
}
|
116
116
|
});
|
117
117
|
}
|
118
|
-
const
|
119
|
-
var
|
118
|
+
const s = () => o.queryClient;
|
119
|
+
var m;
|
120
120
|
((e) => {
|
121
121
|
function t(i) {
|
122
|
-
return
|
122
|
+
return s().getQueryData(i);
|
123
123
|
}
|
124
124
|
e.getQueryData = t;
|
125
125
|
function n(i) {
|
126
|
-
return
|
126
|
+
return s().getQueryData(i);
|
127
127
|
}
|
128
128
|
e.getInfiniteQueryData = n;
|
129
129
|
async function r(i) {
|
130
|
-
return await
|
130
|
+
return await s().prefetchQuery(i), t(i.queryKey);
|
131
131
|
}
|
132
132
|
e.prefetchQuery = r;
|
133
133
|
async function a(i) {
|
134
|
-
return await
|
134
|
+
return await s().prefetchInfiniteQuery(i), n(i.queryKey);
|
135
135
|
}
|
136
136
|
e.prefetchInfiniteQuery = a;
|
137
|
-
function
|
137
|
+
function c(i) {
|
138
138
|
return {
|
139
139
|
prefetch: () => r(i),
|
140
140
|
getData: () => t(i.queryKey),
|
141
|
-
useClientQuery: () =>
|
142
|
-
fetchAndGet: () =>
|
141
|
+
useClientQuery: () => K(i),
|
142
|
+
fetchAndGet: () => s().fetchQuery(i)
|
143
143
|
};
|
144
144
|
}
|
145
|
-
e.generateClientServerQuery =
|
146
|
-
function
|
145
|
+
e.generateClientServerQuery = c;
|
146
|
+
function u(i) {
|
147
147
|
return {
|
148
148
|
prefetch: () => a(i),
|
149
149
|
getData: () => n(i.queryKey),
|
150
|
-
useClientQuery: () =>
|
151
|
-
fetchAndGet: () =>
|
150
|
+
useClientQuery: () => S(i),
|
151
|
+
fetchAndGet: () => s().fetchInfiniteQuery(i)
|
152
152
|
};
|
153
153
|
}
|
154
|
-
e.generateClientServerInfiniteQuery =
|
155
|
-
})(
|
156
|
-
function
|
157
|
-
return
|
154
|
+
e.generateClientServerInfiniteQuery = u;
|
155
|
+
})(m || (m = {}));
|
156
|
+
function G(e) {
|
157
|
+
return I(
|
158
158
|
["accounts", "update"],
|
159
159
|
e,
|
160
160
|
({
|
@@ -176,8 +176,8 @@ function E(e) {
|
|
176
176
|
]
|
177
177
|
);
|
178
178
|
}
|
179
|
-
function
|
180
|
-
return
|
179
|
+
function R(e) {
|
180
|
+
return y({
|
181
181
|
queryKey: ["get-account-full", e],
|
182
182
|
queryFn: async () => {
|
183
183
|
if (!e)
|
@@ -213,8 +213,8 @@ function M(e) {
|
|
213
213
|
staleTime: 6e4
|
214
214
|
});
|
215
215
|
}
|
216
|
-
function
|
217
|
-
return
|
216
|
+
function V(e, t = 5, n = []) {
|
217
|
+
return y({
|
218
218
|
queryKey: ["accounts", "search", e, n],
|
219
219
|
enabled: !!e,
|
220
220
|
queryFn: async () => (await o.hiveClient.database.call(
|
@@ -225,8 +225,8 @@ function U(e, t = 5, n = []) {
|
|
225
225
|
)
|
226
226
|
});
|
227
227
|
}
|
228
|
-
function
|
229
|
-
return
|
228
|
+
function L(e) {
|
229
|
+
return y({
|
230
230
|
queryKey: ["accounts", "check-wallet-pending", e],
|
231
231
|
queryFn: async () => await (await fetch(
|
232
232
|
o.privateApiHost + "/private-api/wallets-chkuser",
|
@@ -244,8 +244,8 @@ function W(e) {
|
|
244
244
|
refetchOnMount: !0
|
245
245
|
});
|
246
246
|
}
|
247
|
-
function
|
248
|
-
return
|
247
|
+
function X(e) {
|
248
|
+
return l({
|
249
249
|
mutationKey: ["operations", "sign", e],
|
250
250
|
mutationFn: ({
|
251
251
|
operation: t,
|
@@ -254,7 +254,7 @@ function G(e) {
|
|
254
254
|
if (!e)
|
255
255
|
throw new Error("[Operations][Sign] – cannot sign op with anon user");
|
256
256
|
let r;
|
257
|
-
return n.split(" ").length === 12 ? r =
|
257
|
+
return n.split(" ").length === 12 ? r = h.fromLogin(e, n, "active") : T.isWif(n) ? r = h.fromString(n) : r = h.from(n), o.hiveClient.broadcast.sendOperations(
|
258
258
|
[t],
|
259
259
|
r
|
260
260
|
);
|
@@ -269,43 +269,43 @@ function F() {
|
|
269
269
|
});
|
270
270
|
});
|
271
271
|
}
|
272
|
-
const
|
273
|
-
var
|
274
|
-
(
|
272
|
+
const q = (e, t, n, r = null) => new Promise((a, c) => {
|
273
|
+
var u;
|
274
|
+
(u = window.hive_keychain) == null || u.requestBroadcast(
|
275
275
|
e,
|
276
276
|
t,
|
277
277
|
n,
|
278
278
|
(i) => {
|
279
|
-
i.success ||
|
279
|
+
i.success || c({ message: "Operation cancelled" }), a(i);
|
280
280
|
},
|
281
281
|
r
|
282
282
|
);
|
283
|
-
}),
|
283
|
+
}), Y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
284
284
|
__proto__: null,
|
285
|
-
broadcast:
|
285
|
+
broadcast: q,
|
286
286
|
handshake: F
|
287
287
|
}, Symbol.toStringTag, { value: "Module" }));
|
288
|
-
function
|
289
|
-
return
|
288
|
+
function Z(e, t = "Active") {
|
289
|
+
return l({
|
290
290
|
mutationKey: ["operations", "sign-keychain", e],
|
291
291
|
mutationFn: ({ operation: n }) => {
|
292
292
|
if (!e)
|
293
293
|
throw new Error(
|
294
294
|
"[SDK][Keychain] – cannot sign operation with anon user"
|
295
295
|
);
|
296
|
-
return
|
296
|
+
return q(e, [n], t);
|
297
297
|
}
|
298
298
|
});
|
299
299
|
}
|
300
|
-
function
|
301
|
-
return
|
300
|
+
function ee(e = "/") {
|
301
|
+
return l({
|
302
302
|
mutationKey: ["operations", "sign-hivesigner", e],
|
303
|
-
mutationFn: async ({ operation: t }) =>
|
303
|
+
mutationFn: async ({ operation: t }) => g.sendOperation(t, { callback: e }, () => {
|
304
304
|
})
|
305
305
|
});
|
306
306
|
}
|
307
|
-
function
|
308
|
-
return
|
307
|
+
function te(e, t) {
|
308
|
+
return y({
|
309
309
|
queryKey: ["hive-engine", "tokens-list", e, t],
|
310
310
|
queryFn: async () => (await (await fetch(
|
311
311
|
`${o.privateApiHost}/private-api/engine-api`,
|
@@ -329,8 +329,8 @@ function L(e, t) {
|
|
329
329
|
)).json()).result
|
330
330
|
});
|
331
331
|
}
|
332
|
-
function
|
333
|
-
return
|
332
|
+
function ne(e = 20) {
|
333
|
+
return _({
|
334
334
|
queryKey: ["posts", "trending-tags"],
|
335
335
|
queryFn: async ({ pageParam: { afterTag: t } }) => o.hiveClient.database.call("get_trending_tags", [t, e]).then(
|
336
336
|
(n) => n.filter((r) => r.name !== "").filter((r) => !r.name.startsWith("hive-")).map((r) => r.name)
|
@@ -343,8 +343,8 @@ function V(e = 20) {
|
|
343
343
|
refetchOnMount: !0
|
344
344
|
});
|
345
345
|
}
|
346
|
-
function
|
347
|
-
return
|
346
|
+
function P(e, t) {
|
347
|
+
return l({
|
348
348
|
mutationKey: ["analytics", t],
|
349
349
|
mutationFn: async () => {
|
350
350
|
if (!t)
|
@@ -366,30 +366,106 @@ function D(e, t) {
|
|
366
366
|
}
|
367
367
|
});
|
368
368
|
}
|
369
|
-
const
|
369
|
+
const re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
370
370
|
__proto__: null,
|
371
|
-
useRecordActivity:
|
371
|
+
useRecordActivity: P
|
372
372
|
}, Symbol.toStringTag, { value: "Module" }));
|
373
|
+
function M(e, t) {
|
374
|
+
return y({
|
375
|
+
queryKey: ["integrations", "hivesigner", "decode-memo", e],
|
376
|
+
queryFn: async () => {
|
377
|
+
const n = O(e);
|
378
|
+
if (n)
|
379
|
+
return new g.Client({
|
380
|
+
accessToken: n
|
381
|
+
}).decode(t);
|
382
|
+
}
|
383
|
+
});
|
384
|
+
}
|
385
|
+
const N = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
386
|
+
__proto__: null,
|
387
|
+
getDecodeMemoQueryOptions: M
|
388
|
+
}, Symbol.toStringTag, { value: "Module" })), B = {
|
389
|
+
queries: N
|
390
|
+
};
|
391
|
+
function d(e) {
|
392
|
+
return y({
|
393
|
+
queryKey: ["integrations", "3speak", "authenticate", e],
|
394
|
+
enabled: !!e,
|
395
|
+
queryFn: async () => {
|
396
|
+
if (!e)
|
397
|
+
throw new Error("[SDK][Integrations][3Speak] – anon user");
|
398
|
+
const t = await fetch(
|
399
|
+
`https://studio.3speak.tv/mobile/login?username=${e}&hivesigner=true`,
|
400
|
+
{
|
401
|
+
headers: {
|
402
|
+
"Content-Type": "application/json"
|
403
|
+
}
|
404
|
+
}
|
405
|
+
), n = B.queries.getDecodeMemoQueryOptions(
|
406
|
+
e,
|
407
|
+
(await t.json()).memo
|
408
|
+
);
|
409
|
+
await s().prefetchQuery(n);
|
410
|
+
const { memoDecoded: r } = s().getQueryData(
|
411
|
+
n.queryKey
|
412
|
+
);
|
413
|
+
return r.replace("#", "");
|
414
|
+
}
|
415
|
+
});
|
416
|
+
}
|
417
|
+
function H(e) {
|
418
|
+
return y({
|
419
|
+
queryKey: ["integrations", "3speak", "videos", e],
|
420
|
+
enabled: !!e,
|
421
|
+
queryFn: async () => {
|
422
|
+
await s().prefetchQuery(
|
423
|
+
d(e)
|
424
|
+
);
|
425
|
+
const t = s().getQueryData(
|
426
|
+
d(e).queryKey
|
427
|
+
);
|
428
|
+
return await (await fetch(
|
429
|
+
"https://studio.3speak.tv/mobile/api/my-videos",
|
430
|
+
{
|
431
|
+
headers: {
|
432
|
+
"Content-Type": "application/json",
|
433
|
+
Authorization: `Bearer ${t}`
|
434
|
+
}
|
435
|
+
}
|
436
|
+
)).json();
|
437
|
+
}
|
438
|
+
});
|
439
|
+
}
|
440
|
+
const E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
441
|
+
__proto__: null,
|
442
|
+
getAccountTokenQueryOptions: d,
|
443
|
+
getAccountVideosQueryOptions: H
|
444
|
+
}, Symbol.toStringTag, { value: "Module" })), ie = {
|
445
|
+
queries: E
|
446
|
+
};
|
373
447
|
export {
|
374
448
|
o as CONFIG,
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
449
|
+
v as ConfigManager,
|
450
|
+
re as EcencyAnalytics,
|
451
|
+
m as EcencyQueriesManager,
|
452
|
+
B as HiveSignerIntegration,
|
453
|
+
Y as Keychain,
|
454
|
+
ie as ThreeSpeakIntegration,
|
455
|
+
L as checkUsernameWalletsPendingQueryOptions,
|
456
|
+
O as getAccessToken,
|
457
|
+
R as getAccountFullQueryOptions,
|
458
|
+
te as getHiveEngineTokensListQueryOptions,
|
459
|
+
D as getPostingKey,
|
460
|
+
s as getQueryClient,
|
461
|
+
W as getRefreshToken,
|
462
|
+
V as getSearchAccountsByUsernameQueryOptions,
|
463
|
+
ne as getTrendingTagsQueryOptions,
|
388
464
|
p as getUser,
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
465
|
+
$ as makeQueryClient,
|
466
|
+
G as useAccountUpdate,
|
467
|
+
I as useBroadcastMutation,
|
468
|
+
ee as useSignOperationByHivesigner,
|
469
|
+
X as useSignOperationByKey,
|
470
|
+
Z as useSignOperationByKeychain
|
395
471
|
};
|
package/dist/index.d.ts
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
export declare function checkUsernameWalletsPendingQueryOptions(username: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
|
2
|
-
|
2
|
+
exist: boolean;
|
3
3
|
}, Error, {
|
4
|
-
|
4
|
+
exist: boolean;
|
5
5
|
}, string[]>, "queryFn"> & {
|
6
6
|
queryFn?: import('@tanstack/query-core').QueryFunction<{
|
7
|
-
|
7
|
+
exist: boolean;
|
8
8
|
}, string[], never> | undefined;
|
9
9
|
} & {
|
10
10
|
queryKey: string[] & {
|
11
11
|
[dataTagSymbol]: {
|
12
|
-
|
12
|
+
exist: boolean;
|
13
13
|
};
|
14
14
|
[dataTagErrorSymbol]: Error;
|
15
15
|
};
|
@@ -1,3 +1,3 @@
|
|
1
|
-
type ActivityType = "post-created" | "post-updated" | "post-scheduled" | "draft-created";
|
1
|
+
type ActivityType = "post-created" | "post-updated" | "post-scheduled" | "draft-created" | "video-published" | "signed-up-with-wallets" | "signed-up-with-email";
|
2
2
|
export declare function useRecordActivity(username: string | undefined, activityType: ActivityType): import('@tanstack/react-query').UseMutationResult<void, Error, void, unknown>;
|
3
3
|
export {};
|
@@ -0,0 +1,8 @@
|
|
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
|
+
};
|
@@ -0,0 +1,9 @@
|
|
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
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './three-speak-video';
|
@@ -0,0 +1,52 @@
|
|
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
|
+
}
|
@@ -0,0 +1,8 @@
|
|
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
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './get-decode-memo-query-options';
|