@twin.org/entity-storage-rest-client 0.0.1-next.27 → 0.0.1-next.29
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/docs/changelog.md
CHANGED
@@ -1,5 +1,33 @@
|
|
1
1
|
# @twin.org/entity-storage-rest-client - Changelog
|
2
2
|
|
3
|
+
## [0.0.1-next.29](https://github.com/twinfoundation/entity-storage/compare/entity-storage-rest-client-v0.0.1-next.28...entity-storage-rest-client-v0.0.1-next.29) (2025-04-17)
|
4
|
+
|
5
|
+
|
6
|
+
### Features
|
7
|
+
|
8
|
+
* use shared store mechanism ([#34](https://github.com/twinfoundation/entity-storage/issues/34)) ([68b6b71](https://github.com/twinfoundation/entity-storage/commit/68b6b71e7a96d7d016cd57bfff36775b56bf3f93))
|
9
|
+
|
10
|
+
|
11
|
+
### Dependencies
|
12
|
+
|
13
|
+
* The following workspace dependencies were updated
|
14
|
+
* dependencies
|
15
|
+
* @twin.org/entity-storage-models bumped from 0.0.1-next.28 to 0.0.1-next.29
|
16
|
+
|
17
|
+
## [0.0.1-next.28](https://github.com/twinfoundation/entity-storage/compare/entity-storage-rest-client-v0.0.1-next.27...entity-storage-rest-client-v0.0.1-next.28) (2025-04-09)
|
18
|
+
|
19
|
+
|
20
|
+
### Miscellaneous Chores
|
21
|
+
|
22
|
+
* **entity-storage-rest-client:** Synchronize repo versions
|
23
|
+
|
24
|
+
|
25
|
+
### Dependencies
|
26
|
+
|
27
|
+
* The following workspace dependencies were updated
|
28
|
+
* dependencies
|
29
|
+
* @twin.org/entity-storage-models bumped from 0.0.1-next.27 to 0.0.1-next.28
|
30
|
+
|
3
31
|
## [0.0.1-next.27](https://github.com/twinfoundation/entity-storage/compare/entity-storage-rest-client-v0.0.1-next.26...entity-storage-rest-client-v0.0.1-next.27) (2025-03-28)
|
4
32
|
|
5
33
|
|
@@ -8,7 +8,9 @@ Client for performing entity storage through to REST endpoints.
|
|
8
8
|
|
9
9
|
## Type Parameters
|
10
10
|
|
11
|
-
|
11
|
+
### T
|
12
|
+
|
13
|
+
`T`
|
12
14
|
|
13
15
|
## Implements
|
14
16
|
|
@@ -16,9 +18,9 @@ Client for performing entity storage through to REST endpoints.
|
|
16
18
|
|
17
19
|
## Constructors
|
18
20
|
|
19
|
-
###
|
21
|
+
### Constructor
|
20
22
|
|
21
|
-
> **new EntityStorageClient**\<`T`\>(`config`):
|
23
|
+
> **new EntityStorageClient**\<`T`\>(`config`): `EntityStorageClient`\<`T`\>
|
22
24
|
|
23
25
|
Create a new instance of EntityStorageClient.
|
24
26
|
|
@@ -32,7 +34,7 @@ The configuration for the client.
|
|
32
34
|
|
33
35
|
#### Returns
|
34
36
|
|
35
|
-
|
37
|
+
`EntityStorageClient`\<`T`\>
|
36
38
|
|
37
39
|
#### Overrides
|
38
40
|
|
@@ -80,7 +82,7 @@ The id of the entity.
|
|
80
82
|
|
81
83
|
### get()
|
82
84
|
|
83
|
-
> **get**(`id`, `secondaryIndex
|
85
|
+
> **get**(`id`, `secondaryIndex?`): `Promise`\<`undefined` \| `T`\>
|
84
86
|
|
85
87
|
Get an entity.
|
86
88
|
|
@@ -138,7 +140,7 @@ Nothing.
|
|
138
140
|
|
139
141
|
### query()
|
140
142
|
|
141
|
-
> **query**(`conditions
|
143
|
+
> **query**(`conditions?`, `orderBy?`, `orderByDirection?`, `properties?`, `cursor?`, `pageSize?`): `Promise`\<\{ `entities`: `Partial`\<`T`\>[]; `cursor`: `string`; \}\>
|
142
144
|
|
143
145
|
Query all the entities which match the conditions.
|
144
146
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@twin.org/entity-storage-rest-client",
|
3
|
-
"version": "0.0.1-next.
|
3
|
+
"version": "0.0.1-next.29",
|
4
4
|
"description": "Entity Storage contract implementation which can connect to REST endpoints",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"@twin.org/api-models": "next",
|
19
19
|
"@twin.org/core": "next",
|
20
20
|
"@twin.org/entity": "next",
|
21
|
-
"@twin.org/entity-storage-models": "0.0.1-next.
|
21
|
+
"@twin.org/entity-storage-models": "0.0.1-next.29",
|
22
22
|
"@twin.org/nameof": "next",
|
23
23
|
"@twin.org/web": "next"
|
24
24
|
},
|