@rentman/rm-core 6.1.2 → 6.1.3

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.
@@ -56,7 +56,7 @@ export declare class TransactionCache extends AbstractCache {
56
56
  };
57
57
  };
58
58
  };
59
- isValid: boolean;
59
+ get isValid(): boolean;
60
60
  /**
61
61
  * @description
62
62
  * Stores the 'root' {@link ItemEntry ItemEntry}, this {@link ItemEntry ItemEntry} can be used as request parent to store the whole transaction at once
@@ -91,6 +91,7 @@ export declare class TransactionCache extends AbstractCache {
91
91
  readonly eventHandler: TransactionEventHandler;
92
92
  private readonly validator?;
93
93
  private changesInterval;
94
+ private _isValid;
94
95
  constructor(dependencies: AbstractCacheDependencyInterface, core: RmCore, parent: AbstractCache,
95
96
  /**
96
97
  * @description
@@ -6,8 +6,14 @@ export interface TransactionValidatorFactory {
6
6
  }
7
7
  export declare abstract class TransactionValidator {
8
8
  protected transaction: TransactionCache;
9
- private lastCallId;
9
+ private lastCallIdMap;
10
+ private _lastCallId;
10
11
  protected constructor(transaction: TransactionCache);
12
+ /**
13
+ * @description
14
+ * Will return `true` if there are any validators pending
15
+ */
16
+ isPending(): boolean;
11
17
  /**
12
18
  * @description
13
19
  * Will be called after {@link TransactionCache.applyChangesFromParent applyChangesFromParent}, {@link TransactionCache.applyChangesFromChild applyChangesFromChild} or {@link TransactionCache.applyChangesDelta applyChangesDelta} is called
@@ -24,5 +30,5 @@ export declare abstract class TransactionValidator {
24
30
  abstract validateItem<ItemTypeType extends ItemType>(itemEntry: ItemEntry<ItemTypeType>, fields: FieldMap<ItemTypeType>, previous: FieldMap<ItemTypeType>): void;
25
31
  protected setGlobalError(key: string, isInvalid: boolean | PromiseInterface<boolean>, saveButtonErrorTranslationFn: () => string, level: TransactionErrorLevel): void;
26
32
  protected setItemError(itemEntryId: ItemEntry['id'], columnId: string, errorKey: string, isInvalid: boolean | PromiseInterface<boolean>, fieldErrorTranslationFn: () => string, saveButtonErrorTranslationFn: () => string, level: TransactionErrorLevel): void;
27
- private getRandomId;
33
+ private getHash;
28
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rentman/rm-core",
3
- "version": "6.1.2",
3
+ "version": "6.1.3",
4
4
  "description": "Rentman core functionalities",
5
5
  "main": "./dist/rm-core.js",
6
6
  "types": "./dist/types/index.d.ts",