@rentman/rm-core 10.0.0-alpha.2 → 10.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.
|
@@ -5,7 +5,7 @@ import { TransactionItemHandler } from '../../cache/transaction/TransactionItemH
|
|
|
5
5
|
import { ChangesDelta } from '../../ChangesDelta';
|
|
6
6
|
import { BusinessLogicRule } from '../BusinessLogicRule';
|
|
7
7
|
declare type ConditionResult = ItemId[];
|
|
8
|
-
declare type Dependency = ItemResource<ApiEnumItemType.Rol, ['facturen_eigen', 'general_bestanden_downloaden', 'facturen_toegang']>[];
|
|
8
|
+
declare type Dependency = ItemResource<ApiEnumItemType.Rol, ['facturen_eigen', 'general_bestanden_downloaden', 'facturen_toegang', 'projecten_toegang']>[];
|
|
9
9
|
/**
|
|
10
10
|
* @description
|
|
11
11
|
* If you have project access or can make invoices you should have permissions to download files, see invoices and edit invoices
|
|
@@ -13,6 +13,6 @@ declare type Dependency = ItemResource<ApiEnumItemType.Rol, ['facturen_eigen', '
|
|
|
13
13
|
export declare class RolFileAccessBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
|
|
14
14
|
condition(changesDelta: ChangesDelta, _itemChanges: TransactionItemHandler['itemChanges']): ConditionResult | undefined;
|
|
15
15
|
dependency(transaction: TransactionCache, rolIds: ConditionResult): Promise<Dependency>;
|
|
16
|
-
apply(
|
|
16
|
+
apply(changesDelta: ChangesDelta, destinationChangesDelta: ChangesDelta, rolResources: Dependency): void;
|
|
17
17
|
}
|
|
18
18
|
export {};
|