@rentman/rm-core 63.0.0-RM4-45743 → 63.0.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.
@@ -1,12 +1,12 @@
1
+ import { ItemResource } from '../../../models/ItemResource';
1
2
  import { TransactionCache } from '../../cache/transaction/TransactionCache';
2
3
  import { ChangesDeltaItemCreateDelta } from '../../CreatedChangesDelta';
3
4
  import { BLR_SKIP_RULE, BusinessLogicRule } from '../BusinessLogicRule';
4
5
  import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
5
6
  import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
6
- import { LatestItem } from '../BusinessLogicRuleContextBase';
7
- declare const materiaalColumns: readonly ["id", "type", "is_combination", "is_physical"];
7
+ declare const materiaalColumns: readonly ["id", "type"];
8
8
  type ConditionResult = ChangesDeltaItemCreateDelta<'Setinhoud'>[];
9
- type Dependency = Record<string, LatestItem<'Materiaal', typeof materiaalColumns>>;
9
+ type Dependency = Record<string, ItemResource<'Materiaal', typeof materiaalColumns>>;
10
10
  /**
11
11
  * Legacy users won't have the `FUNCTIONALITY_FLEXIBLE_COMBINATION_IN_PLANNING` flag, meaning the `is_fixed` column from `Setinhoud` column isn't editable
12
12
  * With this business rule we enforce the correct (default) value based on the equipment properties (Backend enforces this as well)
@@ -15,7 +15,7 @@ type Dependency = Record<string, LatestItem<'Materiaal', typeof materiaalColumns
15
15
  */
16
16
  export declare class SetinhoudCreateFixedBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
17
17
  condition(context: BusinessLogicRuleConditionContext): ConditionResult | typeof BLR_SKIP_RULE;
18
- dependency(_transaction: TransactionCache, conditionResult: ConditionResult, context: BusinessLogicRuleConditionContext): Promise<Dependency>;
18
+ dependency(transaction: TransactionCache, conditionResult: ConditionResult): Promise<Dependency>;
19
19
  apply(context: BusinessLogicRuleApplyContext, dependencyResult: Dependency, conditionResult: ConditionResult): void;
20
20
  }
21
21
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rentman/rm-core",
3
- "version": "63.0.0-RM4-45743",
3
+ "version": "63.0.0",
4
4
  "description": "Rentman core functionalities",
5
5
  "main": "./dist/rm-core.js",
6
6
  "types": "./dist/types/src/index.d.ts",