@rentman/rm-core 66.2.0 → 66.3.0

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.
@@ -84,6 +84,13 @@ export declare class TransactionCache extends AbstractCache {
84
84
  */
85
85
  tabRequestParameters: {};
86
86
  hasChangesSignal: WritableSignal<boolean>;
87
+ aiChanges: WritableSignal<{
88
+ created: Set<ItemEntry['id']>;
89
+ deleted: Set<ItemEntry['id']>;
90
+ fields: Partial<{
91
+ [itemEntryId: number]: Set<string>;
92
+ }>;
93
+ }>;
87
94
  /**
88
95
  * @description
89
96
  * The transaction's parent
@@ -159,7 +166,7 @@ export declare class TransactionCache extends AbstractCache {
159
166
  * Note that the transaction can *not* be mutated while it is pending. If you need to apply changes on the
160
167
  * transaction while it is pending, use the `applyChangesDelta` parameter passed to the promise function.
161
168
  */
162
- setPending<Result>(promise: Promise<Result> | ((applyChangesDelta: (changesDelta: ChangesDelta) => Promise<ChangesDeltaResult>) => Promise<Result>)): Promise<Result>;
169
+ setPending<Result>(promise: Promise<Result> | ((applyChangesDelta: (changesDelta: ChangesDelta) => Promise<ChangesDeltaResult>) => Promise<Result>), isDoneByAi: boolean): Promise<Result>;
163
170
  createChild(id?: string, validatorFactory?: TransactionValidatorFactory, options?: TransactionOptions): TransactionCache;
164
171
  createBusinessLogicChild(): TransactionCache;
165
172
  destroy(): void;
@@ -216,7 +223,7 @@ export declare class TransactionCache extends AbstractCache {
216
223
  *
217
224
  * This method waits for other transaction processes to complete, see {@link enqueueAction}.
218
225
  */
219
- applyChangesDelta(changesDelta: ChangesDelta): Promise<ChangesDeltaResult>;
226
+ applyChangesDelta(changesDelta: ChangesDelta, isDoneByAi?: boolean): Promise<ChangesDeltaResult>;
220
227
  /**
221
228
  * See {@link applyChangesDelta}. We're introducing a separate method here to facilitate handling the resulting
222
229
  * promise.
@@ -56,7 +56,7 @@ export declare class TransactionItemHandler extends ItemHandlerBase {
56
56
  */
57
57
  processUpdatesFromDelta(updated: {
58
58
  [itemEntryId: number]: ChangesDeltaBaseItemUpdateDelta<any>;
59
- }, createItemChangesIfNoneExist: boolean, parentChangesDelta: ParentChangesDelta): void;
59
+ }, createItemChangesIfNoneExist: boolean, parentChangesDelta: ParentChangesDelta): Map<ItemEntry['id'], Set<string>>;
60
60
  updateLocalItemIdReferences(itemType: ApiItemType, oldItemId: ItemId, newItemId: ItemId, changesDelta: ChangesDeltaBase): void;
61
61
  registerFieldChangeCallback<ItemTypeType extends ApiItemType>(itemType: ItemTypeType, itemId: ItemId, callback: ItemChangesListener<ItemTypeType>): DeregFunction;
62
62
  createItemEntry(createTuple: ChangesDeltaItemCreateDelta): ItemEntry;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rentman/rm-core",
3
- "version": "66.2.0",
3
+ "version": "66.3.0",
4
4
  "description": "Rentman core functionalities",
5
5
  "main": "./dist/rm-core.js",
6
6
  "types": "./dist/types/src/index.d.ts",