@ecency/sdk 2.3.14 → 2.3.16
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/{hive-DfGQ3XAe.d.ts → hive-fkgMnAQs.d.ts} +21 -1
- package/dist/browser/hive.d.ts +1 -1
- package/dist/browser/hive.js +2 -2
- package/dist/browser/hive.js.map +1 -1
- package/dist/browser/index.d.ts +23 -5
- package/dist/browser/index.js +3 -3
- package/dist/browser/index.js.map +1 -1
- package/dist/node/hive.cjs +2 -2
- package/dist/node/hive.cjs.map +1 -1
- package/dist/node/hive.mjs +2 -2
- package/dist/node/hive.mjs.map +1 -1
- package/dist/node/index.cjs +3 -3
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.mjs +3 -3
- package/dist/node/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { MutationKey, UseMutationOptions, QueryClient, QueryKey, InfiniteData, UseQueryOptions, UseInfiniteQueryOptions, useMutation } from '@tanstack/react-query';
|
|
3
|
-
import { O as Operation, R as PrivateKey, i as BroadcastResult, g as Authority, S as PublicKey, P as OperationName, aj as operations } from './hive-
|
|
4
|
-
export { A as AccountCreateOperation, f as AssetSymbol, u as CustomJsonOperation, $ as HiveTxTransaction, M as Memo, N as OperationBody, _ as Signature, ae as callREST, af as callRPC, ag as callRPCBroadcast, ah as callWithQuorum, ai as hiveTxConfig,
|
|
3
|
+
import { O as Operation, R as PrivateKey, i as BroadcastResult, g as Authority, S as PublicKey, P as OperationName, aj as operations } from './hive-fkgMnAQs.js';
|
|
4
|
+
export { A as AccountCreateOperation, f as AssetSymbol, u as CustomJsonOperation, $ as HiveTxTransaction, M as Memo, N as OperationBody, _ as Signature, ae as callREST, af as callRPC, ag as callRPCBroadcast, ah as callWithQuorum, ai as hiveTxConfig, am as hiveTxUtils } from './hive-fkgMnAQs.js';
|
|
5
5
|
|
|
6
6
|
interface AiGenerationPrice {
|
|
7
7
|
aspect_ratio: string;
|
|
@@ -1015,6 +1015,14 @@ declare namespace ConfigManager {
|
|
|
1015
1015
|
* @param nodes - Array of Hive RPC node URLs
|
|
1016
1016
|
*/
|
|
1017
1017
|
function setHiveNodes(nodes: string[]): void;
|
|
1018
|
+
/**
|
|
1019
|
+
* Set the User-Agent sent on server-side (Node) requests to Hive nodes.
|
|
1020
|
+
* Lets an app label its own SSR/server traffic (otherwise Node's fetch sends a
|
|
1021
|
+
* bare `node` UA). No effect in browsers (User-Agent is a forbidden header) or
|
|
1022
|
+
* React Native (keeps its native UA). Delegates to the unified hive-tx setter.
|
|
1023
|
+
* @param userAgent - The User-Agent string (e.g. "ecency-web-ssr (+https://ecency.com)")
|
|
1024
|
+
*/
|
|
1025
|
+
function setUserAgent(userAgent: string): void;
|
|
1018
1026
|
/**
|
|
1019
1027
|
* Set DMCA filtering lists
|
|
1020
1028
|
* @param lists - DMCA lists object containing accounts/tags/posts arrays
|
|
@@ -4942,12 +4950,22 @@ interface UseStatsQueryOptions {
|
|
|
4942
4950
|
* landed on it. The API route validates this against an allow-list.
|
|
4943
4951
|
*/
|
|
4944
4952
|
filterBy?: "event:page" | "visit:entry_page";
|
|
4953
|
+
/**
|
|
4954
|
+
* Plausible `date_range`. Pass a tuple `[from, to]` (ISO `YYYY-MM-DD`) to scope
|
|
4955
|
+
* the query — e.g. a post's creation date through today. Scoping is essential:
|
|
4956
|
+
* ClickHouse orders events by `(site_id, toDate(timestamp), …)` and partitions
|
|
4957
|
+
* by month, so a bounded range prunes to a few granules instead of scanning the
|
|
4958
|
+
* whole history. Omitting it falls back to the route default (`"all"`), which on
|
|
4959
|
+
* a high-traffic site is a multi-second full scan. Plausible also accepts the
|
|
4960
|
+
* relative keywords `"day"`, `"7d"`, `"30d"`, `"all"`.
|
|
4961
|
+
*/
|
|
4962
|
+
dateRange?: string | [string, string];
|
|
4945
4963
|
enabled?: boolean;
|
|
4946
4964
|
}
|
|
4947
|
-
declare function getStatsQueryOptions({ url, dimensions, metrics, filterBy, enabled, }: UseStatsQueryOptions): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<StatsResponse, Error, StatsResponse, (string | string[])[]>, "queryFn"> & {
|
|
4948
|
-
queryFn?: _tanstack_react_query.QueryFunction<StatsResponse, (string | string[])[], never> | undefined;
|
|
4965
|
+
declare function getStatsQueryOptions({ url, dimensions, metrics, filterBy, dateRange, enabled, }: UseStatsQueryOptions): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<StatsResponse, Error, StatsResponse, (string | string[] | undefined)[]>, "queryFn"> & {
|
|
4966
|
+
queryFn?: _tanstack_react_query.QueryFunction<StatsResponse, (string | string[] | undefined)[], never> | undefined;
|
|
4949
4967
|
} & {
|
|
4950
|
-
queryKey: (string | string[])[] & {
|
|
4968
|
+
queryKey: (string | string[] | undefined)[] & {
|
|
4951
4969
|
[dataTagSymbol]: StatsResponse;
|
|
4952
4970
|
[dataTagErrorSymbol]: Error;
|
|
4953
4971
|
};
|