@twin.org/auditable-item-graph-rest-client 0.0.2-next.3 → 0.0.2-next.4

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.
@@ -99,6 +99,7 @@ class AuditableItemGraphClient extends apiCore.BaseRestClient {
99
99
  * @param options The query options.
100
100
  * @param options.id The optional id to look for.
101
101
  * @param options.idMode Look in id, alias or both, defaults to both.
102
+ * @param options.idExact Find only exact matches, default to false meaning partial matching.
102
103
  * @param options.resourceTypes Include vertices with specific resource types.
103
104
  * @param conditions Conditions to use in the query.
104
105
  * @param orderBy The order for the results, defaults to created.
@@ -116,6 +117,7 @@ class AuditableItemGraphClient extends apiCore.BaseRestClient {
116
117
  query: {
117
118
  id: options?.id,
118
119
  idMode: options?.idMode,
120
+ idExact: options?.idExact,
119
121
  resourceTypes: apiModels.HttpParameterHelper.arrayToString(options?.resourceTypes),
120
122
  conditions: apiModels.HttpParameterHelper.objectToString(conditions),
121
123
  orderBy,
@@ -97,6 +97,7 @@ class AuditableItemGraphClient extends BaseRestClient {
97
97
  * @param options The query options.
98
98
  * @param options.id The optional id to look for.
99
99
  * @param options.idMode Look in id, alias or both, defaults to both.
100
+ * @param options.idExact Find only exact matches, default to false meaning partial matching.
100
101
  * @param options.resourceTypes Include vertices with specific resource types.
101
102
  * @param conditions Conditions to use in the query.
102
103
  * @param orderBy The order for the results, defaults to created.
@@ -114,6 +115,7 @@ class AuditableItemGraphClient extends BaseRestClient {
114
115
  query: {
115
116
  id: options?.id,
116
117
  idMode: options?.idMode,
118
+ idExact: options?.idExact,
117
119
  resourceTypes: HttpParameterHelper.arrayToString(options?.resourceTypes),
118
120
  conditions: HttpParameterHelper.objectToString(conditions),
119
121
  orderBy,
@@ -30,6 +30,7 @@ export declare class AuditableItemGraphClient extends BaseRestClient implements
30
30
  aliases?: {
31
31
  id: string;
32
32
  aliasFormat?: string;
33
+ unique?: boolean;
33
34
  annotationObject?: IJsonLdNodeObject;
34
35
  }[];
35
36
  resources?: {
@@ -73,6 +74,7 @@ export declare class AuditableItemGraphClient extends BaseRestClient implements
73
74
  aliases?: {
74
75
  id: string;
75
76
  aliasFormat?: string;
77
+ unique?: boolean;
76
78
  annotationObject?: IJsonLdNodeObject;
77
79
  }[];
78
80
  resources?: {
@@ -97,6 +99,7 @@ export declare class AuditableItemGraphClient extends BaseRestClient implements
97
99
  * @param options The query options.
98
100
  * @param options.id The optional id to look for.
99
101
  * @param options.idMode Look in id, alias or both, defaults to both.
102
+ * @param options.idExact Find only exact matches, default to false meaning partial matching.
100
103
  * @param options.resourceTypes Include vertices with specific resource types.
101
104
  * @param conditions Conditions to use in the query.
102
105
  * @param orderBy The order for the results, defaults to created.
@@ -109,6 +112,7 @@ export declare class AuditableItemGraphClient extends BaseRestClient implements
109
112
  query(options?: {
110
113
  id?: string;
111
114
  idMode?: "id" | "alias" | "both";
115
+ idExact?: boolean;
112
116
  resourceTypes?: string[];
113
117
  }, conditions?: IComparator[], orderBy?: keyof Pick<IAuditableItemGraphVertex, "dateCreated" | "dateModified">, orderByDirection?: SortDirection, properties?: (keyof IAuditableItemGraphVertex)[], cursor?: string, pageSize?: number): Promise<IAuditableItemGraphVertexList>;
114
118
  }
package/docs/changelog.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @twin.org/auditable-item-graph-rest-client - Changelog
2
2
 
3
+ ## [0.0.2-next.4](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-rest-client-v0.0.2-next.3...auditable-item-graph-rest-client-v0.0.2-next.4) (2025-09-24)
4
+
5
+
6
+ ### Features
7
+
8
+ * add unique flag for alias, and exact match option for id query ([33dbd19](https://github.com/twinfoundation/auditable-item-graph/commit/33dbd19cabd9fbfaba81032f1d1a6527584c3f5a))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/auditable-item-graph-models bumped from 0.0.2-next.3 to 0.0.2-next.4
16
+
3
17
  ## [0.0.2-next.3](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-rest-client-v0.0.2-next.2...auditable-item-graph-rest-client-v0.0.2-next.3) (2025-08-29)
4
18
 
5
19
 
@@ -256,6 +256,12 @@ The optional id to look for.
256
256
 
257
257
  Look in id, alias or both, defaults to both.
258
258
 
259
+ ###### idExact?
260
+
261
+ `boolean`
262
+
263
+ Find only exact matches, default to false meaning partial matching.
264
+
259
265
  ###### resourceTypes?
260
266
 
261
267
  `string`[]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/auditable-item-graph-rest-client",
3
- "version": "0.0.2-next.3",
3
+ "version": "0.0.2-next.4",
4
4
  "description": "Auditable Item Graph contract implementation which can connect to REST endpoints",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "@twin.org/api-core": "next",
18
18
  "@twin.org/api-models": "next",
19
- "@twin.org/auditable-item-graph-models": "0.0.2-next.3",
19
+ "@twin.org/auditable-item-graph-models": "0.0.2-next.4",
20
20
  "@twin.org/core": "next",
21
21
  "@twin.org/data-json-ld": "next",
22
22
  "@twin.org/entity": "next",