@iotexproject/kit 0.1.88 → 0.1.90
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 +12 -2
- 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;
|
|
@@ -9097,6 +9102,7 @@ export type Proposal = {
|
|
|
9097
9102
|
updated_at: string;
|
|
9098
9103
|
start_time: string;
|
|
9099
9104
|
end_time: string;
|
|
9105
|
+
is_voted?: boolean;
|
|
9100
9106
|
};
|
|
9101
9107
|
declare class Dao extends BaseDBModule {
|
|
9102
9108
|
proposalsDataLoader: DataLoader<number, Proposal | undefined, number>;
|
|
@@ -9108,8 +9114,9 @@ declare class Dao extends BaseDBModule {
|
|
|
9108
9114
|
height: number;
|
|
9109
9115
|
address: string;
|
|
9110
9116
|
}>;
|
|
9111
|
-
getProposal({ id }: {
|
|
9117
|
+
getProposal({ id, voter }: {
|
|
9112
9118
|
id: number;
|
|
9119
|
+
voter?: string;
|
|
9113
9120
|
}): Promise<Proposal | undefined>;
|
|
9114
9121
|
getProposalListByIds({ ids }: {
|
|
9115
9122
|
ids: readonly number[];
|
|
@@ -9120,7 +9127,10 @@ declare class Dao extends BaseDBModule {
|
|
|
9120
9127
|
order: string;
|
|
9121
9128
|
page: number;
|
|
9122
9129
|
pageSize: number;
|
|
9123
|
-
}): Promise<
|
|
9130
|
+
}): Promise<{
|
|
9131
|
+
data: Proposal[] & Iterable<Proposal> & import("postgres").ResultQueryMeta<number, keyof Proposal>;
|
|
9132
|
+
total: number;
|
|
9133
|
+
}>;
|
|
9124
9134
|
voteForProposal(args: {
|
|
9125
9135
|
voter: string;
|
|
9126
9136
|
message: string;
|