@_linked/org 1.2.0 → 1.2.1
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/CHANGELOG.md +6 -0
- package/lib/esm/backend.js.map +1 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/ontologies/org.js.map +1 -1
- package/lib/esm/ontologies/org.register.js.map +1 -1
- package/lib/esm/package.js.map +1 -1
- package/lib/esm/shapes/Membership.js.map +1 -1
- package/lib/esm/shapes/Role.js.map +1 -1
- package/lib/esm/types.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @\_linked/org
|
|
2
2
|
|
|
3
|
+
## 1.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#19](https://github.com/linked-fw/org/pull/19) [`ed27d6e`](https://github.com/linked-fw/org/commit/ed27d6e31801810b50d60c973602b92950338287) Thanks [@flyon](https://github.com/flyon)! - Sourcemaps now embed their TypeScript source, so consumers no longer see 'points to missing source files' warnings.
|
|
8
|
+
|
|
3
9
|
## 1.2.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/lib/esm/backend.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend.js","sourceRoot":"","sources":["../../src/backend.ts"],"names":[],"mappings":"AAAA,gEAAgE"}
|
|
1
|
+
{"version":3,"file":"backend.js","sourceRoot":"","sources":["../../src/backend.ts"],"names":[],"mappings":"AAAA,gEAAgE","sourcesContent":["//import your providers here (providers only run in the backend)"]}
|
package/lib/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AACtC,OAAO,YAAY,CAAC;AAEpB,cAAc;AACd,+BAA+B;AAC/B,OAAO,wBAAwB,CAAC;AAChC,OAAO,kBAAkB,CAAC;AAE1B,iBAAiB;AACjB,sCAAsC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AACtC,OAAO,YAAY,CAAC;AAEpB,cAAc;AACd,+BAA+B;AAC/B,OAAO,wBAAwB,CAAC;AAChC,OAAO,kBAAkB,CAAC;AAE1B,iBAAiB;AACjB,sCAAsC","sourcesContent":["import './ontologies/org.register.js';\nimport './types.js';\n\n//SHAPES FIRST\n// import './shapes/YourShape';\nimport './shapes/Membership.js';\nimport './shapes/Role.js';\n\n//THEN COMPONENTS\n// import './components/YourComponent'\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"org.js","sourceRoot":"","sources":["../../../src/ontologies/org.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,eAAe,EAAC,MAAM,+BAA+B,CAAC;AAE9D;;GAEG;AACH,MAAM,CAAC,IAAI,QAAQ,GAAG,KAAK,IAAI,EAAE;IAC/B,YAAY;IACZ,OAAO,MAAM,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACnG,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,IAAI,EAAE,GAAG,eAAe,CAAC,2BAA2B,CAAC,CAAC;AAE7D;;GAEG;AACH,MAAM,CAAC,IAAI,KAAK,GAAuB,EAAE,CAAC,EAAE,CAAC,CAAC;AAE9C,kGAAkG;AAClG,MAAM,CAAC,IAAI,UAAU,GAAuB,EAAE,CAAC,YAAY,CAAC,CAAC;AAC7D,MAAM,CAAC,IAAI,IAAI,GAAuB,EAAE,CAAC,MAAM,CAAC,CAAC;AACjD,MAAM,CAAC,IAAI,aAAa,GAAuB,EAAE,CAAC,eAAe,CAA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YAAY,GAAuB,EAAE,CAAC,cAAc,CAAC,CAAC;AACjE,MAAM,CAAC,IAAI,YAAY,GAAuB,EAAE,CAAC,cAAc,CAAC,CAAC;AACjE,MAAM,CAAC,IAAI,MAAM,GAAuB,EAAE,CAAC,QAAQ,CAAC,CAAC;AACrD,MAAM,CAAC,IAAI,IAAI,GAAuB,EAAE,CAAC,MAAM,CAAC,CAAC;AAEjD,mFAAmF;AACnF,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,UAAU;IACV,IAAI;IACJ,aAAa;IACb,YAAY;IACZ,YAAY;IACZ,MAAM;IACN,IAAI;CACL,CAAC","sourcesContent":["import type {NodeReferenceValue} from '@_linked/core/utils/NodeReference';\nimport {createNameSpace} from '@_linked/core/utils/NameSpace';\n\n/**\n * Load the data of this ontology into memory, thus adding the properties of the entities of this ontology to the local graph.\n */\nexport var loadData = async () => {\n //@ts-ignore\n return import('../data/lincd-org.json', { with: { type: 'json' } }).then((data) => data.default);\n};\n\n/**\n * The namespace of this ontology, which can be used to create NamedNodes with URI's not listed in this file\n */\nexport var ns = createNameSpace('http://www.w3.org/ns/org#');\n\n/**\n * The NamedNode of the ontology itself\n */\nexport var _self: NodeReferenceValue = ns('');\n\n//A list of all the entities (Classes & Properties) of this ontology, each exported as a NamedNode\nexport var Membership: NodeReferenceValue = ns('Membership');\nexport var Role: NodeReferenceValue = ns('Role');\nexport var hasMembership: NodeReferenceValue = ns('hasMembership');\nexport var Organization: NodeReferenceValue = ns('Organization');\nexport var organization: NodeReferenceValue = ns('organization');\nexport var member: NodeReferenceValue = ns('member');\nexport var role: NodeReferenceValue = ns('role');\n\n//An extra grouping object so all the entities can be accessed from the prefix/name\nexport const org = {\n Membership,\n Role,\n hasMembership,\n Organization,\n organization,\n member,\n role\n};\n\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"org.register.js","sourceRoot":"","sources":["../../../src/ontologies/org.register.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC;AAClC,OAAO,EAAC,QAAQ,EAAE,EAAE,EAAC,MAAM,UAAU,CAAC;AACtC,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAE7C,cAAc,CAAC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,wBAAwB,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"org.register.js","sourceRoot":"","sources":["../../../src/ontologies/org.register.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC;AAClC,OAAO,EAAC,QAAQ,EAAE,EAAE,EAAC,MAAM,UAAU,CAAC;AACtC,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAE7C,cAAc,CAAC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,wBAAwB,CAAC,CAAC","sourcesContent":["/**\n * Registers this ontology.\n *\n * Kept out of `org.ts` because registration needs that module's whole export\n * namespace, and a module cannot import itself once a bundler is involved: Rollup\n * treats a static self-reference as a circular import and elides it, so the binding is\n * undefined at runtime and the consuming app dies at boot with `_this is not\n * defined`. `tsc` preserves it, which is why the pattern survived for as long as\n * packages were built with `tsc` alone.\n *\n * From a sibling module the same import is ordinary and survives.\n */\nimport * as terms from './org.js';\nimport {loadData, ns} from './org.js';\nimport {linkedOntology} from '../package.js';\n\nlinkedOntology(terms, ns, 'org', loadData, '../data/lincd-org.json');\n"]}
|
package/lib/esm/package.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.js","sourceRoot":"","sources":["../../src/package.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,6BAA6B,CAAC;AAE1D,MAAM,CAAC,MAAM,EACX,WAAW,EACX,UAAU,EACV,cAAc,EACd,qBAAqB,EACrB,cAAc,EACd,WAAW,EACX,eAAe,EAEhB,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"package.js","sourceRoot":"","sources":["../../src/package.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,6BAA6B,CAAC;AAE1D,MAAM,CAAC,MAAM,EACX,WAAW,EACX,UAAU,EACV,cAAc,EACd,qBAAqB,EACrB,cAAc,EACd,WAAW,EACX,eAAe,EAEhB,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC","sourcesContent":["import {linkedPackage} from '@_linked/core/utils/Package';\n\nexport const {\n linkedShape,\n linkedUtil,\n linkedOntology,\n registerPackageExport,\n packageExports,\n packageName,\n getPackageShape\n\n} = linkedPackage('@_linked/org');\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Membership.js","sourceRoot":"","sources":["../../../src/shapes/Membership.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAErD,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAG1B,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,KAAK;IAGnC,IAKI,MAAM;QACR,OAAO,SAAgB,CAAC;IAC1B,CAAC;IAED,IAKI,IAAI;QACN,OAAO,SAAgB,CAAC;IAC1B,CAAC;IAED,IAKI,YAAY;QACd,OAAO,SAAgB,CAAC;IAC1B,CAAC;;AA3BM,sBAAW,GAAG,GAAG,CAAC,UA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AAC;AAG1B,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,KAAK;IAGnC,IAKI,MAAM;QACR,OAAO,SAAgB,CAAC;IAC1B,CAAC;IAED,IAKI,IAAI;QACN,OAAO,SAAgB,CAAC;IAC1B,CAAC;IAED,IAKI,YAAY;QACd,OAAO,SAAgB,CAAC;IAC1B,CAAC;;AA3BM,sBAAW,GAAG,GAAG,CAAC,UAAU,AAAjB,CAAkB;AAEpC;IAAC,cAAc,CAAC;QACd,IAAI,EAAE,GAAG,CAAC,MAAM;QAChB,KAAK,EAAE,MAAM;QACb,QAAQ,EAAE,CAAC;KACZ,CAAC;8BACY,MAAM;;wCAEnB;AAED;IAAC,cAAc,CAAC;QACd,IAAI,EAAE,GAAG,CAAC,IAAI;QACd,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,CAAC;KACZ,CAAC;8BACU,IAAI;;sCAEf;AAED;IAAC,cAAc,CAAC;QACd,IAAI,EAAE,GAAG,CAAC,YAAY;QACtB,KAAK,EAAE,YAAY;QACnB,QAAQ,EAAE,CAAC;KACZ,CAAC;8BACkB,YAAY;;8CAE/B;AA5BU,UAAU;IADtB,WAAW;GACC,UAAU,CA6BtB;;AAED,uCAAuC;AACvC,mBAAmB,CACjB;IACE,IAAI,EAAE,GAAG,CAAC,aAAa;IACvB,KAAK,EAAE,UAAU;CAClB,EACD,aAAa,EACb,KAAK,CAAC,GAAG,EACT,MAAM,CACP,CAAC;AAOF,sFAAsF;AACtF,iFAAiF;AACjF,0FAA0F;AAC1F,iFAAiF;AACjF,4FAA4F;AAC5F,2CAA2C","sourcesContent":["import { Organization } from '@_linked/schema/shapes/Organization';\nimport { Person } from '@_linked/schema/shapes/Person';\nimport { Thing } from '@_linked/schema/shapes/Thing';\nimport { ShapeSet } from '@_linked/core/collections/ShapeSet';\nimport { shacl } from '@_linked/core/ontologies/shacl';\nimport { createPropertyShape, objectProperty } from '@_linked/core/shapes/SHACL';\nimport { org } from '../ontologies/org.js';\nimport { linkedShape } from '../package.js';\nimport { Role } from './Role.js';\n\n@linkedShape\nexport class Membership extends Thing {\n static targetClass = org.Membership;\n\n @objectProperty({\n path: org.member,\n shape: Person,\n maxCount: 1,\n })\n get member(): Person {\n return undefined as any;\n }\n\n @objectProperty({\n path: org.role,\n shape: Role,\n maxCount: 1,\n })\n get role(): Role {\n return undefined as any;\n }\n\n @objectProperty({\n path: org.organization,\n shape: Organization,\n maxCount: 1,\n })\n get organization(): Organization {\n return undefined as any;\n }\n}\n\n//Support person.memberships in queries\ncreatePropertyShape(\n {\n path: org.hasMembership,\n shape: Membership,\n },\n 'memberships',\n shacl.IRI,\n Person\n);\ndeclare module '@_linked/schema/shapes/Person' {\n interface Person {\n readonly memberships: ShapeSet<Membership>;\n }\n}\n\n// A person → organization sequence path (org:hasMembership / org:organization) is now\n// resolvable by core (plan-012), but Workspace-by-member queries use the inverse\n// `Workspace.memberships` ({inv: org.organization}) instead, so no `Person.organizations`\n// property is needed here. Add one if a forward person→orgs traversal is wanted:\n// createPropertyShape({path: [org.hasMembership, org.organization], shape: Organization},\n// 'organizations', shacl.IRI, Person);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../src/shapes/Role.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAG9C,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,KAAK;;AACtB,gBAAW,GAAG,GAAG,CAAC,IAAI,AAAX,CAAY;AADnB,IAAI;IADhB,WAAW;GACC,IAAI,CAEhB"}
|
|
1
|
+
{"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../src/shapes/Role.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAG9C,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,KAAK;;AACtB,gBAAW,GAAG,GAAG,CAAC,IAAI,AAAX,CAAY;AADnB,IAAI;IADhB,WAAW;GACC,IAAI,CAEhB","sourcesContent":["import {linkedShape} from '../package.js';\nimport { org } from '../ontologies/org.js';\nimport { Thing } from '@_linked/schema/shapes/Thing';\n\n@linkedShape\nexport class Role extends Thing {\n static targetClass = org.Role;\n}\n"]}
|
package/lib/esm/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"","sourcesContent":["declare module '*.module.css' {\n const classes: {[key: string]: string};\n export default classes;\n}\n\ndeclare module '*.module.scss' {\n const classes: {[key: string]: string};\n export default classes;\n}\n"]}
|