@based/functions 3.4.16 → 3.4.17
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/client.d.ts +23 -1
- package/package.json +3 -3
package/dist/client.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
|
|
2
|
+
import type FN_Type_1 from '/Users/marcovieira/dev/sandbox/5/based/packages/type-gen/test/examples/helloWorld/index.ts';
|
|
3
|
+
import type Q_Type_1 from '/Users/marcovieira/dev/sandbox/5/based/packages/type-gen/test/examples/query/index.ts';
|
|
1
4
|
import { AuthState } from './auth.js';
|
|
2
5
|
import { BasedChannel } from './channel.js';
|
|
3
6
|
import { Context } from './context.js';
|
|
@@ -9,7 +12,26 @@ export declare abstract class BasedFunctionClient {
|
|
|
9
12
|
server: any;
|
|
10
13
|
db: DbClient;
|
|
11
14
|
dbs: Record<string, DbClient>;
|
|
12
|
-
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
abstract call(
|
|
18
|
+
name: 'hello-world',
|
|
19
|
+
payload: Parameters<typeof FN_Type_1>[1],
|
|
20
|
+
ctx?: Context
|
|
21
|
+
): ReturnType<typeof FN_Type_1>;
|
|
22
|
+
|
|
23
|
+
abstract call(
|
|
24
|
+
name: 'db:set',
|
|
25
|
+
payload: any,
|
|
26
|
+
ctx?: Context
|
|
27
|
+
): Promise<any>
|
|
28
|
+
|
|
29
|
+
abstract call(
|
|
30
|
+
name: 'db:update-schema',
|
|
31
|
+
payload: any,
|
|
32
|
+
ctx?: Context
|
|
33
|
+
): Promise<any>
|
|
34
|
+
|
|
13
35
|
abstract query(name: string, payload?: any, ctx?: {
|
|
14
36
|
[key: string]: any;
|
|
15
37
|
} | Context): BasedQuery;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@based/functions",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.17",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
},
|
|
18
18
|
"sideEffects": false,
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@based/db": "0.2.
|
|
21
|
-
"@based/utils": "1.2.
|
|
20
|
+
"@based/db": "0.2.18",
|
|
21
|
+
"@based/utils": "1.2.2",
|
|
22
22
|
"utility-types": "^3.10.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|