@kinotic-ai/core 1.1.1 → 1.2.1
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/dist/index.cjs +7 -1000
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +7 -1030
- package/package.json +3 -2
package/dist/index.d.cts
CHANGED
|
@@ -958,6 +958,15 @@ interface ICrudServiceProxy<T extends Identifiable<string>> extends IEditableDat
|
|
|
958
958
|
*/
|
|
959
959
|
save(entity: T): Promise<T>;
|
|
960
960
|
/**
|
|
961
|
+
* Saves a given entity and waits for the changes to be visible in search results before returning.
|
|
962
|
+
* Use the returned instance for further operations as the save operation might have changed the entity instance completely.
|
|
963
|
+
*
|
|
964
|
+
* @param entity must not be {@literal null}.
|
|
965
|
+
* @return a {@link Promise} emitting the saved entity.
|
|
966
|
+
* @throws Error in case the given {@literal entity} is {@literal null}.
|
|
967
|
+
*/
|
|
968
|
+
saveSync(entity: T): Promise<T>;
|
|
969
|
+
/**
|
|
961
970
|
* Retrieves an entity by its id.
|
|
962
971
|
*
|
|
963
972
|
* @param id must not be {@literal null}.
|
|
@@ -1013,6 +1022,7 @@ declare class CrudServiceProxy<T extends Identifiable<string>> implements ICrudS
|
|
|
1013
1022
|
findAllSinglePage(pageable: Pageable): Promise<Page<T>>;
|
|
1014
1023
|
findById(id: string): Promise<T>;
|
|
1015
1024
|
save(entity: T): Promise<T>;
|
|
1025
|
+
saveSync(entity: T): Promise<T>;
|
|
1016
1026
|
findByIdNotIn(ids: string[], page: Pageable): Promise<Page<Identifiable<string>>>;
|
|
1017
1027
|
search(searchText: string, pageable: Pageable): Promise<IterablePage<T>>;
|
|
1018
1028
|
searchSinglePage(searchText: string, pageable: Pageable): Promise<Page<T>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -958,6 +958,15 @@ interface ICrudServiceProxy<T extends Identifiable<string>> extends IEditableDat
|
|
|
958
958
|
*/
|
|
959
959
|
save(entity: T): Promise<T>;
|
|
960
960
|
/**
|
|
961
|
+
* Saves a given entity and waits for the changes to be visible in search results before returning.
|
|
962
|
+
* Use the returned instance for further operations as the save operation might have changed the entity instance completely.
|
|
963
|
+
*
|
|
964
|
+
* @param entity must not be {@literal null}.
|
|
965
|
+
* @return a {@link Promise} emitting the saved entity.
|
|
966
|
+
* @throws Error in case the given {@literal entity} is {@literal null}.
|
|
967
|
+
*/
|
|
968
|
+
saveSync(entity: T): Promise<T>;
|
|
969
|
+
/**
|
|
961
970
|
* Retrieves an entity by its id.
|
|
962
971
|
*
|
|
963
972
|
* @param id must not be {@literal null}.
|
|
@@ -1013,6 +1022,7 @@ declare class CrudServiceProxy<T extends Identifiable<string>> implements ICrudS
|
|
|
1013
1022
|
findAllSinglePage(pageable: Pageable): Promise<Page<T>>;
|
|
1014
1023
|
findById(id: string): Promise<T>;
|
|
1015
1024
|
save(entity: T): Promise<T>;
|
|
1025
|
+
saveSync(entity: T): Promise<T>;
|
|
1016
1026
|
findByIdNotIn(ids: string[], page: Pageable): Promise<Page<Identifiable<string>>>;
|
|
1017
1027
|
search(searchText: string, pageable: Pageable): Promise<IterablePage<T>>;
|
|
1018
1028
|
searchSinglePage(searchText: string, pageable: Pageable): Promise<Page<T>>;
|