@ecency/sdk 1.5.10 → 1.5.12
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 +186 -110
- package/dist/browser/index.js +282 -3
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.cjs +291 -4
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.mjs +282 -3
- 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,7 +809,124 @@ declare function getAccountSubscriptionsQueryOptions(username: string | undefine
|
|
|
792
809
|
};
|
|
793
810
|
};
|
|
794
811
|
|
|
795
|
-
declare function
|
|
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
|
+
|
|
919
|
+
/**
|
|
920
|
+
* Type guard to check if response is wrapped with pagination metadata
|
|
921
|
+
*/
|
|
922
|
+
declare function isWrappedResponse<T>(response: any): response is WrappedResponse<T>;
|
|
923
|
+
/**
|
|
924
|
+
* Normalize response to wrapped format for backwards compatibility
|
|
925
|
+
* If the backend returns old format (array), convert it to wrapped format
|
|
926
|
+
*/
|
|
927
|
+
declare function normalizeToWrappedResponse<T>(response: T[] | WrappedResponse<T>, limit: number): WrappedResponse<T>;
|
|
928
|
+
|
|
929
|
+
declare function getBookmarksQueryOptions(activeUsername: string | undefined, code: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountBookmark[], Error, AccountBookmark[], (string | undefined)[]>, "queryFn"> & {
|
|
796
930
|
queryFn?: _tanstack_react_query.QueryFunction<AccountBookmark[], (string | undefined)[], never> | undefined;
|
|
797
931
|
} & {
|
|
798
932
|
queryKey: (string | undefined)[] & {
|
|
@@ -800,8 +934,16 @@ declare function getActiveAccountBookmarksQueryOptions(activeUsername: string |
|
|
|
800
934
|
[dataTagErrorSymbol]: Error;
|
|
801
935
|
};
|
|
802
936
|
};
|
|
937
|
+
declare function getBookmarksInfiniteQueryOptions(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"> & {
|
|
938
|
+
queryFn?: _tanstack_react_query.QueryFunction<WrappedResponse<AccountBookmark>, (string | number | undefined)[], number> | undefined;
|
|
939
|
+
} & {
|
|
940
|
+
queryKey: (string | number | undefined)[] & {
|
|
941
|
+
[dataTagSymbol]: _tanstack_react_query.InfiniteData<WrappedResponse<AccountBookmark>, unknown>;
|
|
942
|
+
[dataTagErrorSymbol]: Error;
|
|
943
|
+
};
|
|
944
|
+
};
|
|
803
945
|
|
|
804
|
-
declare function
|
|
946
|
+
declare function getFavouritesQueryOptions(activeUsername: string | undefined, code: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountFavorite[], Error, AccountFavorite[], (string | undefined)[]>, "queryFn"> & {
|
|
805
947
|
queryFn?: _tanstack_react_query.QueryFunction<AccountFavorite[], (string | undefined)[], never> | undefined;
|
|
806
948
|
} & {
|
|
807
949
|
queryKey: (string | undefined)[] & {
|
|
@@ -809,6 +951,14 @@ declare function getActiveAccountFavouritesQueryOptions(activeUsername: string |
|
|
|
809
951
|
[dataTagErrorSymbol]: Error;
|
|
810
952
|
};
|
|
811
953
|
};
|
|
954
|
+
declare function getFavouritesInfiniteQueryOptions(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"> & {
|
|
955
|
+
queryFn?: _tanstack_react_query.QueryFunction<WrappedResponse<AccountFavorite>, (string | number | undefined)[], number> | undefined;
|
|
956
|
+
} & {
|
|
957
|
+
queryKey: (string | number | undefined)[] & {
|
|
958
|
+
[dataTagSymbol]: _tanstack_react_query.InfiniteData<WrappedResponse<AccountFavorite>, unknown>;
|
|
959
|
+
[dataTagErrorSymbol]: Error;
|
|
960
|
+
};
|
|
961
|
+
};
|
|
812
962
|
|
|
813
963
|
declare function getAccountRecoveriesQueryOptions(username: string | undefined, code: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetRecoveriesEmailResponse[], Error, GetRecoveriesEmailResponse[], (string | undefined)[]>, "queryFn"> & {
|
|
814
964
|
queryFn?: _tanstack_react_query.QueryFunction<GetRecoveriesEmailResponse[], (string | undefined)[], never> | undefined;
|
|
@@ -1101,6 +1251,7 @@ interface Draft {
|
|
|
1101
1251
|
_id: string;
|
|
1102
1252
|
meta?: DraftMetadata;
|
|
1103
1253
|
}
|
|
1254
|
+
type DraftsWrappedResponse = WrappedResponse<Draft>;
|
|
1104
1255
|
|
|
1105
1256
|
interface Schedule {
|
|
1106
1257
|
_id: string;
|
|
@@ -1206,113 +1357,6 @@ declare function getChainPropertiesQueryOptions(): _tanstack_react_query.OmitKey
|
|
|
1206
1357
|
};
|
|
1207
1358
|
};
|
|
1208
1359
|
|
|
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
1360
|
declare function getTrendingTagsQueryOptions(limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<string[], Error, _tanstack_react_query.InfiniteData<string[], unknown>, string[], {
|
|
1317
1361
|
afterTag: string;
|
|
1318
1362
|
}>, "queryFn"> & {
|
|
@@ -1347,6 +1391,14 @@ declare function getFragmentsQueryOptions(username: string, code?: string): _tan
|
|
|
1347
1391
|
[dataTagErrorSymbol]: Error;
|
|
1348
1392
|
};
|
|
1349
1393
|
};
|
|
1394
|
+
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"> & {
|
|
1395
|
+
queryFn?: _tanstack_react_query.QueryFunction<WrappedResponse<Fragment>, (string | number | undefined)[], number> | undefined;
|
|
1396
|
+
} & {
|
|
1397
|
+
queryKey: (string | number | undefined)[] & {
|
|
1398
|
+
[dataTagSymbol]: _tanstack_react_query.InfiniteData<WrappedResponse<Fragment>, unknown>;
|
|
1399
|
+
[dataTagErrorSymbol]: Error;
|
|
1400
|
+
};
|
|
1401
|
+
};
|
|
1350
1402
|
|
|
1351
1403
|
declare function getPromotedPostsQuery<T extends any>(type?: "feed" | "waves"): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<T[], Error, T[], string[]>, "queryFn"> & {
|
|
1352
1404
|
queryFn?: _tanstack_react_query.QueryFunction<T[], string[], never> | undefined;
|
|
@@ -1504,6 +1556,14 @@ declare function getSchedulesQueryOptions(activeUsername: string | undefined, co
|
|
|
1504
1556
|
[dataTagErrorSymbol]: Error;
|
|
1505
1557
|
};
|
|
1506
1558
|
};
|
|
1559
|
+
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"> & {
|
|
1560
|
+
queryFn?: _tanstack_react_query.QueryFunction<WrappedResponse<Schedule>, (string | number | undefined)[], number> | undefined;
|
|
1561
|
+
} & {
|
|
1562
|
+
queryKey: (string | number | undefined)[] & {
|
|
1563
|
+
[dataTagSymbol]: _tanstack_react_query.InfiniteData<WrappedResponse<Schedule>, unknown>;
|
|
1564
|
+
[dataTagErrorSymbol]: Error;
|
|
1565
|
+
};
|
|
1566
|
+
};
|
|
1507
1567
|
|
|
1508
1568
|
declare function getDraftsQueryOptions(activeUsername: string | undefined, code?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Draft[], Error, Draft[], (string | undefined)[]>, "queryFn"> & {
|
|
1509
1569
|
queryFn?: _tanstack_react_query.QueryFunction<Draft[], (string | undefined)[], never> | undefined;
|
|
@@ -1513,6 +1573,14 @@ declare function getDraftsQueryOptions(activeUsername: string | undefined, code?
|
|
|
1513
1573
|
[dataTagErrorSymbol]: Error;
|
|
1514
1574
|
};
|
|
1515
1575
|
};
|
|
1576
|
+
declare function getDraftsInfiniteQueryOptions(activeUsername: string | undefined, code?: string, limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<WrappedResponse<Draft>, Error, _tanstack_react_query.InfiniteData<WrappedResponse<Draft>, unknown>, (string | number | undefined)[], number>, "queryFn"> & {
|
|
1577
|
+
queryFn?: _tanstack_react_query.QueryFunction<WrappedResponse<Draft>, (string | number | undefined)[], number> | undefined;
|
|
1578
|
+
} & {
|
|
1579
|
+
queryKey: (string | number | undefined)[] & {
|
|
1580
|
+
[dataTagSymbol]: _tanstack_react_query.InfiniteData<WrappedResponse<Draft>, unknown>;
|
|
1581
|
+
[dataTagErrorSymbol]: Error;
|
|
1582
|
+
};
|
|
1583
|
+
};
|
|
1516
1584
|
|
|
1517
1585
|
declare function getImagesQueryOptions(username?: string, code?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<UserImage[], Error, UserImage[], (string | undefined)[]>, "queryFn"> & {
|
|
1518
1586
|
queryFn?: _tanstack_react_query.QueryFunction<UserImage[], (string | undefined)[], never> | undefined;
|
|
@@ -1530,6 +1598,14 @@ declare function getGalleryImagesQueryOptions(activeUsername: string | undefined
|
|
|
1530
1598
|
[dataTagErrorSymbol]: Error;
|
|
1531
1599
|
};
|
|
1532
1600
|
};
|
|
1601
|
+
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"> & {
|
|
1602
|
+
queryFn?: _tanstack_react_query.QueryFunction<WrappedResponse<UserImage>, (string | number | undefined)[], number> | undefined;
|
|
1603
|
+
} & {
|
|
1604
|
+
queryKey: (string | number | undefined)[] & {
|
|
1605
|
+
[dataTagSymbol]: _tanstack_react_query.InfiniteData<WrappedResponse<UserImage>, unknown>;
|
|
1606
|
+
[dataTagErrorSymbol]: Error;
|
|
1607
|
+
};
|
|
1608
|
+
};
|
|
1533
1609
|
|
|
1534
1610
|
interface CommentHistoryListItem {
|
|
1535
1611
|
title: string;
|
|
@@ -3196,4 +3272,4 @@ declare function getHiveEngineUnclaimedRewards<T = Record<string, unknown>>(user
|
|
|
3196
3272
|
declare function getSpkWallet<T = Record<string, unknown>>(username: string): Promise<T>;
|
|
3197
3273
|
declare function getSpkMarkets<T = Record<string, unknown>>(): Promise<T>;
|
|
3198
3274
|
|
|
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,
|
|
3275
|
+
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, getAnnouncementsQueryOptions, getBookmarksInfiniteQueryOptions, getBookmarksQueryOptions, 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, getFavouritesInfiniteQueryOptions, getFavouritesQueryOptions, 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, isWrappedResponse, lookupAccountsQueryOptions, makeQueryClient, mapThreadItemsToWaveEntries, markNotifications, moveSchedule, normalizePost, normalizeToWrappedResponse, 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 };
|