@rentman/rm-core 66.9.0 → 66.9.2-RM4-50299

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.
@@ -9,6 +9,12 @@ export interface TransactionValidatorDependencies {
9
9
  * You are expected to use item and collection change listeners to call the validation functions.
10
10
  */
11
11
  export declare abstract class TransactionValidatorWithDependencies<Dependency extends TransactionValidatorDependencies> extends TransactionValidatorBase {
12
+ /**
13
+ * @description
14
+ * Will be called after {@link TransactionCache.applyChangesFromParent applyChangesFromParent} is called
15
+ * Allows you to set {@link TransactionCache.errors global errors}
16
+ */
17
+ validateTransaction?(): void;
12
18
  dependencies: Dependency;
13
19
  abstract validate(aggregatedCollectionChanges: unknown, aggregatedItemChanges: ItemResourceToAggregatedChanges<Dependency['rootItem']>, isCalledAfterSocketUpdate: boolean): void;
14
20
  abstract fetchDependencies(transaction: TransactionCache, rootItemId: ItemId): Promise<Dependency>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rentman/rm-core",
3
- "version": "66.9.0",
3
+ "version": "66.9.2-RM4-50299",
4
4
  "description": "Rentman core functionalities",
5
5
  "main": "./dist/rm-core.js",
6
6
  "types": "./dist/types/src/index.d.ts",