@iotexproject/kit 0.1.40 → 0.1.42

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 +62 -3
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -8863,7 +8863,6 @@ export type LaunchPadParam = {
8863
8863
  };
8864
8864
  export type CreateProjectParams = {
8865
8865
  id?: number;
8866
- recipient: `0x${string}`;
8867
8866
  projectName: string;
8868
8867
  tokenAddress: string;
8869
8868
  owner: string;
@@ -8899,8 +8898,13 @@ declare class BondingCurve {
8899
8898
  chainId?: undefined;
8900
8899
  value?: undefined;
8901
8900
  }>;
8902
- upsertProject(args: CreateProjectParams, ctx?: ConfigContext): Promise<postgres.Row | postgres.RowList<postgres.Row[]>>;
8903
- projectList(args: {}, ctx?: ConfigContext): Promise<postgres.RowList<postgres.Row[]> | undefined>;
8901
+ upsertProject(args: CreateProjectParams, ctx?: ConfigContext): Promise<postgres.Row>;
8902
+ projectList(args: {}, ctx?: ConfigContext): Promise<postgres.Row[] | undefined>;
8903
+ myProjectList(args: {
8904
+ owner: string;
8905
+ }, ctx?: ConfigContext): Promise<postgres.RowList<postgres.Row[]> | {
8906
+ error: string;
8907
+ } | undefined>;
8904
8908
  projectDetail(args: {
8905
8909
  projectName: string;
8906
8910
  }, ctx?: ConfigContext): Promise<postgres.Row | undefined>;
@@ -8985,6 +8989,7 @@ declare class BaseDBModule {
8985
8989
  ch: ClickHouseSDK;
8986
8990
  analysisDev: ClickHouseSDK;
8987
8991
  analysisProd: ClickHouseSDK;
8992
+ microServiceCenter: ReturnType<typeof postgres>;
8988
8993
  constructor();
8989
8994
  checkAuth(key: string): Promise<{
8990
8995
  ok: boolean;
@@ -9411,6 +9416,59 @@ declare class Mimo$1 extends BaseDBModule {
9411
9416
  last24hFee: string;
9412
9417
  }>;
9413
9418
  }
9419
+ declare class LearnToEarn extends BaseDBModule {
9420
+ checkAuth(key: string): Promise<{
9421
+ ok: boolean;
9422
+ message: string;
9423
+ authData: null;
9424
+ } | {
9425
+ ok: boolean;
9426
+ message: string;
9427
+ authData: {
9428
+ app_id: any;
9429
+ };
9430
+ }>;
9431
+ questions({ post_id }: {
9432
+ post_id: string;
9433
+ }, ctx?: {
9434
+ authData?: {
9435
+ app_id: string;
9436
+ };
9437
+ }): Promise<{
9438
+ ok: boolean;
9439
+ message: string;
9440
+ data: null;
9441
+ msg?: undefined;
9442
+ } | {
9443
+ ok: boolean;
9444
+ msg: string;
9445
+ message?: undefined;
9446
+ data?: undefined;
9447
+ } | {
9448
+ data: import("postgres").RowList<import("postgres").Row[]>;
9449
+ ok: boolean;
9450
+ message: string;
9451
+ msg?: undefined;
9452
+ }>;
9453
+ reply({ answers, ids }: {
9454
+ answers: string[];
9455
+ ids: number[];
9456
+ }, ctx?: {
9457
+ authData?: {
9458
+ app_id: string;
9459
+ };
9460
+ }): Promise<{
9461
+ ok: boolean;
9462
+ message: string;
9463
+ data: null;
9464
+ msg?: undefined;
9465
+ } | {
9466
+ ok: boolean;
9467
+ msg: string;
9468
+ message?: undefined;
9469
+ data?: undefined;
9470
+ } | undefined>;
9471
+ }
9414
9472
  declare const modules$1: {
9415
9473
  account: Account;
9416
9474
  analyzer: Analyzer;
@@ -9420,6 +9478,7 @@ declare const modules$1: {
9420
9478
  health: Health;
9421
9479
  "analysis-dev": AnalysisDev;
9422
9480
  "analysis-prod": AnalysisProd;
9481
+ "learn-to-earn": LearnToEarn;
9423
9482
  contract: Contract;
9424
9483
  resource: Resource;
9425
9484
  iopay: IoPay;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@iotexproject/kit",
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
- "version": "v0.1.40",
5
+ "version": "v0.1.42",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {