@edge-base/admin 0.1.3 → 0.1.4
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 +5 -5
- package/dist/client.js +5 -5
- package/package.json +3 -3
package/dist/client.d.ts
CHANGED
|
@@ -37,8 +37,8 @@ export interface JuneAdminClientOptions {
|
|
|
37
37
|
* Does NOT expose: auth, database-live, presence, channel (client-only).
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
|
-
* const posts = await admin.db('shared').table('posts').
|
|
41
|
-
* const docs = await admin.db('workspace', 'ws-456').table('documents').
|
|
40
|
+
* const posts = await admin.db('shared').table('posts').getList();
|
|
41
|
+
* const docs = await admin.db('workspace', 'ws-456').table('documents').getList();
|
|
42
42
|
*/
|
|
43
43
|
export declare class AdminEdgeBase {
|
|
44
44
|
/** Admin user management. */
|
|
@@ -58,13 +58,13 @@ export declare class AdminEdgeBase {
|
|
|
58
58
|
*
|
|
59
59
|
* @example
|
|
60
60
|
* // Static shared DB (id omitted)
|
|
61
|
-
* const posts = await admin.db('shared').table('posts').
|
|
61
|
+
* const posts = await admin.db('shared').table('posts').getList();
|
|
62
62
|
*
|
|
63
63
|
* // Dynamic workspace DB
|
|
64
|
-
* const docs = await admin.db('workspace', 'ws-456').table('documents').
|
|
64
|
+
* const docs = await admin.db('workspace', 'ws-456').table('documents').getList();
|
|
65
65
|
*
|
|
66
66
|
* // Per-user DB
|
|
67
|
-
* const notes = await admin.db('user', 'user-123').table('notes').
|
|
67
|
+
* const notes = await admin.db('user', 'user-123').table('notes').getList();
|
|
68
68
|
*/
|
|
69
69
|
db(namespace: string, id?: string): DbRef;
|
|
70
70
|
/**
|
package/dist/client.js
CHANGED
|
@@ -32,8 +32,8 @@ import { AnalyticsClient } from './analytics.js';
|
|
|
32
32
|
* Does NOT expose: auth, database-live, presence, channel (client-only).
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
|
-
* const posts = await admin.db('shared').table('posts').
|
|
36
|
-
* const docs = await admin.db('workspace', 'ws-456').table('documents').
|
|
35
|
+
* const posts = await admin.db('shared').table('posts').getList();
|
|
36
|
+
* const docs = await admin.db('workspace', 'ws-456').table('documents').getList();
|
|
37
37
|
*/
|
|
38
38
|
export class AdminEdgeBase {
|
|
39
39
|
/** Admin user management. */
|
|
@@ -70,13 +70,13 @@ export class AdminEdgeBase {
|
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
72
|
* // Static shared DB (id omitted)
|
|
73
|
-
* const posts = await admin.db('shared').table('posts').
|
|
73
|
+
* const posts = await admin.db('shared').table('posts').getList();
|
|
74
74
|
*
|
|
75
75
|
* // Dynamic workspace DB
|
|
76
|
-
* const docs = await admin.db('workspace', 'ws-456').table('documents').
|
|
76
|
+
* const docs = await admin.db('workspace', 'ws-456').table('documents').getList();
|
|
77
77
|
*
|
|
78
78
|
* // Per-user DB
|
|
79
|
-
* const notes = await admin.db('user', 'user-123').table('notes').
|
|
79
|
+
* const notes = await admin.db('user', 'user-123').table('notes').getList();
|
|
80
80
|
*/
|
|
81
81
|
db(namespace, id) {
|
|
82
82
|
return new DbRef(this.core, namespace, id, undefined, undefined, this.httpClient);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edge-base/admin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "EdgeBase admin SDK — server-side client for user management, database admin, and analytics",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "https://github.com/edge-base/edgebase.git",
|
|
9
9
|
"directory": "packages/sdk/js/packages/admin"
|
|
10
10
|
},
|
|
11
|
-
"homepage": "https://edgebase
|
|
11
|
+
"homepage": "https://github.com/edge-base/edgebase/tree/main/packages/sdk/js/packages/admin",
|
|
12
12
|
"bugs": "https://github.com/edge-base/edgebase/issues",
|
|
13
13
|
"keywords": [
|
|
14
14
|
"edgebase",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@codemirror/lang-html": "^6.4.11",
|
|
39
|
-
"@edge-base/core": "0.1.
|
|
39
|
+
"@edge-base/core": "0.1.4"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"fast-check": "^4.5.3",
|