@iotexproject/kit 0.1.99 → 0.2.1

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +47 -19
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -9362,67 +9362,95 @@ export type DelegateMember = {
9362
9362
  };
9363
9363
  declare class Delegate$1 extends BaseDBModule {
9364
9364
  upsertCandidateProfile(args: ProfileMeta): Promise<{
9365
- id: number;
9366
- } | null>;
9365
+ status: string;
9366
+ data: {
9367
+ id: number;
9368
+ } | null;
9369
+ }>;
9367
9370
  getCandidateByAddress({ address }: {
9368
9371
  address: string;
9369
- }): Promise<CandidateProfile>;
9372
+ }): Promise<{
9373
+ status: string;
9374
+ data: CandidateProfile;
9375
+ }>;
9370
9376
  upsertCandidateSecret(args: Candidate$1): Promise<{
9371
- success: boolean;
9377
+ status: string;
9378
+ data: null;
9372
9379
  }>;
9373
9380
  upsertCandidateMeta(args: Candidate$1): Promise<{
9374
- success: boolean;
9381
+ status: string;
9382
+ data: null;
9375
9383
  }>;
9376
9384
  getDelegateHeight({ name }: {
9377
9385
  name: string;
9378
9386
  }): Promise<{
9379
- block_height: string;
9387
+ status: string;
9388
+ data: {
9389
+ block_height: string;
9390
+ };
9380
9391
  }>;
9381
9392
  getProductivityHistory({ startDate, endDate, candidate }: {
9382
9393
  startDate?: string;
9383
9394
  endDate: string;
9384
9395
  candidate: string;
9385
- }): Promise<import("postgres").RowList<ProductivityHistory[]>>;
9396
+ }): Promise<{
9397
+ status: string;
9398
+ data: import("postgres").RowList<ProductivityHistory[]>;
9399
+ }>;
9386
9400
  getProbationHistory({ startDate, endDate, candidate }: {
9387
9401
  startDate: string;
9388
9402
  endDate: string;
9389
9403
  candidate: string;
9390
- }): Promise<import("postgres").RowList<ProbationHistory[]>>;
9391
- getDelegateLatestVersion(): Promise<NodeVersion>;
9404
+ }): Promise<{
9405
+ status: string;
9406
+ data: import("postgres").RowList<ProbationHistory[]>;
9407
+ }>;
9408
+ getDelegateLatestVersion(): Promise<{
9409
+ status: string;
9410
+ data: NodeVersion;
9411
+ }>;
9392
9412
  getDelegateRewards({ candidate }: {
9393
9413
  candidate: string;
9394
- }): Promise<DelegateRewards>;
9414
+ }): Promise<{
9415
+ status: string;
9416
+ data: DelegateRewards;
9417
+ }>;
9395
9418
  getDelegateRewardsHistory({ startDate, endDate, candidate }: {
9396
9419
  startDate: string;
9397
9420
  endDate: string;
9398
9421
  candidate: string;
9399
- }): Promise<import("postgres").RowList<DelegateRewardsHistory[]>>;
9422
+ }): Promise<{
9423
+ status: string;
9424
+ data: import("postgres").RowList<DelegateRewardsHistory[]>;
9425
+ }>;
9400
9426
  getDelegateMembers({ candidate_meta_id }: {
9401
9427
  candidate_meta_id: number;
9402
- }): Promise<import("postgres").RowList<DelegateMember[]>>;
9428
+ }): Promise<{
9429
+ status: string;
9430
+ data: import("postgres").RowList<DelegateMember[]>;
9431
+ }>;
9403
9432
  upsertMember({ member_address, candidate_meta_id, is_active, creator }: {
9404
9433
  member_address: string;
9405
9434
  candidate_meta_id: number;
9406
9435
  is_active: boolean;
9407
9436
  creator: string;
9408
9437
  }): Promise<{
9409
- error: string;
9410
- success?: undefined;
9411
- } | {
9412
- success: boolean;
9413
- error?: undefined;
9438
+ status: string;
9439
+ data: null;
9414
9440
  }>;
9415
9441
  updateCandidateOwner({ candidate_owner, id }: {
9416
9442
  candidate_owner: string;
9417
9443
  id: number;
9418
9444
  }): Promise<{
9419
- success: boolean;
9445
+ status: string;
9446
+ data: null;
9420
9447
  }>;
9421
9448
  transferDelegateOwnership({ candidate_owner, id }: {
9422
9449
  candidate_owner: string;
9423
9450
  id: number;
9424
9451
  }): Promise<{
9425
- success: boolean;
9452
+ status: string;
9453
+ data: null;
9426
9454
  }>;
9427
9455
  }
9428
9456
  declare const modules$1: {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@iotexproject/kit",
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
- "version": "0.1.99",
5
+ "version": "0.2.1",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {