@iotexproject/kit 0.0.97 → 0.0.98
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 +10 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8310,6 +8310,15 @@ declare class Health {
|
|
|
8310
8310
|
message: string;
|
|
8311
8311
|
};
|
|
8312
8312
|
}
|
|
8313
|
+
declare class Resource {
|
|
8314
|
+
getComponent({ id }: {
|
|
8315
|
+
id: "banner-latest";
|
|
8316
|
+
}): Promise<{
|
|
8317
|
+
id: "banner-latest";
|
|
8318
|
+
fullScreenData: string;
|
|
8319
|
+
mobileData: string;
|
|
8320
|
+
}>;
|
|
8321
|
+
}
|
|
8313
8322
|
declare const modules: {
|
|
8314
8323
|
mimo: Mimo;
|
|
8315
8324
|
staking: Staking;
|
|
@@ -8319,6 +8328,7 @@ declare const modules: {
|
|
|
8319
8328
|
utils: utils;
|
|
8320
8329
|
hub: UseHub;
|
|
8321
8330
|
health: Health;
|
|
8331
|
+
resource: Resource;
|
|
8322
8332
|
};
|
|
8323
8333
|
export type ModuleType = typeof modules;
|
|
8324
8334
|
declare class ClickHouseSDK {
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
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};
|