@living-architecture/riviere-schema-published-language 0.12.0 → 0.13.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 +5 -0
- package/dist/_chunks/{chunk-ZFY6USXH.js → chunk-2VDMTWS5.js} +13 -0
- package/dist/published-language/graph-validation.js +1 -1
- package/dist/published-language/link-id.d.ts +9 -1
- package/dist/published-language/link-id.d.ts.map +1 -1
- package/dist/published-language/link-id.js +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Riviere schema definition with TypeScript types and validation.
|
|
4
4
|
|
|
5
|
+
The `description` in [package.json](package.json) is the source of truth for this
|
|
6
|
+
subdomain's purpose. See the generated
|
|
7
|
+
[domain guide](../../../docs/architecture/ddd/domain-guide.md) for its place in
|
|
8
|
+
the current domain landscape.
|
|
9
|
+
|
|
5
10
|
## Install
|
|
6
11
|
|
|
7
12
|
```bash
|
|
@@ -3,6 +3,13 @@ var LinkId = class _LinkId {
|
|
|
3
3
|
constructor(value) {
|
|
4
4
|
this.value = value;
|
|
5
5
|
}
|
|
6
|
+
static parse(value) {
|
|
7
|
+
return new _LinkId(value);
|
|
8
|
+
}
|
|
9
|
+
static parseFromGraphLink(link) {
|
|
10
|
+
if (link.id !== void 0) return new _LinkId(link.id);
|
|
11
|
+
return _LinkId.parseFromLink(link);
|
|
12
|
+
}
|
|
6
13
|
static parseFromLink(link) {
|
|
7
14
|
const source = escapePercent(link.source).replaceAll("->", "%2D%3E");
|
|
8
15
|
const target = escapePercent(link.target).replaceAll("@", "%40");
|
|
@@ -22,6 +29,12 @@ var LinkId = class _LinkId {
|
|
|
22
29
|
toString() {
|
|
23
30
|
return this.value;
|
|
24
31
|
}
|
|
32
|
+
localeCompare(other) {
|
|
33
|
+
return this.value.localeCompare(other.value);
|
|
34
|
+
}
|
|
35
|
+
toJSON() {
|
|
36
|
+
return this.value;
|
|
37
|
+
}
|
|
25
38
|
};
|
|
26
39
|
function escapePercent(value) {
|
|
27
40
|
return value.replaceAll("%", "%25");
|
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
import type { SourceLocation } from './schema';
|
|
2
2
|
/** @riviere-role value-object */
|
|
3
3
|
export declare class LinkId {
|
|
4
|
-
|
|
4
|
+
readonly value: string;
|
|
5
5
|
private readonly brand;
|
|
6
6
|
private constructor();
|
|
7
|
+
static parse(value: string): LinkId;
|
|
8
|
+
static parseFromGraphLink(link: {
|
|
9
|
+
id?: string;
|
|
10
|
+
source: string;
|
|
11
|
+
target: string;
|
|
12
|
+
}): LinkId;
|
|
7
13
|
static parseFromLink(link: {
|
|
8
14
|
source: string;
|
|
9
15
|
target: string;
|
|
10
16
|
sourceLocation?: SourceLocation;
|
|
11
17
|
}): LinkId;
|
|
12
18
|
toString(): string;
|
|
19
|
+
localeCompare(other: LinkId): number;
|
|
20
|
+
toJSON(): string;
|
|
13
21
|
}
|
|
14
22
|
//# sourceMappingURL=link-id.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link-id.d.ts","sourceRoot":"","sources":["../../src/published-language/link-id.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAE9C,iCAAiC;AACjC,qBAAa,MAAM;IAGG,
|
|
1
|
+
{"version":3,"file":"link-id.d.ts","sourceRoot":"","sources":["../../src/published-language/link-id.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAE9C,iCAAiC;AACjC,qBAAa,MAAM;IAGG,QAAQ,CAAC,KAAK,EAAE,MAAM;IAF1C,iBAAyB,KAAK,CAAU;IAExC,OAAO,eAAuC;IAE9C,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAElC;IAED,MAAM,CAAC,kBAAkB,CAAC,IAAI,EAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAGvF;IAED,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE;QACzB,MAAM,EAAE,MAAM,CAAA;QACd,MAAM,EAAE,MAAM,CAAA;QACd,cAAc,CAAC,EAAE,cAAc,CAAA;KAChC,GAAG,MAAM,CAqBT;IAED,QAAQ,IAAI,MAAM,CAEjB;IAED,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEnC;IAED,MAAM,IAAI,MAAM,CAEf;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@living-architecture/riviere-schema-published-language",
|
|
3
|
-
"
|
|
3
|
+
"description": "Defines the public Rivière architecture graph language, including components, connections, identifiers, custom properties, and validation rules.",
|
|
4
|
+
"version": "0.13.0",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"publishConfig": {
|
|
6
7
|
"access": "public"
|