@iotexproject/kit 0.1.34 → 0.1.35
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 +41 -23
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8909,7 +8909,7 @@ declare class Analysis extends BaseDBModule {
|
|
|
8909
8909
|
ok: boolean;
|
|
8910
8910
|
msg: any;
|
|
8911
8911
|
}>;
|
|
8912
|
-
|
|
8912
|
+
referral_code({ refer_id, }: {
|
|
8913
8913
|
refer_id: string;
|
|
8914
8914
|
}, ctx?: {
|
|
8915
8915
|
authData?: {
|
|
@@ -8925,22 +8925,6 @@ declare class Analysis extends BaseDBModule {
|
|
|
8925
8925
|
msg: any;
|
|
8926
8926
|
referral_code?: undefined;
|
|
8927
8927
|
}>;
|
|
8928
|
-
fetch_referral_code({ user_id, }: {
|
|
8929
|
-
user_id: string;
|
|
8930
|
-
}, ctx?: {
|
|
8931
|
-
authData?: {
|
|
8932
|
-
app_id: string;
|
|
8933
|
-
api_key: string;
|
|
8934
|
-
};
|
|
8935
|
-
}): Promise<{
|
|
8936
|
-
ok: boolean;
|
|
8937
|
-
referral_code: any;
|
|
8938
|
-
msg?: undefined;
|
|
8939
|
-
} | {
|
|
8940
|
-
ok: boolean;
|
|
8941
|
-
msg: any;
|
|
8942
|
-
referral_code?: undefined;
|
|
8943
|
-
}>;
|
|
8944
8928
|
create_refer({ refer_id, refer_id_type, user_id, device_id, data, }: {
|
|
8945
8929
|
refer_id: string;
|
|
8946
8930
|
refer_id_type: "referral_code" | "user_id";
|
|
@@ -8964,6 +8948,17 @@ declare class Analysis extends BaseDBModule {
|
|
|
8964
8948
|
api_key: string;
|
|
8965
8949
|
};
|
|
8966
8950
|
}): Promise<Record<string, any>>;
|
|
8951
|
+
batch_fetch_event({ event_ids, }: {
|
|
8952
|
+
event_ids: string[];
|
|
8953
|
+
}, ctx?: {
|
|
8954
|
+
authData?: {
|
|
8955
|
+
app_id: string;
|
|
8956
|
+
api_key: string;
|
|
8957
|
+
};
|
|
8958
|
+
}): Promise<any[] | {
|
|
8959
|
+
ok: boolean;
|
|
8960
|
+
msg: string;
|
|
8961
|
+
}>;
|
|
8967
8962
|
fetch_user_point({ user_id, }: {
|
|
8968
8963
|
user_id: string;
|
|
8969
8964
|
}, ctx?: {
|
|
@@ -8980,6 +8975,22 @@ declare class Analysis extends BaseDBModule {
|
|
|
8980
8975
|
msg: any;
|
|
8981
8976
|
point?: undefined;
|
|
8982
8977
|
}>;
|
|
8978
|
+
fetch_invitees_num({ user_id, }: {
|
|
8979
|
+
user_id: string;
|
|
8980
|
+
}, ctx?: {
|
|
8981
|
+
authData?: {
|
|
8982
|
+
app_id: string;
|
|
8983
|
+
api_key: string;
|
|
8984
|
+
};
|
|
8985
|
+
}): Promise<{
|
|
8986
|
+
ok: boolean;
|
|
8987
|
+
invitees_num: any;
|
|
8988
|
+
msg?: undefined;
|
|
8989
|
+
} | {
|
|
8990
|
+
ok: boolean;
|
|
8991
|
+
msg: any;
|
|
8992
|
+
invitees_num?: undefined;
|
|
8993
|
+
}>;
|
|
8983
8994
|
}
|
|
8984
8995
|
declare class Analyzer extends BaseDBModule {
|
|
8985
8996
|
tvl(): Promise<any>;
|
|
@@ -9180,7 +9191,7 @@ declare const modules$1: {
|
|
|
9180
9191
|
};
|
|
9181
9192
|
export type DBModuleType = typeof modules$1;
|
|
9182
9193
|
export interface ConfigOptions {
|
|
9183
|
-
ttl
|
|
9194
|
+
ttl?: number;
|
|
9184
9195
|
checkAuth?: boolean;
|
|
9185
9196
|
}
|
|
9186
9197
|
export type KitModuleFunction<I extends z.AnyZodObject = z.AnyZodObject, O extends z.ZodType | undefined = undefined, R = any> = {
|
|
@@ -10234,11 +10245,6 @@ declare class Point {
|
|
|
10234
10245
|
sub: string;
|
|
10235
10246
|
};
|
|
10236
10247
|
}): Promise<any>;
|
|
10237
|
-
generate_referral_code(args?: any, ctx?: {
|
|
10238
|
-
authData?: {
|
|
10239
|
-
sub: string;
|
|
10240
|
-
};
|
|
10241
|
-
}): Promise<any>;
|
|
10242
10248
|
fetch_referral_code(args?: any, ctx?: {
|
|
10243
10249
|
authData?: {
|
|
10244
10250
|
sub: string;
|
|
@@ -10259,6 +10265,13 @@ declare class Point {
|
|
|
10259
10265
|
sub: string;
|
|
10260
10266
|
};
|
|
10261
10267
|
}): Promise<any>;
|
|
10268
|
+
batch_fetch_event({ event_ids, }: {
|
|
10269
|
+
event_ids: string[];
|
|
10270
|
+
}, ctx?: {
|
|
10271
|
+
authData?: {
|
|
10272
|
+
sub: string;
|
|
10273
|
+
};
|
|
10274
|
+
}): Promise<any>;
|
|
10262
10275
|
my_point_tasks(args?: any, ctx?: {
|
|
10263
10276
|
authData?: {
|
|
10264
10277
|
sub: string;
|
|
@@ -10269,6 +10282,11 @@ declare class Point {
|
|
|
10269
10282
|
sub: string;
|
|
10270
10283
|
};
|
|
10271
10284
|
}): Promise<any>;
|
|
10285
|
+
fetch_invitees_num(args?: any, ctx?: {
|
|
10286
|
+
authData?: {
|
|
10287
|
+
sub: string;
|
|
10288
|
+
};
|
|
10289
|
+
}): Promise<any>;
|
|
10272
10290
|
}
|
|
10273
10291
|
declare const modules$4: {
|
|
10274
10292
|
point: Point;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var U=({url:j="http://localhost:9527",ctx:z}={})=>new Proxy({},{get(L,B,G){return new Proxy({},{get(J,C){return async(b)=>{for(let K in b){if(typeof b[K]==="object")b[K]=JSON.stringify(b[K],(Q,N)=>typeof N==="bigint"?N.toString():N);if(b[K]==null)delete b[K]}const H=`${j}/${String(B)}/${String(C)}?${new URLSearchParams(b).toString()}`;let D;if(z)D=await fetch(H,{headers:{...z}});else D=await fetch(H);return D.json()}}})}}),S=async({args:j={},prop:z,method:L,url:B,fetchRequestInit:G})=>{if(!G?.method||G?.method==="GET"){for(let b in j){if(typeof j[b]==="object")j[b]=JSON.stringify(j[b],(H,D)=>typeof D==="bigint"?D.toString():D);if(j[b]==null)delete j[b]}const J=`${B}/${String(z)}/${String(L)}?${new URLSearchParams(j).toString()}`;return(await fetch(J,{...G})).json()}if(G?.method==="POST"){const J=`${B}/${String(z)}/${String(L)}`;return(await fetch(J,{...G,body:JSON.stringify(j)})).json()}},V=({url:j="http://localhost:9527",fetchRequestInit:z})=>new Proxy({},{get(L,B,G){return new Proxy({},{get(J,C){return async(b)=>{return S({args:b,prop:B,method:C,url:j,fetchRequestInit:z})}}})}}),W=({url:j="http://localhost:9527",fetchRequestInit:z})=>new Proxy({},{get(L,B,G){return new Proxy({},{get(J,C){return async(b)=>{return S({args:b,prop:B,method:C,url:j,fetchRequestInit:z})}}})}}),X=({url:j="http://localhost:9527",fetchRequestInit:z})=>new Proxy({},{get(L,B,G){return new Proxy({},{get(J,C){return async(b)=>{const H=`${j}/${String(B)}/${String(C)}?${new URLSearchParams(b).toString()}`;return(await fetch(H,{method:"GET",...z})).json()}}})}}),Y=({url:j="http://localhost:9527",ctx:z}={})=>new Proxy({},{get(L,B,G){return new Proxy({},{get(J,C){return async(b)=>{let H=!1;for(let N in b){if(typeof b[N]==="object")H=!0;if(b[N]==null)delete b[N]}let D,K,Q={};if(H)D=`${j}/${String(B)}/${String(C)}`;else D=`${j}/${String(B)}/${String(C)}?${new URLSearchParams(b).toString()}`;if(z)Q.headers={...z};if(H)Q.method="POST",Q.body=JSON.stringify(b);return K=await fetch(D,Q),K.json()}}})}});export{X as createIotexscanClient,Y as createIoidClient,W as createClientWithIoPayServer,V as createClientWithDBServer,U as createClient};
|