@exellix/catalox-graphs 1.2.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/README.md +76 -0
- package/dist/browser/catalox-api-client.d.ts +119 -0
- package/dist/browser/catalox-api-client.d.ts.map +1 -0
- package/dist/browser/catalox-api-client.js +53 -0
- package/dist/browser/catalox-api-client.js.map +1 -0
- package/dist/client/catalox-api.d.ts +29 -0
- package/dist/client/catalox-api.d.ts.map +1 -0
- package/dist/client/catalox-api.js +97 -0
- package/dist/client/catalox-api.js.map +1 -0
- package/dist/client/catalox-runtime.d.ts +4 -0
- package/dist/client/catalox-runtime.d.ts.map +1 -0
- package/dist/client/catalox-runtime.js +32 -0
- package/dist/client/catalox-runtime.js.map +1 -0
- package/dist/config/catalog-ids.d.ts +12 -0
- package/dist/config/catalog-ids.d.ts.map +1 -0
- package/dist/config/catalog-ids.js +11 -0
- package/dist/config/catalog-ids.js.map +1 -0
- package/dist/config/catalox-context-from-env.d.ts +13 -0
- package/dist/config/catalox-context-from-env.d.ts.map +1 -0
- package/dist/config/catalox-context-from-env.js +25 -0
- package/dist/config/catalox-context-from-env.js.map +1 -0
- package/dist/http/register-routes.d.ts +6 -0
- package/dist/http/register-routes.d.ts.map +1 -0
- package/dist/http/register-routes.js +288 -0
- package/dist/http/register-routes.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/react/CataloxGraphPicker.d.ts +21 -0
- package/dist/react/CataloxGraphPicker.d.ts.map +1 -0
- package/dist/react/CataloxGraphPicker.js +97 -0
- package/dist/react/CataloxGraphPicker.js.map +1 -0
- package/dist/react/index.d.ts +4 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +4 -0
- package/dist/react/index.js.map +1 -0
- package/dist/react/useCataloxGraphs.d.ts +17 -0
- package/dist/react/useCataloxGraphs.d.ts.map +1 -0
- package/dist/react/useCataloxGraphs.js +56 -0
- package/dist/react/useCataloxGraphs.js.map +1 -0
- package/dist/readiness.d.ts +8 -0
- package/dist/readiness.d.ts.map +1 -0
- package/dist/readiness.js +38 -0
- package/dist/readiness.js.map +1 -0
- package/dist/stores/concept-store.d.ts +16 -0
- package/dist/stores/concept-store.d.ts.map +1 -0
- package/dist/stores/concept-store.js +28 -0
- package/dist/stores/concept-store.js.map +1 -0
- package/dist/stores/graph-project-build.d.ts +15 -0
- package/dist/stores/graph-project-build.d.ts.map +1 -0
- package/dist/stores/graph-project-build.js +71 -0
- package/dist/stores/graph-project-build.js.map +1 -0
- package/dist/stores/graph-store.d.ts +43 -0
- package/dist/stores/graph-store.d.ts.map +1 -0
- package/dist/stores/graph-store.js +92 -0
- package/dist/stores/graph-store.js.map +1 -0
- package/dist/stores/graph-template-store.d.ts +28 -0
- package/dist/stores/graph-template-store.d.ts.map +1 -0
- package/dist/stores/graph-template-store.js +63 -0
- package/dist/stores/graph-template-store.js.map +1 -0
- package/dist/stores/graph-version-store.d.ts +31 -0
- package/dist/stores/graph-version-store.d.ts.map +1 -0
- package/dist/stores/graph-version-store.js +108 -0
- package/dist/stores/graph-version-store.js.map +1 -0
- package/dist/types/graph-project.d.ts +52 -0
- package/dist/types/graph-project.d.ts.map +1 -0
- package/dist/types/graph-project.js +2 -0
- package/dist/types/graph-project.js.map +1 -0
- package/package.json +68 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export type GraphProjectSummary = {
|
|
2
|
+
itemId: string;
|
|
3
|
+
graphId: string;
|
|
4
|
+
title: string;
|
|
5
|
+
updatedAt?: string;
|
|
6
|
+
status?: string;
|
|
7
|
+
};
|
|
8
|
+
export type GraphProjectDocument = {
|
|
9
|
+
graph: Record<string, unknown>;
|
|
10
|
+
concept?: Record<string, unknown>;
|
|
11
|
+
title?: string;
|
|
12
|
+
graphId?: string;
|
|
13
|
+
updatedAt?: string;
|
|
14
|
+
formatVersion?: string;
|
|
15
|
+
status?: string;
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
};
|
|
18
|
+
export type LoadGraphResult = {
|
|
19
|
+
ok: true;
|
|
20
|
+
graph: Record<string, unknown>;
|
|
21
|
+
graphId: string;
|
|
22
|
+
concept?: Record<string, unknown>;
|
|
23
|
+
item: Record<string, unknown>;
|
|
24
|
+
} | {
|
|
25
|
+
ok: false;
|
|
26
|
+
error: string;
|
|
27
|
+
};
|
|
28
|
+
export type SaveGraphOptions = {
|
|
29
|
+
title?: string;
|
|
30
|
+
concept?: Record<string, unknown>;
|
|
31
|
+
conceptName?: string;
|
|
32
|
+
status?: string;
|
|
33
|
+
};
|
|
34
|
+
export type GraphVersionPayload = {
|
|
35
|
+
graphId: string;
|
|
36
|
+
versionId: string;
|
|
37
|
+
savedAt: string;
|
|
38
|
+
source: string;
|
|
39
|
+
graph: Record<string, unknown>;
|
|
40
|
+
concept?: Record<string, unknown>;
|
|
41
|
+
note?: string;
|
|
42
|
+
};
|
|
43
|
+
export type GraphTemplatePayload = {
|
|
44
|
+
templateKey: string;
|
|
45
|
+
title: string;
|
|
46
|
+
graphSkeleton: Record<string, unknown>;
|
|
47
|
+
dynamicFields?: unknown[];
|
|
48
|
+
sourceGraphId?: string;
|
|
49
|
+
tags?: string[];
|
|
50
|
+
templateType?: 'saved' | 'system';
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=graph-project.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-project.d.ts","sourceRoot":"","sources":["../../src/types/graph-project.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,M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CAAC;CACf,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CACnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-project.js","sourceRoot":"","sources":["../../src/types/graph-project.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@exellix/catalox-graphs",
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"description": "Catalox graph catalog data tier: CRUD for graphs, versions, templates, and shared React picker.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=20"
|
|
8
|
+
},
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public",
|
|
11
|
+
"registry": "https://registry.npmjs.org/"
|
|
12
|
+
},
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"import": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./http": {
|
|
21
|
+
"types": "./dist/http/register-routes.d.ts",
|
|
22
|
+
"import": "./dist/http/register-routes.js"
|
|
23
|
+
},
|
|
24
|
+
"./browser": {
|
|
25
|
+
"types": "./dist/browser/catalox-api-client.d.ts",
|
|
26
|
+
"import": "./dist/browser/catalox-api-client.js"
|
|
27
|
+
},
|
|
28
|
+
"./react": {
|
|
29
|
+
"types": "./dist/react/index.d.ts",
|
|
30
|
+
"import": "./dist/react/index.js"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"dist",
|
|
35
|
+
"README.md"
|
|
36
|
+
],
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "tsc -p tsconfig.build.json && tsc -p tsconfig.react.json",
|
|
39
|
+
"clean": "node -e \"import('node:fs').then(fs=>fs.promises.rm('dist',{recursive:true,force:true}))\"",
|
|
40
|
+
"prepack": "npm run build",
|
|
41
|
+
"test": "vitest run",
|
|
42
|
+
"test:watch": "vitest",
|
|
43
|
+
"patch:graphs-graphid-index": "node scripts/patch-graphs-catalog-graphid-index.mjs"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@x12i/catalox": "^5.9.8"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@types/node": "^22.10.2",
|
|
50
|
+
"@types/react": "^19.2.17",
|
|
51
|
+
"fastify": "^5.8.5",
|
|
52
|
+
"react": "^19.2.7",
|
|
53
|
+
"typescript": "^5.7.2",
|
|
54
|
+
"vitest": "^3.0.0"
|
|
55
|
+
},
|
|
56
|
+
"keywords": [
|
|
57
|
+
"exellix",
|
|
58
|
+
"catalox",
|
|
59
|
+
"graphs",
|
|
60
|
+
"graphs-studio"
|
|
61
|
+
],
|
|
62
|
+
"license": "exellix-license",
|
|
63
|
+
"repository": {
|
|
64
|
+
"type": "git",
|
|
65
|
+
"url": "git+ssh://git@github.com/exellix/exellix-engine-mono-repo.git",
|
|
66
|
+
"directory": "catalox-graphs"
|
|
67
|
+
}
|
|
68
|
+
}
|