@quatrain/core 1.0.0-beta12 → 1.0.0-beta13

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.
@@ -22,10 +22,26 @@ export declare class ObjectUri {
22
22
  set class(objClass: any);
23
23
  get class(): any;
24
24
  get backend(): string;
25
+ /**
26
+ * Returns the full path of the resource
27
+ * including optional parents' path
28
+ * @returns string
29
+ */
25
30
  get path(): string;
31
+ /**
32
+ * Returns the own path of the resource
33
+ * without the optional parents' paths
34
+ * @returns string
35
+ */
36
+ get ownPath(): string;
26
37
  get parent(): ObjectUri | undefined;
27
38
  set label(label: string | undefined);
28
39
  get label(): string | undefined;
40
+ /**
41
+ * Return the full path litteral
42
+ * including the backend alias
43
+ * @returns string
44
+ */
29
45
  get literal(): string;
30
46
  set path(path: string);
31
47
  get uid(): string | undefined;
@@ -72,7 +72,22 @@ class ObjectUri {
72
72
  get backend() {
73
73
  return this._backend;
74
74
  }
75
+ /**
76
+ * Returns the full path of the resource
77
+ * including optional parents' path
78
+ * @returns string
79
+ */
75
80
  get path() {
81
+ return this._parent
82
+ ? `${this._parent.path}${ObjectUri.DEFAULT}${this._path}`
83
+ : this._path;
84
+ }
85
+ /**
86
+ * Returns the own path of the resource
87
+ * without the optional parents' paths
88
+ * @returns string
89
+ */
90
+ get ownPath() {
76
91
  return this._path;
77
92
  }
78
93
  get parent() {
@@ -84,6 +99,11 @@ class ObjectUri {
84
99
  get label() {
85
100
  return this._label;
86
101
  }
102
+ /**
103
+ * Return the full path litteral
104
+ * including the backend alias
105
+ * @returns string
106
+ */
87
107
  get literal() {
88
108
  return this._str.includes(':')
89
109
  ? this._str
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quatrain/core",
3
- "version": "1.0.0-beta12",
3
+ "version": "1.0.0-beta13",
4
4
  "description": "Core objects for business apps",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",