@ecency/sdk 1.5.10 → 1.5.11
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/browser/index.d.ts +174 -108
- package/dist/browser/index.js +255 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.cjs +260 -0
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.mjs +255 -1
- package/dist/node/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.d.ts
CHANGED
|
@@ -28,6 +28,23 @@ interface AuthContext {
|
|
|
28
28
|
broadcast?: (operations: Operation[], authority?: "active" | "posting" | "owner" | "memo") => Promise<unknown>;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
/**
|
|
32
|
+
* Generic pagination metadata for wrapped API responses
|
|
33
|
+
*/
|
|
34
|
+
interface PaginationMeta {
|
|
35
|
+
total: number;
|
|
36
|
+
limit: number;
|
|
37
|
+
offset: number;
|
|
38
|
+
has_next: boolean;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Generic wrapped response with pagination metadata
|
|
42
|
+
*/
|
|
43
|
+
interface WrappedResponse<T> {
|
|
44
|
+
data: T[];
|
|
45
|
+
pagination: PaginationMeta;
|
|
46
|
+
}
|
|
47
|
+
|
|
31
48
|
interface AccountFollowStats {
|
|
32
49
|
follower_count: number;
|
|
33
50
|
following_count: number;
|
|
@@ -792,6 +809,113 @@ declare function getAccountSubscriptionsQueryOptions(username: string | undefine
|
|
|
792
809
|
};
|
|
793
810
|
};
|
|
794
811
|
|
|
812
|
+
declare function useBroadcastMutation<T>(mutationKey: MutationKey | undefined, username: string | undefined, operations: (payload: T) => Operation[], onSuccess?: UseMutationOptions<unknown, Error, T>["onSuccess"], auth?: AuthContext): _tanstack_react_query.UseMutationResult<unknown, Error, T, unknown>;
|
|
813
|
+
|
|
814
|
+
declare function broadcastJson<T>(username: string | undefined, id: string, payload: T, auth?: AuthContext): Promise<any>;
|
|
815
|
+
|
|
816
|
+
declare const CONFIG: {
|
|
817
|
+
privateApiHost: string;
|
|
818
|
+
imageHost: string;
|
|
819
|
+
hiveClient: Client;
|
|
820
|
+
heliusApiKey: string | undefined;
|
|
821
|
+
queryClient: QueryClient;
|
|
822
|
+
plausibleHost: string;
|
|
823
|
+
spkNode: string;
|
|
824
|
+
dmcaAccounts: string[];
|
|
825
|
+
dmcaTags: string[];
|
|
826
|
+
dmcaPatterns: string[];
|
|
827
|
+
dmcaTagRegexes: RegExp[];
|
|
828
|
+
dmcaPatternRegexes: RegExp[];
|
|
829
|
+
_dmcaInitialized: boolean;
|
|
830
|
+
};
|
|
831
|
+
declare namespace ConfigManager {
|
|
832
|
+
function setQueryClient(client: QueryClient): void;
|
|
833
|
+
/**
|
|
834
|
+
* Set the private API host
|
|
835
|
+
* @param host - The private API host URL (e.g., "https://ecency.com" or "" for relative URLs)
|
|
836
|
+
*/
|
|
837
|
+
function setPrivateApiHost(host: string): void;
|
|
838
|
+
/**
|
|
839
|
+
* Get a validated base URL for API requests
|
|
840
|
+
* Returns a valid base URL that can be used with new URL(path, baseUrl)
|
|
841
|
+
*
|
|
842
|
+
* Priority:
|
|
843
|
+
* 1. CONFIG.privateApiHost if set (dev/staging or explicit config)
|
|
844
|
+
* 2. window.location.origin if in browser (production with relative URLs)
|
|
845
|
+
* 3. 'https://ecency.com' as fallback for SSR (production default)
|
|
846
|
+
*
|
|
847
|
+
* @returns A valid base URL string
|
|
848
|
+
* @throws Never throws - always returns a valid URL
|
|
849
|
+
*/
|
|
850
|
+
function getValidatedBaseUrl(): string;
|
|
851
|
+
/**
|
|
852
|
+
* Set the image host
|
|
853
|
+
* @param host - The image host URL (e.g., "https://images.ecency.com")
|
|
854
|
+
*/
|
|
855
|
+
function setImageHost(host: string): void;
|
|
856
|
+
/**
|
|
857
|
+
* Set DMCA filtering lists
|
|
858
|
+
* @param accounts - List of account usernames to filter (plain strings)
|
|
859
|
+
* @param tags - List of tag patterns (regex strings) to filter
|
|
860
|
+
* @param patterns - List of post patterns (plain strings) like "@author/permlink" for exact matching
|
|
861
|
+
*/
|
|
862
|
+
function setDmcaLists(accounts?: string[], tags?: string[], patterns?: string[]): void;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
declare function makeQueryClient(): QueryClient;
|
|
866
|
+
declare const getQueryClient: () => QueryClient;
|
|
867
|
+
declare namespace EcencyQueriesManager {
|
|
868
|
+
function getQueryData<T>(queryKey: QueryKey): T | undefined;
|
|
869
|
+
function getInfiniteQueryData<T>(queryKey: QueryKey): InfiniteData<T, unknown> | undefined;
|
|
870
|
+
function prefetchQuery<T>(options: UseQueryOptions<T>): Promise<T | undefined>;
|
|
871
|
+
function prefetchInfiniteQuery<T, P>(options: UseInfiniteQueryOptions<T, Error, InfiniteData<T>, QueryKey, P>): Promise<InfiniteData<T, unknown> | undefined>;
|
|
872
|
+
function generateClientServerQuery<T>(options: UseQueryOptions<T>): {
|
|
873
|
+
prefetch: () => Promise<T | undefined>;
|
|
874
|
+
getData: () => T | undefined;
|
|
875
|
+
useClientQuery: () => _tanstack_react_query.UseQueryResult<_tanstack_react_query.NoInfer<T>, Error>;
|
|
876
|
+
fetchAndGet: () => Promise<T>;
|
|
877
|
+
};
|
|
878
|
+
function generateClientServerInfiniteQuery<T, P>(options: UseInfiniteQueryOptions<T, Error, InfiniteData<T>, QueryKey, P>): {
|
|
879
|
+
prefetch: () => Promise<InfiniteData<T, unknown> | undefined>;
|
|
880
|
+
getData: () => InfiniteData<T, unknown> | undefined;
|
|
881
|
+
useClientQuery: () => _tanstack_react_query.UseInfiniteQueryResult<InfiniteData<T, unknown>, Error>;
|
|
882
|
+
fetchAndGet: () => Promise<InfiniteData<T, P>>;
|
|
883
|
+
};
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
declare function getDynamicPropsQueryOptions(): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<DynamicProps, Error, DynamicProps, string[]>, "queryFn"> & {
|
|
887
|
+
queryFn?: _tanstack_react_query.QueryFunction<DynamicProps, string[], never> | undefined;
|
|
888
|
+
} & {
|
|
889
|
+
queryKey: string[] & {
|
|
890
|
+
[dataTagSymbol]: DynamicProps;
|
|
891
|
+
[dataTagErrorSymbol]: Error;
|
|
892
|
+
};
|
|
893
|
+
};
|
|
894
|
+
|
|
895
|
+
declare function encodeObj(o: any): string;
|
|
896
|
+
declare function decodeObj(o: any): any;
|
|
897
|
+
|
|
898
|
+
declare enum Symbol {
|
|
899
|
+
HIVE = "HIVE",
|
|
900
|
+
HBD = "HBD",
|
|
901
|
+
VESTS = "VESTS",
|
|
902
|
+
SPK = "SPK"
|
|
903
|
+
}
|
|
904
|
+
declare enum NaiMap {
|
|
905
|
+
"@@000000021" = "HIVE",
|
|
906
|
+
"@@000000013" = "HBD",
|
|
907
|
+
"@@000000037" = "VESTS"
|
|
908
|
+
}
|
|
909
|
+
interface Asset {
|
|
910
|
+
amount: number;
|
|
911
|
+
symbol: Symbol;
|
|
912
|
+
}
|
|
913
|
+
declare function parseAsset(sval: string | SMTAsset): Asset;
|
|
914
|
+
|
|
915
|
+
declare function getBoundFetch(): typeof fetch;
|
|
916
|
+
|
|
917
|
+
declare function isCommunity(value: unknown): boolean;
|
|
918
|
+
|
|
795
919
|
declare function getActiveAccountBookmarksQueryOptions(activeUsername: string | undefined, code: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountBookmark[], Error, AccountBookmark[], (string | undefined)[]>, "queryFn"> & {
|
|
796
920
|
queryFn?: _tanstack_react_query.QueryFunction<AccountBookmark[], (string | undefined)[], never> | undefined;
|
|
797
921
|
} & {
|
|
@@ -800,6 +924,14 @@ declare function getActiveAccountBookmarksQueryOptions(activeUsername: string |
|
|
|
800
924
|
[dataTagErrorSymbol]: Error;
|
|
801
925
|
};
|
|
802
926
|
};
|
|
927
|
+
declare function getActiveAccountBookmarksInfiniteQueryOptions(activeUsername: string | undefined, code: string | undefined, limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<WrappedResponse<AccountBookmark>, Error, _tanstack_react_query.InfiniteData<WrappedResponse<AccountBookmark>, unknown>, (string | number | undefined)[], number>, "queryFn"> & {
|
|
928
|
+
queryFn?: _tanstack_react_query.QueryFunction<WrappedResponse<AccountBookmark>, (string | number | undefined)[], number> | undefined;
|
|
929
|
+
} & {
|
|
930
|
+
queryKey: (string | number | undefined)[] & {
|
|
931
|
+
[dataTagSymbol]: _tanstack_react_query.InfiniteData<WrappedResponse<AccountBookmark>, unknown>;
|
|
932
|
+
[dataTagErrorSymbol]: Error;
|
|
933
|
+
};
|
|
934
|
+
};
|
|
803
935
|
|
|
804
936
|
declare function getActiveAccountFavouritesQueryOptions(activeUsername: string | undefined, code: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountFavorite[], Error, AccountFavorite[], (string | undefined)[]>, "queryFn"> & {
|
|
805
937
|
queryFn?: _tanstack_react_query.QueryFunction<AccountFavorite[], (string | undefined)[], never> | undefined;
|
|
@@ -809,6 +941,14 @@ declare function getActiveAccountFavouritesQueryOptions(activeUsername: string |
|
|
|
809
941
|
[dataTagErrorSymbol]: Error;
|
|
810
942
|
};
|
|
811
943
|
};
|
|
944
|
+
declare function getActiveAccountFavouritesInfiniteQueryOptions(activeUsername: string | undefined, code: string | undefined, limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<WrappedResponse<AccountFavorite>, Error, _tanstack_react_query.InfiniteData<WrappedResponse<AccountFavorite>, unknown>, (string | number | undefined)[], number>, "queryFn"> & {
|
|
945
|
+
queryFn?: _tanstack_react_query.QueryFunction<WrappedResponse<AccountFavorite>, (string | number | undefined)[], number> | undefined;
|
|
946
|
+
} & {
|
|
947
|
+
queryKey: (string | number | undefined)[] & {
|
|
948
|
+
[dataTagSymbol]: _tanstack_react_query.InfiniteData<WrappedResponse<AccountFavorite>, unknown>;
|
|
949
|
+
[dataTagErrorSymbol]: Error;
|
|
950
|
+
};
|
|
951
|
+
};
|
|
812
952
|
|
|
813
953
|
declare function getAccountRecoveriesQueryOptions(username: string | undefined, code: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetRecoveriesEmailResponse[], Error, GetRecoveriesEmailResponse[], (string | undefined)[]>, "queryFn"> & {
|
|
814
954
|
queryFn?: _tanstack_react_query.QueryFunction<GetRecoveriesEmailResponse[], (string | undefined)[], never> | undefined;
|
|
@@ -1101,6 +1241,7 @@ interface Draft {
|
|
|
1101
1241
|
_id: string;
|
|
1102
1242
|
meta?: DraftMetadata;
|
|
1103
1243
|
}
|
|
1244
|
+
type DraftsWrappedResponse = WrappedResponse<Draft>;
|
|
1104
1245
|
|
|
1105
1246
|
interface Schedule {
|
|
1106
1247
|
_id: string;
|
|
@@ -1206,113 +1347,6 @@ declare function getChainPropertiesQueryOptions(): _tanstack_react_query.OmitKey
|
|
|
1206
1347
|
};
|
|
1207
1348
|
};
|
|
1208
1349
|
|
|
1209
|
-
declare function useBroadcastMutation<T>(mutationKey: MutationKey | undefined, username: string | undefined, operations: (payload: T) => Operation[], onSuccess?: UseMutationOptions<unknown, Error, T>["onSuccess"], auth?: AuthContext): _tanstack_react_query.UseMutationResult<unknown, Error, T, unknown>;
|
|
1210
|
-
|
|
1211
|
-
declare function broadcastJson<T>(username: string | undefined, id: string, payload: T, auth?: AuthContext): Promise<any>;
|
|
1212
|
-
|
|
1213
|
-
declare const CONFIG: {
|
|
1214
|
-
privateApiHost: string;
|
|
1215
|
-
imageHost: string;
|
|
1216
|
-
hiveClient: Client;
|
|
1217
|
-
heliusApiKey: string | undefined;
|
|
1218
|
-
queryClient: QueryClient;
|
|
1219
|
-
plausibleHost: string;
|
|
1220
|
-
spkNode: string;
|
|
1221
|
-
dmcaAccounts: string[];
|
|
1222
|
-
dmcaTags: string[];
|
|
1223
|
-
dmcaPatterns: string[];
|
|
1224
|
-
dmcaTagRegexes: RegExp[];
|
|
1225
|
-
dmcaPatternRegexes: RegExp[];
|
|
1226
|
-
_dmcaInitialized: boolean;
|
|
1227
|
-
};
|
|
1228
|
-
declare namespace ConfigManager {
|
|
1229
|
-
function setQueryClient(client: QueryClient): void;
|
|
1230
|
-
/**
|
|
1231
|
-
* Set the private API host
|
|
1232
|
-
* @param host - The private API host URL (e.g., "https://ecency.com" or "" for relative URLs)
|
|
1233
|
-
*/
|
|
1234
|
-
function setPrivateApiHost(host: string): void;
|
|
1235
|
-
/**
|
|
1236
|
-
* Get a validated base URL for API requests
|
|
1237
|
-
* Returns a valid base URL that can be used with new URL(path, baseUrl)
|
|
1238
|
-
*
|
|
1239
|
-
* Priority:
|
|
1240
|
-
* 1. CONFIG.privateApiHost if set (dev/staging or explicit config)
|
|
1241
|
-
* 2. window.location.origin if in browser (production with relative URLs)
|
|
1242
|
-
* 3. 'https://ecency.com' as fallback for SSR (production default)
|
|
1243
|
-
*
|
|
1244
|
-
* @returns A valid base URL string
|
|
1245
|
-
* @throws Never throws - always returns a valid URL
|
|
1246
|
-
*/
|
|
1247
|
-
function getValidatedBaseUrl(): string;
|
|
1248
|
-
/**
|
|
1249
|
-
* Set the image host
|
|
1250
|
-
* @param host - The image host URL (e.g., "https://images.ecency.com")
|
|
1251
|
-
*/
|
|
1252
|
-
function setImageHost(host: string): void;
|
|
1253
|
-
/**
|
|
1254
|
-
* Set DMCA filtering lists
|
|
1255
|
-
* @param accounts - List of account usernames to filter (plain strings)
|
|
1256
|
-
* @param tags - List of tag patterns (regex strings) to filter
|
|
1257
|
-
* @param patterns - List of post patterns (plain strings) like "@author/permlink" for exact matching
|
|
1258
|
-
*/
|
|
1259
|
-
function setDmcaLists(accounts?: string[], tags?: string[], patterns?: string[]): void;
|
|
1260
|
-
}
|
|
1261
|
-
|
|
1262
|
-
declare function makeQueryClient(): QueryClient;
|
|
1263
|
-
declare const getQueryClient: () => QueryClient;
|
|
1264
|
-
declare namespace EcencyQueriesManager {
|
|
1265
|
-
function getQueryData<T>(queryKey: QueryKey): T | undefined;
|
|
1266
|
-
function getInfiniteQueryData<T>(queryKey: QueryKey): InfiniteData<T, unknown> | undefined;
|
|
1267
|
-
function prefetchQuery<T>(options: UseQueryOptions<T>): Promise<T | undefined>;
|
|
1268
|
-
function prefetchInfiniteQuery<T, P>(options: UseInfiniteQueryOptions<T, Error, InfiniteData<T>, QueryKey, P>): Promise<InfiniteData<T, unknown> | undefined>;
|
|
1269
|
-
function generateClientServerQuery<T>(options: UseQueryOptions<T>): {
|
|
1270
|
-
prefetch: () => Promise<T | undefined>;
|
|
1271
|
-
getData: () => T | undefined;
|
|
1272
|
-
useClientQuery: () => _tanstack_react_query.UseQueryResult<_tanstack_react_query.NoInfer<T>, Error>;
|
|
1273
|
-
fetchAndGet: () => Promise<T>;
|
|
1274
|
-
};
|
|
1275
|
-
function generateClientServerInfiniteQuery<T, P>(options: UseInfiniteQueryOptions<T, Error, InfiniteData<T>, QueryKey, P>): {
|
|
1276
|
-
prefetch: () => Promise<InfiniteData<T, unknown> | undefined>;
|
|
1277
|
-
getData: () => InfiniteData<T, unknown> | undefined;
|
|
1278
|
-
useClientQuery: () => _tanstack_react_query.UseInfiniteQueryResult<InfiniteData<T, unknown>, Error>;
|
|
1279
|
-
fetchAndGet: () => Promise<InfiniteData<T, P>>;
|
|
1280
|
-
};
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
declare function getDynamicPropsQueryOptions(): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<DynamicProps, Error, DynamicProps, string[]>, "queryFn"> & {
|
|
1284
|
-
queryFn?: _tanstack_react_query.QueryFunction<DynamicProps, string[], never> | undefined;
|
|
1285
|
-
} & {
|
|
1286
|
-
queryKey: string[] & {
|
|
1287
|
-
[dataTagSymbol]: DynamicProps;
|
|
1288
|
-
[dataTagErrorSymbol]: Error;
|
|
1289
|
-
};
|
|
1290
|
-
};
|
|
1291
|
-
|
|
1292
|
-
declare function encodeObj(o: any): string;
|
|
1293
|
-
declare function decodeObj(o: any): any;
|
|
1294
|
-
|
|
1295
|
-
declare enum Symbol {
|
|
1296
|
-
HIVE = "HIVE",
|
|
1297
|
-
HBD = "HBD",
|
|
1298
|
-
VESTS = "VESTS",
|
|
1299
|
-
SPK = "SPK"
|
|
1300
|
-
}
|
|
1301
|
-
declare enum NaiMap {
|
|
1302
|
-
"@@000000021" = "HIVE",
|
|
1303
|
-
"@@000000013" = "HBD",
|
|
1304
|
-
"@@000000037" = "VESTS"
|
|
1305
|
-
}
|
|
1306
|
-
interface Asset {
|
|
1307
|
-
amount: number;
|
|
1308
|
-
symbol: Symbol;
|
|
1309
|
-
}
|
|
1310
|
-
declare function parseAsset(sval: string | SMTAsset): Asset;
|
|
1311
|
-
|
|
1312
|
-
declare function getBoundFetch(): typeof fetch;
|
|
1313
|
-
|
|
1314
|
-
declare function isCommunity(value: unknown): boolean;
|
|
1315
|
-
|
|
1316
1350
|
declare function getTrendingTagsQueryOptions(limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<string[], Error, _tanstack_react_query.InfiniteData<string[], unknown>, string[], {
|
|
1317
1351
|
afterTag: string;
|
|
1318
1352
|
}>, "queryFn"> & {
|
|
@@ -1347,6 +1381,14 @@ declare function getFragmentsQueryOptions(username: string, code?: string): _tan
|
|
|
1347
1381
|
[dataTagErrorSymbol]: Error;
|
|
1348
1382
|
};
|
|
1349
1383
|
};
|
|
1384
|
+
declare function getFragmentsInfiniteQueryOptions(username: string | undefined, code?: string, limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<WrappedResponse<Fragment>, Error, _tanstack_react_query.InfiniteData<WrappedResponse<Fragment>, unknown>, (string | number | undefined)[], number>, "queryFn"> & {
|
|
1385
|
+
queryFn?: _tanstack_react_query.QueryFunction<WrappedResponse<Fragment>, (string | number | undefined)[], number> | undefined;
|
|
1386
|
+
} & {
|
|
1387
|
+
queryKey: (string | number | undefined)[] & {
|
|
1388
|
+
[dataTagSymbol]: _tanstack_react_query.InfiniteData<WrappedResponse<Fragment>, unknown>;
|
|
1389
|
+
[dataTagErrorSymbol]: Error;
|
|
1390
|
+
};
|
|
1391
|
+
};
|
|
1350
1392
|
|
|
1351
1393
|
declare function getPromotedPostsQuery<T extends any>(type?: "feed" | "waves"): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<T[], Error, T[], string[]>, "queryFn"> & {
|
|
1352
1394
|
queryFn?: _tanstack_react_query.QueryFunction<T[], string[], never> | undefined;
|
|
@@ -1504,6 +1546,14 @@ declare function getSchedulesQueryOptions(activeUsername: string | undefined, co
|
|
|
1504
1546
|
[dataTagErrorSymbol]: Error;
|
|
1505
1547
|
};
|
|
1506
1548
|
};
|
|
1549
|
+
declare function getSchedulesInfiniteQueryOptions(activeUsername: string | undefined, code?: string, limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<WrappedResponse<Schedule>, Error, _tanstack_react_query.InfiniteData<WrappedResponse<Schedule>, unknown>, (string | number | undefined)[], number>, "queryFn"> & {
|
|
1550
|
+
queryFn?: _tanstack_react_query.QueryFunction<WrappedResponse<Schedule>, (string | number | undefined)[], number> | undefined;
|
|
1551
|
+
} & {
|
|
1552
|
+
queryKey: (string | number | undefined)[] & {
|
|
1553
|
+
[dataTagSymbol]: _tanstack_react_query.InfiniteData<WrappedResponse<Schedule>, unknown>;
|
|
1554
|
+
[dataTagErrorSymbol]: Error;
|
|
1555
|
+
};
|
|
1556
|
+
};
|
|
1507
1557
|
|
|
1508
1558
|
declare function getDraftsQueryOptions(activeUsername: string | undefined, code?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Draft[], Error, Draft[], (string | undefined)[]>, "queryFn"> & {
|
|
1509
1559
|
queryFn?: _tanstack_react_query.QueryFunction<Draft[], (string | undefined)[], never> | undefined;
|
|
@@ -1513,6 +1563,14 @@ declare function getDraftsQueryOptions(activeUsername: string | undefined, code?
|
|
|
1513
1563
|
[dataTagErrorSymbol]: Error;
|
|
1514
1564
|
};
|
|
1515
1565
|
};
|
|
1566
|
+
declare function getDraftsInfiniteQueryOptions(activeUsername: string | undefined, code?: string, limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<DraftsWrappedResponse, Error, _tanstack_react_query.InfiniteData<DraftsWrappedResponse, unknown>, (string | number | undefined)[], number>, "queryFn"> & {
|
|
1567
|
+
queryFn?: _tanstack_react_query.QueryFunction<DraftsWrappedResponse, (string | number | undefined)[], number> | undefined;
|
|
1568
|
+
} & {
|
|
1569
|
+
queryKey: (string | number | undefined)[] & {
|
|
1570
|
+
[dataTagSymbol]: _tanstack_react_query.InfiniteData<DraftsWrappedResponse, unknown>;
|
|
1571
|
+
[dataTagErrorSymbol]: Error;
|
|
1572
|
+
};
|
|
1573
|
+
};
|
|
1516
1574
|
|
|
1517
1575
|
declare function getImagesQueryOptions(username?: string, code?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<UserImage[], Error, UserImage[], (string | undefined)[]>, "queryFn"> & {
|
|
1518
1576
|
queryFn?: _tanstack_react_query.QueryFunction<UserImage[], (string | undefined)[], never> | undefined;
|
|
@@ -1530,6 +1588,14 @@ declare function getGalleryImagesQueryOptions(activeUsername: string | undefined
|
|
|
1530
1588
|
[dataTagErrorSymbol]: Error;
|
|
1531
1589
|
};
|
|
1532
1590
|
};
|
|
1591
|
+
declare function getImagesInfiniteQueryOptions(username: string | undefined, code?: string, limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<WrappedResponse<UserImage>, Error, _tanstack_react_query.InfiniteData<WrappedResponse<UserImage>, unknown>, (string | number | undefined)[], number>, "queryFn"> & {
|
|
1592
|
+
queryFn?: _tanstack_react_query.QueryFunction<WrappedResponse<UserImage>, (string | number | undefined)[], number> | undefined;
|
|
1593
|
+
} & {
|
|
1594
|
+
queryKey: (string | number | undefined)[] & {
|
|
1595
|
+
[dataTagSymbol]: _tanstack_react_query.InfiniteData<WrappedResponse<UserImage>, unknown>;
|
|
1596
|
+
[dataTagErrorSymbol]: Error;
|
|
1597
|
+
};
|
|
1598
|
+
};
|
|
1533
1599
|
|
|
1534
1600
|
interface CommentHistoryListItem {
|
|
1535
1601
|
title: string;
|
|
@@ -3196,4 +3262,4 @@ declare function getHiveEngineUnclaimedRewards<T = Record<string, unknown>>(user
|
|
|
3196
3262
|
declare function getSpkWallet<T = Record<string, unknown>>(username: string): Promise<T>;
|
|
3197
3263
|
declare function getSpkMarkets<T = Record<string, unknown>>(): Promise<T>;
|
|
3198
3264
|
|
|
3199
|
-
export { ACCOUNT_OPERATION_GROUPS, ALL_ACCOUNT_OPERATIONS, ALL_NOTIFY_TYPES, type AccountBookmark, type AccountFavorite, type AccountFollowStats, type AccountNotification, type AccountProfile, type AccountRelationship, type AccountReputation, type AccountSearchResult, type Announcement, type ApiBookmarkNotification, type ApiDelegationsNotification, type ApiFavoriteNotification, type ApiFollowNotification, type ApiInactiveNotification, type ApiMentionNotification, type ApiNotification, type ApiNotificationSetting, type ApiReblogNotification, type ApiReferralNotification, type ApiReplyNotification, type ApiResponse, type ApiSpinNotification, type ApiTransferNotification, type ApiVoteNotification, type Asset, type AuthContext, type AuthorReward, type BlogEntry, type BoostPlusAccountPrice, type BuildProfileMetadataArgs, CONFIG, type CancelTransferFromSavings, type CantAfford, type CheckUsernameWalletsPendingResponse, type ClaimRewardBalance, type CollateralizedConversionRequest, type CollateralizedConvert, type CommentBenefactor, type CommentPayoutUpdate, type CommentReward, type Communities, type Community, type CommunityRole, type CommunityTeam, type CommunityType, ConfigManager, type ConversionRequest, type CurationDuration, type CurationItem, type CurationReward, type CurrencyRates, type DelegateVestingShares, type DelegatedVestingShare, type DeletedEntry, type Draft, type DraftMetadata, type DynamicProps, index as EcencyAnalytics, EcencyQueriesManager, type EffectiveCommentVote, type Entry$1 as Entry, type EntryBeneficiaryRoute, type EntryHeader, type EntryStat, type EntryVote, type FillCollateralizedConvertRequest, type FillConvertRequest, type FillOrder, type FillRecurrentTransfers, type FillVestingWithdraw, type Follow, type Fragment, type FriendSearchResult, type FriendsPageParam, type FriendsRow, type FullAccount, type GameClaim, type GetGameStatus, type GetRecoveriesEmailResponse, type HiveEngineOpenOrder, type HiveHbdStats, HiveSignerIntegration, type HsTokenRenewResponse, type IncomingRcDelegation, type IncomingRcResponse, type Interest, type JsonMetadata, type JsonPollMetadata, type Keys, type LeaderBoardDuration, type LeaderBoardItem, type LimitOrderCancel, type LimitOrderCreate, type MarketCandlestickDataItem, type MarketData, type MarketStatistics, NaiMap, NotificationFilter, NotificationViewType, type Notifications, NotifyTypes, type OpenOrdersData, type OperationGroup, type OrdersData, type OrdersDataItem, type PageStatsResponse, type Payer, type PointTransaction, type Points, type PostTip, type PostTipsResponse, type ProducerReward, type Profile, type ProfileTokens, type PromotePrice, type Proposal, type ProposalPay, type ProposalVote, type ProposalVoteRow, ROLES, type RcDirectDelegation, type RcDirectDelegationsResponse, type RcStats, type Reblog, type ReceivedVestingShare, type RecordActivityOptions, type Recoveries, type RecurrentTransfers, type ReferralItem, type ReferralItems, type ReferralStat, type ReturnVestingDelegation, type RewardedCommunity, type SavingsWithdrawRequest, type Schedule, type SearchResponse, type SearchResult, type SetWithdrawRoute, SortOrder, type StatsResponse, type Subscription, Symbol, type TagSearchResult, type ThreadItemEntry, ThreeSpeakIntegration, type ThreeSpeakVideo, type Transaction, type Transfer, type TransferToSavings, type TransferToVesting, type TrendingTag, type UpdateProposalVotes, type UserImage, type ValidatePostCreatingOptions, type Vote, type VoteHistoryPage, type VoteHistoryPageParam, type VoteProxy, type WalletMetadataCandidate, type WaveEntry, type WaveTrendingTag, type WithdrawRoute, type WithdrawVesting, type Witness, type WsBookmarkNotification, type WsDelegationsNotification, type WsFavoriteNotification, type WsFollowNotification, type WsInactiveNotification, type WsMentionNotification, type WsNotification, type WsReblogNotification, type WsReferralNotification, type WsReplyNotification, type WsSpinNotification, type WsTransferNotification, type WsVoteNotification, addDraft, addImage, addSchedule, bridgeApiCall, broadcastJson, buildProfileMetadata, checkUsernameWalletsPendingQueryOptions, decodeObj, dedupeAndSortKeyAuths, deleteDraft, deleteImage, deleteSchedule, downVotingPower, encodeObj, extractAccountProfile, getAccountFullQueryOptions, getAccountNotificationsInfiniteQueryOptions, getAccountPendingRecoveryQueryOptions, getAccountPosts, getAccountPostsInfiniteQueryOptions, getAccountPostsQueryOptions, getAccountRcQueryOptions, getAccountRecoveriesQueryOptions, getAccountReputationsQueryOptions, getAccountSubscriptionsQueryOptions, getAccountVoteHistoryInfiniteQueryOptions, getAccountsQueryOptions, getActiveAccountBookmarksQueryOptions, getActiveAccountFavouritesQueryOptions, getAnnouncementsQueryOptions, getBoostPlusAccountPricesQueryOptions, getBoostPlusPricesQueryOptions, getBotsQueryOptions, getBoundFetch, getChainPropertiesQueryOptions, getCollateralizedConversionRequestsQueryOptions, getCommentHistoryQueryOptions, getCommunities, getCommunitiesQueryOptions, getCommunity, getCommunityContextQueryOptions, getCommunityPermissions, getCommunityQueryOptions, getCommunitySubscribersQueryOptions, getCommunityType, getContentQueryOptions, getContentRepliesQueryOptions, getControversialRisingInfiniteQueryOptions, getConversionRequestsQueryOptions, getCurrencyRate, getCurrencyRates, getCurrencyTokenRate, getDeletedEntryQueryOptions, getDiscoverCurationQueryOptions, getDiscoverLeaderboardQueryOptions, getDiscussion, getDiscussionQueryOptions, getDiscussionsQueryOptions, getDraftsQueryOptions, getDynamicPropsQueryOptions, getEntryActiveVotesQueryOptions, getFollowCountQueryOptions, getFollowingQueryOptions, getFragmentsQueryOptions, getFriendsInfiniteQueryOptions, getGalleryImagesQueryOptions, getGameStatusCheckQueryOptions, getHiveEngineMetrics, getHiveEngineOpenOrders, getHiveEngineOrderBook, getHiveEngineTokenMetrics, getHiveEngineTokenTransactions, getHiveEngineTokensBalances, getHiveEngineTokensMarket, getHiveEngineTokensMetadata, getHiveEngineTradeHistory, getHiveEngineUnclaimedRewards, getHiveHbdStatsQueryOptions, getHivePoshLinksQueryOptions, getHivePrice, getImagesQueryOptions, getIncomingRcQueryOptions, getMarketData, getMarketDataQueryOptions, getMarketHistoryQueryOptions, getMarketStatisticsQueryOptions, getMutedUsersQueryOptions, getNormalizePostQueryOptions, getNotificationSetting, getNotifications, getNotificationsInfiniteQueryOptions, getNotificationsSettingsQueryOptions, getNotificationsUnreadCountQueryOptions, getOpenOrdersQueryOptions, getOrderBookQueryOptions, getOutgoingRcDelegationsInfiniteQueryOptions, getPageStatsQueryOptions, getPointsQueryOptions, getPost, getPostHeader, getPostHeaderQueryOptions, getPostQueryOptions, getPostTipsQueryOptions, getPostsRanked, getPostsRankedInfiniteQueryOptions, getPostsRankedQueryOptions, getProfiles, getProfilesQueryOptions, getPromotePriceQueryOptions, getPromotedPost, getPromotedPostsQuery, getProposalQueryOptions, getProposalVotesInfiniteQueryOptions, getProposalsQueryOptions, getQueryClient, getRcStatsQueryOptions, getReblogsQueryOptions, getReceivedVestingSharesQueryOptions, getReferralsInfiniteQueryOptions, getReferralsStatsQueryOptions, getRelationshipBetweenAccounts, getRelationshipBetweenAccountsQueryOptions, getRewardedCommunitiesQueryOptions, getSavingsWithdrawFromQueryOptions, getSchedulesQueryOptions, getSearchAccountQueryOptions, getSearchAccountsByUsernameQueryOptions, getSearchApiInfiniteQueryOptions, getSearchFriendsQueryOptions, getSearchPathQueryOptions, getSearchTopicsQueryOptions, getSimilarEntriesQueryOptions, getSpkMarkets, getSpkWallet, getStatsQueryOptions, getSubscribers, getSubscriptions, getTradeHistoryQueryOptions, getTransactionsInfiniteQueryOptions, getTrendingTagsQueryOptions, getTrendingTagsWithStatsQueryOptions, getUserProposalVotesQueryOptions, getVestingDelegationsQueryOptions, getVisibleFirstLevelThreadItems, getWavesByHostQueryOptions, getWavesByTagQueryOptions, getWavesFollowingQueryOptions, getWavesTrendingTagsQueryOptions, getWithdrawRoutesQueryOptions, getWitnessesInfiniteQueryOptions, hsTokenRenew, isCommunity, lookupAccountsQueryOptions, makeQueryClient, mapThreadItemsToWaveEntries, markNotifications, moveSchedule, normalizePost, normalizeWaveEntryFromApi, onboardEmail, parseAccounts, parseAsset, parseProfileMetadata, powerRechargeTime, rcPower, resolvePost, roleMap, saveNotificationSetting, search, searchAccount, searchPath, searchQueryOptions, searchTag, signUp, sortDiscussions, subscribeEmail, toEntryArray, updateDraft, uploadImage, useAccountFavouriteAdd, useAccountFavouriteDelete, useAccountRelationsUpdate, useAccountRevokeKey, useAccountRevokePosting, useAccountUpdate, useAccountUpdateKeyAuths, useAccountUpdatePassword, useAccountUpdateRecovery, useAddFragment, useBookmarkAdd, useBookmarkDelete, useBroadcastMutation, useEditFragment, useGameClaim, useRecordActivity, useRemoveFragment, useSignOperationByHivesigner, useSignOperationByKey, useSignOperationByKeychain, usrActivity, validatePostCreating, votingPower, votingValue };
|
|
3265
|
+
export { ACCOUNT_OPERATION_GROUPS, ALL_ACCOUNT_OPERATIONS, ALL_NOTIFY_TYPES, type AccountBookmark, type AccountFavorite, type AccountFollowStats, type AccountNotification, type AccountProfile, type AccountRelationship, type AccountReputation, type AccountSearchResult, type Announcement, type ApiBookmarkNotification, type ApiDelegationsNotification, type ApiFavoriteNotification, type ApiFollowNotification, type ApiInactiveNotification, type ApiMentionNotification, type ApiNotification, type ApiNotificationSetting, type ApiReblogNotification, type ApiReferralNotification, type ApiReplyNotification, type ApiResponse, type ApiSpinNotification, type ApiTransferNotification, type ApiVoteNotification, type Asset, type AuthContext, type AuthorReward, type BlogEntry, type BoostPlusAccountPrice, type BuildProfileMetadataArgs, CONFIG, type CancelTransferFromSavings, type CantAfford, type CheckUsernameWalletsPendingResponse, type ClaimRewardBalance, type CollateralizedConversionRequest, type CollateralizedConvert, type CommentBenefactor, type CommentPayoutUpdate, type CommentReward, type Communities, type Community, type CommunityRole, type CommunityTeam, type CommunityType, ConfigManager, type ConversionRequest, type CurationDuration, type CurationItem, type CurationReward, type CurrencyRates, type DelegateVestingShares, type DelegatedVestingShare, type DeletedEntry, type Draft, type DraftMetadata, type DraftsWrappedResponse, type DynamicProps, index as EcencyAnalytics, EcencyQueriesManager, type EffectiveCommentVote, type Entry$1 as Entry, type EntryBeneficiaryRoute, type EntryHeader, type EntryStat, type EntryVote, type FillCollateralizedConvertRequest, type FillConvertRequest, type FillOrder, type FillRecurrentTransfers, type FillVestingWithdraw, type Follow, type Fragment, type FriendSearchResult, type FriendsPageParam, type FriendsRow, type FullAccount, type GameClaim, type GetGameStatus, type GetRecoveriesEmailResponse, type HiveEngineOpenOrder, type HiveHbdStats, HiveSignerIntegration, type HsTokenRenewResponse, type IncomingRcDelegation, type IncomingRcResponse, type Interest, type JsonMetadata, type JsonPollMetadata, type Keys, type LeaderBoardDuration, type LeaderBoardItem, type LimitOrderCancel, type LimitOrderCreate, type MarketCandlestickDataItem, type MarketData, type MarketStatistics, NaiMap, NotificationFilter, NotificationViewType, type Notifications, NotifyTypes, type OpenOrdersData, type OperationGroup, type OrdersData, type OrdersDataItem, type PageStatsResponse, type PaginationMeta, type Payer, type PointTransaction, type Points, type PostTip, type PostTipsResponse, type ProducerReward, type Profile, type ProfileTokens, type PromotePrice, type Proposal, type ProposalPay, type ProposalVote, type ProposalVoteRow, ROLES, type RcDirectDelegation, type RcDirectDelegationsResponse, type RcStats, type Reblog, type ReceivedVestingShare, type RecordActivityOptions, type Recoveries, type RecurrentTransfers, type ReferralItem, type ReferralItems, type ReferralStat, type ReturnVestingDelegation, type RewardedCommunity, type SavingsWithdrawRequest, type Schedule, type SearchResponse, type SearchResult, type SetWithdrawRoute, SortOrder, type StatsResponse, type Subscription, Symbol, type TagSearchResult, type ThreadItemEntry, ThreeSpeakIntegration, type ThreeSpeakVideo, type Transaction, type Transfer, type TransferToSavings, type TransferToVesting, type TrendingTag, type UpdateProposalVotes, type UserImage, type ValidatePostCreatingOptions, type Vote, type VoteHistoryPage, type VoteHistoryPageParam, type VoteProxy, type WalletMetadataCandidate, type WaveEntry, type WaveTrendingTag, type WithdrawRoute, type WithdrawVesting, type Witness, type WrappedResponse, type WsBookmarkNotification, type WsDelegationsNotification, type WsFavoriteNotification, type WsFollowNotification, type WsInactiveNotification, type WsMentionNotification, type WsNotification, type WsReblogNotification, type WsReferralNotification, type WsReplyNotification, type WsSpinNotification, type WsTransferNotification, type WsVoteNotification, addDraft, addImage, addSchedule, bridgeApiCall, broadcastJson, buildProfileMetadata, checkUsernameWalletsPendingQueryOptions, decodeObj, dedupeAndSortKeyAuths, deleteDraft, deleteImage, deleteSchedule, downVotingPower, encodeObj, extractAccountProfile, getAccountFullQueryOptions, getAccountNotificationsInfiniteQueryOptions, getAccountPendingRecoveryQueryOptions, getAccountPosts, getAccountPostsInfiniteQueryOptions, getAccountPostsQueryOptions, getAccountRcQueryOptions, getAccountRecoveriesQueryOptions, getAccountReputationsQueryOptions, getAccountSubscriptionsQueryOptions, getAccountVoteHistoryInfiniteQueryOptions, getAccountsQueryOptions, getActiveAccountBookmarksInfiniteQueryOptions, getActiveAccountBookmarksQueryOptions, getActiveAccountFavouritesInfiniteQueryOptions, getActiveAccountFavouritesQueryOptions, getAnnouncementsQueryOptions, getBoostPlusAccountPricesQueryOptions, getBoostPlusPricesQueryOptions, getBotsQueryOptions, getBoundFetch, getChainPropertiesQueryOptions, getCollateralizedConversionRequestsQueryOptions, getCommentHistoryQueryOptions, getCommunities, getCommunitiesQueryOptions, getCommunity, getCommunityContextQueryOptions, getCommunityPermissions, getCommunityQueryOptions, getCommunitySubscribersQueryOptions, getCommunityType, getContentQueryOptions, getContentRepliesQueryOptions, getControversialRisingInfiniteQueryOptions, getConversionRequestsQueryOptions, getCurrencyRate, getCurrencyRates, getCurrencyTokenRate, getDeletedEntryQueryOptions, getDiscoverCurationQueryOptions, getDiscoverLeaderboardQueryOptions, getDiscussion, getDiscussionQueryOptions, getDiscussionsQueryOptions, getDraftsInfiniteQueryOptions, getDraftsQueryOptions, getDynamicPropsQueryOptions, getEntryActiveVotesQueryOptions, getFollowCountQueryOptions, getFollowingQueryOptions, getFragmentsInfiniteQueryOptions, getFragmentsQueryOptions, getFriendsInfiniteQueryOptions, getGalleryImagesQueryOptions, getGameStatusCheckQueryOptions, getHiveEngineMetrics, getHiveEngineOpenOrders, getHiveEngineOrderBook, getHiveEngineTokenMetrics, getHiveEngineTokenTransactions, getHiveEngineTokensBalances, getHiveEngineTokensMarket, getHiveEngineTokensMetadata, getHiveEngineTradeHistory, getHiveEngineUnclaimedRewards, getHiveHbdStatsQueryOptions, getHivePoshLinksQueryOptions, getHivePrice, getImagesInfiniteQueryOptions, getImagesQueryOptions, getIncomingRcQueryOptions, getMarketData, getMarketDataQueryOptions, getMarketHistoryQueryOptions, getMarketStatisticsQueryOptions, getMutedUsersQueryOptions, getNormalizePostQueryOptions, getNotificationSetting, getNotifications, getNotificationsInfiniteQueryOptions, getNotificationsSettingsQueryOptions, getNotificationsUnreadCountQueryOptions, getOpenOrdersQueryOptions, getOrderBookQueryOptions, getOutgoingRcDelegationsInfiniteQueryOptions, getPageStatsQueryOptions, getPointsQueryOptions, getPost, getPostHeader, getPostHeaderQueryOptions, getPostQueryOptions, getPostTipsQueryOptions, getPostsRanked, getPostsRankedInfiniteQueryOptions, getPostsRankedQueryOptions, getProfiles, getProfilesQueryOptions, getPromotePriceQueryOptions, getPromotedPost, getPromotedPostsQuery, getProposalQueryOptions, getProposalVotesInfiniteQueryOptions, getProposalsQueryOptions, getQueryClient, getRcStatsQueryOptions, getReblogsQueryOptions, getReceivedVestingSharesQueryOptions, getReferralsInfiniteQueryOptions, getReferralsStatsQueryOptions, getRelationshipBetweenAccounts, getRelationshipBetweenAccountsQueryOptions, getRewardedCommunitiesQueryOptions, getSavingsWithdrawFromQueryOptions, getSchedulesInfiniteQueryOptions, getSchedulesQueryOptions, getSearchAccountQueryOptions, getSearchAccountsByUsernameQueryOptions, getSearchApiInfiniteQueryOptions, getSearchFriendsQueryOptions, getSearchPathQueryOptions, getSearchTopicsQueryOptions, getSimilarEntriesQueryOptions, getSpkMarkets, getSpkWallet, getStatsQueryOptions, getSubscribers, getSubscriptions, getTradeHistoryQueryOptions, getTransactionsInfiniteQueryOptions, getTrendingTagsQueryOptions, getTrendingTagsWithStatsQueryOptions, getUserProposalVotesQueryOptions, getVestingDelegationsQueryOptions, getVisibleFirstLevelThreadItems, getWavesByHostQueryOptions, getWavesByTagQueryOptions, getWavesFollowingQueryOptions, getWavesTrendingTagsQueryOptions, getWithdrawRoutesQueryOptions, getWitnessesInfiniteQueryOptions, hsTokenRenew, isCommunity, lookupAccountsQueryOptions, makeQueryClient, mapThreadItemsToWaveEntries, markNotifications, moveSchedule, normalizePost, normalizeWaveEntryFromApi, onboardEmail, parseAccounts, parseAsset, parseProfileMetadata, powerRechargeTime, rcPower, resolvePost, roleMap, saveNotificationSetting, search, searchAccount, searchPath, searchQueryOptions, searchTag, signUp, sortDiscussions, subscribeEmail, toEntryArray, updateDraft, uploadImage, useAccountFavouriteAdd, useAccountFavouriteDelete, useAccountRelationsUpdate, useAccountRevokeKey, useAccountRevokePosting, useAccountUpdate, useAccountUpdateKeyAuths, useAccountUpdatePassword, useAccountUpdateRecovery, useAddFragment, useBookmarkAdd, useBookmarkDelete, useBroadcastMutation, useEditFragment, useGameClaim, useRecordActivity, useRemoveFragment, useSignOperationByHivesigner, useSignOperationByKey, useSignOperationByKeychain, usrActivity, validatePostCreating, votingPower, votingValue };
|