@iotexproject/kit 0.0.94 → 0.0.96

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 CHANGED
@@ -4130,6 +4130,7 @@ declare class IoID {
4130
4130
  }): Promise<import("@dappworks/kit/aiem").QueryReturnType<VerifyingProxyEntity, {
4131
4131
  address: true;
4132
4132
  chainId: true;
4133
+ projectId: true;
4133
4134
  projectActivedAmount: true;
4134
4135
  projectAppliedAmount: true;
4135
4136
  projectName: true;
@@ -8420,15 +8421,18 @@ declare class Transaction extends BaseDBModule {
8420
8421
  startCursor: any;
8421
8422
  endCursor: any;
8422
8423
  }>;
8424
+ getAllTransactionsWithAssetsCountByAccount({ address }: {
8425
+ address: string;
8426
+ }): Promise<any>;
8423
8427
  getAllTransactionsWithAssetsByAccount({ address, pageSize, startCursor, endCursor }: {
8424
8428
  address: string;
8425
8429
  pageSize?: number;
8426
- startCursor?: number;
8427
- endCursor?: number;
8430
+ startCursor?: string;
8431
+ endCursor?: string;
8428
8432
  }): Promise<{
8429
8433
  data: import("postgres").Row[];
8430
- startCursor: any;
8431
- endCursor: any;
8434
+ endCursor: string;
8435
+ startCursor: string;
8432
8436
  }>;
8433
8437
  }
8434
8438
  declare class Contract extends BaseDBModule {
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var C=({url:$="http://localhost:9527"}={})=>new Proxy({},{get(j,c,w){return new Proxy({},{get(A,f){return async(x)=>{for(let T in x){if(typeof x[T]==="object")x[T]=JSON.stringify(x[T],(B,W)=>typeof W==="bigint"?W.toString():W);if(x[T]==null)delete x[T]}const b=`${$}/${String(c)}/${String(f)}?${new URLSearchParams(x).toString()}`;return(await fetch(b)).json()}}})}}),D=({url:$="http://localhost:9527"}={})=>new Proxy({},{get(j,c,w){return new Proxy({},{get(A,f){return async(x)=>{for(let T in x){if(typeof x[T]==="object")x[T]=JSON.stringify(x[T],(B,W)=>typeof W==="bigint"?W.toString():W);if(x[T]==null)delete x[T]}const b=`${$}/${String(c)}/${String(f)}?${new URLSearchParams(x).toString()}`;return(await fetch(b)).json()}}})}}),E=({url:$="http://localhost:9527",fetchRequestInit:j})=>new Proxy({},{get(c,w,A){return new Proxy({},{get(f,x){return async(b)=>{const z=`${$}/${String(w)}/${String(x)}`;return(await fetch(z,{method:"POST",...j,body:JSON.stringify(b)})).json()}}})}});export{E as createClientWithWriteDBServer,D as createClientWithDBServer,C as createClient};
1
+ var L=({url:z="http://localhost:9527"}={})=>new Proxy({},{get(F,C,G){return new Proxy({},{get(J,D){return async(x)=>{for(let b in x){if(typeof x[b]==="object")x[b]=JSON.stringify(x[b],(K,j)=>typeof j==="bigint"?j.toString():j);if(x[b]==null)delete x[b]}const B=`${z}/${String(C)}/${String(D)}?${new URLSearchParams(x).toString()}`;return(await fetch(B)).json()}}})}}),M=({url:z="http://localhost:9527"}={})=>new Proxy({},{get(F,C,G){return new Proxy({},{get(J,D){return async(x)=>{for(let b in x){if(typeof x[b]==="object")x[b]=JSON.stringify(x[b],(K,j)=>typeof j==="bigint"?j.toString():j);if(x[b]==null)delete x[b]}const B=`${z}/${String(C)}/${String(D)}?${new URLSearchParams(x).toString()}`;return(await fetch(B)).json()}}})}}),N=({url:z="http://localhost:9527",fetchRequestInit:F})=>new Proxy({},{get(C,G,J){return new Proxy({},{get(D,x){return async(B)=>{const H=`${z}/${String(G)}/${String(x)}`;return(await fetch(H,{method:"POST",...F,body:JSON.stringify(B)})).json()}}})}});export{N as createClientWithWriteDBServer,M as createClientWithDBServer,L as createClient};
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.0.94",
5
+ "version": "v0.0.96",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {