@intellegens/cornerstone-client 0.0.30 → 0.0.32

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intellegens/cornerstone-client",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  import { ApiReadControllerClient } from '../ApiReadControllerClient';
2
- import { IIdentifiable } from '../../../data';
2
+ import { IIdentifiable, ReadResult } from '../../../data';
3
3
  import { IHttpService } from '../HttpService';
4
4
  /**
5
5
  * Generic API client for consuming any Cornerstone CrudController
@@ -21,14 +21,14 @@ export declare class ApiCrudControllerClient<TKey, TDto extends IIdentifiable<TK
21
21
  * @param dto - Insert request DTO
22
22
  * @returns The created entity DTO
23
23
  */
24
- create(dto: TDto): Promise<TDto>;
24
+ create(dto: TDto): Promise<ReadResult<TDto>>;
25
25
  /**
26
26
  * Updates an existing entity.
27
27
  * @param id - The ID of the entity to update
28
28
  * @param dto - Update request DTO
29
29
  * @returns The updated entity DTO
30
30
  */
31
- update(id: TKey, dto: TDto): Promise<TDto>;
31
+ update(id: TKey, dto: TDto): Promise<ReadResult<TDto>>;
32
32
  /**
33
33
  * Deletes an entity by ID.
34
34
  * @param id - The ID of the entity to delete