@kinotic-ai/core 5.0.0-beta.4 → 5.0.0-beta.5

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 CHANGED
@@ -1292,7 +1292,7 @@ var import_operators2 = require("rxjs/operators");
1292
1292
  // packages/core/package.json
1293
1293
  var package_default = {
1294
1294
  name: "@kinotic-ai/core",
1295
- version: "5.0.0-beta.4",
1295
+ version: "5.0.0-beta.5",
1296
1296
  type: "module",
1297
1297
  files: [
1298
1298
  "dist"
@@ -1660,6 +1660,9 @@ class CrudServiceProxy {
1660
1660
  deleteById(id) {
1661
1661
  return this.serviceProxy.invoke("deleteById", [id]);
1662
1662
  }
1663
+ deleteByIdSync(id) {
1664
+ return this.serviceProxy.invoke("deleteByIdSync", [id]);
1665
+ }
1663
1666
  async findAll(pageable) {
1664
1667
  const page = await this.findAllSinglePage(pageable);
1665
1668
  return new FindAllIterablePage(pageable, page, this);
package/dist/index.d.cts CHANGED
@@ -1093,6 +1093,16 @@ interface ICrudServiceProxy<T extends Identifiable<string>> extends IEditableDat
1093
1093
  */
1094
1094
  deleteById(id: string): Promise<void>;
1095
1095
  /**
1096
+ * Deletes the entity with the given id and waits for the deletion to be visible in search
1097
+ * results before returning.
1098
+ * Use this when you need read-your-write consistency immediately after deletion.
1099
+ *
1100
+ * @param id must not be {@literal null}.
1101
+ * @return a {@link Promise} signaling when the deletion is visible to search.
1102
+ * @throws IllegalArgumentException in case the given {@literal identity} is {@literal null}.
1103
+ */
1104
+ deleteByIdSync(id: string): Promise<void>;
1105
+ /**
1096
1106
  * Returns a {@link Page} of entities meeting the paging restriction provided in the {@code Pageable} object.
1097
1107
  *
1098
1108
  * @param pageable the page settings to be used
@@ -1123,6 +1133,7 @@ declare class CrudServiceProxy<T extends Identifiable<string>> implements ICrudS
1123
1133
  create(entity: T): Promise<T>;
1124
1134
  createSync(entity: T): Promise<T>;
1125
1135
  deleteById(id: string): Promise<void>;
1136
+ deleteByIdSync(id: string): Promise<void>;
1126
1137
  findAll(pageable: Pageable): Promise<IterablePage<T>>;
1127
1138
  findAllSinglePage(pageable: Pageable): Promise<Page<T>>;
1128
1139
  findById(id: string): Promise<T>;
package/dist/index.d.ts CHANGED
@@ -1093,6 +1093,16 @@ interface ICrudServiceProxy<T extends Identifiable<string>> extends IEditableDat
1093
1093
  */
1094
1094
  deleteById(id: string): Promise<void>;
1095
1095
  /**
1096
+ * Deletes the entity with the given id and waits for the deletion to be visible in search
1097
+ * results before returning.
1098
+ * Use this when you need read-your-write consistency immediately after deletion.
1099
+ *
1100
+ * @param id must not be {@literal null}.
1101
+ * @return a {@link Promise} signaling when the deletion is visible to search.
1102
+ * @throws IllegalArgumentException in case the given {@literal identity} is {@literal null}.
1103
+ */
1104
+ deleteByIdSync(id: string): Promise<void>;
1105
+ /**
1096
1106
  * Returns a {@link Page} of entities meeting the paging restriction provided in the {@code Pageable} object.
1097
1107
  *
1098
1108
  * @param pageable the page settings to be used
@@ -1123,6 +1133,7 @@ declare class CrudServiceProxy<T extends Identifiable<string>> implements ICrudS
1123
1133
  create(entity: T): Promise<T>;
1124
1134
  createSync(entity: T): Promise<T>;
1125
1135
  deleteById(id: string): Promise<void>;
1136
+ deleteByIdSync(id: string): Promise<void>;
1126
1137
  findAll(pageable: Pageable): Promise<IterablePage<T>>;
1127
1138
  findAllSinglePage(pageable: Pageable): Promise<Page<T>>;
1128
1139
  findById(id: string): Promise<T>;
package/dist/index.js CHANGED
@@ -1184,7 +1184,7 @@ import { first, map as map2 } from "rxjs/operators";
1184
1184
  // packages/core/package.json
1185
1185
  var package_default = {
1186
1186
  name: "@kinotic-ai/core",
1187
- version: "5.0.0-beta.4",
1187
+ version: "5.0.0-beta.5",
1188
1188
  type: "module",
1189
1189
  files: [
1190
1190
  "dist"
@@ -1552,6 +1552,9 @@ class CrudServiceProxy {
1552
1552
  deleteById(id) {
1553
1553
  return this.serviceProxy.invoke("deleteById", [id]);
1554
1554
  }
1555
+ deleteByIdSync(id) {
1556
+ return this.serviceProxy.invoke("deleteByIdSync", [id]);
1557
+ }
1555
1558
  async findAll(pageable) {
1556
1559
  const page = await this.findAllSinglePage(pageable);
1557
1560
  return new FindAllIterablePage(pageable, page, this);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kinotic-ai/core",
3
- "version": "5.0.0-beta.4",
3
+ "version": "5.0.0-beta.5",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"