@api-client/core 0.17.2 → 0.17.3
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/build/src/modeling/Semantics.d.ts +4 -7
- package/build/src/modeling/Semantics.d.ts.map +1 -1
- package/build/src/modeling/Semantics.js +2 -2
- package/build/src/modeling/Semantics.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/modeling/Semantics.ts +9 -1
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable no-redeclare */
|
|
1
2
|
/* eslint-disable max-len */
|
|
2
3
|
import type { DomainPropertyType } from './DataFormat.js'
|
|
3
4
|
|
|
@@ -609,13 +610,20 @@ export const DataSemantics: Record<SemanticType, DataSemantic> = {
|
|
|
609
610
|
},
|
|
610
611
|
}
|
|
611
612
|
|
|
613
|
+
export function getSemanticsByCategory(): Record<SemanticCategory, DataSemantic[]>
|
|
614
|
+
export function getSemanticsByCategory(scope: SemanticScope.Entity): Record<SemanticCategory, EntitySemantic[]>
|
|
615
|
+
export function getSemanticsByCategory(scope: SemanticScope.Property): Record<SemanticCategory, PropertySemantic[]>
|
|
616
|
+
export function getSemanticsByCategory(
|
|
617
|
+
scope: SemanticScope.Association
|
|
618
|
+
): Record<SemanticCategory, AssociationSemantic[]>
|
|
619
|
+
|
|
612
620
|
/**
|
|
613
621
|
* Helper function to get all semantics grouped by category.
|
|
614
622
|
* Useful for organizing semantics in UI dropdowns and forms.
|
|
615
623
|
*
|
|
616
624
|
* @param scope Optional scope to filter semantics by (Entity, Property, Association)
|
|
617
625
|
*/
|
|
618
|
-
export
|
|
626
|
+
export function getSemanticsByCategory(scope?: SemanticScope): Record<SemanticCategory, DataSemantic[]> {
|
|
619
627
|
const result: Record<SemanticCategory, DataSemantic[]> = {
|
|
620
628
|
[SemanticCategory.Identity]: [],
|
|
621
629
|
[SemanticCategory.Lifecycle]: [],
|