@iotexproject/kit 0.2.13 → 0.2.14
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 +121 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9095,6 +9095,7 @@ export type Proposal = {
|
|
|
9095
9095
|
title: string;
|
|
9096
9096
|
content: string;
|
|
9097
9097
|
status: string;
|
|
9098
|
+
repo_status?: string | null;
|
|
9098
9099
|
total_vote_weight?: number;
|
|
9099
9100
|
voter_count?: number;
|
|
9100
9101
|
yes_vote_count?: number;
|
|
@@ -9114,6 +9115,50 @@ export type Proposal = {
|
|
|
9114
9115
|
vote_count?: string | null;
|
|
9115
9116
|
vote_result?: "passed" | "rejected" | "closed" | null;
|
|
9116
9117
|
};
|
|
9118
|
+
export type ProposalV2 = {
|
|
9119
|
+
id: number;
|
|
9120
|
+
iip_key: string;
|
|
9121
|
+
iip_number: number | null;
|
|
9122
|
+
title: string | null;
|
|
9123
|
+
slug: string;
|
|
9124
|
+
content: string;
|
|
9125
|
+
repo_status: string | null;
|
|
9126
|
+
governance_status: string | null;
|
|
9127
|
+
created_at: string;
|
|
9128
|
+
updated_at: string;
|
|
9129
|
+
created_date: string | null;
|
|
9130
|
+
synced_at: string;
|
|
9131
|
+
authors: string | null;
|
|
9132
|
+
type: string | null;
|
|
9133
|
+
category: string | null;
|
|
9134
|
+
discussions_to: string | null;
|
|
9135
|
+
abstract: string | null;
|
|
9136
|
+
source_url: string;
|
|
9137
|
+
total_vote_weight?: number | null;
|
|
9138
|
+
voter_count?: number | null;
|
|
9139
|
+
yes_vote_count?: number | null;
|
|
9140
|
+
yes_vote_weight?: number | null;
|
|
9141
|
+
no_vote_count?: number | null;
|
|
9142
|
+
no_vote_weight?: number | null;
|
|
9143
|
+
abstain_vote_count?: number | null;
|
|
9144
|
+
abstain_vote_weight?: number | null;
|
|
9145
|
+
start_time?: string | null;
|
|
9146
|
+
end_time?: string | null;
|
|
9147
|
+
votes?: Vote[];
|
|
9148
|
+
currentUser?: CurrentUser;
|
|
9149
|
+
vote_count?: string | null;
|
|
9150
|
+
vote_result?: "passed" | "rejected" | "closed" | null;
|
|
9151
|
+
};
|
|
9152
|
+
export type IipProposalForVote = {
|
|
9153
|
+
id: number;
|
|
9154
|
+
iip_number: number;
|
|
9155
|
+
title: string | null;
|
|
9156
|
+
slug: string;
|
|
9157
|
+
content: string;
|
|
9158
|
+
governance_status: string | null;
|
|
9159
|
+
start_time: string | null;
|
|
9160
|
+
end_time: string | null;
|
|
9161
|
+
};
|
|
9117
9162
|
export type CurrentUser = {
|
|
9118
9163
|
voter?: string;
|
|
9119
9164
|
is_voted: boolean;
|
|
@@ -9161,6 +9206,7 @@ declare class Dao extends BaseDBModule {
|
|
|
9161
9206
|
message: string;
|
|
9162
9207
|
signature: string;
|
|
9163
9208
|
proposal_id?: number;
|
|
9209
|
+
iip_number?: number;
|
|
9164
9210
|
proposal_title?: string;
|
|
9165
9211
|
}): Promise<import("postgres").RowList<import("postgres").Row[]>>;
|
|
9166
9212
|
createProposal(args: {
|
|
@@ -9171,6 +9217,81 @@ declare class Dao extends BaseDBModule {
|
|
|
9171
9217
|
start_time: string;
|
|
9172
9218
|
end_time: string;
|
|
9173
9219
|
}): Promise<import("postgres").RowList<import("postgres").Row[]>>;
|
|
9220
|
+
syncProposal(args?: {
|
|
9221
|
+
payload?: Record<string, any>;
|
|
9222
|
+
deliveryId?: string;
|
|
9223
|
+
eventName?: string;
|
|
9224
|
+
repoOwner?: string;
|
|
9225
|
+
repoName?: string;
|
|
9226
|
+
ref?: string | null;
|
|
9227
|
+
pathCsv?: string | null;
|
|
9228
|
+
paths?: string[];
|
|
9229
|
+
githubToken?: string | null;
|
|
9230
|
+
useAi?: boolean;
|
|
9231
|
+
dryRun?: boolean;
|
|
9232
|
+
}): Promise<{
|
|
9233
|
+
sourceRepo: string;
|
|
9234
|
+
ref: string;
|
|
9235
|
+
processed: number;
|
|
9236
|
+
dryRun: boolean;
|
|
9237
|
+
rows: {
|
|
9238
|
+
path: string;
|
|
9239
|
+
sha: string;
|
|
9240
|
+
iipKey: string;
|
|
9241
|
+
title: string | null;
|
|
9242
|
+
deleted?: boolean;
|
|
9243
|
+
action: "upserted" | "deleted" | "dry_run";
|
|
9244
|
+
}[];
|
|
9245
|
+
} | {
|
|
9246
|
+
sourceRepo: string;
|
|
9247
|
+
ref: any;
|
|
9248
|
+
deliveryId: string | null;
|
|
9249
|
+
changedPaths: string[];
|
|
9250
|
+
deletedPaths: string[];
|
|
9251
|
+
processed: number;
|
|
9252
|
+
fullSyncTriggered: boolean;
|
|
9253
|
+
dryRun: boolean;
|
|
9254
|
+
rows: {
|
|
9255
|
+
path: string;
|
|
9256
|
+
sha: string;
|
|
9257
|
+
iipKey: string;
|
|
9258
|
+
title: string | null;
|
|
9259
|
+
deleted?: boolean;
|
|
9260
|
+
action: "upserted" | "deleted" | "dry_run";
|
|
9261
|
+
}[];
|
|
9262
|
+
}>;
|
|
9263
|
+
getProposalForVoteV2({ iip_number, proposal_title }: {
|
|
9264
|
+
iip_number?: number;
|
|
9265
|
+
proposal_title?: string;
|
|
9266
|
+
}): Promise<IipProposalForVote>;
|
|
9267
|
+
getDraftProposalList(args: {
|
|
9268
|
+
page: number;
|
|
9269
|
+
pageSize: number;
|
|
9270
|
+
}): Promise<{
|
|
9271
|
+
data: ProposalV2[] & Iterable<ProposalV2> & import("postgres").ResultQueryMeta<number, keyof ProposalV2>;
|
|
9272
|
+
total: number;
|
|
9273
|
+
}>;
|
|
9274
|
+
getProposalListV2(args: {
|
|
9275
|
+
governanceStatus?: string;
|
|
9276
|
+
repoStatus?: string;
|
|
9277
|
+
orderBy?: string;
|
|
9278
|
+
order?: string;
|
|
9279
|
+
page?: number;
|
|
9280
|
+
pageSize?: number;
|
|
9281
|
+
}): Promise<{
|
|
9282
|
+
data: ProposalV2[] & Iterable<ProposalV2> & import("postgres").ResultQueryMeta<number, keyof ProposalV2>;
|
|
9283
|
+
total: number;
|
|
9284
|
+
}>;
|
|
9285
|
+
getVotesByProposalIdV2({ proposal_id, iip_number, }: {
|
|
9286
|
+
proposal_id?: number;
|
|
9287
|
+
iip_number?: number;
|
|
9288
|
+
}): Promise<Vote[]>;
|
|
9289
|
+
getProposalV2({ id, iip_number, voter, title }: {
|
|
9290
|
+
id?: number;
|
|
9291
|
+
iip_number?: number;
|
|
9292
|
+
voter?: string;
|
|
9293
|
+
title?: string;
|
|
9294
|
+
}): Promise<ProposalV2>;
|
|
9174
9295
|
}
|
|
9175
9296
|
export type ProfileMeta = {
|
|
9176
9297
|
name: string;
|