@iotexproject/kit 0.1.88 → 0.1.89
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/index.d.ts +9 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
3
|
import { RouteConfig } from '@asteasolutions/zod-to-openapi';
|
|
4
|
+
import { BentoCache, bentostore } from 'bentocache';
|
|
4
5
|
import DataLoader from 'dataloader';
|
|
5
6
|
import postgres from 'postgres';
|
|
6
7
|
import { PickByValue } from 'utility-types';
|
|
@@ -8653,6 +8654,9 @@ declare class ClickHouseSDK {
|
|
|
8653
8654
|
constructor(dbUrl: string);
|
|
8654
8655
|
query(sql: string): Promise<any>;
|
|
8655
8656
|
}
|
|
8657
|
+
declare const bento: BentoCache<{
|
|
8658
|
+
appCache: ReturnType<typeof bentostore>;
|
|
8659
|
+
}>;
|
|
8656
8660
|
declare class BaseDBModule {
|
|
8657
8661
|
ch: ClickHouseSDK;
|
|
8658
8662
|
analyzer: ReturnType<typeof postgres>;
|
|
@@ -8666,6 +8670,7 @@ declare class BaseDBModule {
|
|
|
8666
8670
|
analysis: ClickHouseSDK;
|
|
8667
8671
|
microServiceCenter: ReturnType<typeof postgres>;
|
|
8668
8672
|
dao: ReturnType<typeof postgres>;
|
|
8673
|
+
cache: ReturnType<typeof bento.namespace>;
|
|
8669
8674
|
constructor();
|
|
8670
8675
|
checkAuth(key: string): Promise<{
|
|
8671
8676
|
ok: boolean;
|
|
@@ -9120,7 +9125,10 @@ declare class Dao extends BaseDBModule {
|
|
|
9120
9125
|
order: string;
|
|
9121
9126
|
page: number;
|
|
9122
9127
|
pageSize: number;
|
|
9123
|
-
}): Promise<
|
|
9128
|
+
}): Promise<{
|
|
9129
|
+
data: Proposal[] & Iterable<Proposal> & import("postgres").ResultQueryMeta<number, keyof Proposal>;
|
|
9130
|
+
total: number;
|
|
9131
|
+
}>;
|
|
9124
9132
|
voteForProposal(args: {
|
|
9125
9133
|
voter: string;
|
|
9126
9134
|
message: string;
|