@ecency/sdk 1.5.24 → 1.5.25

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.
@@ -2070,6 +2070,23 @@ function getReblogsQueryOptions(username, activeUsername, limit = 200) {
2070
2070
  enabled: !!username
2071
2071
  });
2072
2072
  }
2073
+ function getRebloggedByQueryOptions(author, permlink) {
2074
+ return reactQuery.queryOptions({
2075
+ queryKey: ["posts", "reblogged-by", author ?? "", permlink ?? ""],
2076
+ queryFn: async () => {
2077
+ if (!author || !permlink) {
2078
+ return [];
2079
+ }
2080
+ const response = await CONFIG.hiveClient.call(
2081
+ "condenser_api",
2082
+ "get_reblogged_by",
2083
+ [author, permlink]
2084
+ );
2085
+ return Array.isArray(response) ? response : [];
2086
+ },
2087
+ enabled: !!author && !!permlink
2088
+ });
2089
+ }
2073
2090
  function getSchedulesQueryOptions(activeUsername, code) {
2074
2091
  return reactQuery.queryOptions({
2075
2092
  queryKey: ["posts", "schedules", activeUsername],
@@ -2423,8 +2440,8 @@ function toEntryArray(x) {
2423
2440
  return Array.isArray(x) ? x : [];
2424
2441
  }
2425
2442
  async function getVisibleFirstLevelThreadItems(container) {
2426
- const queryOptions93 = getDiscussionsQueryOptions(container, "created" /* created */, true);
2427
- const discussionItemsRaw = await CONFIG.queryClient.fetchQuery(queryOptions93);
2443
+ const queryOptions94 = getDiscussionsQueryOptions(container, "created" /* created */, true);
2444
+ const discussionItemsRaw = await CONFIG.queryClient.fetchQuery(queryOptions94);
2428
2445
  const discussionItems = toEntryArray(discussionItemsRaw);
2429
2446
  if (discussionItems.length <= 1) {
2430
2447
  return [];
@@ -6194,6 +6211,7 @@ exports.getProposalVotesInfiniteQueryOptions = getProposalVotesInfiniteQueryOpti
6194
6211
  exports.getProposalsQueryOptions = getProposalsQueryOptions;
6195
6212
  exports.getQueryClient = getQueryClient;
6196
6213
  exports.getRcStatsQueryOptions = getRcStatsQueryOptions;
6214
+ exports.getRebloggedByQueryOptions = getRebloggedByQueryOptions;
6197
6215
  exports.getReblogsQueryOptions = getReblogsQueryOptions;
6198
6216
  exports.getReceivedVestingSharesQueryOptions = getReceivedVestingSharesQueryOptions;
6199
6217
  exports.getRecurrentTransfersQueryOptions = getRecurrentTransfersQueryOptions;