@celobus/sdk 0.0.0-stage → 0.1.0
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/LICENSE +91 -0
- package/README.md +38 -2
- package/dist/access.d.ts +141 -0
- package/dist/access.js +232 -0
- package/dist/codec.d.ts +29 -0
- package/dist/codec.js +361 -0
- package/dist/cron.d.ts +2 -0
- package/dist/cron.js +113 -0
- package/dist/ctx.d.ts +644 -0
- package/dist/ctx.js +657 -0
- package/dist/db.d.ts +234 -0
- package/dist/db.js +495 -0
- package/dist/decimal.d.ts +39 -0
- package/dist/decimal.js +158 -0
- package/dist/declare.d.ts +311 -0
- package/dist/declare.js +78 -0
- package/dist/descriptor.d.ts +229 -0
- package/dist/descriptor.js +899 -0
- package/dist/errors.d.ts +65 -0
- package/dist/errors.js +114 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +34 -0
- package/dist/log.d.ts +39 -0
- package/dist/log.js +101 -0
- package/dist/names.d.ts +12 -0
- package/dist/names.js +41 -0
- package/dist/notify.d.ts +185 -0
- package/dist/notify.js +234 -0
- package/dist/platform.d.ts +61 -0
- package/dist/platform.js +47 -0
- package/dist/plugin.d.ts +43 -0
- package/dist/plugin.js +117 -0
- package/dist/query.d.ts +326 -0
- package/dist/query.js +794 -0
- package/dist/remote.d.ts +8 -0
- package/dist/remote.js +19 -0
- package/dist/schema.d.ts +487 -0
- package/dist/schema.js +405 -0
- package/dist/serve.d.ts +63 -0
- package/dist/serve.js +411 -0
- package/dist/sql.d.ts +13 -0
- package/dist/sql.js +33 -0
- package/dist/ui.d.ts +1867 -0
- package/dist/ui.js +3964 -0
- package/dist/viz-kinds.d.ts +12 -0
- package/dist/viz-kinds.js +14 -0
- package/package.json +33 -4
- package/proto/plugin.proto +994 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** The charts catalogue: every kind the `viz` primitive draws, by family. */
|
|
2
|
+
export declare const VIZ_KINDS: {
|
|
3
|
+
readonly bar: readonly ["bar", "column", "diverging", "dotplot", "funnel", "waterfall"];
|
|
4
|
+
readonly dist: readonly ["candles", "correlation", "cumulative", "density", "densitygrid", "histogram", "parallel", "scatter", "spread"];
|
|
5
|
+
readonly figure: readonly ["chips", "hero", "metric", "metrics", "stats", "versus"];
|
|
6
|
+
readonly flow: readonly ["funnel", "icicle", "layers", "matrix", "network", "outline", "paths", "polar", "quadrant", "radar", "route", "sankey", "steps", "tilemap", "tree", "words"];
|
|
7
|
+
readonly line: readonly ["bump", "line", "multiples", "slope"];
|
|
8
|
+
readonly meter: readonly ["bullet", "checklist", "gauge", "level", "meter", "meterList", "range", "rating", "ring", "steps", "versus"];
|
|
9
|
+
readonly part: readonly ["budget", "donut", "onein", "overlap", "pictogram", "rose", "share", "sharetile", "split", "squares", "treemap", "waffle"];
|
|
10
|
+
readonly table: readonly ["chart", "grid", "list", "pivot"];
|
|
11
|
+
readonly time: readonly ["burn", "calendar", "cohort", "countdown", "cycle", "heatmap", "retention", "schedule", "sla", "slots", "streak", "strip", "timeline", "updown"];
|
|
12
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Generated from crates/descriptor/src/viz_kinds.rs; do not edit.
|
|
2
|
+
// UPDATE_VIZ_KINDS=1 cargo test -p celobus-descriptor viz_kinds
|
|
3
|
+
/** The charts catalogue: every kind the `viz` primitive draws, by family. */
|
|
4
|
+
export const VIZ_KINDS = {
|
|
5
|
+
bar: ["bar", "column", "diverging", "dotplot", "funnel", "waterfall"],
|
|
6
|
+
dist: ["candles", "correlation", "cumulative", "density", "densitygrid", "histogram", "parallel", "scatter", "spread"],
|
|
7
|
+
figure: ["chips", "hero", "metric", "metrics", "stats", "versus"],
|
|
8
|
+
flow: ["funnel", "icicle", "layers", "matrix", "network", "outline", "paths", "polar", "quadrant", "radar", "route", "sankey", "steps", "tilemap", "tree", "words"],
|
|
9
|
+
line: ["bump", "line", "multiples", "slope"],
|
|
10
|
+
meter: ["bullet", "checklist", "gauge", "level", "meter", "meterList", "range", "rating", "ring", "steps", "versus"],
|
|
11
|
+
part: ["budget", "donut", "onein", "overlap", "pictogram", "rose", "share", "sharetile", "split", "squares", "treemap", "waffle"],
|
|
12
|
+
table: ["chart", "grid", "list", "pivot"],
|
|
13
|
+
time: ["burn", "calendar", "cohort", "countdown", "cycle", "heatmap", "retention", "schedule", "sla", "slots", "streak", "strip", "timeline", "updown"],
|
|
14
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celobus/sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "The Celobus plugin SDK for Node.js (TypeScript): declarations, the descriptor and the plugin session",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
+
"author": "Celobus",
|
|
7
|
+
"homepage": "https://celobus.com",
|
|
8
|
+
"repository": { "type": "git", "url": "git+https://github.com/celobus/sdk.git", "directory": "sdk/node" },
|
|
9
|
+
"bugs": "https://github.com/celobus/sdk/issues",
|
|
10
|
+
"keywords": ["celobus", "plugin", "sdk"],
|
|
11
|
+
"type": "module",
|
|
12
|
+
"engines": { "node": ">=22" },
|
|
13
|
+
"main": "dist/index.js",
|
|
14
|
+
"types": "dist/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
|
|
17
|
+
"./platform": { "types": "./dist/platform.d.ts", "default": "./dist/platform.js" },
|
|
18
|
+
"./query": { "types": "./dist/query.d.ts", "default": "./dist/query.js" }
|
|
19
|
+
},
|
|
20
|
+
"files": ["dist", "proto/plugin.proto", "README.md", "LICENSE"],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"prebuild": "node -e \"const fs=require('node:fs');fs.rmSync('dist',{recursive:true,force:true});fs.mkdirSync('proto',{recursive:true});fs.copyFileSync('../../proto/plugin.proto','proto/plugin.proto')\"",
|
|
23
|
+
"build": "tsc -p tsconfig.json",
|
|
24
|
+
"prepack": "npm run build",
|
|
25
|
+
"test": "tsc -p test/tsconfig.json && node --test \"test/*.test.mjs\""
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@grpc/grpc-js": "^1.14.0",
|
|
29
|
+
"@grpc/proto-loader": "^0.8.0"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@types/node": "^24.0.0",
|
|
33
|
+
"typescript": "~5.9.3"
|
|
34
|
+
}
|
|
35
|
+
}
|