@rentman/rm-core 12.0.5 → 12.1.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.
@@ -21,7 +21,8 @@ import { SurfaceArticleSizeBusinessLogicRule } from './Materiaal/SurfaceArticleS
21
21
  import { OfferteContractDatumBusinessLogicRule } from './OfferteContract/OfferteContractDatumBusinessLogicRule';
22
22
  import { PlanningPersoneelTransportBusinessLogicRule } from './PlanningPersoneelTransport/PlanningPersoneelTransportBusinessLogicRule';
23
23
  import { ProjectClientNoteBusinessLogicRule } from './Project/ProjectClientNoteBusinessLogicRule';
24
- import { ReparatieAanschafdatumBusinessLogicRule } from './Reparatie/ReparatieExemplaarBusinessLogicRule';
24
+ import { ReparatiesExemplaarAantalBusinessLogicRule } from './Reparatie/ReparatieExemplaarAantalBusinessLogicRule';
25
+ import { ReparatiesExemplaarLocationBusinessLogicRule } from './Reparatie/ReparatieExemplaarLocationBusinessLogicRule';
25
26
  import { RolDocumentAccessBusinessLogicRule } from './Rol/RolDocumentAccessBusinessLogicRule';
26
27
  import { RolEditOwnDataBusinessLogicRule } from './Rol/RolEditOwnDataBusinessLogicRule';
27
28
  import { RolFileAccessBusinessLogicRule } from './Rol/RolFileAccessBusinessLogicRule';
@@ -58,7 +59,8 @@ export declare class BusinessLogicManager {
58
59
  RolProjectenBewerkenBusinessLogicRule: RolProjectenBewerkenBusinessLogicRule;
59
60
  RolProjectenToegangBusinessLogicRule: RolProjectenToegangBusinessLogicRule;
60
61
  ExemplaarAanschafdatumBusinessLogicRule: ExemplaarAanschafdatumBusinessLogicRule;
61
- ReparatieAanschafdatumBusinessLogicRule: ReparatieAanschafdatumBusinessLogicRule;
62
+ ReparatiesExemplaarAantalBusinessLogicRule: ReparatiesExemplaarAantalBusinessLogicRule;
63
+ ReparatiesExemplaarLocationBusinessLogicRule: ReparatiesExemplaarLocationBusinessLogicRule;
62
64
  MateriaalVerhuurBusinessLogicRule: MateriaalVerhuurBusinessLogicRule;
63
65
  MateriaalTypeBusinessLogicRule: MateriaalTypeBusinessLogicRule;
64
66
  SurfaceArticleSizeBusinessLogicRule: SurfaceArticleSizeBusinessLogicRule;
@@ -5,7 +5,7 @@ import { ChangesDelta } from '../../ChangesDelta';
5
5
  import { BusinessLogicRule } from '../BusinessLogicRule';
6
6
  declare type ConditionResult = ItemId[];
7
7
  declare type Dependency = ItemResource<ApiEnumItemType.Reparatie, ['aantal']>[];
8
- export declare class ReparatieAanschafdatumBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
8
+ export declare class ReparatiesExemplaarAantalBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
9
9
  condition(changesDelta: ChangesDelta): ConditionResult | undefined;
10
10
  dependency(transaction: TransactionCache, reparatieIds: ConditionResult): Promise<Dependency>;
11
11
  apply(_changesDelta: ChangesDelta, destinationChangesDelta: ChangesDelta, reparatieResources: Dependency): void;
@@ -0,0 +1,23 @@
1
+ import { ApiEnumItemType, ItemId } from '@rentman/backend-types';
2
+ import { ItemEntry } from '../../../models/ItemEntry';
3
+ import { ItemResource } from '../../../models/ItemResource';
4
+ import { ApiFormatter } from '../../ApiFormatter';
5
+ import { TransactionCache } from '../../cache/transaction/TransactionCache';
6
+ import { ChangesDelta } from '../../ChangesDelta';
7
+ import { BusinessLogicRule } from '../BusinessLogicRule';
8
+ declare type ConditionResult = {
9
+ entry: ItemEntry<ApiEnumItemType.Reparatie>;
10
+ exemplaar: ItemId;
11
+ }[];
12
+ declare type Dependency = {
13
+ entries: ItemEntry<ApiEnumItemType.Reparatie>[];
14
+ exemplaarResources: ItemResource<ApiEnumItemType.Exemplaar, ['id', 'asset_location']>[];
15
+ };
16
+ export declare class ReparatiesExemplaarLocationBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
17
+ protected apiFormatter: ApiFormatter;
18
+ constructor(apiFormatter: ApiFormatter);
19
+ condition(changesDelta: ChangesDelta): ConditionResult | undefined;
20
+ dependency(transaction: TransactionCache, conditionResult: ConditionResult): Promise<Dependency>;
21
+ apply(changesDelta: ChangesDelta, destinationChangesDelta: ChangesDelta, dependency: Dependency): void;
22
+ }
23
+ export {};
@@ -93,7 +93,7 @@ export * from './classes/BusinessLogicManager/Materiaal/MateriaalTelexemplarenBu
93
93
  export * from './classes/BusinessLogicManager/OfferteContract/OfferteContractDatumBusinessLogicRule';
94
94
  export * from './classes/BusinessLogicManager/PlanningPersoneelTransport/PlanningPersoneelTransportBusinessLogicRule';
95
95
  export * from './classes/BusinessLogicManager/Project/ProjectClientNoteBusinessLogicRule';
96
- export * from './classes/BusinessLogicManager/Reparatie/ReparatieExemplaarBusinessLogicRule';
96
+ export * from './classes/BusinessLogicManager/Reparatie/ReparatieExemplaarAantalBusinessLogicRule';
97
97
  export * from './classes/BusinessLogicManager/Rol/RolDocumentAccessBusinessLogicRule';
98
98
  export * from './classes/BusinessLogicManager/Rol/RolEditOwnDataBusinessLogicRule';
99
99
  export * from './classes/BusinessLogicManager/Rol/RolFileAccessBusinessLogicRule';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rentman/rm-core",
3
- "version": "12.0.5",
3
+ "version": "12.1.0",
4
4
  "description": "Rentman core functionalities",
5
5
  "main": "./dist/rm-core.js",
6
6
  "types": "./dist/types/src/index.d.ts",