@rentman/rm-core 0.0.0-RM4-44763
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.
- package/dist/rm-core.js +2 -0
- package/dist/rm-core.js.map +1 -0
- package/dist/types/src/classes/ApiFormatter.d.ts +66 -0
- package/dist/types/src/classes/ApiRequestService.d.ts +18 -0
- package/dist/types/src/classes/ApiResponseProcessor.d.ts +31 -0
- package/dist/types/src/classes/BusinessLogicManager/AantalBusinessLogicRuleBase.d.ts +36 -0
- package/dist/types/src/classes/BusinessLogicManager/AantaltotaalBusinessLogicRuleBase.d.ts +60 -0
- package/dist/types/src/classes/BusinessLogicManager/Afspraak/AfspraakRecureindBusinessLogicRule.d.ts +5 -0
- package/dist/types/src/classes/BusinessLogicManager/Beschikbaarheid/BeschikbaarheidRecureindBusinessLogicRule.d.ts +5 -0
- package/dist/types/src/classes/BusinessLogicManager/BusinessLogicManager.d.ts +66 -0
- package/dist/types/src/classes/BusinessLogicManager/BusinessLogicRule.d.ts +81 -0
- package/dist/types/src/classes/BusinessLogicManager/BusinessLogicRuleApplyContext.d.ts +32 -0
- package/dist/types/src/classes/BusinessLogicManager/BusinessLogicRuleConditionContext.d.ts +41 -0
- package/dist/types/src/classes/BusinessLogicManager/BusinessLogicRuleContextBase.d.ts +58 -0
- package/dist/types/src/classes/BusinessLogicManager/Contact/ContactAddressBusinessLogicRule.d.ts +22 -0
- package/dist/types/src/classes/BusinessLogicManager/Customfield/CustomFieldLinkedItemTypeBusinessLogicRule.d.ts +18 -0
- package/dist/types/src/classes/BusinessLogicManager/Customfield/CustomFieldTypeBusinessLogicRule.d.ts +18 -0
- package/dist/types/src/classes/BusinessLogicManager/DefaultContactPersonUpdateBusinessLogicRule.d.ts +30 -0
- package/dist/types/src/classes/BusinessLogicManager/Documents/DocumentTemplateBusinessLogicRule.d.ts +20 -0
- package/dist/types/src/classes/BusinessLogicManager/Exemplaar/ExemplaarAanschafdatumBusinessLogicRule.d.ts +14 -0
- package/dist/types/src/classes/BusinessLogicManager/Exemplaar/ExemplaarBarcodeDeleteBusinessLogicRule.d.ts +14 -0
- package/dist/types/src/classes/BusinessLogicManager/Factuur/FactuurBetalingsconditieBusinessLogicRule.d.ts +21 -0
- package/dist/types/src/classes/BusinessLogicManager/Factuur/FactuurDatumBusinessLogicRule.d.ts +23 -0
- package/dist/types/src/classes/BusinessLogicManager/Factuur/FactuurNumberseriesBusinessLogicRule.d.ts +14 -0
- package/dist/types/src/classes/BusinessLogicManager/Files/FilesNameExtensionBusinessLogicRule.d.ts +20 -0
- package/dist/types/src/classes/BusinessLogicManager/Functie/FunctieNaaminternBusinessLogicRule.d.ts +18 -0
- package/dist/types/src/classes/BusinessLogicManager/Functie/FunctieRecureindBusinessLogicRule.d.ts +5 -0
- package/dist/types/src/classes/BusinessLogicManager/Functie/FunctieTwowayBusinessLogicRule.d.ts +14 -0
- package/dist/types/src/classes/BusinessLogicManager/Functiegroep/FunctiegroepSubprojectBusinessLogicRule.d.ts +17 -0
- package/dist/types/src/classes/BusinessLogicManager/Inhuurmateriaal/InhuurmateriaalAantalBusinessLogicRule.d.ts +4 -0
- package/dist/types/src/classes/BusinessLogicManager/Inhuurmateriaal/InhuurmateriaalAantaltotaalBusinessLogicRule.d.ts +9 -0
- package/dist/types/src/classes/BusinessLogicManager/Materiaal/MateriaalBulkToSerialBusinessLogicRule.d.ts +17 -0
- package/dist/types/src/classes/BusinessLogicManager/Materiaal/MateriaalIsCombinationBusinessLogicRule.d.ts +20 -0
- package/dist/types/src/classes/BusinessLogicManager/Materiaal/MateriaalIsPhysicalCombinationBulkBusinessLogicRule.d.ts +19 -0
- package/dist/types/src/classes/BusinessLogicManager/Materiaal/MateriaalSerialToBulkBusinessLogicRule.d.ts +16 -0
- package/dist/types/src/classes/BusinessLogicManager/Materiaal/MateriaalToPhysicalBusinessLogicRule.d.ts +18 -0
- package/dist/types/src/classes/BusinessLogicManager/Materiaal/MateriaalToVirtualBusinessLogicRule.d.ts +22 -0
- package/dist/types/src/classes/BusinessLogicManager/Materiaal/MateriaalTypePropertiesBusinessLogicRule.d.ts +19 -0
- package/dist/types/src/classes/BusinessLogicManager/Materiaal/MateriaalVerhuurBusinessLogicRule.d.ts +19 -0
- package/dist/types/src/classes/BusinessLogicManager/Materiaal/SurfaceArticleSizeBusinessLogicRule.d.ts +23 -0
- package/dist/types/src/classes/BusinessLogicManager/MateriaalCatFunctieFunctiegroep/LinkedTimeItemBusinessLogicRuleBase.d.ts +46 -0
- package/dist/types/src/classes/BusinessLogicManager/MateriaalCatFunctieFunctiegroep/LinkedTimeItemDurationBusinessLogicRule.d.ts +17 -0
- package/dist/types/src/classes/BusinessLogicManager/MateriaalCatFunctieFunctiegroep/LinkedTimeItemMateriaalCatBusinessLogicRule.d.ts +25 -0
- package/dist/types/src/classes/BusinessLogicManager/MateriaalCatFunctieFunctiegroep/LinkedTimeItemSubprojectBusinessLogicRule.d.ts +48 -0
- package/dist/types/src/classes/BusinessLogicManager/MateriaalCatFunctieFunctiegroep/LinkedTimeItemTimeSchemeBusinessLogicRule.d.ts +27 -0
- package/dist/types/src/classes/BusinessLogicManager/MateriaalCatFunctieFunctiegroep/LinkedTimeItemTimeSchemeStartBusinessLogicRule.d.ts +18 -0
- package/dist/types/src/classes/BusinessLogicManager/MateriaalCatFunctieFunctiegroep/LinkedTimeItemTimeValueStartBusinessLogicRule.d.ts +20 -0
- package/dist/types/src/classes/BusinessLogicManager/MateriaalCatFunctieFunctiegroep/TimeColumnUtil.d.ts +132 -0
- package/dist/types/src/classes/BusinessLogicManager/OfferteContract/OfferteContractDatumBusinessLogicRule.d.ts +21 -0
- package/dist/types/src/classes/BusinessLogicManager/PlanningPersoneelTransport/PlanningPersoneelTransportBusinessLogicRule.d.ts +24 -0
- package/dist/types/src/classes/BusinessLogicManager/Planningmateriaal/PlanningmateriaalAantalBusinessLogicRule.d.ts +4 -0
- package/dist/types/src/classes/BusinessLogicManager/Planningmateriaal/PlanningmateriaalAantaltotaalBusinessLogicRule.d.ts +9 -0
- package/dist/types/src/classes/BusinessLogicManager/Planningmateriaal/PlanningmateriaalOptieBusinessLogicRule.d.ts +26 -0
- package/dist/types/src/classes/BusinessLogicManager/Planningmateriaal/PlanningmateriaalParentBusinessLogicRule.d.ts +17 -0
- package/dist/types/src/classes/BusinessLogicManager/Planningmateriaal/PlanningmateriaalStaysAtLocationBusinessLogicRule.d.ts +32 -0
- package/dist/types/src/classes/BusinessLogicManager/Project/ProjectClientChangedBusinessLogicRule.d.ts +31 -0
- package/dist/types/src/classes/BusinessLogicManager/Project/ProjectContactProjectNoteBusinessLogicRule.d.ts +25 -0
- package/dist/types/src/classes/BusinessLogicManager/Project/ProjectOneSubLocationAlignBusinessRule.d.ts +26 -0
- package/dist/types/src/classes/BusinessLogicManager/ProjectSubproject/ProjectSubprojectDefaultTimeBusinessLogicRule.d.ts +26 -0
- package/dist/types/src/classes/BusinessLogicManager/PurchaseOrder/PurchaseOrderApprovalStatusBusinessLogicRule.d.ts +19 -0
- package/dist/types/src/classes/BusinessLogicManager/PurchaseOrder/PurchaseOrderOwnerBusinessLogicRule.d.ts +16 -0
- package/dist/types/src/classes/BusinessLogicManager/Rate/RateUpdatedBusinessLogicRule.d.ts +14 -0
- package/dist/types/src/classes/BusinessLogicManager/RecurrentItem/RecurrentItemRecureindBusinessLogicRule.d.ts +28 -0
- package/dist/types/src/classes/BusinessLogicManager/Reparatie/ReparatieExemplaarAantalBusinessLogicRule.d.ts +14 -0
- package/dist/types/src/classes/BusinessLogicManager/Reparatie/ReparatieLostItemExemplaarLocationBusinessLogicRule.d.ts +21 -0
- package/dist/types/src/classes/BusinessLogicManager/Rol/RolEditOwnDataBusinessLogicRule.d.ts +20 -0
- package/dist/types/src/classes/BusinessLogicManager/Rol/RolFileAccessBusinessLogicRule.d.ts +19 -0
- package/dist/types/src/classes/BusinessLogicManager/Rol/RolPersoneelsplannerToegangBusinessLogicRule.d.ts +20 -0
- package/dist/types/src/classes/BusinessLogicManager/Rol/RolProjectenBewerkenBusinessLogicRule.d.ts +20 -0
- package/dist/types/src/classes/BusinessLogicManager/Rol/RolProjectenToegangBusinessLogicRule.d.ts +21 -0
- package/dist/types/src/classes/BusinessLogicManager/Rol/RolPurchaseOrderAttachPlanningBusinessLogicRule.d.ts +19 -0
- package/dist/types/src/classes/BusinessLogicManager/Rol/RolVisibilityFinancialsBusinessLogicRule.d.ts +35 -0
- package/dist/types/src/classes/BusinessLogicManager/Rol/RolWarehosueTrackingLogAccessBusinessLogicRule.d.ts +20 -0
- package/dist/types/src/classes/BusinessLogicManager/Setinhoud/SetinhoudCreateFixedBusinessLogicRule.d.ts +21 -0
- package/dist/types/src/classes/BusinessLogicManager/Setinhoud/SetinhoudUpdateFixedBusinessLogicRule.d.ts +26 -0
- package/dist/types/src/classes/BusinessLogicManager/Subproject/SubprojectInPlanningBusinessLogicRule.d.ts +14 -0
- package/dist/types/src/classes/BusinessLogicManager/Subproject/SubprojectOneSubLocationAlignBusinessRule.d.ts +27 -0
- package/dist/types/src/classes/BusinessLogicManager/Subproject/SubprojectOneSubNameAlignBusinessRule.d.ts +22 -0
- package/dist/types/src/classes/BusinessLogicManager/Tijd/TijdNameChangedBusinessLogicRule.d.ts +21 -0
- package/dist/types/src/classes/BusinessLogicManager/Tijd/TijdSubprojectChangedBusinessLogicRule.d.ts +17 -0
- package/dist/types/src/classes/BusinessLogicManager/Uren/HoursTypeBusinessLogicRuleBase.d.ts +10 -0
- package/dist/types/src/classes/BusinessLogicManager/Uren/UrenCalculatedDurationBusinessLogicRule.d.ts +13 -0
- package/dist/types/src/classes/BusinessLogicManager/Uren/UrenCanHaveActivitiesBusinessLogicRule.d.ts +13 -0
- package/dist/types/src/classes/BusinessLogicManager/businessLogicRule.decorator.d.ts +13 -0
- package/dist/types/src/classes/BusinessLogicManager/registeredBusinessLogicRules.d.ts +66 -0
- package/dist/types/src/classes/ChangesCompilation.d.ts +26 -0
- package/dist/types/src/classes/ChangesDelta.d.ts +81 -0
- package/dist/types/src/classes/ChangesDeltaBase.d.ts +85 -0
- package/dist/types/src/classes/ChangesProcessor.d.ts +35 -0
- package/dist/types/src/classes/ChildChangesDelta.d.ts +38 -0
- package/dist/types/src/classes/ColumnCache.d.ts +22 -0
- package/dist/types/src/classes/ColumnExpansion.d.ts +18 -0
- package/dist/types/src/classes/ColumnHandler.d.ts +16 -0
- package/dist/types/src/classes/ColumnInfo.d.ts +16 -0
- package/dist/types/src/classes/ColumnSet.d.ts +79 -0
- package/dist/types/src/classes/ColumnUtil.d.ts +97 -0
- package/dist/types/src/classes/ConversionMapService.d.ts +23 -0
- package/dist/types/src/classes/CreateRequest.d.ts +16 -0
- package/dist/types/src/classes/CreatedChangesDelta.d.ts +22 -0
- package/dist/types/src/classes/ItemCache.d.ts +26 -0
- package/dist/types/src/classes/ItemCreateService.d.ts +14 -0
- package/dist/types/src/classes/ItemEntryService.d.ts +29 -0
- package/dist/types/src/classes/KeyService.d.ts +10 -0
- package/dist/types/src/classes/LockService.d.ts +28 -0
- package/dist/types/src/classes/ModuleChangesCompilation.d.ts +20 -0
- package/dist/types/src/classes/ParentChangesDelta.d.ts +42 -0
- package/dist/types/src/classes/QueryColumnExtractor.d.ts +16 -0
- package/dist/types/src/classes/QueryContainsLocalIdParser.d.ts +14 -0
- package/dist/types/src/classes/QueryParser.d.ts +18 -0
- package/dist/types/src/classes/QueryParserBase.d.ts +32 -0
- package/dist/types/src/classes/QueryParserIdUpdater.d.ts +16 -0
- package/dist/types/src/classes/QueryService.d.ts +10 -0
- package/dist/types/src/classes/RequestBuffer/RequestBuffer.d.ts +13 -0
- package/dist/types/src/classes/RequestBuffer/RequestBufferBase.d.ts +37 -0
- package/dist/types/src/classes/RequestBuffer/RequestBufferManager.d.ts +24 -0
- package/dist/types/src/classes/RequestBuffer/SingleQueryRequestBuffer.d.ts +18 -0
- package/dist/types/src/classes/RequestColumnExpansion.d.ts +11 -0
- package/dist/types/src/classes/RequestColumnsOperationsCache.d.ts +45 -0
- package/dist/types/src/classes/SocketMessageHandler.d.ts +28 -0
- package/dist/types/src/classes/TemplateCache.d.ts +61 -0
- package/dist/types/src/classes/Util.d.ts +36 -0
- package/dist/types/src/classes/cache/AbstractCache.d.ts +86 -0
- package/dist/types/src/classes/cache/CachedQueryHandlerBase.d.ts +145 -0
- package/dist/types/src/classes/cache/ItemHandlerBase.d.ts +97 -0
- package/dist/types/src/classes/cache/ItemMatcherBase.d.ts +90 -0
- package/dist/types/src/classes/cache/server/ServerCache.d.ts +83 -0
- package/dist/types/src/classes/cache/server/ServerCachedQueryHandler.d.ts +29 -0
- package/dist/types/src/classes/cache/server/ServerItemHandler.d.ts +35 -0
- package/dist/types/src/classes/cache/transaction/TransactionCache.d.ts +342 -0
- package/dist/types/src/classes/cache/transaction/TransactionCachedQueryHandler.d.ts +111 -0
- package/dist/types/src/classes/cache/transaction/TransactionEventHandler.d.ts +17 -0
- package/dist/types/src/classes/cache/transaction/TransactionItemHandler.d.ts +121 -0
- package/dist/types/src/classes/cache/transaction/TransactionValidator.d.ts +25 -0
- package/dist/types/src/classes/cache/transaction/TransactionValidatorBase.d.ts +19 -0
- package/dist/types/src/classes/cache/transaction/TransactionValidatorWithDependencies.d.ts +15 -0
- package/dist/types/src/classes/changes/CollectionItemChangesListenerContext.d.ts +22 -0
- package/dist/types/src/classes/changes/ItemChangesListenerContext.d.ts +7 -0
- package/dist/types/src/classes/changes/ItemChangesListenerContextBase.d.ts +44 -0
- package/dist/types/src/classes/matcher/CompatorQueryNode.d.ts +24 -0
- package/dist/types/src/classes/matcher/CustomQueryNode.d.ts +8 -0
- package/dist/types/src/classes/matcher/GraphQueryParser.d.ts +34 -0
- package/dist/types/src/classes/matcher/IsComparatorQueryNode.d.ts +13 -0
- package/dist/types/src/classes/matcher/LinkedToQueryNode.d.ts +9 -0
- package/dist/types/src/classes/matcher/NonMatchableQueryNode.d.ts +9 -0
- package/dist/types/src/classes/matcher/NotIsComparatorQueryNode.d.ts +14 -0
- package/dist/types/src/classes/matcher/QueryNode.d.ts +49 -0
- package/dist/types/src/classes/matcher/RootQueryNode.d.ts +14 -0
- package/dist/types/src/classes/matcher/SearchQueryNode.d.ts +8 -0
- package/dist/types/src/classes/matcher/SubQueryNode.d.ts +8 -0
- package/dist/types/src/classes/matcher/ValueTransformers.d.ts +41 -0
- package/dist/types/src/classes/matcher/ValuelessEdgeQueryNode.d.ts +11 -0
- package/dist/types/src/classes/matcher/greater-smaller-than-comparator-query.node.d.ts +25 -0
- package/dist/types/src/constants.d.ts +2 -0
- package/dist/types/src/core.d.ts +63 -0
- package/dist/types/src/exceptions/CriticalBusinessLogicRuleException.d.ts +4 -0
- package/dist/types/src/exceptions/ItemAlreadyExistsException.d.ts +4 -0
- package/dist/types/src/exceptions/ItemLockedException.d.ts +2 -0
- package/dist/types/src/exceptions/ItemNotFoundException.d.ts +5 -0
- package/dist/types/src/exceptions/MissingColumnException.d.ts +6 -0
- package/dist/types/src/exceptions/SavingInProgressException.d.ts +2 -0
- package/dist/types/src/exceptions/TransactionPendingException.d.ts +2 -0
- package/dist/types/src/factories/ApiResponseProcessorFactory.d.ts +5 -0
- package/dist/types/src/factories/ChangesCompilationFactory.d.ts +5 -0
- package/dist/types/src/factories/ChangesDeltaFactory.d.ts +13 -0
- package/dist/types/src/factories/CollectionResourceFactory.d.ts +20 -0
- package/dist/types/src/factories/ColumnExpansionFactory.d.ts +7 -0
- package/dist/types/src/factories/ColumnInfoFactory.d.ts +7 -0
- package/dist/types/src/factories/ColumnSetFactory.d.ts +15 -0
- package/dist/types/src/factories/GraphQueryParserFactory.d.ts +10 -0
- package/dist/types/src/factories/ItemCacheFactory.d.ts +7 -0
- package/dist/types/src/factories/ItemResourceFactory.d.ts +7 -0
- package/dist/types/src/factories/ModuleChangesCompilationFactory.d.ts +6 -0
- package/dist/types/src/factories/RequestColumnExpansionFactory.d.ts +4 -0
- package/dist/types/src/factories/RequestColumnsOperationsCacheFactory.d.ts +7 -0
- package/dist/types/src/factories/TransactionCacheFactory.d.ts +12 -0
- package/dist/types/src/index.d.ts +11 -0
- package/dist/types/src/interfaces/AbstractCacheDependencyInterface.d.ts +46 -0
- package/dist/types/src/interfaces/ApiRequestServiceInterface.d.ts +14 -0
- package/dist/types/src/interfaces/ErrorHandlerInterface.d.ts +6 -0
- package/dist/types/src/interfaces/LinkTreeServiceInterface.d.ts +6 -0
- package/dist/types/src/interfaces/ServerCacheDependencyInterface.d.ts +6 -0
- package/dist/types/src/interfaces/SocketMessageInterface.d.ts +3 -0
- package/dist/types/src/interfaces/TransactionCollectionHandlerDependencyInterface.d.ts +15 -0
- package/dist/types/src/interfaces/TransactionItemHandlerDependencyInterface.d.ts +16 -0
- package/dist/types/src/internal.d.ts +110 -0
- package/dist/types/src/models/CachedQueryItem.d.ts +33 -0
- package/dist/types/src/models/CollectionEntry.d.ts +16 -0
- package/dist/types/src/models/CollectionOptions.d.ts +111 -0
- package/dist/types/src/models/CollectionResource.d.ts +175 -0
- package/dist/types/src/models/ItemEntry.d.ts +23 -0
- package/dist/types/src/models/ItemOptions.d.ts +25 -0
- package/dist/types/src/models/ItemResource.d.ts +135 -0
- package/dist/types/src/models/LimitedCollectionResource.d.ts +26 -0
- package/dist/types/src/models/OrderedCollectionResource.d.ts +19 -0
- package/dist/types/src/models/Template.d.ts +17 -0
- package/dist/types/src/services/rm-holidays.service.d.ts +31 -0
- package/dist/types/src/types/AggregatedChangesListener.d.ts +99 -0
- package/dist/types/src/types/ApiQuery.d.ts +95 -0
- package/dist/types/src/types/ItemTypesCollection.d.ts +416 -0
- package/package.json +56 -0
- package/readme.md +42 -0
package/dist/types/src/classes/BusinessLogicManager/Documents/DocumentTemplateBusinessLogicRule.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ItemId } from '@rentman/backend-types';
|
|
2
|
+
import { ItemResource } from '../../../models/ItemResource';
|
|
3
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
4
|
+
import { BLR_SKIP_RULE, BusinessLogicRule } from '../BusinessLogicRule';
|
|
5
|
+
import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
|
|
6
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
7
|
+
declare const documentTypes: readonly ["Factuur", "Offerte", "Contract", "Bon", "Inhuurbon", "Materiaalbon", "Medewerkerbon", "Aanmaning", "Reparatiebon", "Voertuigbon"];
|
|
8
|
+
type DocumentTypes = (typeof documentTypes)[number];
|
|
9
|
+
type ConditionResult = {
|
|
10
|
+
[key in DocumentTypes]?: ItemId[];
|
|
11
|
+
};
|
|
12
|
+
type Dependency = {
|
|
13
|
+
[key in DocumentTypes]?: ItemResource<DocumentTypes, ['filename', 'betreft']>[];
|
|
14
|
+
};
|
|
15
|
+
export declare class DocumentTemplateBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
|
|
16
|
+
condition(context: BusinessLogicRuleConditionContext): ConditionResult | typeof BLR_SKIP_RULE;
|
|
17
|
+
dependency(transaction: TransactionCache, itemIdMap: ConditionResult): Promise<Dependency>;
|
|
18
|
+
apply(context: BusinessLogicRuleApplyContext, items: Dependency): void;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ItemId } from '@rentman/backend-types';
|
|
2
|
+
import { ItemResource } from '../../../models/ItemResource';
|
|
3
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
4
|
+
import { BLR_SKIP_RULE, BusinessLogicRule } from '../BusinessLogicRule';
|
|
5
|
+
import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
|
|
6
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
7
|
+
type ConditionResult = ItemId[];
|
|
8
|
+
type Dependency = ItemResource<'Exemplaar', ['actief']>[];
|
|
9
|
+
export declare class ExemplaarAanschafdatumBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
|
|
10
|
+
condition({ previousChangesDelta, }: BusinessLogicRuleConditionContext): ConditionResult | typeof BLR_SKIP_RULE;
|
|
11
|
+
dependency(transaction: TransactionCache, exemplaarIds: ConditionResult): Promise<Dependency>;
|
|
12
|
+
apply(context: BusinessLogicRuleApplyContext, exemplaarResources: Dependency): void;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ItemId } from '@rentman/backend-types';
|
|
2
|
+
import { ItemEntry } from '../../../models/ItemEntry';
|
|
3
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
4
|
+
import { BLR_SKIP_RULE, BusinessLogicRule } from '../BusinessLogicRule';
|
|
5
|
+
import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
|
|
6
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
7
|
+
type ConditionResult = ItemId[];
|
|
8
|
+
type Dependency = ItemEntry<'Barcode'>[];
|
|
9
|
+
export declare class ExemplaarBarcodeDeleteBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
|
|
10
|
+
condition({ previousChangesDelta, }: BusinessLogicRuleConditionContext): ConditionResult | typeof BLR_SKIP_RULE;
|
|
11
|
+
dependency(transaction: TransactionCache, exemplaarIds: ConditionResult): Promise<Dependency>;
|
|
12
|
+
apply(context: BusinessLogicRuleApplyContext, barcodeResources: Dependency): void;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ItemId } from '@rentman/backend-types';
|
|
2
|
+
import { ItemResource } from '../../../models/ItemResource';
|
|
3
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
4
|
+
import { BLR_SKIP_RULE, BusinessLogicConditionResult, BusinessLogicRule } from '../BusinessLogicRule';
|
|
5
|
+
import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
|
|
6
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
7
|
+
import { BusinessLogicRuleContextBase } from '../BusinessLogicRuleContextBase';
|
|
8
|
+
type ConditionResult = BusinessLogicConditionResult<'Factuur', 'betalingsconditie'>[];
|
|
9
|
+
type Dependency = {
|
|
10
|
+
Factuur: ItemResource<'Factuur', ['vervaldatum', 'datum']>[];
|
|
11
|
+
Betalingsconditie: {
|
|
12
|
+
[conditieId: string]: ItemResource<'Betalingsconditie', ['dagen']>;
|
|
13
|
+
};
|
|
14
|
+
defaultPaymentConditionId: ItemId | null;
|
|
15
|
+
};
|
|
16
|
+
export declare class FactuurBetalingsconditieBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
|
|
17
|
+
condition(context: BusinessLogicRuleConditionContext): ConditionResult | typeof BLR_SKIP_RULE;
|
|
18
|
+
dependency(transaction: TransactionCache, result: ConditionResult, context: BusinessLogicRuleContextBase): Promise<Dependency>;
|
|
19
|
+
apply(context: BusinessLogicRuleApplyContext, deps: Dependency): void;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
package/dist/types/src/classes/BusinessLogicManager/Factuur/FactuurDatumBusinessLogicRule.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ItemId } from '@rentman/backend-types';
|
|
2
|
+
import { ItemResource } from '../../../models/ItemResource';
|
|
3
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
4
|
+
import { BLR_SKIP_RULE, BusinessLogicRule } from '../BusinessLogicRule';
|
|
5
|
+
import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
|
|
6
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
7
|
+
import { BusinessLogicRuleContextBase } from '../BusinessLogicRuleContextBase';
|
|
8
|
+
type ConditionResult = ItemId[];
|
|
9
|
+
type Dependency = {
|
|
10
|
+
Factuur: ItemResource<'Factuur', ['vervaldatum', 'betalingsconditie']>[];
|
|
11
|
+
Betalingsconditie: {
|
|
12
|
+
[conditieId: string]: ItemResource<'Betalingsconditie', ['dagen']>;
|
|
13
|
+
};
|
|
14
|
+
latestTaxSchemasByDateMap: {
|
|
15
|
+
[taxschemaId: string]: ItemId<'TaxSchema'>;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare class FactuurDatumBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
|
|
19
|
+
condition(context: BusinessLogicRuleConditionContext): ConditionResult | typeof BLR_SKIP_RULE;
|
|
20
|
+
dependency(transaction: TransactionCache, factuurIds: ConditionResult, context: BusinessLogicRuleContextBase): Promise<Dependency>;
|
|
21
|
+
apply(context: BusinessLogicRuleApplyContext, deps: Dependency): void;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ItemId } from '@rentman/backend-types';
|
|
2
|
+
import { ItemResource } from '../../../models/ItemResource';
|
|
3
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
4
|
+
import { BLR_SKIP_RULE, BusinessLogicRule } from '../BusinessLogicRule';
|
|
5
|
+
import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
|
|
6
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
7
|
+
type ConditionResult = ItemId[];
|
|
8
|
+
type Dependency = ItemResource<'Factuur', ['nummer']>[];
|
|
9
|
+
export declare class FactuurNumberseriesBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
|
|
10
|
+
condition(context: BusinessLogicRuleConditionContext): ConditionResult | typeof BLR_SKIP_RULE;
|
|
11
|
+
dependency(transaction: TransactionCache, factuurIds: ConditionResult): Promise<Dependency>;
|
|
12
|
+
apply(context: BusinessLogicRuleApplyContext, factuurResources: Dependency): void;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
package/dist/types/src/classes/BusinessLogicManager/Files/FilesNameExtensionBusinessLogicRule.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ItemId } from '@rentman/backend-types';
|
|
2
|
+
import { ItemResource } from '../../../models/ItemResource';
|
|
3
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
4
|
+
import { BLR_SKIP_RULE, BusinessLogicRule } from '../BusinessLogicRule';
|
|
5
|
+
import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
|
|
6
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
7
|
+
type ConditionResult = ItemId[];
|
|
8
|
+
type Dependency = ItemResource<'Files', ['name', 'friendlyname']>[];
|
|
9
|
+
/**
|
|
10
|
+
* @description
|
|
11
|
+
* Automatically appends the file extension again when the user removes it from the name
|
|
12
|
+
* so that, when the file is downloaded, it is still properly openable
|
|
13
|
+
*/
|
|
14
|
+
export declare class FilesNameExtensionBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
|
|
15
|
+
private static getExtension;
|
|
16
|
+
condition(context: BusinessLogicRuleConditionContext): ConditionResult | typeof BLR_SKIP_RULE;
|
|
17
|
+
dependency(transaction: TransactionCache, fileIds: ConditionResult): Promise<Dependency>;
|
|
18
|
+
apply(context: BusinessLogicRuleApplyContext, fileResources: Dependency): void;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
package/dist/types/src/classes/BusinessLogicManager/Functie/FunctieNaaminternBusinessLogicRule.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ItemId } from '@rentman/backend-types';
|
|
2
|
+
import { ItemResource } from '../../../models/ItemResource';
|
|
3
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
4
|
+
import { BLR_SKIP_RULE, BusinessLogicRule } from '../BusinessLogicRule';
|
|
5
|
+
import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
|
|
6
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
7
|
+
type ConditionResult = ItemId[];
|
|
8
|
+
type Dependency = ItemResource<'Functie', ['naamintern']>[];
|
|
9
|
+
/**
|
|
10
|
+
* @description
|
|
11
|
+
* If the `naamofferte` is set and the user hasn't filled in a `naamintern` we sync the fields
|
|
12
|
+
*/
|
|
13
|
+
export declare class FunctieNaaminternBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
|
|
14
|
+
condition(context: BusinessLogicRuleConditionContext): ConditionResult | typeof BLR_SKIP_RULE;
|
|
15
|
+
dependency(transaction: TransactionCache, functionIds: ConditionResult): Promise<Dependency>;
|
|
16
|
+
apply(context: BusinessLogicRuleApplyContext, functionResources: Dependency): void;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
package/dist/types/src/classes/BusinessLogicManager/Functie/FunctieRecureindBusinessLogicRule.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RecurrentItemRecureindBusinessLogicRule } from '../RecurrentItem/RecurrentItemRecureindBusinessLogicRule';
|
|
2
|
+
export declare class FunctieRecureindBusinessLogicRule extends RecurrentItemRecureindBusinessLogicRule<'Functie', 'plantot'> {
|
|
3
|
+
protected itemType: "Functie";
|
|
4
|
+
protected toField: "plantot";
|
|
5
|
+
}
|
package/dist/types/src/classes/BusinessLogicManager/Functie/FunctieTwowayBusinessLogicRule.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ItemId } from '@rentman/backend-types';
|
|
2
|
+
import { ItemResource } from '../../../models/ItemResource';
|
|
3
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
4
|
+
import { BLR_SKIP_RULE, BusinessLogicRule } from '../BusinessLogicRule';
|
|
5
|
+
import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
|
|
6
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
7
|
+
type ConditionResult = ItemId[];
|
|
8
|
+
type Dependency = ItemResource<'Functie', ['afstand']>[];
|
|
9
|
+
export declare class FunctieTwowayBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
|
|
10
|
+
condition(context: BusinessLogicRuleConditionContext): ConditionResult | typeof BLR_SKIP_RULE;
|
|
11
|
+
dependency(transaction: TransactionCache, functionIds: ConditionResult): Promise<Dependency>;
|
|
12
|
+
apply(context: BusinessLogicRuleApplyContext, functionResources: Dependency): void;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ItemResource } from '../../../models/ItemResource';
|
|
2
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
3
|
+
import { BLR_SKIP_RULE, BusinessLogicConditionResult, BusinessLogicRule } from '../BusinessLogicRule';
|
|
4
|
+
import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
|
|
5
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
6
|
+
type ConditionResult = BusinessLogicConditionResult<'Functiegroep', 'subproject'>[];
|
|
7
|
+
type Dependency = ItemResource<'Functie', ['subproject']>[][];
|
|
8
|
+
/**
|
|
9
|
+
* When the subproject field of a function group is updated, set the subproject field of all the functions within the
|
|
10
|
+
* function group to the same value.
|
|
11
|
+
*/
|
|
12
|
+
export declare class FunctiegroepSubprojectBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
|
|
13
|
+
condition(context: BusinessLogicRuleConditionContext): ConditionResult | typeof BLR_SKIP_RULE;
|
|
14
|
+
dependency(transaction: TransactionCache, conditionResult: ConditionResult): Promise<Dependency>;
|
|
15
|
+
apply(context: BusinessLogicRuleApplyContext, functionResourcesArray: Dependency, conditionResult: ConditionResult): void;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AantaltotaalBusinessLogicRuleBase } from '../AantaltotaalBusinessLogicRuleBase';
|
|
2
|
+
export declare class InhuurmateriaalAantaltotaalBusinessLogicRule extends AantaltotaalBusinessLogicRuleBase<'Inhuurmateriaal'> {
|
|
3
|
+
protected readonly itemType = "Inhuurmateriaal";
|
|
4
|
+
protected readonly groupingProperties: {
|
|
5
|
+
readonly itemType: "Inhuurgroep";
|
|
6
|
+
readonly columnId: "inhuurgroep";
|
|
7
|
+
};
|
|
8
|
+
protected readonly requestColumns: readonly ["id", "aantal", "aantaltotaal", "parent", "materiaal", "inhuurgroep"];
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ItemId } from '@rentman/backend-types';
|
|
2
|
+
import { BLR_SKIP_RULE, BusinessLogicRule, BusinessLogicRuleApplyContext, BusinessLogicRuleConditionContext, ItemEntry, ItemResource, TransactionCache } from '../../../internal';
|
|
3
|
+
export type ConditionResult = ItemId[];
|
|
4
|
+
type Dependency = {
|
|
5
|
+
voorraadmutatieTuples: {
|
|
6
|
+
local: ItemEntry<'Voorraadmutatie'>[];
|
|
7
|
+
remote: ItemEntry<'Voorraadmutatie'>[];
|
|
8
|
+
};
|
|
9
|
+
materiaalResources: ItemResource<'Materiaal', ['is_combination']>[];
|
|
10
|
+
containerContentResources: ItemResource<'ContainerContent', ['equipment']>[];
|
|
11
|
+
};
|
|
12
|
+
export declare class MateriaalBulkToSerialBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
|
|
13
|
+
dependency(transaction: TransactionCache, materiaalIds: ConditionResult): Promise<Dependency>;
|
|
14
|
+
apply(context: BusinessLogicRuleApplyContext, dependencies: Dependency): void;
|
|
15
|
+
condition(context: BusinessLogicRuleConditionContext): ConditionResult | typeof BLR_SKIP_RULE;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ItemId } from '@rentman/backend-types';
|
|
2
|
+
import { ItemEntry } from '../../../models/ItemEntry';
|
|
3
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
4
|
+
import { BLR_SKIP_RULE, BusinessLogicRule } from '../BusinessLogicRule';
|
|
5
|
+
import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
|
|
6
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
7
|
+
type ConditionResult = ItemId[];
|
|
8
|
+
type Dependency = ItemEntry<'Setinhoud'>[];
|
|
9
|
+
/**
|
|
10
|
+
* @description
|
|
11
|
+
* Whenever the item is changed from (is_combination: true -> is_combination: false),
|
|
12
|
+
* pop-up a modal to ensure the user of the consequences he might face when doing that.
|
|
13
|
+
* If the modal is confirmed, we ensure that the content of the combination is cleared.
|
|
14
|
+
*/
|
|
15
|
+
export declare class MateriaalIsCombinationBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
|
|
16
|
+
condition(context: BusinessLogicRuleConditionContext): ConditionResult | typeof BLR_SKIP_RULE;
|
|
17
|
+
dependency(transaction: TransactionCache, equipmentIds: ConditionResult): Promise<Dependency>;
|
|
18
|
+
apply(context: BusinessLogicRuleApplyContext, setinhoudEntries: Dependency): void;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ItemId } from '@rentman/backend-types';
|
|
2
|
+
import { ItemResource } from '../../../models/ItemResource';
|
|
3
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
4
|
+
import { BLR_SKIP_RULE, BusinessLogicRule } from '../BusinessLogicRule';
|
|
5
|
+
import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
|
|
6
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
7
|
+
declare const materiaalColumns: readonly ["is_physical", "is_combination", "telexemplaren", "can_edit_content_during_planning"];
|
|
8
|
+
type ConditionResult = ItemId<'Materiaal'>[];
|
|
9
|
+
type Dependency = ItemResource<'Materiaal', typeof materiaalColumns>[];
|
|
10
|
+
/**
|
|
11
|
+
* We want to force equipment to have `can_edit_content_during_planning` set to false
|
|
12
|
+
* when it's a physical combination bulk equipment
|
|
13
|
+
*/
|
|
14
|
+
export declare class MateriaalIsPhysicalCombinationBulkBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
|
|
15
|
+
condition({ previousChangesDelta, }: BusinessLogicRuleConditionContext): ConditionResult | typeof BLR_SKIP_RULE;
|
|
16
|
+
dependency(transaction: TransactionCache, conditionResult: ConditionResult): Promise<Dependency>;
|
|
17
|
+
apply(context: BusinessLogicRuleApplyContext, equipmentResources: Dependency): void;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ItemId } from '@rentman/backend-types';
|
|
2
|
+
import { ItemResource } from '../../../models/ItemResource';
|
|
3
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
4
|
+
import { BLR_SKIP_RULE, BusinessLogicRule } from '../BusinessLogicRule';
|
|
5
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
6
|
+
type ConditionResult = ItemId[];
|
|
7
|
+
type Dependency = {
|
|
8
|
+
materiaalResources: ItemResource<'Materiaal', ['is_combination']>[];
|
|
9
|
+
containerContentResources: ItemResource<'ContainerContent', ['equipment']>[];
|
|
10
|
+
};
|
|
11
|
+
export declare class MateriaalSerialToBulkBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
|
|
12
|
+
dependency(transaction: TransactionCache, materiaalIds: ConditionResult): Promise<Dependency>;
|
|
13
|
+
apply(): void;
|
|
14
|
+
condition(context: BusinessLogicRuleConditionContext): ConditionResult | typeof BLR_SKIP_RULE;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ItemId } from '@rentman/backend-types';
|
|
2
|
+
import { ItemResource } from '../../../models/ItemResource';
|
|
3
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
4
|
+
import { BLR_SKIP_RULE, BusinessLogicRule } from '../BusinessLogicRule';
|
|
5
|
+
import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
|
|
6
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
7
|
+
declare const materiaalColumns: readonly ["is_combination", "verhuur", "can_edit_content_during_planning"];
|
|
8
|
+
type ConditionResult = ItemId[];
|
|
9
|
+
type Dependency = ItemResource<'Materiaal', typeof materiaalColumns>[];
|
|
10
|
+
/**
|
|
11
|
+
* This BLR only triggers a confirmFn in the frontend (RmCoreService)
|
|
12
|
+
*/
|
|
13
|
+
export declare class MateriaalToPhysicalBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
|
|
14
|
+
condition(context: BusinessLogicRuleConditionContext): ConditionResult | typeof BLR_SKIP_RULE;
|
|
15
|
+
dependency(transaction: TransactionCache, materiaalIds: ConditionResult): Promise<Dependency>;
|
|
16
|
+
apply(context: BusinessLogicRuleApplyContext, materiaalResources: Dependency): void;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ItemId } from '@rentman/backend-types';
|
|
2
|
+
import { ItemResource } from '../../../models/ItemResource';
|
|
3
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
4
|
+
import { BLR_SKIP_RULE, BusinessLogicRule } from '../BusinessLogicRule';
|
|
5
|
+
import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
|
|
6
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
7
|
+
declare const materiaalColumns: readonly ["is_combination", "can_edit_content_during_planning"];
|
|
8
|
+
type ConditionResult = ItemId[];
|
|
9
|
+
type Dependency = ItemResource<'Materiaal', typeof materiaalColumns>[];
|
|
10
|
+
/**
|
|
11
|
+
* @description
|
|
12
|
+
* A virtual equipment (is_phyiscal: false)
|
|
13
|
+
* - is always a combination (otherwise it doesn't make sense)
|
|
14
|
+
* - shows a warning letting the user know the consequences of this field
|
|
15
|
+
* (it will delete serials & stock mutations, this happens onSave through backend)
|
|
16
|
+
*/
|
|
17
|
+
export declare class MateriaalToVirtualBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
|
|
18
|
+
condition(context: BusinessLogicRuleConditionContext): ConditionResult | typeof BLR_SKIP_RULE;
|
|
19
|
+
dependency(transaction: TransactionCache, materiaalIds: ConditionResult): Promise<Dependency>;
|
|
20
|
+
apply(context: BusinessLogicRuleApplyContext, materiaalResources: Dependency): void;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ItemId } from '@rentman/backend-types';
|
|
2
|
+
import { ItemResource } from '../../../models/ItemResource';
|
|
3
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
4
|
+
import { BLR_SKIP_RULE, BusinessLogicRule } from '../BusinessLogicRule';
|
|
5
|
+
import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
|
|
6
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
7
|
+
declare const materiaalColumns: readonly ["type", "is_combination", "is_physical", "can_edit_content_during_planning"];
|
|
8
|
+
type ConditionResult = ItemId<'Materiaal'>[];
|
|
9
|
+
type Dependency = ItemResource<'Materiaal', typeof materiaalColumns>[];
|
|
10
|
+
/**
|
|
11
|
+
* Untill we fully remove `type` we still need to correctly set this value in the background,
|
|
12
|
+
* based on the new equipment types properties
|
|
13
|
+
*/
|
|
14
|
+
export declare class MateriaalTypePropertiesBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
|
|
15
|
+
condition({ previousChangesDelta, }: BusinessLogicRuleConditionContext): ConditionResult | typeof BLR_SKIP_RULE;
|
|
16
|
+
dependency(transaction: TransactionCache, materiaalIds: ConditionResult): Promise<Dependency>;
|
|
17
|
+
apply(context: BusinessLogicRuleApplyContext, materiaalResources: Dependency): void;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
package/dist/types/src/classes/BusinessLogicManager/Materiaal/MateriaalVerhuurBusinessLogicRule.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ItemId } from '@rentman/backend-types';
|
|
2
|
+
import { ItemResource } from '../../../models/ItemResource';
|
|
3
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
4
|
+
import { BLR_SKIP_RULE, BusinessLogicRule } from '../BusinessLogicRule';
|
|
5
|
+
import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
|
|
6
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
7
|
+
type ConditionResult = ItemId[];
|
|
8
|
+
type Dependency = ItemResource<'Materiaal', ['type']>[];
|
|
9
|
+
/**
|
|
10
|
+
* @description
|
|
11
|
+
* A sales item can never be a case, so if it is we reset it to an item
|
|
12
|
+
* A physical sales item can never be a combination, if it is we set it to a single item
|
|
13
|
+
*/
|
|
14
|
+
export declare class MateriaalVerhuurBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
|
|
15
|
+
condition(context: BusinessLogicRuleConditionContext): ConditionResult | typeof BLR_SKIP_RULE;
|
|
16
|
+
dependency(transaction: TransactionCache, materiaalIds: ConditionResult): Promise<Dependency>;
|
|
17
|
+
apply(context: BusinessLogicRuleApplyContext, materiaalResources: Dependency): void;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ItemId } from '@rentman/backend-types';
|
|
2
|
+
import { ItemResource } from '../../../models/ItemResource';
|
|
3
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
4
|
+
import { BLR_SKIP_RULE, BusinessLogicRule } from '../BusinessLogicRule';
|
|
5
|
+
import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
|
|
6
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
7
|
+
type ConditionResult = ItemId[];
|
|
8
|
+
type DependencyColumns = [
|
|
9
|
+
'width',
|
|
10
|
+
'height',
|
|
11
|
+
'oppervlakteartikel',
|
|
12
|
+
'nieuwprijs',
|
|
13
|
+
'inhuurprijs',
|
|
14
|
+
'verhuurprijs',
|
|
15
|
+
'naam'
|
|
16
|
+
];
|
|
17
|
+
type Dependency = ItemResource<'Materiaal', DependencyColumns>[];
|
|
18
|
+
export declare class SurfaceArticleSizeBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
|
|
19
|
+
condition({ previousChangesDelta, }: BusinessLogicRuleConditionContext): ConditionResult | typeof BLR_SKIP_RULE;
|
|
20
|
+
dependency(transaction: TransactionCache, materiaalIds: ConditionResult): Promise<Dependency>;
|
|
21
|
+
apply(context: BusinessLogicRuleApplyContext, materiaalResources: Dependency): void;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ItemEntry } from '../../../models/ItemEntry';
|
|
2
|
+
import { ItemResource } from '../../../models/ItemResource';
|
|
3
|
+
import { ApiRequestColumnArray, GetFieldValueType } from '../../../types/ItemTypesCollection';
|
|
4
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
5
|
+
import { ChangesDeltaItemCreateDelta } from '../../CreatedChangesDelta';
|
|
6
|
+
import { BLR_SKIP_RULE, BusinessLogicRule } from '../BusinessLogicRule';
|
|
7
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
8
|
+
import { LinkedTimeItemType, TimeColumnId } from './TimeColumnUtil';
|
|
9
|
+
type LinkedTimeItemColumn = 'project' | 'subproject' | Exclude<TimeColumnId, 'timeframe'>;
|
|
10
|
+
type LinkedTimeItemColumnArray = readonly LinkedTimeItemColumn[];
|
|
11
|
+
type LinkedTimeItemRequestColumnsMap = {
|
|
12
|
+
[ItemType in LinkedTimeItemType]: ApiRequestColumnArray<ItemType>;
|
|
13
|
+
};
|
|
14
|
+
type LinkedTimeItemRequestColumnsMapToItemResourceMap<RequestColumnsMap extends LinkedTimeItemRequestColumnsMap> = {
|
|
15
|
+
[ItemType in LinkedTimeItemType]: ItemResource<ItemType, RequestColumnsMap[ItemType] extends ApiRequestColumnArray<ItemType> ? RequestColumnsMap[ItemType] : never>[];
|
|
16
|
+
};
|
|
17
|
+
export type LinkedTimeItemResourceMap<RequestColumns extends ApiRequestColumnArray<LinkedTimeItemType>> = {
|
|
18
|
+
[ItemType in LinkedTimeItemType]: ItemResource<ItemType, RequestColumns>[];
|
|
19
|
+
};
|
|
20
|
+
type CreatedTupleMap = {
|
|
21
|
+
[ItemType in LinkedTimeItemType]: ChangesDeltaItemCreateDelta<ItemType>[];
|
|
22
|
+
};
|
|
23
|
+
export type LinkedTimeItemBusinessLogicRuleBaseUpdatedTuples<RequestColumns extends LinkedTimeItemColumnArray> = {
|
|
24
|
+
[ItemType in LinkedTimeItemType]: UpdatedTuple<LinkedTimeItemType, RequestColumns[number]>[];
|
|
25
|
+
};
|
|
26
|
+
interface UpdatedTuple<ItemTypeType extends LinkedTimeItemType, ColumnId extends LinkedTimeItemColumn = LinkedTimeItemColumn> {
|
|
27
|
+
itemEntry: ItemEntry<ItemTypeType>;
|
|
28
|
+
columnId: ColumnId;
|
|
29
|
+
newValue: GetFieldValueType<ItemTypeType, ColumnId>;
|
|
30
|
+
}
|
|
31
|
+
export declare abstract class LinkedTimeItemBusinessLogicRuleBase<ConditionColumns extends LinkedTimeItemColumnArray, ConditionResult, Dependency> extends BusinessLogicRule<ConditionResult, Dependency> {
|
|
32
|
+
protected conditionColumns: ConditionColumns;
|
|
33
|
+
protected extractCreatedTuples(context: BusinessLogicRuleConditionContext): CreatedTupleMap;
|
|
34
|
+
/**
|
|
35
|
+
* Extract updated fields of functions / function groups / equipment groups, using the columns specified in
|
|
36
|
+
* `conditionColumns`.
|
|
37
|
+
*/
|
|
38
|
+
protected extractUpdatedTuples(context: BusinessLogicRuleConditionContext): LinkedTimeItemBusinessLogicRuleBaseUpdatedTuples<ConditionColumns>;
|
|
39
|
+
/**
|
|
40
|
+
* Like {@link extractUpdatedTuples}, but returns `undefined` when no fields have been updated.
|
|
41
|
+
*/
|
|
42
|
+
protected extractUpdatedTuplesCondition(context: BusinessLogicRuleConditionContext): LinkedTimeItemBusinessLogicRuleBaseUpdatedTuples<ConditionColumns> | typeof BLR_SKIP_RULE;
|
|
43
|
+
protected fetchLinkedItemResourcesWithColumns<RequestColumnsMap extends LinkedTimeItemRequestColumnsMap>(transaction: TransactionCache, updatedTuples: LinkedTimeItemBusinessLogicRuleBaseUpdatedTuples<any>, requestColumnsMap: RequestColumnsMap): Promise<LinkedTimeItemRequestColumnsMapToItemResourceMap<RequestColumnsMap>>;
|
|
44
|
+
protected fetchLinkedItemResources<RequestColumns extends ApiRequestColumnArray<LinkedTimeItemType>>(transaction: TransactionCache, updatedTuples: LinkedTimeItemBusinessLogicRuleBaseUpdatedTuples<any>, requestColumns: RequestColumns): Promise<LinkedTimeItemResourceMap<RequestColumns>>;
|
|
45
|
+
}
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
2
|
+
import { BLR_SKIP_RULE } from '../BusinessLogicRule';
|
|
3
|
+
import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
|
|
4
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
5
|
+
import { LinkedTimeItemBusinessLogicRuleBase, LinkedTimeItemBusinessLogicRuleBaseUpdatedTuples, LinkedTimeItemResourceMap } from './LinkedTimeItemBusinessLogicRuleBase';
|
|
6
|
+
declare const conditionColumns: readonly ["gebruikvan", "gebruiktot"];
|
|
7
|
+
declare const requestColumns: readonly ["gebruikvan", "gebruiktot", "duur"];
|
|
8
|
+
/**
|
|
9
|
+
* When changing 'gebruikvan' or 'gebruiktot', and both fields are valid, set the duration.
|
|
10
|
+
*/
|
|
11
|
+
export declare class LinkedTimeItemDurationBusinessLogicRule extends LinkedTimeItemBusinessLogicRuleBase<typeof conditionColumns, LinkedTimeItemBusinessLogicRuleBaseUpdatedTuples<typeof conditionColumns>, LinkedTimeItemResourceMap<typeof requestColumns>> {
|
|
12
|
+
protected conditionColumns: readonly ["gebruikvan", "gebruiktot"];
|
|
13
|
+
condition(context: BusinessLogicRuleConditionContext): LinkedTimeItemBusinessLogicRuleBaseUpdatedTuples<typeof conditionColumns> | typeof BLR_SKIP_RULE;
|
|
14
|
+
apply(context: BusinessLogicRuleApplyContext, dependencies: LinkedTimeItemResourceMap<typeof requestColumns>): void;
|
|
15
|
+
dependency(transaction: TransactionCache, conditionResult: LinkedTimeItemBusinessLogicRuleBaseUpdatedTuples<typeof conditionColumns>): Promise<LinkedTimeItemResourceMap<typeof requestColumns>>;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ItemId } from '@rentman/backend-types';
|
|
2
|
+
import { ItemResource } from '../../../models/ItemResource';
|
|
3
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
4
|
+
import { BLR_SKIP_RULE, BusinessLogicRule } from '../BusinessLogicRule';
|
|
5
|
+
import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
|
|
6
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
7
|
+
type ConditionResult = ItemId<'MateriaalCat'>[];
|
|
8
|
+
declare const changedMateriaalCatResourceColumns: readonly ["gebruikvan", "gebruiktot", "planvan", "plantot", {
|
|
9
|
+
readonly schema_pv: readonly ["van", "tot", "is_absolute_times_substitute"];
|
|
10
|
+
}, {
|
|
11
|
+
readonly schema_pt: readonly ["van", "tot", "is_absolute_times_substitute"];
|
|
12
|
+
}, {
|
|
13
|
+
readonly schema_gv: readonly ["van", "tot", "is_absolute_times_substitute"];
|
|
14
|
+
}, {
|
|
15
|
+
readonly schema_gt: readonly ["van", "tot", "is_absolute_times_substitute"];
|
|
16
|
+
}];
|
|
17
|
+
type Dependency = {
|
|
18
|
+
changedResources: ItemResource<'MateriaalCat', typeof changedMateriaalCatResourceColumns>[];
|
|
19
|
+
};
|
|
20
|
+
export declare class LinkedTimeItemMateriaalCatBusinessLogicRule extends BusinessLogicRule<ConditionResult, Dependency> {
|
|
21
|
+
condition(context: BusinessLogicRuleConditionContext): ConditionResult | typeof BLR_SKIP_RULE;
|
|
22
|
+
dependency(transaction: TransactionCache, changedMateriaalCatItemIds: ConditionResult): Promise<Dependency>;
|
|
23
|
+
apply(context: BusinessLogicRuleApplyContext, dependency: Dependency): void;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ItemEntry } from '../../../models/ItemEntry';
|
|
2
|
+
import { ChangesDeltaItemCreateDelta } from '../../CreatedChangesDelta';
|
|
3
|
+
import { BLR_SKIP_RULE } from '../BusinessLogicRule';
|
|
4
|
+
import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
|
|
5
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
6
|
+
import { LinkedTimeItemBusinessLogicRuleBase } from './LinkedTimeItemBusinessLogicRuleBase';
|
|
7
|
+
import { LinkedTimeItemType } from './TimeColumnUtil';
|
|
8
|
+
declare const conditionColumns: readonly ["project", "subproject"];
|
|
9
|
+
/**
|
|
10
|
+
* Function items are the only linked time item that have a 'timeframe' field, which, like the 'schema_**' fields,
|
|
11
|
+
* refers to a project time.
|
|
12
|
+
*/
|
|
13
|
+
declare const schemeValueTimeFrameColumnIds: readonly ["schema_gv", "schema_pv", "schema_gt", "schema_pt", "timeframe"];
|
|
14
|
+
type SchemeValueTimeFrameColumnId = (typeof schemeValueTimeFrameColumnIds)[number];
|
|
15
|
+
type CreatedUpdatedTuple<ItemTypeType extends LinkedTimeItemType> = {
|
|
16
|
+
created: {
|
|
17
|
+
item: ChangesDeltaItemCreateDelta<ItemTypeType>;
|
|
18
|
+
invalidTimes: SchemeValueTimeFrameColumnId[];
|
|
19
|
+
}[];
|
|
20
|
+
updated: {
|
|
21
|
+
item: ItemEntry<ItemTypeType>;
|
|
22
|
+
invalidTimes: SchemeValueTimeFrameColumnId[];
|
|
23
|
+
}[];
|
|
24
|
+
};
|
|
25
|
+
export type LinkedTimeItemSubprojectBusinessLogicRuleConditionResult = {
|
|
26
|
+
[ItemType in LinkedTimeItemType]: CreatedUpdatedTuple<ItemType>;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* When updating the subproject of a function / function group / equipment group, or creating a new
|
|
30
|
+
* function / function group / equipment group, and one of the times of these items is not in the project / subproject
|
|
31
|
+
* the created or updated item is in, set the associated item field to `null`.
|
|
32
|
+
*/
|
|
33
|
+
export declare class LinkedTimeItemSubprojectBusinessLogicRule extends LinkedTimeItemBusinessLogicRuleBase<typeof conditionColumns, LinkedTimeItemSubprojectBusinessLogicRuleConditionResult, null> {
|
|
34
|
+
protected conditionColumns: readonly ["project", "subproject"];
|
|
35
|
+
condition(context: BusinessLogicRuleConditionContext): Promise<LinkedTimeItemSubprojectBusinessLogicRuleConditionResult | typeof BLR_SKIP_RULE>;
|
|
36
|
+
apply(context: BusinessLogicRuleApplyContext, _dependency: null, conditionResult: LinkedTimeItemSubprojectBusinessLogicRuleConditionResult): void;
|
|
37
|
+
dependency(): Promise<null>;
|
|
38
|
+
private schemeValueColumnIdArrayToFieldMap;
|
|
39
|
+
private validateLinkedTimes;
|
|
40
|
+
private getInvalidTimeColumnIds;
|
|
41
|
+
private extractTimeItemIds;
|
|
42
|
+
/**
|
|
43
|
+
* The iterator includes the IDs of all times linked to the items in the updated or created items.
|
|
44
|
+
*/
|
|
45
|
+
private getCreatedItemTimeIdIterator;
|
|
46
|
+
private getUpdatedItemTimeIdIterator;
|
|
47
|
+
}
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ItemResource } from '../../../models/ItemResource';
|
|
2
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
3
|
+
import { BLR_SKIP_RULE } from '../BusinessLogicRule';
|
|
4
|
+
import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
|
|
5
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
6
|
+
import { LinkedTimeItemBusinessLogicRuleBase, LinkedTimeItemBusinessLogicRuleBaseUpdatedTuples, LinkedTimeItemResourceMap } from './LinkedTimeItemBusinessLogicRuleBase';
|
|
7
|
+
import { TimeColumnUtil } from './TimeColumnUtil';
|
|
8
|
+
declare const requestColumns: readonly ["gebruikvan", "planvan", "gebruiktot", "plantot", "schema_gv_begin", "schema_gt_begin", "schema_pv_begin", "schema_pt_begin"];
|
|
9
|
+
export declare const timeColumns: readonly ["id", "van", "tot"];
|
|
10
|
+
interface Dependency {
|
|
11
|
+
timeResources: ItemResource<'Tijd', typeof timeColumns>[];
|
|
12
|
+
linkedTimeItemResources: LinkedTimeItemResourceMap<typeof requestColumns>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* - When setting 'schema_gv', set 'gebruikvan' to the corresponding time, and 'schema_gv_begin' to `true`.
|
|
16
|
+
* - When setting 'schema_gt', set 'gebruiktot' to the corresponding time, and 'schema_gt_begin' to `false`.
|
|
17
|
+
* - When setting 'schema_pv', set 'planvan' to the corresponding time, and 'schema_pv_begin' to `true`.
|
|
18
|
+
* - When setting 'schema_pt', set 'plantot' to the corresponding time, and 'schema_pt_begin' to `false`.
|
|
19
|
+
*/
|
|
20
|
+
export declare class LinkedTimeItemTimeSchemeBusinessLogicRule extends LinkedTimeItemBusinessLogicRuleBase<typeof TimeColumnUtil.schemeValueColumnIds, LinkedTimeItemBusinessLogicRuleBaseUpdatedTuples<typeof TimeColumnUtil.schemeValueColumnIds>, Dependency> {
|
|
21
|
+
protected conditionColumns: readonly ["schema_gv", "schema_pv", "schema_gt", "schema_pt"];
|
|
22
|
+
condition(context: BusinessLogicRuleConditionContext): LinkedTimeItemBusinessLogicRuleBaseUpdatedTuples<typeof TimeColumnUtil.schemeValueColumnIds> | typeof BLR_SKIP_RULE;
|
|
23
|
+
dependency(transaction: TransactionCache, conditionResult: LinkedTimeItemBusinessLogicRuleBaseUpdatedTuples<typeof TimeColumnUtil.schemeValueColumnIds>): Promise<Dependency>;
|
|
24
|
+
apply(context: BusinessLogicRuleApplyContext, dependency: Dependency, conditionResult: LinkedTimeItemBusinessLogicRuleBaseUpdatedTuples<typeof TimeColumnUtil.schemeValueColumnIds>): void;
|
|
25
|
+
private getTimeItemIds;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TransactionCache } from '../../cache/transaction/TransactionCache';
|
|
2
|
+
import { BLR_SKIP_RULE } from '../BusinessLogicRule';
|
|
3
|
+
import { BusinessLogicRuleApplyContext } from '../BusinessLogicRuleApplyContext';
|
|
4
|
+
import { BusinessLogicRuleConditionContext } from '../BusinessLogicRuleConditionContext';
|
|
5
|
+
import { LinkedTimeItemBusinessLogicRuleBase, LinkedTimeItemBusinessLogicRuleBaseUpdatedTuples, LinkedTimeItemResourceMap } from './LinkedTimeItemBusinessLogicRuleBase';
|
|
6
|
+
import { TimeColumnUtil } from './TimeColumnUtil';
|
|
7
|
+
/**
|
|
8
|
+
* - If 'schema_gv' changes, while 'schema_gv_start' is `true`, and previously, 'schema_gv' and 'schema_gt' had the same
|
|
9
|
+
* value, set 'schema_gt' to the new value of 'schema_gv'.
|
|
10
|
+
* - If 'schema_pv' changes, while 'schema_pv_start' is `true` and previously, 'schema_pv' and 'schema_pt' had the same
|
|
11
|
+
* value, set 'schema_pt' to the new value of 'schema_pv'.
|
|
12
|
+
*/
|
|
13
|
+
export declare class LinkedTimeItemTimeSchemeStartBusinessLogicRule extends LinkedTimeItemBusinessLogicRuleBase<typeof TimeColumnUtil.schemeValueStartColumnIds, LinkedTimeItemBusinessLogicRuleBaseUpdatedTuples<typeof TimeColumnUtil.schemeValueStartColumnIds>, LinkedTimeItemResourceMap<typeof TimeColumnUtil.schemeValueColumnIds>> {
|
|
14
|
+
protected conditionColumns: readonly ["schema_gv", "schema_pv"];
|
|
15
|
+
condition(context: BusinessLogicRuleConditionContext): LinkedTimeItemBusinessLogicRuleBaseUpdatedTuples<typeof TimeColumnUtil.schemeValueStartColumnIds> | typeof BLR_SKIP_RULE;
|
|
16
|
+
dependency(transaction: TransactionCache, conditionResult: LinkedTimeItemBusinessLogicRuleBaseUpdatedTuples<typeof TimeColumnUtil.schemeValueStartColumnIds>): Promise<LinkedTimeItemResourceMap<typeof TimeColumnUtil.schemeValueColumnIds>>;
|
|
17
|
+
apply(context: BusinessLogicRuleApplyContext, _dependencies: LinkedTimeItemResourceMap<typeof TimeColumnUtil.schemeValueColumnIds>, conditionResult: LinkedTimeItemBusinessLogicRuleBaseUpdatedTuples<typeof TimeColumnUtil.schemeValueStartColumnIds>): void;
|
|
18
|
+
}
|