@1oo4/miv 1.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.
- package/README.md +34 -0
- package/dist/Client/AuditTrail.d.ts +132 -0
- package/dist/Client/AuditTrail.d.ts.map +1 -0
- package/dist/Client/AuditTrail.js +705 -0
- package/dist/Client/AuditTrail.js.map +1 -0
- package/dist/Client/Connections/ConnectionStrategy.d.ts +9 -0
- package/dist/Client/Connections/ConnectionStrategy.d.ts.map +1 -0
- package/dist/Client/Connections/ConnectionStrategy.js +52 -0
- package/dist/Client/Connections/ConnectionStrategy.js.map +1 -0
- package/dist/Client/Connections/WebSocketConnection.d.ts +31 -0
- package/dist/Client/Connections/WebSocketConnection.d.ts.map +1 -0
- package/dist/Client/Connections/WebSocketConnection.js +323 -0
- package/dist/Client/Connections/WebSocketConnection.js.map +1 -0
- package/dist/Client/Construction/ChildAndRealtionData.d.ts +16 -0
- package/dist/Client/Construction/ChildAndRealtionData.d.ts.map +1 -0
- package/dist/Client/Construction/ChildAndRealtionData.js +38 -0
- package/dist/Client/Construction/ChildAndRealtionData.js.map +1 -0
- package/dist/Client/Construction/ClientTypes.d.ts +107 -0
- package/dist/Client/Construction/ClientTypes.d.ts.map +1 -0
- package/dist/Client/Construction/ClientTypes.js +316 -0
- package/dist/Client/Construction/ClientTypes.js.map +1 -0
- package/dist/Client/Construction/FiltersSet.d.ts +2 -0
- package/dist/Client/Construction/FiltersSet.d.ts.map +1 -0
- package/dist/Client/Construction/FiltersSet.js +60 -0
- package/dist/Client/Construction/FiltersSet.js.map +1 -0
- package/dist/Client/Construction/TypesInfos.d.ts +21 -0
- package/dist/Client/Construction/TypesInfos.d.ts.map +1 -0
- package/dist/Client/Construction/TypesInfos.js +29 -0
- package/dist/Client/Construction/TypesInfos.js.map +1 -0
- package/dist/Client/LoadFilter.d.ts +14 -0
- package/dist/Client/LoadFilter.d.ts.map +1 -0
- package/dist/Client/LoadFilter.js +49 -0
- package/dist/Client/LoadFilter.js.map +1 -0
- package/dist/Client/MChild.d.ts +43 -0
- package/dist/Client/MChild.d.ts.map +1 -0
- package/dist/Client/MChild.js +344 -0
- package/dist/Client/MChild.js.map +1 -0
- package/dist/Client/MField.d.ts +6 -0
- package/dist/Client/MField.d.ts.map +1 -0
- package/dist/Client/MField.js +40 -0
- package/dist/Client/MField.js.map +1 -0
- package/dist/Client/MIVClient.d.ts +122 -0
- package/dist/Client/MIVClient.d.ts.map +1 -0
- package/dist/Client/MIVClient.js +931 -0
- package/dist/Client/MIVClient.js.map +1 -0
- package/dist/Client/MObject.d.ts +13 -0
- package/dist/Client/MObject.d.ts.map +1 -0
- package/dist/Client/MObject.js +67 -0
- package/dist/Client/MObject.js.map +1 -0
- package/dist/Client/MProperty.d.ts +7 -0
- package/dist/Client/MProperty.d.ts.map +1 -0
- package/dist/Client/MProperty.js +96 -0
- package/dist/Client/MProperty.js.map +1 -0
- package/dist/Client/MRealObject.d.ts +56 -0
- package/dist/Client/MRealObject.d.ts.map +1 -0
- package/dist/Client/MRealObject.js +534 -0
- package/dist/Client/MRealObject.js.map +1 -0
- package/dist/Client/MRelation.d.ts +32 -0
- package/dist/Client/MRelation.d.ts.map +1 -0
- package/dist/Client/MRelation.js +116 -0
- package/dist/Client/MRelation.js.map +1 -0
- package/dist/Client/MRoot.d.ts +27 -0
- package/dist/Client/MRoot.d.ts.map +1 -0
- package/dist/Client/MRoot.js +108 -0
- package/dist/Client/MRoot.js.map +1 -0
- package/dist/Client/MSets/ChildrenListInternal.d.ts +2 -0
- package/dist/Client/MSets/ChildrenListInternal.d.ts.map +1 -0
- package/dist/Client/MSets/ChildrenListInternal.js +87 -0
- package/dist/Client/MSets/ChildrenListInternal.js.map +1 -0
- package/dist/Client/MSets/ListInternal.d.ts +2 -0
- package/dist/Client/MSets/ListInternal.d.ts.map +1 -0
- package/dist/Client/MSets/ListInternal.js +123 -0
- package/dist/Client/MSets/ListInternal.js.map +1 -0
- package/dist/Client/MSets/MItem.d.ts +23 -0
- package/dist/Client/MSets/MItem.d.ts.map +1 -0
- package/dist/Client/MSets/MItem.js +72 -0
- package/dist/Client/MSets/MItem.js.map +1 -0
- package/dist/Client/MSets/MList.d.ts +9 -0
- package/dist/Client/MSets/MList.d.ts.map +1 -0
- package/dist/Client/MSets/MList.js +17 -0
- package/dist/Client/MSets/MList.js.map +1 -0
- package/dist/Client/MSets/MPage.d.ts +12 -0
- package/dist/Client/MSets/MPage.d.ts.map +1 -0
- package/dist/Client/MSets/MPage.js +32 -0
- package/dist/Client/MSets/MPage.js.map +1 -0
- package/dist/Client/MSets/MPagination.d.ts +25 -0
- package/dist/Client/MSets/MPagination.d.ts.map +1 -0
- package/dist/Client/MSets/MPagination.js +99 -0
- package/dist/Client/MSets/MPagination.js.map +1 -0
- package/dist/Client/MSets/MRealLists.d.ts +33 -0
- package/dist/Client/MSets/MRealLists.d.ts.map +1 -0
- package/dist/Client/MSets/MRealLists.js +85 -0
- package/dist/Client/MSets/MRealLists.js.map +1 -0
- package/dist/Client/MSets/MSet.d.ts +4 -0
- package/dist/Client/MSets/MSet.d.ts.map +1 -0
- package/dist/Client/MSets/MSet.js +18 -0
- package/dist/Client/MSets/MSet.js.map +1 -0
- package/dist/Client/MSets/PageInternal.d.ts +2 -0
- package/dist/Client/MSets/PageInternal.d.ts.map +1 -0
- package/dist/Client/MSets/PageInternal.js +142 -0
- package/dist/Client/MSets/PageInternal.js.map +1 -0
- package/dist/Client/MSets/PointersListInternal.d.ts +2 -0
- package/dist/Client/MSets/PointersListInternal.d.ts.map +1 -0
- package/dist/Client/MSets/PointersListInternal.js +75 -0
- package/dist/Client/MSets/PointersListInternal.js.map +1 -0
- package/dist/Client/MSets/TargetingListInternal.d.ts +2 -0
- package/dist/Client/MSets/TargetingListInternal.d.ts.map +1 -0
- package/dist/Client/MSets/TargetingListInternal.js +91 -0
- package/dist/Client/MSets/TargetingListInternal.js.map +1 -0
- package/dist/Client/MSets/TargetsListInternal.d.ts +2 -0
- package/dist/Client/MSets/TargetsListInternal.d.ts.map +1 -0
- package/dist/Client/MSets/TargetsListInternal.js +93 -0
- package/dist/Client/MSets/TargetsListInternal.js.map +1 -0
- package/dist/Client/MSets/VirtualList.d.ts +11 -0
- package/dist/Client/MSets/VirtualList.d.ts.map +1 -0
- package/dist/Client/MSets/VirtualList.js +63 -0
- package/dist/Client/MSets/VirtualList.js.map +1 -0
- package/dist/Client/MSets/WholeListInternal.d.ts +4 -0
- package/dist/Client/MSets/WholeListInternal.d.ts.map +1 -0
- package/dist/Client/MSets/WholeListInternal.js +12 -0
- package/dist/Client/MSets/WholeListInternal.js.map +1 -0
- package/dist/Client/MUser.d.ts +10 -0
- package/dist/Client/MUser.d.ts.map +1 -0
- package/dist/Client/MUser.js +16 -0
- package/dist/Client/MUser.js.map +1 -0
- package/dist/Client/MVirtualObject.d.ts +13 -0
- package/dist/Client/MVirtualObject.d.ts.map +1 -0
- package/dist/Client/MVirtualObject.js +30 -0
- package/dist/Client/MVirtualObject.js.map +1 -0
- package/dist/Client/Properties/BinaryProperty.d.ts +24 -0
- package/dist/Client/Properties/BinaryProperty.d.ts.map +1 -0
- package/dist/Client/Properties/BinaryProperty.js +135 -0
- package/dist/Client/Properties/BinaryProperty.js.map +1 -0
- package/dist/Client/Properties/BoolProperty.d.ts +30 -0
- package/dist/Client/Properties/BoolProperty.d.ts.map +1 -0
- package/dist/Client/Properties/BoolProperty.js +89 -0
- package/dist/Client/Properties/BoolProperty.js.map +1 -0
- package/dist/Client/Properties/ByteProperty.d.ts +31 -0
- package/dist/Client/Properties/ByteProperty.d.ts.map +1 -0
- package/dist/Client/Properties/ByteProperty.js +134 -0
- package/dist/Client/Properties/ByteProperty.js.map +1 -0
- package/dist/Client/Properties/DateTimeProperty.d.ts +32 -0
- package/dist/Client/Properties/DateTimeProperty.d.ts.map +1 -0
- package/dist/Client/Properties/DateTimeProperty.js +150 -0
- package/dist/Client/Properties/DateTimeProperty.js.map +1 -0
- package/dist/Client/Properties/DoubleProperty.d.ts +28 -0
- package/dist/Client/Properties/DoubleProperty.d.ts.map +1 -0
- package/dist/Client/Properties/DoubleProperty.js +126 -0
- package/dist/Client/Properties/DoubleProperty.js.map +1 -0
- package/dist/Client/Properties/EnumProperty.d.ts +32 -0
- package/dist/Client/Properties/EnumProperty.d.ts.map +1 -0
- package/dist/Client/Properties/EnumProperty.js +81 -0
- package/dist/Client/Properties/EnumProperty.js.map +1 -0
- package/dist/Client/Properties/IRealProperty.d.ts +12 -0
- package/dist/Client/Properties/IRealProperty.d.ts.map +1 -0
- package/dist/Client/Properties/IRealProperty.js +3 -0
- package/dist/Client/Properties/IRealProperty.js.map +1 -0
- package/dist/Client/Properties/LongProperty.d.ts +28 -0
- package/dist/Client/Properties/LongProperty.d.ts.map +1 -0
- package/dist/Client/Properties/LongProperty.js +126 -0
- package/dist/Client/Properties/LongProperty.js.map +1 -0
- package/dist/Client/Properties/RealPropertyInternal.d.ts +2 -0
- package/dist/Client/Properties/RealPropertyInternal.d.ts.map +1 -0
- package/dist/Client/Properties/RealPropertyInternal.js +36 -0
- package/dist/Client/Properties/RealPropertyInternal.js.map +1 -0
- package/dist/Client/Properties/StringProperty.d.ts +28 -0
- package/dist/Client/Properties/StringProperty.d.ts.map +1 -0
- package/dist/Client/Properties/StringProperty.js +129 -0
- package/dist/Client/Properties/StringProperty.js.map +1 -0
- package/dist/Client/Properties/SupportedPropertyInternal.d.ts +2 -0
- package/dist/Client/Properties/SupportedPropertyInternal.d.ts.map +1 -0
- package/dist/Client/Properties/SupportedPropertyInternal.js +21 -0
- package/dist/Client/Properties/SupportedPropertyInternal.js.map +1 -0
- package/dist/Client/Properties/UlongProperty.d.ts +29 -0
- package/dist/Client/Properties/UlongProperty.d.ts.map +1 -0
- package/dist/Client/Properties/UlongProperty.js +126 -0
- package/dist/Client/Properties/UlongProperty.js.map +1 -0
- package/dist/Client/Queries/IRealObject.d.ts +3 -0
- package/dist/Client/Queries/IRealObject.d.ts.map +1 -0
- package/dist/Client/Queries/IRealObject.js +3 -0
- package/dist/Client/Queries/IRealObject.js.map +1 -0
- package/dist/Client/Queries/PlaceholderChild.d.ts +10 -0
- package/dist/Client/Queries/PlaceholderChild.d.ts.map +1 -0
- package/dist/Client/Queries/PlaceholderChild.js +22 -0
- package/dist/Client/Queries/PlaceholderChild.js.map +1 -0
- package/dist/Client/Queries/PlaceholderCopy.d.ts +13 -0
- package/dist/Client/Queries/PlaceholderCopy.d.ts.map +1 -0
- package/dist/Client/Queries/PlaceholderCopy.js +32 -0
- package/dist/Client/Queries/PlaceholderCopy.js.map +1 -0
- package/dist/Client/QueryBuilder.d.ts +92 -0
- package/dist/Client/QueryBuilder.d.ts.map +1 -0
- package/dist/Client/QueryBuilder.js +380 -0
- package/dist/Client/QueryBuilder.js.map +1 -0
- package/dist/Client/QueryInfo.d.ts +7 -0
- package/dist/Client/QueryInfo.d.ts.map +1 -0
- package/dist/Client/QueryInfo.js +12 -0
- package/dist/Client/QueryInfo.js.map +1 -0
- package/dist/Client/UpdateTools/ChildUpdate.d.ts +2 -0
- package/dist/Client/UpdateTools/ChildUpdate.d.ts.map +1 -0
- package/dist/Client/UpdateTools/ChildUpdate.js +262 -0
- package/dist/Client/UpdateTools/ChildUpdate.js.map +1 -0
- package/dist/Client/UpdateTools/ChildUpdateInfo.d.ts +13 -0
- package/dist/Client/UpdateTools/ChildUpdateInfo.d.ts.map +1 -0
- package/dist/Client/UpdateTools/ChildUpdateInfo.js +79 -0
- package/dist/Client/UpdateTools/ChildUpdateInfo.js.map +1 -0
- package/dist/Client/UpdateTools/ClientDataUpdateAndCompute.d.ts +42 -0
- package/dist/Client/UpdateTools/ClientDataUpdateAndCompute.d.ts.map +1 -0
- package/dist/Client/UpdateTools/ClientDataUpdateAndCompute.js +156 -0
- package/dist/Client/UpdateTools/ClientDataUpdateAndCompute.js.map +1 -0
- package/dist/Client/UpdateTools/FieldWatcher.d.ts +13 -0
- package/dist/Client/UpdateTools/FieldWatcher.d.ts.map +1 -0
- package/dist/Client/UpdateTools/FieldWatcher.js +43 -0
- package/dist/Client/UpdateTools/FieldWatcher.js.map +1 -0
- package/dist/Client/UpdateTools/Load.d.ts +2 -0
- package/dist/Client/UpdateTools/Load.d.ts.map +1 -0
- package/dist/Client/UpdateTools/Load.js +126 -0
- package/dist/Client/UpdateTools/Load.js.map +1 -0
- package/dist/Client/UpdateTools/ModelUpdateAndCompute.d.ts +42 -0
- package/dist/Client/UpdateTools/ModelUpdateAndCompute.d.ts.map +1 -0
- package/dist/Client/UpdateTools/ModelUpdateAndCompute.js +163 -0
- package/dist/Client/UpdateTools/ModelUpdateAndCompute.js.map +1 -0
- package/dist/Client/UpdateTools/UpdateWatcher.d.ts +12 -0
- package/dist/Client/UpdateTools/UpdateWatcher.d.ts.map +1 -0
- package/dist/Client/UpdateTools/UpdateWatcher.js +41 -0
- package/dist/Client/UpdateTools/UpdateWatcher.js.map +1 -0
- package/dist/Client/UpdateTools/ViewUpdateAndCompute.d.ts +21 -0
- package/dist/Client/UpdateTools/ViewUpdateAndCompute.d.ts.map +1 -0
- package/dist/Client/UpdateTools/ViewUpdateAndCompute.js +83 -0
- package/dist/Client/UpdateTools/ViewUpdateAndCompute.js.map +1 -0
- package/dist/Client/VSets/FilterAndSort/VFilters.d.ts +2 -0
- package/dist/Client/VSets/FilterAndSort/VFilters.d.ts.map +1 -0
- package/dist/Client/VSets/FilterAndSort/VFilters.js +53 -0
- package/dist/Client/VSets/FilterAndSort/VFilters.js.map +1 -0
- package/dist/Client/VSets/FilterAndSort/VListModif.d.ts +2 -0
- package/dist/Client/VSets/FilterAndSort/VListModif.d.ts.map +1 -0
- package/dist/Client/VSets/FilterAndSort/VListModif.js +45 -0
- package/dist/Client/VSets/FilterAndSort/VListModif.js.map +1 -0
- package/dist/Client/VSets/FilterAndSort/VListModification.d.ts +2 -0
- package/dist/Client/VSets/FilterAndSort/VListModification.d.ts.map +1 -0
- package/dist/Client/VSets/FilterAndSort/VListModification.js +24 -0
- package/dist/Client/VSets/FilterAndSort/VListModification.js.map +1 -0
- package/dist/Client/VSets/FilterAndSort/VSorter.d.ts +2 -0
- package/dist/Client/VSets/FilterAndSort/VSorter.d.ts.map +1 -0
- package/dist/Client/VSets/FilterAndSort/VSorter.js +21 -0
- package/dist/Client/VSets/FilterAndSort/VSorter.js.map +1 -0
- package/dist/Client/VSets/VItem.d.ts +42 -0
- package/dist/Client/VSets/VItem.d.ts.map +1 -0
- package/dist/Client/VSets/VItem.js +161 -0
- package/dist/Client/VSets/VItem.js.map +1 -0
- package/dist/Client/VSets/VList.d.ts +44 -0
- package/dist/Client/VSets/VList.d.ts.map +1 -0
- package/dist/Client/VSets/VList.js +409 -0
- package/dist/Client/VSets/VList.js.map +1 -0
- package/dist/Client/VSets/VPage.d.ts +20 -0
- package/dist/Client/VSets/VPage.d.ts.map +1 -0
- package/dist/Client/VSets/VPage.js +125 -0
- package/dist/Client/VSets/VPage.js.map +1 -0
- package/dist/Client/VSets/VPagination.d.ts +32 -0
- package/dist/Client/VSets/VPagination.d.ts.map +1 -0
- package/dist/Client/VSets/VPagination.js +126 -0
- package/dist/Client/VSets/VPagination.js.map +1 -0
- package/dist/Client/VSets/VSet.d.ts +9 -0
- package/dist/Client/VSets/VSet.d.ts.map +1 -0
- package/dist/Client/VSets/VSet.js +135 -0
- package/dist/Client/VSets/VSet.js.map +1 -0
- package/dist/Client/View/VBoundObject.d.ts +4 -0
- package/dist/Client/View/VBoundObject.d.ts.map +1 -0
- package/dist/Client/View/VBoundObject.js +15 -0
- package/dist/Client/View/VBoundObject.js.map +1 -0
- package/dist/Client/View/VObject.d.ts +29 -0
- package/dist/Client/View/VObject.d.ts.map +1 -0
- package/dist/Client/View/VObject.js +181 -0
- package/dist/Client/View/VObject.js.map +1 -0
- package/dist/Client/View/VObjectInItem.d.ts +22 -0
- package/dist/Client/View/VObjectInItem.d.ts.map +1 -0
- package/dist/Client/View/VObjectInItem.js +46 -0
- package/dist/Client/View/VObjectInItem.js.map +1 -0
- package/dist/Client/View/VObjectInList.d.ts +41 -0
- package/dist/Client/View/VObjectInList.d.ts.map +1 -0
- package/dist/Client/View/VObjectInList.js +100 -0
- package/dist/Client/View/VObjectInList.js.map +1 -0
- package/dist/Communication/ConnectionLogs.d.ts +22 -0
- package/dist/Communication/ConnectionLogs.d.ts.map +1 -0
- package/dist/Communication/ConnectionLogs.js +93 -0
- package/dist/Communication/ConnectionLogs.js.map +1 -0
- package/dist/Communication/CustomReadQuery.d.ts +2 -0
- package/dist/Communication/CustomReadQuery.d.ts.map +1 -0
- package/dist/Communication/CustomReadQuery.js +12 -0
- package/dist/Communication/CustomReadQuery.js.map +1 -0
- package/dist/Communication/DataAnswer.d.ts +2 -0
- package/dist/Communication/DataAnswer.d.ts.map +1 -0
- package/dist/Communication/DataAnswer.js +62 -0
- package/dist/Communication/DataAnswer.js.map +1 -0
- package/dist/Communication/DataItems/ChildData.d.ts +2 -0
- package/dist/Communication/DataItems/ChildData.d.ts.map +1 -0
- package/dist/Communication/DataItems/ChildData.js +92 -0
- package/dist/Communication/DataItems/ChildData.js.map +1 -0
- package/dist/Communication/DataItems/QueryData.d.ts +2 -0
- package/dist/Communication/DataItems/QueryData.d.ts.map +1 -0
- package/dist/Communication/DataItems/QueryData.js +56 -0
- package/dist/Communication/DataItems/QueryData.js.map +1 -0
- package/dist/Communication/DataItems/RelationData.d.ts +2 -0
- package/dist/Communication/DataItems/RelationData.d.ts.map +1 -0
- package/dist/Communication/DataItems/RelationData.js +82 -0
- package/dist/Communication/DataItems/RelationData.js.map +1 -0
- package/dist/Communication/DataItems/ValueClearedData.d.ts +2 -0
- package/dist/Communication/DataItems/ValueClearedData.d.ts.map +1 -0
- package/dist/Communication/DataItems/ValueClearedData.js +51 -0
- package/dist/Communication/DataItems/ValueClearedData.js.map +1 -0
- package/dist/Communication/DataItems/ValueData.d.ts +2 -0
- package/dist/Communication/DataItems/ValueData.d.ts.map +1 -0
- package/dist/Communication/DataItems/ValueData.js +50 -0
- package/dist/Communication/DataItems/ValueData.js.map +1 -0
- package/dist/Communication/DataItems/Values/VDBinary.d.ts +2 -0
- package/dist/Communication/DataItems/Values/VDBinary.d.ts.map +1 -0
- package/dist/Communication/DataItems/Values/VDBinary.js +55 -0
- package/dist/Communication/DataItems/Values/VDBinary.js.map +1 -0
- package/dist/Communication/DataItems/Values/VDByte.d.ts +2 -0
- package/dist/Communication/DataItems/Values/VDByte.d.ts.map +1 -0
- package/dist/Communication/DataItems/Values/VDByte.js +40 -0
- package/dist/Communication/DataItems/Values/VDByte.js.map +1 -0
- package/dist/Communication/DataItems/Values/VDDateTime.d.ts +2 -0
- package/dist/Communication/DataItems/Values/VDDateTime.d.ts.map +1 -0
- package/dist/Communication/DataItems/Values/VDDateTime.js +40 -0
- package/dist/Communication/DataItems/Values/VDDateTime.js.map +1 -0
- package/dist/Communication/DataItems/Values/VDDouble.d.ts +2 -0
- package/dist/Communication/DataItems/Values/VDDouble.d.ts.map +1 -0
- package/dist/Communication/DataItems/Values/VDDouble.js +40 -0
- package/dist/Communication/DataItems/Values/VDDouble.js.map +1 -0
- package/dist/Communication/DataItems/Values/VDLong.d.ts +2 -0
- package/dist/Communication/DataItems/Values/VDLong.d.ts.map +1 -0
- package/dist/Communication/DataItems/Values/VDLong.js +40 -0
- package/dist/Communication/DataItems/Values/VDLong.js.map +1 -0
- package/dist/Communication/DataItems/Values/VDString.d.ts +2 -0
- package/dist/Communication/DataItems/Values/VDString.d.ts.map +1 -0
- package/dist/Communication/DataItems/Values/VDString.js +43 -0
- package/dist/Communication/DataItems/Values/VDString.js.map +1 -0
- package/dist/Communication/DataItems/Values/VDUlong.d.ts +2 -0
- package/dist/Communication/DataItems/Values/VDUlong.d.ts.map +1 -0
- package/dist/Communication/DataItems/Values/VDUlong.js +40 -0
- package/dist/Communication/DataItems/Values/VDUlong.js.map +1 -0
- package/dist/Communication/DataMessage.d.ts +2 -0
- package/dist/Communication/DataMessage.d.ts.map +1 -0
- package/dist/Communication/DataMessage.js +212 -0
- package/dist/Communication/DataMessage.js.map +1 -0
- package/dist/Communication/ErrorMessage.d.ts +348 -0
- package/dist/Communication/ErrorMessage.d.ts.map +1 -0
- package/dist/Communication/ErrorMessage.js +943 -0
- package/dist/Communication/ErrorMessage.js.map +1 -0
- package/dist/Communication/Errors/CustomErrorMessage.d.ts +7 -0
- package/dist/Communication/Errors/CustomErrorMessage.d.ts.map +1 -0
- package/dist/Communication/Errors/CustomErrorMessage.js +28 -0
- package/dist/Communication/Errors/CustomErrorMessage.js.map +1 -0
- package/dist/Communication/Errors/ErroneousWriteErrorMessages.d.ts +28 -0
- package/dist/Communication/Errors/ErroneousWriteErrorMessages.d.ts.map +1 -0
- package/dist/Communication/Errors/ErroneousWriteErrorMessages.js +130 -0
- package/dist/Communication/Errors/ErroneousWriteErrorMessages.js.map +1 -0
- package/dist/Communication/Errors/ErrorHandlers.d.ts +96 -0
- package/dist/Communication/Errors/ErrorHandlers.d.ts.map +1 -0
- package/dist/Communication/Errors/ErrorHandlers.js +61 -0
- package/dist/Communication/Errors/ErrorHandlers.js.map +1 -0
- package/dist/Communication/Errors/InvalidWriteErrorMessages.d.ts +25 -0
- package/dist/Communication/Errors/InvalidWriteErrorMessages.d.ts.map +1 -0
- package/dist/Communication/Errors/InvalidWriteErrorMessages.js +115 -0
- package/dist/Communication/Errors/InvalidWriteErrorMessages.js.map +1 -0
- package/dist/Communication/Errors/NonwriteErrorMessages.d.ts +2 -0
- package/dist/Communication/Errors/NonwriteErrorMessages.d.ts.map +1 -0
- package/dist/Communication/Errors/NonwriteErrorMessages.js +2 -0
- package/dist/Communication/Errors/NonwriteErrorMessages.js.map +1 -0
- package/dist/Communication/Errors/RegularWriteErrorMessages.d.ts +30 -0
- package/dist/Communication/Errors/RegularWriteErrorMessages.d.ts.map +1 -0
- package/dist/Communication/Errors/RegularWriteErrorMessages.js +134 -0
- package/dist/Communication/Errors/RegularWriteErrorMessages.js.map +1 -0
- package/dist/Communication/Errors/WriteErrorMessage.d.ts +2 -0
- package/dist/Communication/Errors/WriteErrorMessage.d.ts.map +1 -0
- package/dist/Communication/Errors/WriteErrorMessage.js +2 -0
- package/dist/Communication/Errors/WriteErrorMessage.js.map +1 -0
- package/dist/Communication/GetPagesQuery.d.ts +2 -0
- package/dist/Communication/GetPagesQuery.d.ts.map +1 -0
- package/dist/Communication/GetPagesQuery.js +22 -0
- package/dist/Communication/GetPagesQuery.js.map +1 -0
- package/dist/Communication/Query.d.ts +2 -0
- package/dist/Communication/Query.d.ts.map +1 -0
- package/dist/Communication/Query.js +20 -0
- package/dist/Communication/Query.js.map +1 -0
- package/dist/Communication/QueryItems/QIClearLinks.d.ts +2 -0
- package/dist/Communication/QueryItems/QIClearLinks.d.ts.map +1 -0
- package/dist/Communication/QueryItems/QIClearLinks.js +17 -0
- package/dist/Communication/QueryItems/QIClearLinks.js.map +1 -0
- package/dist/Communication/QueryItems/QIDelete.d.ts +2 -0
- package/dist/Communication/QueryItems/QIDelete.d.ts.map +1 -0
- package/dist/Communication/QueryItems/QIDelete.js +15 -0
- package/dist/Communication/QueryItems/QIDelete.js.map +1 -0
- package/dist/Communication/QueryItems/QINewChild.d.ts +2 -0
- package/dist/Communication/QueryItems/QINewChild.d.ts.map +1 -0
- package/dist/Communication/QueryItems/QINewChild.js +104 -0
- package/dist/Communication/QueryItems/QINewChild.js.map +1 -0
- package/dist/Communication/QueryItems/QIReassignChild.d.ts +2 -0
- package/dist/Communication/QueryItems/QIReassignChild.d.ts.map +1 -0
- package/dist/Communication/QueryItems/QIReassignChild.js +27 -0
- package/dist/Communication/QueryItems/QIReassignChild.js.map +1 -0
- package/dist/Communication/QueryItems/QIUnlink.d.ts +2 -0
- package/dist/Communication/QueryItems/QIUnlink.d.ts.map +1 -0
- package/dist/Communication/QueryItems/QIUnlink.js +19 -0
- package/dist/Communication/QueryItems/QIUnlink.js.map +1 -0
- package/dist/Communication/QueryItems/QIValue.d.ts +37 -0
- package/dist/Communication/QueryItems/QIValue.d.ts.map +1 -0
- package/dist/Communication/QueryItems/QIValue.js +122 -0
- package/dist/Communication/QueryItems/QIValue.js.map +1 -0
- package/dist/Communication/Serialization/MIVDeserializer.d.ts +21 -0
- package/dist/Communication/Serialization/MIVDeserializer.d.ts.map +1 -0
- package/dist/Communication/Serialization/MIVDeserializer.js +148 -0
- package/dist/Communication/Serialization/MIVDeserializer.js.map +1 -0
- package/dist/Communication/Serialization/MIVSerializer.d.ts +25 -0
- package/dist/Communication/Serialization/MIVSerializer.d.ts.map +1 -0
- package/dist/Communication/Serialization/MIVSerializer.js +136 -0
- package/dist/Communication/Serialization/MIVSerializer.js.map +1 -0
- package/dist/Communication/SignQuery.d.ts +2 -0
- package/dist/Communication/SignQuery.d.ts.map +1 -0
- package/dist/Communication/SignQuery.js +19 -0
- package/dist/Communication/SignQuery.js.map +1 -0
- package/dist/Communication/SignupQuery.d.ts +2 -0
- package/dist/Communication/SignupQuery.d.ts.map +1 -0
- package/dist/Communication/SignupQuery.js +14 -0
- package/dist/Communication/SignupQuery.js.map +1 -0
- package/dist/Communication/UnloadQuery.d.ts +2 -0
- package/dist/Communication/UnloadQuery.d.ts.map +1 -0
- package/dist/Communication/UnloadQuery.js +20 -0
- package/dist/Communication/UnloadQuery.js.map +1 -0
- package/dist/Communication/UpdateQuery.d.ts +2 -0
- package/dist/Communication/UpdateQuery.d.ts.map +1 -0
- package/dist/Communication/UpdateQuery.js +45 -0
- package/dist/Communication/UpdateQuery.js.map +1 -0
- package/dist/HTML/BoolPropertyCheckBox.d.ts +17 -0
- package/dist/HTML/BoolPropertyCheckBox.d.ts.map +1 -0
- package/dist/HTML/BoolPropertyCheckBox.js +67 -0
- package/dist/HTML/BoolPropertyCheckBox.js.map +1 -0
- package/dist/HTML/PropertyTextArea.d.ts +53 -0
- package/dist/HTML/PropertyTextArea.d.ts.map +1 -0
- package/dist/HTML/PropertyTextArea.js +224 -0
- package/dist/HTML/PropertyTextArea.js.map +1 -0
- package/dist/HTML/PropertyTextBlock.d.ts +43 -0
- package/dist/HTML/PropertyTextBlock.d.ts.map +1 -0
- package/dist/HTML/PropertyTextBlock.js +161 -0
- package/dist/HTML/PropertyTextBlock.js.map +1 -0
- package/dist/HTML/PropertyTextBox.d.ts +72 -0
- package/dist/HTML/PropertyTextBox.d.ts.map +1 -0
- package/dist/HTML/PropertyTextBox.js +260 -0
- package/dist/HTML/PropertyTextBox.js.map +1 -0
- package/dist/MIVConstants.d.ts +22 -0
- package/dist/MIVConstants.d.ts.map +1 -0
- package/dist/MIVConstants.js +35 -0
- package/dist/MIVConstants.js.map +1 -0
- package/dist/MIVValueTypes.d.ts +14 -0
- package/dist/MIVValueTypes.d.ts.map +1 -0
- package/dist/MIVValueTypes.js +27 -0
- package/dist/MIVValueTypes.js.map +1 -0
- package/dist/Tools/AccumulatorList.d.ts +2 -0
- package/dist/Tools/AccumulatorList.d.ts.map +1 -0
- package/dist/Tools/AccumulatorList.js +61 -0
- package/dist/Tools/AccumulatorList.js.map +1 -0
- package/dist/Tools/LoadTools.d.ts +7 -0
- package/dist/Tools/LoadTools.d.ts.map +1 -0
- package/dist/Tools/LoadTools.js +57 -0
- package/dist/Tools/LoadTools.js.map +1 -0
- package/dist/Tools/MIVCache.d.ts +2 -0
- package/dist/Tools/MIVCache.d.ts.map +1 -0
- package/dist/Tools/MIVCache.js +29 -0
- package/dist/Tools/MIVCache.js.map +1 -0
- package/dist/Tools/MIVConverter.d.ts +6 -0
- package/dist/Tools/MIVConverter.d.ts.map +1 -0
- package/dist/Tools/MIVConverter.js +133 -0
- package/dist/Tools/MIVConverter.js.map +1 -0
- package/dist/Tools/PersistentList.d.ts +2 -0
- package/dist/Tools/PersistentList.d.ts.map +1 -0
- package/dist/Tools/PersistentList.js +90 -0
- package/dist/Tools/PersistentList.js.map +1 -0
- package/dist/Tools/Semaphore.d.ts +15 -0
- package/dist/Tools/Semaphore.d.ts.map +1 -0
- package/dist/Tools/Semaphore.js +62 -0
- package/dist/Tools/Semaphore.js.map +1 -0
- package/dist/Tools/UpdateTool.d.ts +7 -0
- package/dist/Tools/UpdateTool.d.ts.map +1 -0
- package/dist/Tools/UpdateTool.js +15 -0
- package/dist/Tools/UpdateTool.js.map +1 -0
- package/dist/index.d.ts +63 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +146 -0
- package/dist/index.js.map +1 -0
- package/dist/src/Client/AuditTrail.d.ts +86 -0
- package/dist/src/Client/AuditTrail.d.ts.map +1 -0
- package/dist/src/Client/AuditTrail.js +556 -0
- package/dist/src/Client/AuditTrail.js.map +1 -0
- package/dist/src/Client/Connections/ConnectionStrategy.d.ts +9 -0
- package/dist/src/Client/Connections/ConnectionStrategy.d.ts.map +1 -0
- package/dist/src/Client/Connections/ConnectionStrategy.js +52 -0
- package/dist/src/Client/Connections/ConnectionStrategy.js.map +1 -0
- package/dist/src/Client/Connections/WebSocketConnection.d.ts +27 -0
- package/dist/src/Client/Connections/WebSocketConnection.d.ts.map +1 -0
- package/dist/src/Client/Connections/WebSocketConnection.js +285 -0
- package/dist/src/Client/Connections/WebSocketConnection.js.map +1 -0
- package/dist/src/Client/Construction/ChildAndRealtionData.d.ts +17 -0
- package/dist/src/Client/Construction/ChildAndRealtionData.d.ts.map +1 -0
- package/dist/src/Client/Construction/ChildAndRealtionData.js +39 -0
- package/dist/src/Client/Construction/ChildAndRealtionData.js.map +1 -0
- package/dist/src/Client/Construction/ClientTypes.d.ts +98 -0
- package/dist/src/Client/Construction/ClientTypes.d.ts.map +1 -0
- package/dist/src/Client/Construction/ClientTypes.js +271 -0
- package/dist/src/Client/Construction/ClientTypes.js.map +1 -0
- package/dist/src/Client/Construction/FiltersSet.d.ts +2 -0
- package/dist/src/Client/Construction/FiltersSet.d.ts.map +1 -0
- package/dist/src/Client/Construction/FiltersSet.js +60 -0
- package/dist/src/Client/Construction/FiltersSet.js.map +1 -0
- package/dist/src/Client/LoadFilter.d.ts +2 -0
- package/dist/src/Client/LoadFilter.d.ts.map +1 -0
- package/dist/src/Client/LoadFilter.js +49 -0
- package/dist/src/Client/LoadFilter.js.map +1 -0
- package/dist/src/Client/MChild.d.ts +46 -0
- package/dist/src/Client/MChild.d.ts.map +1 -0
- package/dist/src/Client/MChild.js +323 -0
- package/dist/src/Client/MChild.js.map +1 -0
- package/dist/src/Client/MField.d.ts +6 -0
- package/dist/src/Client/MField.d.ts.map +1 -0
- package/dist/src/Client/MField.js +40 -0
- package/dist/src/Client/MField.js.map +1 -0
- package/dist/src/Client/MIVClient.d.ts +108 -0
- package/dist/src/Client/MIVClient.d.ts.map +1 -0
- package/dist/src/Client/MIVClient.js +862 -0
- package/dist/src/Client/MIVClient.js.map +1 -0
- package/dist/src/Client/MObject.d.ts +11 -0
- package/dist/src/Client/MObject.d.ts.map +1 -0
- package/dist/src/Client/MObject.js +55 -0
- package/dist/src/Client/MObject.js.map +1 -0
- package/dist/src/Client/MProperty.d.ts +5 -0
- package/dist/src/Client/MProperty.d.ts.map +1 -0
- package/dist/src/Client/MProperty.js +14 -0
- package/dist/src/Client/MProperty.js.map +1 -0
- package/dist/src/Client/MRealObject.d.ts +57 -0
- package/dist/src/Client/MRealObject.d.ts.map +1 -0
- package/dist/src/Client/MRealObject.js +536 -0
- package/dist/src/Client/MRealObject.js.map +1 -0
- package/dist/src/Client/MRelation.d.ts +36 -0
- package/dist/src/Client/MRelation.d.ts.map +1 -0
- package/dist/src/Client/MRelation.js +114 -0
- package/dist/src/Client/MRelation.js.map +1 -0
- package/dist/src/Client/MRoot.d.ts +26 -0
- package/dist/src/Client/MRoot.d.ts.map +1 -0
- package/dist/src/Client/MRoot.js +105 -0
- package/dist/src/Client/MRoot.js.map +1 -0
- package/dist/src/Client/MSets/ChildrenListInternal.d.ts +2 -0
- package/dist/src/Client/MSets/ChildrenListInternal.d.ts.map +1 -0
- package/dist/src/Client/MSets/ChildrenListInternal.js +83 -0
- package/dist/src/Client/MSets/ChildrenListInternal.js.map +1 -0
- package/dist/src/Client/MSets/ListInternal.d.ts +2 -0
- package/dist/src/Client/MSets/ListInternal.d.ts.map +1 -0
- package/dist/src/Client/MSets/ListInternal.js +123 -0
- package/dist/src/Client/MSets/ListInternal.js.map +1 -0
- package/dist/src/Client/MSets/MItem.d.ts +23 -0
- package/dist/src/Client/MSets/MItem.d.ts.map +1 -0
- package/dist/src/Client/MSets/MItem.js +72 -0
- package/dist/src/Client/MSets/MItem.js.map +1 -0
- package/dist/src/Client/MSets/MList.d.ts +9 -0
- package/dist/src/Client/MSets/MList.d.ts.map +1 -0
- package/dist/src/Client/MSets/MList.js +17 -0
- package/dist/src/Client/MSets/MList.js.map +1 -0
- package/dist/src/Client/MSets/MPage.d.ts +12 -0
- package/dist/src/Client/MSets/MPage.d.ts.map +1 -0
- package/dist/src/Client/MSets/MPage.js +32 -0
- package/dist/src/Client/MSets/MPage.js.map +1 -0
- package/dist/src/Client/MSets/MPagination.d.ts +25 -0
- package/dist/src/Client/MSets/MPagination.d.ts.map +1 -0
- package/dist/src/Client/MSets/MPagination.js +99 -0
- package/dist/src/Client/MSets/MPagination.js.map +1 -0
- package/dist/src/Client/MSets/MRealLists.d.ts +33 -0
- package/dist/src/Client/MSets/MRealLists.d.ts.map +1 -0
- package/dist/src/Client/MSets/MRealLists.js +85 -0
- package/dist/src/Client/MSets/MRealLists.js.map +1 -0
- package/dist/src/Client/MSets/MSet.d.ts +4 -0
- package/dist/src/Client/MSets/MSet.d.ts.map +1 -0
- package/dist/src/Client/MSets/MSet.js +18 -0
- package/dist/src/Client/MSets/MSet.js.map +1 -0
- package/dist/src/Client/MSets/PageInternal.d.ts +2 -0
- package/dist/src/Client/MSets/PageInternal.d.ts.map +1 -0
- package/dist/src/Client/MSets/PageInternal.js +142 -0
- package/dist/src/Client/MSets/PageInternal.js.map +1 -0
- package/dist/src/Client/MSets/PointersListInternal.d.ts +2 -0
- package/dist/src/Client/MSets/PointersListInternal.d.ts.map +1 -0
- package/dist/src/Client/MSets/PointersListInternal.js +71 -0
- package/dist/src/Client/MSets/PointersListInternal.js.map +1 -0
- package/dist/src/Client/MSets/TargetingListInternal.d.ts +2 -0
- package/dist/src/Client/MSets/TargetingListInternal.d.ts.map +1 -0
- package/dist/src/Client/MSets/TargetingListInternal.js +86 -0
- package/dist/src/Client/MSets/TargetingListInternal.js.map +1 -0
- package/dist/src/Client/MSets/TargetsListInternal.d.ts +2 -0
- package/dist/src/Client/MSets/TargetsListInternal.d.ts.map +1 -0
- package/dist/src/Client/MSets/TargetsListInternal.js +89 -0
- package/dist/src/Client/MSets/TargetsListInternal.js.map +1 -0
- package/dist/src/Client/MSets/VirtualList.d.ts +11 -0
- package/dist/src/Client/MSets/VirtualList.d.ts.map +1 -0
- package/dist/src/Client/MSets/VirtualList.js +63 -0
- package/dist/src/Client/MSets/VirtualList.js.map +1 -0
- package/dist/src/Client/MSets/WholeListInternal.d.ts +4 -0
- package/dist/src/Client/MSets/WholeListInternal.d.ts.map +1 -0
- package/dist/src/Client/MSets/WholeListInternal.js +12 -0
- package/dist/src/Client/MSets/WholeListInternal.js.map +1 -0
- package/dist/src/Client/MUser.d.ts +10 -0
- package/dist/src/Client/MUser.d.ts.map +1 -0
- package/dist/src/Client/MUser.js +16 -0
- package/dist/src/Client/MUser.js.map +1 -0
- package/dist/src/Client/MVirtualObject.d.ts +13 -0
- package/dist/src/Client/MVirtualObject.d.ts.map +1 -0
- package/dist/src/Client/MVirtualObject.js +25 -0
- package/dist/src/Client/MVirtualObject.js.map +1 -0
- package/dist/src/Client/Properties/BoolProperty.d.ts +26 -0
- package/dist/src/Client/Properties/BoolProperty.d.ts.map +1 -0
- package/dist/src/Client/Properties/BoolProperty.js +66 -0
- package/dist/src/Client/Properties/BoolProperty.js.map +1 -0
- package/dist/src/Client/Properties/ByteProperty.d.ts +27 -0
- package/dist/src/Client/Properties/ByteProperty.d.ts.map +1 -0
- package/dist/src/Client/Properties/ByteProperty.js +114 -0
- package/dist/src/Client/Properties/ByteProperty.js.map +1 -0
- package/dist/src/Client/Properties/DateTimeProperty.d.ts +28 -0
- package/dist/src/Client/Properties/DateTimeProperty.d.ts.map +1 -0
- package/dist/src/Client/Properties/DateTimeProperty.js +128 -0
- package/dist/src/Client/Properties/DateTimeProperty.js.map +1 -0
- package/dist/src/Client/Properties/DoubleProperty.d.ts +24 -0
- package/dist/src/Client/Properties/DoubleProperty.d.ts.map +1 -0
- package/dist/src/Client/Properties/DoubleProperty.js +106 -0
- package/dist/src/Client/Properties/DoubleProperty.js.map +1 -0
- package/dist/src/Client/Properties/EnumProperty.d.ts +31 -0
- package/dist/src/Client/Properties/EnumProperty.d.ts.map +1 -0
- package/dist/src/Client/Properties/EnumProperty.js +68 -0
- package/dist/src/Client/Properties/EnumProperty.js.map +1 -0
- package/dist/src/Client/Properties/IRealProperty.d.ts +12 -0
- package/dist/src/Client/Properties/IRealProperty.d.ts.map +1 -0
- package/dist/src/Client/Properties/IRealProperty.js +3 -0
- package/dist/src/Client/Properties/IRealProperty.js.map +1 -0
- package/dist/src/Client/Properties/LongProperty.d.ts +24 -0
- package/dist/src/Client/Properties/LongProperty.d.ts.map +1 -0
- package/dist/src/Client/Properties/LongProperty.js +106 -0
- package/dist/src/Client/Properties/LongProperty.js.map +1 -0
- package/dist/src/Client/Properties/RealPropertyInternal.d.ts +2 -0
- package/dist/src/Client/Properties/RealPropertyInternal.d.ts.map +1 -0
- package/dist/src/Client/Properties/RealPropertyInternal.js +29 -0
- package/dist/src/Client/Properties/RealPropertyInternal.js.map +1 -0
- package/dist/src/Client/Properties/StringProperty.d.ts +30 -0
- package/dist/src/Client/Properties/StringProperty.d.ts.map +1 -0
- package/dist/src/Client/Properties/StringProperty.js +152 -0
- package/dist/src/Client/Properties/StringProperty.js.map +1 -0
- package/dist/src/Client/Properties/SupportedPropertyInternal.d.ts +2 -0
- package/dist/src/Client/Properties/SupportedPropertyInternal.d.ts.map +1 -0
- package/dist/src/Client/Properties/SupportedPropertyInternal.js +21 -0
- package/dist/src/Client/Properties/SupportedPropertyInternal.js.map +1 -0
- package/dist/src/Client/Properties/UlongProperty.d.ts +24 -0
- package/dist/src/Client/Properties/UlongProperty.d.ts.map +1 -0
- package/dist/src/Client/Properties/UlongProperty.js +106 -0
- package/dist/src/Client/Properties/UlongProperty.js.map +1 -0
- package/dist/src/Client/Queries/IRealObject.d.ts +3 -0
- package/dist/src/Client/Queries/IRealObject.d.ts.map +1 -0
- package/dist/src/Client/Queries/IRealObject.js +3 -0
- package/dist/src/Client/Queries/IRealObject.js.map +1 -0
- package/dist/src/Client/Queries/PlaceholderChild.d.ts +10 -0
- package/dist/src/Client/Queries/PlaceholderChild.d.ts.map +1 -0
- package/dist/src/Client/Queries/PlaceholderChild.js +22 -0
- package/dist/src/Client/Queries/PlaceholderChild.js.map +1 -0
- package/dist/src/Client/Queries/PlaceholderCopy.d.ts +13 -0
- package/dist/src/Client/Queries/PlaceholderCopy.d.ts.map +1 -0
- package/dist/src/Client/Queries/PlaceholderCopy.js +32 -0
- package/dist/src/Client/Queries/PlaceholderCopy.js.map +1 -0
- package/dist/src/Client/QueryBuilder.d.ts +87 -0
- package/dist/src/Client/QueryBuilder.d.ts.map +1 -0
- package/dist/src/Client/QueryBuilder.js +366 -0
- package/dist/src/Client/QueryBuilder.js.map +1 -0
- package/dist/src/Client/QueryInfo.d.ts +7 -0
- package/dist/src/Client/QueryInfo.d.ts.map +1 -0
- package/dist/src/Client/QueryInfo.js +12 -0
- package/dist/src/Client/QueryInfo.js.map +1 -0
- package/dist/src/Client/UpdateTools/ChildUpdate.d.ts +2 -0
- package/dist/src/Client/UpdateTools/ChildUpdate.d.ts.map +1 -0
- package/dist/src/Client/UpdateTools/ChildUpdate.js +262 -0
- package/dist/src/Client/UpdateTools/ChildUpdate.js.map +1 -0
- package/dist/src/Client/UpdateTools/ChildUpdateInfo.d.ts +13 -0
- package/dist/src/Client/UpdateTools/ChildUpdateInfo.d.ts.map +1 -0
- package/dist/src/Client/UpdateTools/ChildUpdateInfo.js +79 -0
- package/dist/src/Client/UpdateTools/ChildUpdateInfo.js.map +1 -0
- package/dist/src/Client/UpdateTools/FieldWatcher.d.ts +13 -0
- package/dist/src/Client/UpdateTools/FieldWatcher.d.ts.map +1 -0
- package/dist/src/Client/UpdateTools/FieldWatcher.js +43 -0
- package/dist/src/Client/UpdateTools/FieldWatcher.js.map +1 -0
- package/dist/src/Client/UpdateTools/Load.d.ts +2 -0
- package/dist/src/Client/UpdateTools/Load.d.ts.map +1 -0
- package/dist/src/Client/UpdateTools/Load.js +126 -0
- package/dist/src/Client/UpdateTools/Load.js.map +1 -0
- package/dist/src/Client/UpdateTools/ModelUpdateAndCompute.d.ts +42 -0
- package/dist/src/Client/UpdateTools/ModelUpdateAndCompute.d.ts.map +1 -0
- package/dist/src/Client/UpdateTools/ModelUpdateAndCompute.js +161 -0
- package/dist/src/Client/UpdateTools/ModelUpdateAndCompute.js.map +1 -0
- package/dist/src/Client/UpdateTools/UpdateWatcher.d.ts +12 -0
- package/dist/src/Client/UpdateTools/UpdateWatcher.d.ts.map +1 -0
- package/dist/src/Client/UpdateTools/UpdateWatcher.js +41 -0
- package/dist/src/Client/UpdateTools/UpdateWatcher.js.map +1 -0
- package/dist/src/Client/UpdateTools/ViewUpdateAndCompute.d.ts +21 -0
- package/dist/src/Client/UpdateTools/ViewUpdateAndCompute.d.ts.map +1 -0
- package/dist/src/Client/UpdateTools/ViewUpdateAndCompute.js +83 -0
- package/dist/src/Client/UpdateTools/ViewUpdateAndCompute.js.map +1 -0
- package/dist/src/Client/VSets/FilterAndSort/VFilters.d.ts +2 -0
- package/dist/src/Client/VSets/FilterAndSort/VFilters.d.ts.map +1 -0
- package/dist/src/Client/VSets/FilterAndSort/VFilters.js +53 -0
- package/dist/src/Client/VSets/FilterAndSort/VFilters.js.map +1 -0
- package/dist/src/Client/VSets/FilterAndSort/VListModif.d.ts +2 -0
- package/dist/src/Client/VSets/FilterAndSort/VListModif.d.ts.map +1 -0
- package/dist/src/Client/VSets/FilterAndSort/VListModif.js +45 -0
- package/dist/src/Client/VSets/FilterAndSort/VListModif.js.map +1 -0
- package/dist/src/Client/VSets/FilterAndSort/VListModification.d.ts +2 -0
- package/dist/src/Client/VSets/FilterAndSort/VListModification.d.ts.map +1 -0
- package/dist/src/Client/VSets/FilterAndSort/VListModification.js +24 -0
- package/dist/src/Client/VSets/FilterAndSort/VListModification.js.map +1 -0
- package/dist/src/Client/VSets/FilterAndSort/VSorter.d.ts +2 -0
- package/dist/src/Client/VSets/FilterAndSort/VSorter.d.ts.map +1 -0
- package/dist/src/Client/VSets/FilterAndSort/VSorter.js +21 -0
- package/dist/src/Client/VSets/FilterAndSort/VSorter.js.map +1 -0
- package/dist/src/Client/VSets/VList.d.ts +44 -0
- package/dist/src/Client/VSets/VList.d.ts.map +1 -0
- package/dist/src/Client/VSets/VList.js +409 -0
- package/dist/src/Client/VSets/VList.js.map +1 -0
- package/dist/src/Client/VSets/VPage.d.ts +20 -0
- package/dist/src/Client/VSets/VPage.d.ts.map +1 -0
- package/dist/src/Client/VSets/VPage.js +125 -0
- package/dist/src/Client/VSets/VPage.js.map +1 -0
- package/dist/src/Client/VSets/VPagination.d.ts +32 -0
- package/dist/src/Client/VSets/VPagination.d.ts.map +1 -0
- package/dist/src/Client/VSets/VPagination.js +126 -0
- package/dist/src/Client/VSets/VPagination.js.map +1 -0
- package/dist/src/Client/VSets/VSet.d.ts +9 -0
- package/dist/src/Client/VSets/VSet.d.ts.map +1 -0
- package/dist/src/Client/VSets/VSet.js +132 -0
- package/dist/src/Client/VSets/VSet.js.map +1 -0
- package/dist/src/Client/View/VBoundObject.d.ts +4 -0
- package/dist/src/Client/View/VBoundObject.d.ts.map +1 -0
- package/dist/src/Client/View/VBoundObject.js +15 -0
- package/dist/src/Client/View/VBoundObject.js.map +1 -0
- package/dist/src/Client/View/VObject.d.ts +29 -0
- package/dist/src/Client/View/VObject.d.ts.map +1 -0
- package/dist/src/Client/View/VObject.js +181 -0
- package/dist/src/Client/View/VObject.js.map +1 -0
- package/dist/src/Client/View/VObjectInList.d.ts +41 -0
- package/dist/src/Client/View/VObjectInList.d.ts.map +1 -0
- package/dist/src/Client/View/VObjectInList.js +100 -0
- package/dist/src/Client/View/VObjectInList.js.map +1 -0
- package/dist/src/Communication/CustomReadQuery.d.ts +2 -0
- package/dist/src/Communication/CustomReadQuery.d.ts.map +1 -0
- package/dist/src/Communication/CustomReadQuery.js +12 -0
- package/dist/src/Communication/CustomReadQuery.js.map +1 -0
- package/dist/src/Communication/DataAnswer.d.ts +2 -0
- package/dist/src/Communication/DataAnswer.d.ts.map +1 -0
- package/dist/src/Communication/DataAnswer.js +62 -0
- package/dist/src/Communication/DataAnswer.js.map +1 -0
- package/dist/src/Communication/DataItems/ChildData.d.ts +2 -0
- package/dist/src/Communication/DataItems/ChildData.d.ts.map +1 -0
- package/dist/src/Communication/DataItems/ChildData.js +92 -0
- package/dist/src/Communication/DataItems/ChildData.js.map +1 -0
- package/dist/src/Communication/DataItems/QueryData.d.ts +2 -0
- package/dist/src/Communication/DataItems/QueryData.d.ts.map +1 -0
- package/dist/src/Communication/DataItems/QueryData.js +56 -0
- package/dist/src/Communication/DataItems/QueryData.js.map +1 -0
- package/dist/src/Communication/DataItems/RelationData.d.ts +2 -0
- package/dist/src/Communication/DataItems/RelationData.d.ts.map +1 -0
- package/dist/src/Communication/DataItems/RelationData.js +82 -0
- package/dist/src/Communication/DataItems/RelationData.js.map +1 -0
- package/dist/src/Communication/DataItems/ValueClearedData.d.ts +2 -0
- package/dist/src/Communication/DataItems/ValueClearedData.d.ts.map +1 -0
- package/dist/src/Communication/DataItems/ValueClearedData.js +51 -0
- package/dist/src/Communication/DataItems/ValueClearedData.js.map +1 -0
- package/dist/src/Communication/DataItems/ValueData.d.ts +2 -0
- package/dist/src/Communication/DataItems/ValueData.d.ts.map +1 -0
- package/dist/src/Communication/DataItems/ValueData.js +50 -0
- package/dist/src/Communication/DataItems/ValueData.js.map +1 -0
- package/dist/src/Communication/DataItems/Values/VDByte.d.ts +2 -0
- package/dist/src/Communication/DataItems/Values/VDByte.d.ts.map +1 -0
- package/dist/src/Communication/DataItems/Values/VDByte.js +40 -0
- package/dist/src/Communication/DataItems/Values/VDByte.js.map +1 -0
- package/dist/src/Communication/DataItems/Values/VDDateTime.d.ts +2 -0
- package/dist/src/Communication/DataItems/Values/VDDateTime.d.ts.map +1 -0
- package/dist/src/Communication/DataItems/Values/VDDateTime.js +40 -0
- package/dist/src/Communication/DataItems/Values/VDDateTime.js.map +1 -0
- package/dist/src/Communication/DataItems/Values/VDDouble.d.ts +2 -0
- package/dist/src/Communication/DataItems/Values/VDDouble.d.ts.map +1 -0
- package/dist/src/Communication/DataItems/Values/VDDouble.js +40 -0
- package/dist/src/Communication/DataItems/Values/VDDouble.js.map +1 -0
- package/dist/src/Communication/DataItems/Values/VDLong.d.ts +2 -0
- package/dist/src/Communication/DataItems/Values/VDLong.d.ts.map +1 -0
- package/dist/src/Communication/DataItems/Values/VDLong.js +40 -0
- package/dist/src/Communication/DataItems/Values/VDLong.js.map +1 -0
- package/dist/src/Communication/DataItems/Values/VDString.d.ts +2 -0
- package/dist/src/Communication/DataItems/Values/VDString.d.ts.map +1 -0
- package/dist/src/Communication/DataItems/Values/VDString.js +43 -0
- package/dist/src/Communication/DataItems/Values/VDString.js.map +1 -0
- package/dist/src/Communication/DataItems/Values/VDUlong.d.ts +2 -0
- package/dist/src/Communication/DataItems/Values/VDUlong.d.ts.map +1 -0
- package/dist/src/Communication/DataItems/Values/VDUlong.js +40 -0
- package/dist/src/Communication/DataItems/Values/VDUlong.js.map +1 -0
- package/dist/src/Communication/DataMessage.d.ts +2 -0
- package/dist/src/Communication/DataMessage.d.ts.map +1 -0
- package/dist/src/Communication/DataMessage.js +199 -0
- package/dist/src/Communication/DataMessage.js.map +1 -0
- package/dist/src/Communication/ErrorMessage.d.ts +348 -0
- package/dist/src/Communication/ErrorMessage.d.ts.map +1 -0
- package/dist/src/Communication/ErrorMessage.js +943 -0
- package/dist/src/Communication/ErrorMessage.js.map +1 -0
- package/dist/src/Communication/GetPagesQuery.d.ts +2 -0
- package/dist/src/Communication/GetPagesQuery.d.ts.map +1 -0
- package/dist/src/Communication/GetPagesQuery.js +22 -0
- package/dist/src/Communication/GetPagesQuery.js.map +1 -0
- package/dist/src/Communication/Query.d.ts +2 -0
- package/dist/src/Communication/Query.d.ts.map +1 -0
- package/dist/src/Communication/Query.js +18 -0
- package/dist/src/Communication/Query.js.map +1 -0
- package/dist/src/Communication/QueryItems/QIClearLinks.d.ts +2 -0
- package/dist/src/Communication/QueryItems/QIClearLinks.d.ts.map +1 -0
- package/dist/src/Communication/QueryItems/QIClearLinks.js +17 -0
- package/dist/src/Communication/QueryItems/QIClearLinks.js.map +1 -0
- package/dist/src/Communication/QueryItems/QIDelete.d.ts +2 -0
- package/dist/src/Communication/QueryItems/QIDelete.d.ts.map +1 -0
- package/dist/src/Communication/QueryItems/QIDelete.js +15 -0
- package/dist/src/Communication/QueryItems/QIDelete.js.map +1 -0
- package/dist/src/Communication/QueryItems/QINewChild.d.ts +2 -0
- package/dist/src/Communication/QueryItems/QINewChild.d.ts.map +1 -0
- package/dist/src/Communication/QueryItems/QINewChild.js +104 -0
- package/dist/src/Communication/QueryItems/QINewChild.js.map +1 -0
- package/dist/src/Communication/QueryItems/QIReassignChild.d.ts +2 -0
- package/dist/src/Communication/QueryItems/QIReassignChild.d.ts.map +1 -0
- package/dist/src/Communication/QueryItems/QIReassignChild.js +27 -0
- package/dist/src/Communication/QueryItems/QIReassignChild.js.map +1 -0
- package/dist/src/Communication/QueryItems/QIUnlink.d.ts +2 -0
- package/dist/src/Communication/QueryItems/QIUnlink.d.ts.map +1 -0
- package/dist/src/Communication/QueryItems/QIUnlink.js +19 -0
- package/dist/src/Communication/QueryItems/QIUnlink.js.map +1 -0
- package/dist/src/Communication/QueryItems/QIValue.d.ts +33 -0
- package/dist/src/Communication/QueryItems/QIValue.d.ts.map +1 -0
- package/dist/src/Communication/QueryItems/QIValue.js +111 -0
- package/dist/src/Communication/QueryItems/QIValue.js.map +1 -0
- package/dist/src/Communication/Serialization/MIVDeserializer.d.ts +20 -0
- package/dist/src/Communication/Serialization/MIVDeserializer.d.ts.map +1 -0
- package/dist/src/Communication/Serialization/MIVDeserializer.js +128 -0
- package/dist/src/Communication/Serialization/MIVDeserializer.js.map +1 -0
- package/dist/src/Communication/Serialization/MIVSerializer.d.ts +25 -0
- package/dist/src/Communication/Serialization/MIVSerializer.d.ts.map +1 -0
- package/dist/src/Communication/Serialization/MIVSerializer.js +135 -0
- package/dist/src/Communication/Serialization/MIVSerializer.js.map +1 -0
- package/dist/src/Communication/SignQuery.d.ts +2 -0
- package/dist/src/Communication/SignQuery.d.ts.map +1 -0
- package/dist/src/Communication/SignQuery.js +19 -0
- package/dist/src/Communication/SignQuery.js.map +1 -0
- package/dist/src/Communication/SignupQuery.d.ts +2 -0
- package/dist/src/Communication/SignupQuery.d.ts.map +1 -0
- package/dist/src/Communication/SignupQuery.js +14 -0
- package/dist/src/Communication/SignupQuery.js.map +1 -0
- package/dist/src/Communication/UnloadQuery.d.ts +2 -0
- package/dist/src/Communication/UnloadQuery.d.ts.map +1 -0
- package/dist/src/Communication/UnloadQuery.js +20 -0
- package/dist/src/Communication/UnloadQuery.js.map +1 -0
- package/dist/src/Communication/UpdateQuery.d.ts +2 -0
- package/dist/src/Communication/UpdateQuery.d.ts.map +1 -0
- package/dist/src/Communication/UpdateQuery.js +45 -0
- package/dist/src/Communication/UpdateQuery.js.map +1 -0
- package/dist/src/HTML/PropertyTextBlock.d.ts +42 -0
- package/dist/src/HTML/PropertyTextBlock.d.ts.map +1 -0
- package/dist/src/HTML/PropertyTextBlock.js +161 -0
- package/dist/src/HTML/PropertyTextBlock.js.map +1 -0
- package/dist/src/HTML/PropertyTextBox.d.ts +39 -0
- package/dist/src/HTML/PropertyTextBox.d.ts.map +1 -0
- package/dist/src/HTML/PropertyTextBox.js +245 -0
- package/dist/src/HTML/PropertyTextBox.js.map +1 -0
- package/dist/src/MIVConstants.d.ts +19 -0
- package/dist/src/MIVConstants.d.ts.map +1 -0
- package/dist/src/MIVConstants.js +31 -0
- package/dist/src/MIVConstants.js.map +1 -0
- package/dist/src/MIVValueTypes.d.ts +2 -0
- package/dist/src/MIVValueTypes.d.ts.map +1 -0
- package/dist/src/MIVValueTypes.js +14 -0
- package/dist/src/MIVValueTypes.js.map +1 -0
- package/dist/src/Tools/AccumulatorList.d.ts +2 -0
- package/dist/src/Tools/AccumulatorList.d.ts.map +1 -0
- package/dist/src/Tools/AccumulatorList.js +61 -0
- package/dist/src/Tools/AccumulatorList.js.map +1 -0
- package/dist/src/Tools/LoadTools.d.ts +7 -0
- package/dist/src/Tools/LoadTools.d.ts.map +1 -0
- package/dist/src/Tools/LoadTools.js +57 -0
- package/dist/src/Tools/LoadTools.js.map +1 -0
- package/dist/src/Tools/MIVCache.d.ts +2 -0
- package/dist/src/Tools/MIVCache.d.ts.map +1 -0
- package/dist/src/Tools/MIVCache.js +29 -0
- package/dist/src/Tools/MIVCache.js.map +1 -0
- package/dist/src/Tools/MIVConverter.d.ts +6 -0
- package/dist/src/Tools/MIVConverter.d.ts.map +1 -0
- package/dist/src/Tools/MIVConverter.js +133 -0
- package/dist/src/Tools/MIVConverter.js.map +1 -0
- package/dist/src/Tools/PersistentList.d.ts +2 -0
- package/dist/src/Tools/PersistentList.d.ts.map +1 -0
- package/dist/src/Tools/PersistentList.js +90 -0
- package/dist/src/Tools/PersistentList.js.map +1 -0
- package/dist/src/Tools/Semaphore.d.ts +15 -0
- package/dist/src/Tools/Semaphore.d.ts.map +1 -0
- package/dist/src/Tools/Semaphore.js +62 -0
- package/dist/src/Tools/Semaphore.js.map +1 -0
- package/dist/src/Tools/UpdateTool.d.ts +7 -0
- package/dist/src/Tools/UpdateTool.d.ts.map +1 -0
- package/dist/src/Tools/UpdateTool.js +15 -0
- package/dist/src/Tools/UpdateTool.js.map +1 -0
- package/dist/src/index.d.ts +56 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +134 -0
- package/dist/src/index.js.map +1 -0
- package/package.json +23 -0
|
@@ -0,0 +1,931 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MIVClient = void 0;
|
|
4
|
+
const ErrorMessage_1 = require("../Communication/ErrorMessage");
|
|
5
|
+
const ChildAndRealtionData_1 = require("./Construction/ChildAndRealtionData");
|
|
6
|
+
const MRelation_1 = require("./MRelation");
|
|
7
|
+
const ChildUpdate_1 = require("./UpdateTools/ChildUpdate");
|
|
8
|
+
const ClientTypes_1 = require("./Construction/ClientTypes");
|
|
9
|
+
const PersistentList_1 = require("../Tools/PersistentList");
|
|
10
|
+
const ModelUpdateAndCompute_1 = require("./UpdateTools/ModelUpdateAndCompute");
|
|
11
|
+
const ViewUpdateAndCompute_1 = require("./UpdateTools/ViewUpdateAndCompute");
|
|
12
|
+
const VListModif_1 = require("./VSets/FilterAndSort/VListModif");
|
|
13
|
+
const UnloadQuery_1 = require("../Communication/UnloadQuery");
|
|
14
|
+
const AccumulatorList_1 = require("../Tools/AccumulatorList");
|
|
15
|
+
const QueryBuilder_1 = require("./QueryBuilder");
|
|
16
|
+
const QueryInfo_1 = require("./QueryInfo");
|
|
17
|
+
const MIVConstants_1 = require("../MIVConstants");
|
|
18
|
+
const DataAnswer_1 = require("../Communication/DataAnswer");
|
|
19
|
+
const Semaphore_1 = require("../Tools/Semaphore");
|
|
20
|
+
const MIVDeserializer_1 = require("../Communication/Serialization/MIVDeserializer");
|
|
21
|
+
const DateTimeProperty_1 = require("./Properties/DateTimeProperty");
|
|
22
|
+
var SignStatus;
|
|
23
|
+
(function (SignStatus) {
|
|
24
|
+
SignStatus[SignStatus["NONE"] = 0] = "NONE";
|
|
25
|
+
SignStatus[SignStatus["IN"] = 1] = "IN";
|
|
26
|
+
SignStatus[SignStatus["OUT"] = 2] = "OUT";
|
|
27
|
+
})(SignStatus || (SignStatus = {}));
|
|
28
|
+
class MIVClient {
|
|
29
|
+
get IsStarted() { return this._is_started_miv_; }
|
|
30
|
+
get UserID() { return this._user_id_miv_; }
|
|
31
|
+
get Error() { return this._error_miv_; }
|
|
32
|
+
get MustChangePassword() { return this._must_change_password_miv_; }
|
|
33
|
+
constructor(cs) {
|
|
34
|
+
this._is_started_miv_ = false;
|
|
35
|
+
this._user_id_miv_ = -1n;
|
|
36
|
+
this._semaLock_miv_ = new Semaphore_1.SemaphoreConcurrency();
|
|
37
|
+
this._token_lock_miv_ = MIVClient.TOKEN_BASE_miv_;
|
|
38
|
+
this._recursive_lock_miv_ = 0;
|
|
39
|
+
this._must_change_password_miv_ = false;
|
|
40
|
+
this._pageItemsList_miv_ = new AccumulatorList_1.AccumulatorList(1);
|
|
41
|
+
this.DefaultQueryHistory = false;
|
|
42
|
+
this._constructingDummy_miv_ = false;
|
|
43
|
+
this._roots_miv_ = new Array();
|
|
44
|
+
this._children_miv_ = new Map();
|
|
45
|
+
this._queries_miv_ = new Map();
|
|
46
|
+
this._cTypesFetcher_miv_ = new Map();
|
|
47
|
+
this._rTypesFetcher_miv_ = new Map();
|
|
48
|
+
this._loads_miv_ = new PersistentList_1.PersistentList(8);
|
|
49
|
+
this._cuCache_miv_ = new ChildUpdate_1.ChildUpdateCache(32);
|
|
50
|
+
this._newChildren_miv_ = new AccumulatorList_1.AccumulatorList(32);
|
|
51
|
+
this._destroyedChildren_miv_ = new AccumulatorList_1.AccumulatorList(32);
|
|
52
|
+
this._listsChanged_miv_ = new AccumulatorList_1.AccumulatorList(32);
|
|
53
|
+
this._childrenListsTMP_miv_ = new AccumulatorList_1.AccumulatorList(32);
|
|
54
|
+
this._targetsListsTMP_miv_ = new AccumulatorList_1.AccumulatorList(32);
|
|
55
|
+
this._queriesTMP_miv_ = new Map();
|
|
56
|
+
this._newRelations_miv_ = new AccumulatorList_1.AccumulatorList(32);
|
|
57
|
+
this._loadsList_miv_ = new AccumulatorList_1.AccumulatorList(2);
|
|
58
|
+
this._unloadIDList_miv_ = new AccumulatorList_1.AccumulatorList(2);
|
|
59
|
+
this._unloadCodeList_miv_ = new AccumulatorList_1.AccumulatorList(2);
|
|
60
|
+
this._objectsChangedForV_miv_ = new AccumulatorList_1.AccumulatorList(32);
|
|
61
|
+
this._fieldsChangedForV_miv_ = new AccumulatorList_1.AccumulatorList(32);
|
|
62
|
+
this._vWithModelUpdated_miv_ = new AccumulatorList_1.AccumulatorList(32);
|
|
63
|
+
this._vStatusChanged_miv_ = new AccumulatorList_1.AccumulatorList(32);
|
|
64
|
+
this._paginationsWithMaybeDestroyed_miv_ = new AccumulatorList_1.AccumulatorList(2);
|
|
65
|
+
this._vSetsToPreapare_miv_ = new PersistentList_1.PersistentList2(16);
|
|
66
|
+
this._vSetsUpdated_miv_ = new AccumulatorList_1.AccumulatorList(16);
|
|
67
|
+
this._vIndexChanged_miv_ = new AccumulatorList_1.AccumulatorList(16);
|
|
68
|
+
this._uwTriggered_miv_ = new AccumulatorList_1.AccumulatorList(2);
|
|
69
|
+
this._modifCache_miv_ = new VListModif_1.VListModifCache(16);
|
|
70
|
+
this._signing_miv_ = SignStatus.NONE;
|
|
71
|
+
this._connection_miv_ = cs;
|
|
72
|
+
this._cData_miv_ = new ChildAndRealtionData_1.ChildData(this);
|
|
73
|
+
this._rData_miv_ = new ChildAndRealtionData_1.RelationData(this);
|
|
74
|
+
this.GenericParentChildType = new ClientTypes_1.ClientGenericChildType(this);
|
|
75
|
+
this.GenericParentRelationType = new ClientTypes_1.ClientGenericRelationType(this);
|
|
76
|
+
this._dataUpdate_miv_ = new ModelUpdateAndCompute_1.ModelUpdate(this);
|
|
77
|
+
this._viewUpdate_miv_ = new ViewUpdateAndCompute_1.ViewUpdate(this);
|
|
78
|
+
}
|
|
79
|
+
_addRoot_miv_(r) {
|
|
80
|
+
if (r.ID == BigInt(MIVConstants_1.MIVConstants.SYSTEM_ROOT_ID) || r.Type.ID == MIVConstants_1.MIVConstants.SYSTEM_ROOT_TYPE) {
|
|
81
|
+
if (r.ID != BigInt(MIVConstants_1.MIVConstants.SYSTEM_ROOT_ID) || r.Type.ID != MIVConstants_1.MIVConstants.SYSTEM_ROOT_TYPE) {
|
|
82
|
+
throw new Error("the MRootSystem must have both its ID and Type match MIVConstances.SYSTEM_ROOT_ID and MIVConstants.SYSTEM_ROOT_TYPE.");
|
|
83
|
+
}
|
|
84
|
+
if (this._system_miv_ === undefined) {
|
|
85
|
+
this._system_miv_ = r;
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
throw new Error("duplicate root");
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
this._roots_miv_.push(r);
|
|
92
|
+
}
|
|
93
|
+
RegisterChildType(typeID, cstr, name, parent, collection) {
|
|
94
|
+
if (this._cTypesFetcher_miv_.has(typeID)) {
|
|
95
|
+
throw new Error("A type with this ID is already registered.");
|
|
96
|
+
}
|
|
97
|
+
const result = new ClientTypes_1.ClientChildType(this, typeID, cstr, name, parent, collection);
|
|
98
|
+
this._cTypesFetcher_miv_.set(typeID, result);
|
|
99
|
+
return result;
|
|
100
|
+
}
|
|
101
|
+
RegisterRelationType(typeID, cstr, name, parent, collection) {
|
|
102
|
+
if (this._rTypesFetcher_miv_.has(typeID)) {
|
|
103
|
+
throw new Error("A type with this ID is already registered.");
|
|
104
|
+
}
|
|
105
|
+
const result = new ClientTypes_1.ClientRelationType(this, typeID, cstr, name, parent, collection);
|
|
106
|
+
this._rTypesFetcher_miv_.set(typeID, result);
|
|
107
|
+
return result;
|
|
108
|
+
}
|
|
109
|
+
async StartAsync(options) {
|
|
110
|
+
this._constructingObject_miv_ = undefined;
|
|
111
|
+
if (this._system_miv_ === undefined) {
|
|
112
|
+
throw new Error("missing system root");
|
|
113
|
+
}
|
|
114
|
+
const checkDuplicateID = new Set();
|
|
115
|
+
for (let i = 0; i < this._roots_miv_.length; i++) {
|
|
116
|
+
const r = this._roots_miv_[i];
|
|
117
|
+
if (checkDuplicateID.has(r.ID)) {
|
|
118
|
+
throw new Error("duplicate root ID " + r.ID);
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
checkDuplicateID.add(r.ID);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
this._constructingDummy_miv_ = true;
|
|
125
|
+
const nameCheck = new Set();
|
|
126
|
+
const idCheck = new Set();
|
|
127
|
+
for (let i = 0; i < this._roots_miv_.length; i++) {
|
|
128
|
+
const r = this._roots_miv_[i];
|
|
129
|
+
r.Type._initialize_miv_(r, nameCheck, idCheck);
|
|
130
|
+
}
|
|
131
|
+
for (let [tid, type] of this._cTypesFetcher_miv_) {
|
|
132
|
+
type._initializeChild_miv_(this._cData_miv_, nameCheck, idCheck);
|
|
133
|
+
}
|
|
134
|
+
for (let [tid, type] of this._rTypesFetcher_miv_) {
|
|
135
|
+
type._initializeRelation_miv_(this._rData_miv_, nameCheck, idCheck);
|
|
136
|
+
}
|
|
137
|
+
this._constructingDummy_miv_ = false;
|
|
138
|
+
let msg = await this._connection_miv_._startAsync_miv_(this);
|
|
139
|
+
if (msg !== undefined) {
|
|
140
|
+
return msg;
|
|
141
|
+
}
|
|
142
|
+
this._is_started_miv_ = true;
|
|
143
|
+
const token = await this.TakeLockAsync();
|
|
144
|
+
for (let i = 0; i < this._roots_miv_.length; i++) {
|
|
145
|
+
const r = this._roots_miv_[i];
|
|
146
|
+
if (!r._actuallyLoaded_miv_) {
|
|
147
|
+
r._falselyLoaded_miv_(r.InitialLoad, r.Type._filtersNotNull_miv_);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
if (options !== undefined && options.login !== undefined) {
|
|
151
|
+
msg = await this.SignInAsync(options.login, options.password, undefined, token);
|
|
152
|
+
if (msg !== undefined)
|
|
153
|
+
return msg;
|
|
154
|
+
this._signing_miv_ = SignStatus.IN;
|
|
155
|
+
}
|
|
156
|
+
const forest = new Array();
|
|
157
|
+
for (let i = 0; i < this._roots_miv_.length; i++) {
|
|
158
|
+
const r = this._roots_miv_[i];
|
|
159
|
+
if (r._actuallyLoaded_miv_) {
|
|
160
|
+
forest.push({ root: r, filters: [r.InitialLoad] });
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
let errors;
|
|
164
|
+
if (forest.length > 0) {
|
|
165
|
+
errors = await this._loadForestArrayAsync_miv_(token, true, forest);
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
errors = undefined;
|
|
169
|
+
}
|
|
170
|
+
this.ReleaseLock();
|
|
171
|
+
return ErrorMessage_1.AggregateErrorMessage.CreateFromList(errors);
|
|
172
|
+
}
|
|
173
|
+
_signActions_miv_(mu) {
|
|
174
|
+
if (this._system_miv_ !== undefined && this._signing_miv_ != SignStatus.NONE) {
|
|
175
|
+
mu.SetDefaultLong(this._system_miv_.CurrentUserID, this._user_id_miv_);
|
|
176
|
+
this._system_miv_._setCurrentUser_miv_(this._user_id_miv_, mu);
|
|
177
|
+
this._signing_miv_ = SignStatus.NONE;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
async SignInAsync(login, password, virtualUpdate = undefined, lockToken = 0n) {
|
|
181
|
+
await this.TakeLockAsync(lockToken);
|
|
182
|
+
if (!this._connection_miv_._isActive_miv_) {
|
|
183
|
+
this.ReleaseLock();
|
|
184
|
+
return ErrorMessage_1.ConnectionLost.SINGLETON;
|
|
185
|
+
}
|
|
186
|
+
const data = await this._connection_miv_._signinAsync_miv_(login, password);
|
|
187
|
+
if (data._error_miv_ === undefined) {
|
|
188
|
+
let userID;
|
|
189
|
+
if (data._children_miv_._count_miv_ > 0) {
|
|
190
|
+
userID = data._children_miv_._list_miv_._get_miv_(0)._id_miv_;
|
|
191
|
+
this._login_miv_ = login;
|
|
192
|
+
this._password_miv_ = password;
|
|
193
|
+
this._update_on_login_miv_ = virtualUpdate;
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
userID = -1n;
|
|
197
|
+
}
|
|
198
|
+
this._user_id_miv_ = userID;
|
|
199
|
+
this._signing_miv_ = SignStatus.IN;
|
|
200
|
+
await this._executeSingleDataMessage_miv_(data, virtualUpdate);
|
|
201
|
+
this._receiveAnswer_miv_(data._mustChangePassword_miv_);
|
|
202
|
+
this.ReleaseLock();
|
|
203
|
+
return undefined;
|
|
204
|
+
}
|
|
205
|
+
else {
|
|
206
|
+
this._receiveAnswer_miv_(data._mustChangePassword_miv_);
|
|
207
|
+
this.ReleaseLock();
|
|
208
|
+
return data._error_miv_;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
async SignOutAsync(virtualUpdate = undefined, lockToken = 0n) {
|
|
212
|
+
this._login_miv_ = undefined;
|
|
213
|
+
this._password_miv_ = undefined;
|
|
214
|
+
lockToken = await this.TakeLockAsync(lockToken);
|
|
215
|
+
this._user_id_miv_ = -1n;
|
|
216
|
+
this._signing_miv_ = SignStatus.OUT;
|
|
217
|
+
if (virtualUpdate !== undefined)
|
|
218
|
+
await this._executeVirtualUpdateAsync_must_have_lock_miv_(virtualUpdate);
|
|
219
|
+
if (this._connection_miv_._isActive_miv_) {
|
|
220
|
+
await this._connection_miv_._signoutAsync_miv_();
|
|
221
|
+
}
|
|
222
|
+
this.ReleaseLock();
|
|
223
|
+
}
|
|
224
|
+
_receiveAnswer_miv_(mustChangePassword) {
|
|
225
|
+
if (mustChangePassword) {
|
|
226
|
+
if (!this._must_change_password_miv_) {
|
|
227
|
+
this._must_change_password_miv_ = true;
|
|
228
|
+
this.PasswordChangeRequired();
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
else {
|
|
232
|
+
if (this._must_change_password_miv_) {
|
|
233
|
+
this._must_change_password_miv_ = false;
|
|
234
|
+
this.PasswordChangeNotRequired();
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
PasswordChangeRequired() { }
|
|
239
|
+
PasswordChangeNotRequired() { }
|
|
240
|
+
Stop() {
|
|
241
|
+
this._connection_miv_._stop_miv_();
|
|
242
|
+
this._login_miv_ = undefined;
|
|
243
|
+
this._password_miv_ = undefined;
|
|
244
|
+
}
|
|
245
|
+
async _connectionLost_miv_() {
|
|
246
|
+
this._user_id_miv_ = -1n;
|
|
247
|
+
const cl = this.ConnectionLost();
|
|
248
|
+
if (cl.maxAttempts != 0) {
|
|
249
|
+
const token = await this.TakeLockAsync();
|
|
250
|
+
const msg = await this._tryReconnectAsync_miv_(cl.maxAttempts, cl.delayMilliseconds, true, token);
|
|
251
|
+
if (this._connection_miv_._isActive_miv_) {
|
|
252
|
+
this.ReleaseLock();
|
|
253
|
+
this.ExecuteViewUpdateOnUIThread();
|
|
254
|
+
this.ReconnectAttemptSuccessful(msg);
|
|
255
|
+
}
|
|
256
|
+
else {
|
|
257
|
+
this.ReleaseLock();
|
|
258
|
+
this.ReconnectAttemptsAllFailed(msg);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
ConnectionLost() { return { maxAttempts: 4, delayMilliseconds: 2000 }; }
|
|
263
|
+
;
|
|
264
|
+
ReconnectAttempt(attempt, maxAttempts, calledFromEnsure) { }
|
|
265
|
+
ReconnectAttemptSuccessful(error) { }
|
|
266
|
+
ReconnectAttemptFailed(attempt, maxAttempts, calledFromEnsure, error) { }
|
|
267
|
+
ReconnectAttemptsAllFailed(error) { }
|
|
268
|
+
async _tryReconnectAsync_miv_(maxAttempts, delayMilliseconds, calledFromLost, lockToken) {
|
|
269
|
+
if (maxAttempts == 0)
|
|
270
|
+
return ErrorMessage_1.ConnectionLost.SINGLETON;
|
|
271
|
+
let msg = undefined;
|
|
272
|
+
let i = 1;
|
|
273
|
+
while (maxAttempts < 0 || i <= maxAttempts) {
|
|
274
|
+
if (delayMilliseconds > 0 && (calledFromLost || i > 1)) {
|
|
275
|
+
await new Promise(f => setTimeout(f, delayMilliseconds));
|
|
276
|
+
}
|
|
277
|
+
this.ReconnectAttempt(i, maxAttempts, !calledFromLost);
|
|
278
|
+
msg = await this._connection_miv_._tryReconnectAsync_miv_();
|
|
279
|
+
if (msg === undefined) {
|
|
280
|
+
if (this._login_miv_ !== undefined) {
|
|
281
|
+
msg = await this.SignInAsync(this._login_miv_, this._password_miv_, this._update_on_login_miv_, lockToken);
|
|
282
|
+
if (msg !== undefined) {
|
|
283
|
+
this._connection_miv_._stop_miv_();
|
|
284
|
+
return msg;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
const toLoad = new Array();
|
|
288
|
+
for (let j = 0; j < this._loads_miv_._count_miv_; j++) {
|
|
289
|
+
const root = this._loads_miv_._get_miv_(j);
|
|
290
|
+
const filters = root._getActiveLoads_miv_();
|
|
291
|
+
if (filters !== undefined && filters.length > 0)
|
|
292
|
+
toLoad.push({ root: root._owner_miv_, filters: filters });
|
|
293
|
+
}
|
|
294
|
+
const errors = await this._loadForestArrayAsync_miv_(lockToken, false, toLoad);
|
|
295
|
+
msg = ErrorMessage_1.AggregateErrorMessage.CreateFromList(errors);
|
|
296
|
+
break;
|
|
297
|
+
}
|
|
298
|
+
else {
|
|
299
|
+
this.ReconnectAttemptFailed(i, maxAttempts, !calledFromLost, msg);
|
|
300
|
+
i++;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
return msg;
|
|
304
|
+
}
|
|
305
|
+
async EnsureConnectionAsync(maxAttempts, delayMilliseconds, lockToken = 0n) {
|
|
306
|
+
lockToken = await this.TakeLockAsync(lockToken);
|
|
307
|
+
if (this._connection_miv_._isActive_miv_) {
|
|
308
|
+
this.ReleaseLock();
|
|
309
|
+
return undefined;
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
const msg = await this._tryReconnectAsync_miv_(maxAttempts, delayMilliseconds, false, lockToken);
|
|
313
|
+
if (this._connection_miv_._isActive_miv_) {
|
|
314
|
+
this.ReleaseLock();
|
|
315
|
+
this.ExecuteViewUpdateOnUIThread();
|
|
316
|
+
}
|
|
317
|
+
else {
|
|
318
|
+
this.ReleaseLock();
|
|
319
|
+
}
|
|
320
|
+
return msg;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
TryGetObject(id) {
|
|
324
|
+
const c = this._children_miv_.get(id);
|
|
325
|
+
if (c === undefined) {
|
|
326
|
+
for (let i = 0; i < this._roots_miv_.length; i++) {
|
|
327
|
+
const r = this._roots_miv_[i];
|
|
328
|
+
if (r.ID == id)
|
|
329
|
+
return r;
|
|
330
|
+
}
|
|
331
|
+
return undefined;
|
|
332
|
+
}
|
|
333
|
+
else {
|
|
334
|
+
return c;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
TryGetChild(id) {
|
|
338
|
+
return this._children_miv_.get(id);
|
|
339
|
+
}
|
|
340
|
+
TryGetType(id) {
|
|
341
|
+
let result = this._cTypesFetcher_miv_.get(id);
|
|
342
|
+
if (result !== undefined)
|
|
343
|
+
return result;
|
|
344
|
+
result = this._rTypesFetcher_miv_.get(id);
|
|
345
|
+
if (result !== undefined)
|
|
346
|
+
return result;
|
|
347
|
+
if (this._generic_relation_type_miv_ !== undefined && this._generic_relation_type_miv_.ID == id) {
|
|
348
|
+
return this._generic_relation_type_miv_;
|
|
349
|
+
}
|
|
350
|
+
for (let i = 0; i < this._roots_miv_.length; i++) {
|
|
351
|
+
const rt = this._roots_miv_[i].Type;
|
|
352
|
+
if (rt.ID == id)
|
|
353
|
+
return rt;
|
|
354
|
+
}
|
|
355
|
+
return undefined;
|
|
356
|
+
}
|
|
357
|
+
async TakeLockAsync(token = 0n) {
|
|
358
|
+
if (token == this._token_lock_miv_) {
|
|
359
|
+
this._recursive_lock_miv_++;
|
|
360
|
+
return token;
|
|
361
|
+
}
|
|
362
|
+
else {
|
|
363
|
+
await this._semaLock_miv_.WaitAsync();
|
|
364
|
+
this._token_lock_miv_++;
|
|
365
|
+
if (this._token_lock_miv_ <= MIVClient.TOKEN_BASE_miv_)
|
|
366
|
+
this._token_lock_miv_ = MIVClient.TOKEN_BASE_miv_;
|
|
367
|
+
return this._token_lock_miv_;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
ReleaseLock() {
|
|
371
|
+
if (this._recursive_lock_miv_ > 0) {
|
|
372
|
+
this._recursive_lock_miv_--;
|
|
373
|
+
}
|
|
374
|
+
else {
|
|
375
|
+
this._semaLock_miv_.Release();
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
async BeginQueryAsync(lockToken = 0n) {
|
|
379
|
+
this._error_miv_ = undefined;
|
|
380
|
+
await this.TakeLockAsync(lockToken);
|
|
381
|
+
if (this._qb_miv_ === undefined) {
|
|
382
|
+
this._qb_miv_ = new QueryBuilder_1.QueryBuilder(this);
|
|
383
|
+
return this._qb_miv_;
|
|
384
|
+
}
|
|
385
|
+
else {
|
|
386
|
+
throw new Error("You cannot create several simultaneous QueryBuilder objects.");
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
_updateCanceled_miv_() {
|
|
390
|
+
this._qb_miv_ = undefined;
|
|
391
|
+
this.ReleaseLock();
|
|
392
|
+
}
|
|
393
|
+
_emptyOrFaultyUpdate_miv_() {
|
|
394
|
+
this._qb_miv_ = undefined;
|
|
395
|
+
}
|
|
396
|
+
async _executeUpdate_miv_(qb, uq) {
|
|
397
|
+
if (this._qb_miv_ === undefined) {
|
|
398
|
+
throw new Error("This query is canceled or already executed.");
|
|
399
|
+
}
|
|
400
|
+
if (!this._connection_miv_._isActive_miv_)
|
|
401
|
+
return new DataAnswer_1.DataAnswer(ErrorMessage_1.ConnectionLost.SINGLETON);
|
|
402
|
+
const ans = await this._connection_miv_._executeAsync_miv_(uq);
|
|
403
|
+
this._error_miv_ = ans._error_miv_;
|
|
404
|
+
qb._custom_result_miv_ = ans._customPayload_miv_;
|
|
405
|
+
if (ans._error_miv_ === undefined) {
|
|
406
|
+
await this._executeSingleDataMessage_miv_(ans, undefined);
|
|
407
|
+
}
|
|
408
|
+
this._receiveAnswer_miv_(ans._mustChangePassword_miv_);
|
|
409
|
+
this._qb_miv_ = undefined;
|
|
410
|
+
return ans;
|
|
411
|
+
}
|
|
412
|
+
async SignUpAsync(login, password, customPayload, virtualUpdate = undefined, lockToken = 0n) {
|
|
413
|
+
if (!this._connection_miv_._isActive_miv_)
|
|
414
|
+
return ErrorMessage_1.ConnectionLost.SINGLETON;
|
|
415
|
+
await this.TakeLockAsync(lockToken);
|
|
416
|
+
const ans = await this._connection_miv_._signupAsync_miv_(login, password, customPayload);
|
|
417
|
+
const msg = ans._error_miv_;
|
|
418
|
+
if (msg === undefined) {
|
|
419
|
+
if (ans._customPayload_miv_ !== undefined) {
|
|
420
|
+
const reader = new MIVDeserializer_1.MIVDeserializer(ans._customPayload_miv_, 0);
|
|
421
|
+
const uid = reader.ReadInt64();
|
|
422
|
+
if (uid !== undefined) {
|
|
423
|
+
this._user_id_miv_ = uid;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
this._login_miv_ = login;
|
|
427
|
+
this._password_miv_ = password;
|
|
428
|
+
this._signing_miv_ = SignStatus.IN;
|
|
429
|
+
this._update_on_login_miv_ = virtualUpdate;
|
|
430
|
+
await this._executeSingleDataMessage_miv_(ans, virtualUpdate);
|
|
431
|
+
}
|
|
432
|
+
this._receiveAnswer_miv_(ans._mustChangePassword_miv_);
|
|
433
|
+
this.ReleaseLock();
|
|
434
|
+
return msg;
|
|
435
|
+
}
|
|
436
|
+
LoadForestAsync(lockToken, ...roots) {
|
|
437
|
+
return this._loadForestAsync_client_required_miv_(lockToken, roots);
|
|
438
|
+
}
|
|
439
|
+
LoadForestArrayAsync(lockToken, roots) {
|
|
440
|
+
return this._loadForestAsync_client_required_miv_(lockToken, roots);
|
|
441
|
+
}
|
|
442
|
+
_loadForestAsync_client_required_miv_(lockToken, roots) {
|
|
443
|
+
if (roots === undefined || roots.length <= 0) {
|
|
444
|
+
return Promise.resolve(undefined);
|
|
445
|
+
}
|
|
446
|
+
else {
|
|
447
|
+
for (let i = 0; i < roots.length; i++) {
|
|
448
|
+
const x = roots[i];
|
|
449
|
+
const root = x.root;
|
|
450
|
+
const filters = x.filters;
|
|
451
|
+
const available = root.Type._filters_miv_;
|
|
452
|
+
if (available === undefined)
|
|
453
|
+
throw new Error("This filter is not defined on this type.");
|
|
454
|
+
for (let j = 0; j < filters.length; j++) {
|
|
455
|
+
const f = filters[j];
|
|
456
|
+
const index = available._getFilterIndexFromFilter(f);
|
|
457
|
+
if (index < 0)
|
|
458
|
+
throw new Error("This filter is not defined on this type.");
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
return this._loadForestArrayAsync_miv_(lockToken, true, roots);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
async _loadForestArrayAsync_miv_(lockToken, incrLoadCount, roots) {
|
|
465
|
+
if (roots.length <= 0)
|
|
466
|
+
return undefined;
|
|
467
|
+
await this.TakeLockAsync(lockToken);
|
|
468
|
+
let mustChangePassword = false;
|
|
469
|
+
const errors = new AccumulatorList_1.AccumulatorList(0);
|
|
470
|
+
for (let i = 0; i < roots.length; i++) {
|
|
471
|
+
const r = roots[i];
|
|
472
|
+
if (this._connection_miv_._isActive_miv_) {
|
|
473
|
+
const data = await this._connection_miv_._loadAsync_miv_(r.root.ID, r.filters);
|
|
474
|
+
this._must_change_password_miv_ = data._mustChangePassword_miv_;
|
|
475
|
+
if (data._error_miv_ === undefined) {
|
|
476
|
+
r.root._loadedInForest_miv_(r.filters, incrLoadCount);
|
|
477
|
+
this._executeDataMessageWithinSetOfMessages_miv_(data);
|
|
478
|
+
}
|
|
479
|
+
else {
|
|
480
|
+
errors._add_miv_({ root: r.root, error: data._error_miv_ });
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
else {
|
|
484
|
+
errors._add_miv_({ root: r.root, error: ErrorMessage_1.ConnectionLost.SINGLETON });
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
await this._finalizeExecuteModel_miv_(undefined);
|
|
488
|
+
this._receiveAnswer_miv_(mustChangePassword);
|
|
489
|
+
let result;
|
|
490
|
+
if (errors._count_miv_ > 0) {
|
|
491
|
+
result = new Array(errors._count_miv_);
|
|
492
|
+
for (let i = 0; i < result.length; i++) {
|
|
493
|
+
result[i] = errors._get_miv_(i);
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
else {
|
|
497
|
+
result = undefined;
|
|
498
|
+
}
|
|
499
|
+
this.ReleaseLock();
|
|
500
|
+
return result;
|
|
501
|
+
}
|
|
502
|
+
async _loadModel_miv_(root, filter, filters) {
|
|
503
|
+
this._error_miv_ = undefined;
|
|
504
|
+
if (!this._connection_miv_._isActive_miv_)
|
|
505
|
+
return ErrorMessage_1.ConnectionLost.SINGLETON;
|
|
506
|
+
const data = await this._connection_miv_._loadAsync_miv_(root.ID, [filter]);
|
|
507
|
+
if (data._error_miv_ !== undefined) {
|
|
508
|
+
this._error_miv_ = data._error_miv_;
|
|
509
|
+
return data._error_miv_;
|
|
510
|
+
}
|
|
511
|
+
root._loadedSingle_miv_(filters, filter);
|
|
512
|
+
await this._executeSingleDataMessage_miv_(data, undefined);
|
|
513
|
+
this._receiveAnswer_miv_(data._mustChangePassword_miv_);
|
|
514
|
+
return undefined;
|
|
515
|
+
}
|
|
516
|
+
_executeUnload_miv_() {
|
|
517
|
+
return this._finalizeExecuteModel_miv_(undefined);
|
|
518
|
+
}
|
|
519
|
+
async _loadPagesAsync_miv_(pages, filter) {
|
|
520
|
+
this._error_miv_ = undefined;
|
|
521
|
+
if (!this._connection_miv_._isActive_miv_)
|
|
522
|
+
return ErrorMessage_1.ConnectionLost.SINGLETON;
|
|
523
|
+
const pagi = pages[0]._pagination_miv_;
|
|
524
|
+
for (let i = 0; i < pages.length; i++) {
|
|
525
|
+
const page = pages[i];
|
|
526
|
+
for (let j = 0; j < page._supportInternal_miv_._content_miv_._count_miv_; j++) {
|
|
527
|
+
this._pageItemsList_miv_._add_miv_(page._supportInternal_miv_._content_miv_._get_miv_(j).ID);
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
const data = await this._connection_miv_._loadPagesAsync_miv_(pagi.Owner.ID, filter, pagi.Code, pages, this._pageItemsList_miv_);
|
|
531
|
+
this._pageItemsList_miv_._clear_miv_(8, false);
|
|
532
|
+
if (data._error_miv_ !== undefined) {
|
|
533
|
+
this._error_miv_ = data._error_miv_;
|
|
534
|
+
return data._error_miv_;
|
|
535
|
+
}
|
|
536
|
+
await this._executeSingleDataMessage_miv_(data, undefined);
|
|
537
|
+
this._receiveAnswer_miv_(data._mustChangePassword_miv_);
|
|
538
|
+
return undefined;
|
|
539
|
+
}
|
|
540
|
+
async RunCustomReadQueryAsync(request, executeViewUpdate, virtualUpdate, lockToken = 0n) {
|
|
541
|
+
if (request.length <= 0) {
|
|
542
|
+
if (executeViewUpdate) {
|
|
543
|
+
await this.TakeLockAsync(lockToken);
|
|
544
|
+
this._executeVUpdate_do_not_release_lock_miv();
|
|
545
|
+
this.ReleaseLock();
|
|
546
|
+
}
|
|
547
|
+
return MIVClient.EMPTY_RESPONSE_PAYLOAD;
|
|
548
|
+
}
|
|
549
|
+
if (request.length > MIVClient.MAX_CUSTOM_READ_REQUEST_LENGTH) {
|
|
550
|
+
throw new Error("request.length is greater than MAX_CUSTOM_READ_REQUEST_LENGTH " + MIVClient.MAX_CUSTOM_READ_REQUEST_LENGTH);
|
|
551
|
+
}
|
|
552
|
+
await this.TakeLockAsync(lockToken);
|
|
553
|
+
this._error_miv_ = undefined;
|
|
554
|
+
const answer = await this._connection_miv_._customReadAsync_miv_(request);
|
|
555
|
+
let vUpdate;
|
|
556
|
+
if (virtualUpdate === undefined) {
|
|
557
|
+
vUpdate = undefined;
|
|
558
|
+
}
|
|
559
|
+
else {
|
|
560
|
+
vUpdate = x => virtualUpdate(answer._customPayload_miv_, x);
|
|
561
|
+
}
|
|
562
|
+
await this._executeSingleDataMessage_miv_(answer, vUpdate);
|
|
563
|
+
this._receiveAnswer_miv_(answer._mustChangePassword_miv_);
|
|
564
|
+
let result;
|
|
565
|
+
if (answer._error_miv_ === undefined) {
|
|
566
|
+
if (answer._customPayload_miv_ === undefined)
|
|
567
|
+
result = MIVClient.EMPTY_RESPONSE_PAYLOAD;
|
|
568
|
+
else
|
|
569
|
+
result = answer._customPayload_miv_;
|
|
570
|
+
}
|
|
571
|
+
else {
|
|
572
|
+
this._error_miv_ = answer._error_miv_;
|
|
573
|
+
result = answer._customPayload_miv_;
|
|
574
|
+
}
|
|
575
|
+
if (executeViewUpdate)
|
|
576
|
+
this._executeVUpdate_do_not_release_lock_miv();
|
|
577
|
+
this.ReleaseLock();
|
|
578
|
+
return result;
|
|
579
|
+
}
|
|
580
|
+
async _fetchBlobAsync_lock_already_taken_do_not_release_miv_(owner, property, knownBlobID) {
|
|
581
|
+
this._error_miv_ = undefined;
|
|
582
|
+
const answer = await this._connection_miv_._fetchBlobAsync_miv_(owner, property, knownBlobID);
|
|
583
|
+
await this._executeSingleDataMessage_miv_(answer, undefined);
|
|
584
|
+
this._receiveAnswer_miv_(answer._mustChangePassword_miv_);
|
|
585
|
+
if (answer._error_miv_ === undefined) {
|
|
586
|
+
return undefined;
|
|
587
|
+
}
|
|
588
|
+
else {
|
|
589
|
+
this._error_miv_ = answer._error_miv_;
|
|
590
|
+
return answer._error_miv_;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
GetAuditTrailAsync(root, depth, fromLocal, lockToken = 0n) {
|
|
594
|
+
return this._getAuditTrailAsync_miv_(root, depth, fromLocal, lockToken, false);
|
|
595
|
+
}
|
|
596
|
+
GetAuditTrailAllowTypesAsync(root, depth, fromLocal, lockToken, ...args) {
|
|
597
|
+
return this._getAuditTrailAsync_miv_(root, depth, fromLocal, lockToken, true, ...args);
|
|
598
|
+
}
|
|
599
|
+
GetAuditTrailExcludeTypesAsync(root, depth, fromLocal, lockToken, ...args) {
|
|
600
|
+
return this._getAuditTrailAsync_miv_(root, depth, fromLocal, lockToken, false, ...args);
|
|
601
|
+
}
|
|
602
|
+
async _getAuditTrailAsync_miv_(root, depth, fromLocal, lockToken, allowTypes, ...args) {
|
|
603
|
+
const typesID = new Array();
|
|
604
|
+
if (args !== undefined && args.length > 0) {
|
|
605
|
+
for (let i = 0; i < args.length; i++) {
|
|
606
|
+
typesID.push(args[i].ID);
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
await this.TakeLockAsync(lockToken);
|
|
610
|
+
const result = await this._connection_miv_._getAuditTrailAsync_miv_(root.ID, depth, DateTimeProperty_1.DateTimeProperty.ToUTC(fromLocal), allowTypes, typesID);
|
|
611
|
+
result._pack_miv_(this);
|
|
612
|
+
this.ReleaseLock();
|
|
613
|
+
return result;
|
|
614
|
+
}
|
|
615
|
+
async GetAuditTrailByUserAsync(ofUser, fromLocal, lockToken) {
|
|
616
|
+
await this.TakeLockAsync(lockToken);
|
|
617
|
+
const result = await this._connection_miv_._getAuditTrailByUserAsync_miv_(ofUser.ID, DateTimeProperty_1.DateTimeProperty.ToUTC(fromLocal));
|
|
618
|
+
result._pack_miv_(this);
|
|
619
|
+
this.ReleaseLock();
|
|
620
|
+
return result;
|
|
621
|
+
}
|
|
622
|
+
async GetConnectionsLogAsync(fromLocal) {
|
|
623
|
+
await this.TakeLockAsync();
|
|
624
|
+
const result = await this._connection_miv_._getConnectionLog_miv_(DateTimeProperty_1.DateTimeProperty.ToUTC(fromLocal));
|
|
625
|
+
result._pack_miv_();
|
|
626
|
+
this.ReleaseLock();
|
|
627
|
+
return result;
|
|
628
|
+
}
|
|
629
|
+
_createChild_miv_(data, creation, assignment) {
|
|
630
|
+
const cct = this._cTypesFetcher_miv_.get(data._type_miv_);
|
|
631
|
+
if (cct === undefined)
|
|
632
|
+
return undefined;
|
|
633
|
+
this._cData_miv_._setup_miv_(cct, data._id_miv_, data._parent_miv_, data._property_miv_, data._index_miv_, data._paginationIndex_miv_, creation, assignment, data._copyOf_miv_);
|
|
634
|
+
const result = cct._create_miv_(this._cData_miv_);
|
|
635
|
+
this._constructingObject_miv_ = undefined;
|
|
636
|
+
return result;
|
|
637
|
+
}
|
|
638
|
+
_makeGenericRelation_miv_(data, creation, assignment, alreadySetup) {
|
|
639
|
+
if (this._generic_relation_type_miv_ === undefined) {
|
|
640
|
+
this._generic_relation_type_miv_ = new ClientTypes_1.ClientRelationType(this, MIVConstants_1.MIVConstants.TYPE_GENERIC_RELATION, x => new MRelation_1.MRelation(x), this.GenericParentRelationType.Name, this.GenericParentRelationType, false);
|
|
641
|
+
alreadySetup = false;
|
|
642
|
+
this._constructingDummy_miv_ = true;
|
|
643
|
+
this._rData_miv_._setupRelation_miv_(this._generic_relation_type_miv_, -1n, -1n, MIVConstants_1.MIVConstants.PROPERTY_ANY, 0, 0, undefined, undefined, -1n, -1n);
|
|
644
|
+
const dummy = new MRelation_1.MRelation(this._rData_miv_);
|
|
645
|
+
this._generic_relation_type_miv_._initializeGeneric_miv_(dummy, new Set(), new Set());
|
|
646
|
+
this._constructingDummy_miv_ = false;
|
|
647
|
+
}
|
|
648
|
+
if (alreadySetup) {
|
|
649
|
+
this._rData_miv_._setupGenericType_miv_(this._generic_relation_type_miv_);
|
|
650
|
+
}
|
|
651
|
+
else {
|
|
652
|
+
this._rData_miv_._setupRelation_miv_(this._generic_relation_type_miv_, data._id_miv_, data._parent_miv_, data._property_miv_, data._index_miv_, data._paginationIndex_miv_, creation, assignment, data._copyOf_miv_, data._target_miv_);
|
|
653
|
+
}
|
|
654
|
+
return new MRelation_1.MRelation(this._rData_miv_);
|
|
655
|
+
}
|
|
656
|
+
_createRelation_miv_(data, creation, assignment) {
|
|
657
|
+
const crt = this._rTypesFetcher_miv_.get(data._type_miv_);
|
|
658
|
+
let result;
|
|
659
|
+
if (crt === undefined) {
|
|
660
|
+
result = this._makeGenericRelation_miv_(data, creation, assignment, false);
|
|
661
|
+
}
|
|
662
|
+
else {
|
|
663
|
+
this._rData_miv_._setupRelation_miv_(crt, data._id_miv_, data._parent_miv_, data._property_miv_, data._index_miv_, data._paginationIndex_miv_, creation, assignment, data._copyOf_miv_, data._target_miv_);
|
|
664
|
+
result = crt._create_miv_(this._rData_miv_);
|
|
665
|
+
if (result === undefined) {
|
|
666
|
+
result = this._makeGenericRelation_miv_(data, creation, assignment, true);
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
this._constructingObject_miv_ = undefined;
|
|
670
|
+
return result;
|
|
671
|
+
}
|
|
672
|
+
async _receiveMessage(msg) {
|
|
673
|
+
const token = await this.TakeLockAsync();
|
|
674
|
+
await this._executeSingleDataMessage_miv_(msg, undefined);
|
|
675
|
+
if (msg._customPayload_miv_ !== undefined && msg._customPayload_miv_.byteLength > 0)
|
|
676
|
+
this.HandleBroadcast(msg._customPayload_miv_, token);
|
|
677
|
+
this.ReleaseLock();
|
|
678
|
+
this.ExecuteViewUpdateOnUIThread();
|
|
679
|
+
}
|
|
680
|
+
HandleBroadcast(payload, lockToken) { }
|
|
681
|
+
_manageObjectData_miv_(list, count) {
|
|
682
|
+
for (let i = 0; i < count; i++) {
|
|
683
|
+
const data = list._get_miv_(i);
|
|
684
|
+
const creation = this._getUpdateQuery_miv_(data._creation_miv_);
|
|
685
|
+
const assignment = this._getUpdateQuery_miv_(data._assignment_miv_);
|
|
686
|
+
let c = this._children_miv_.get(data._id_miv_);
|
|
687
|
+
if (c === undefined) {
|
|
688
|
+
c = data._createClient_miv_(this, assignment, creation);
|
|
689
|
+
if (c !== undefined) {
|
|
690
|
+
this._children_miv_.set(data._id_miv_, c);
|
|
691
|
+
this._newChildren_miv_._add_miv_(c);
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
else {
|
|
695
|
+
c._update_miv_(data, assignment);
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
_getUpdateQuery_miv_(id) {
|
|
700
|
+
let qi = this._queriesTMP_miv_.get(id);
|
|
701
|
+
if (qi === undefined) {
|
|
702
|
+
qi = this._queries_miv_.get(id);
|
|
703
|
+
}
|
|
704
|
+
return qi;
|
|
705
|
+
}
|
|
706
|
+
_executeDataMessageWithinSetOfMessages_miv_(msg) {
|
|
707
|
+
for (let i = 0; i < msg._queries_miv_._count_miv_; i++) {
|
|
708
|
+
const qd = msg._queries_miv_._list_miv_._get_miv_(i);
|
|
709
|
+
if (!this._queriesTMP_miv_.has(qd._id_miv_)) {
|
|
710
|
+
const existing = this._queries_miv_.get(qd._id_miv_);
|
|
711
|
+
if (existing === undefined) {
|
|
712
|
+
const q = new QueryInfo_1.QueryInfo(qd._id_miv_, qd._by_miv_, qd._atUTC_miv_);
|
|
713
|
+
this._queries_miv_.set(qd._id_miv_, q);
|
|
714
|
+
this._queriesTMP_miv_.set(qd._id_miv_, q);
|
|
715
|
+
}
|
|
716
|
+
else {
|
|
717
|
+
this._queriesTMP_miv_.set(qd._id_miv_, existing);
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
this._manageObjectData_miv_(msg._children_miv_._list_miv_, msg._children_miv_._count_miv_);
|
|
722
|
+
this._manageObjectData_miv_(msg._relations_miv_._list_miv_, msg._relations_miv_._count_miv_);
|
|
723
|
+
for (let i = 0; i < msg._deletions_miv_._count_miv_; i++) {
|
|
724
|
+
const c = this._children_miv_.get(msg._deletions_miv_._get_miv_(i));
|
|
725
|
+
if (c !== undefined) {
|
|
726
|
+
c._markForDestruction_miv_();
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
for (let i = 0; i < msg._cleared_miv_._count_miv_; i++) {
|
|
730
|
+
const v = msg._cleared_miv_._list_miv_._get_miv_(i);
|
|
731
|
+
this.TryGetObject(v._owner_miv_)?._clear_miv_(v._property_miv_);
|
|
732
|
+
}
|
|
733
|
+
for (let i = 0; i < msg._strings_miv_._count_miv_; i++) {
|
|
734
|
+
const v = msg._strings_miv_._list_miv_._get_miv_(i);
|
|
735
|
+
this.TryGetObject(v._owner_miv_)?._setString_miv_(v._value_miv_, v._property_miv_, this._getUpdateQuery_miv_(v._assignment_miv_));
|
|
736
|
+
}
|
|
737
|
+
for (let i = 0; i < msg._bytes_miv_._count_miv_; i++) {
|
|
738
|
+
const v = msg._bytes_miv_._list_miv_._get_miv_(i);
|
|
739
|
+
this.TryGetObject(v._owner_miv_)?._setByte_miv_(v._value_miv_, v._property_miv_, this._getUpdateQuery_miv_(v._assignment_miv_));
|
|
740
|
+
}
|
|
741
|
+
for (let i = 0; i < msg._doubles_miv_._count_miv_; i++) {
|
|
742
|
+
const v = msg._doubles_miv_._list_miv_._get_miv_(i);
|
|
743
|
+
this.TryGetObject(v._owner_miv_)?._setDouble_miv_(v._value_miv_, v._property_miv_, this._getUpdateQuery_miv_(v._assignment_miv_));
|
|
744
|
+
}
|
|
745
|
+
for (let i = 0; i < msg._longs_miv_._count_miv_; i++) {
|
|
746
|
+
const v = msg._longs_miv_._list_miv_._get_miv_(i);
|
|
747
|
+
this.TryGetObject(v._owner_miv_)?._setLong_miv_(v._value_miv_, v._property_miv_, this._getUpdateQuery_miv_(v._assignment_miv_));
|
|
748
|
+
}
|
|
749
|
+
for (let i = 0; i < msg._ulongs_miv_._count_miv_; i++) {
|
|
750
|
+
const v = msg._ulongs_miv_._list_miv_._get_miv_(i);
|
|
751
|
+
this.TryGetObject(v._owner_miv_)?._setUlong_miv_(v._value_miv_, v._property_miv_, this._getUpdateQuery_miv_(v._assignment_miv_));
|
|
752
|
+
}
|
|
753
|
+
for (let i = 0; i < msg._datims_miv_._count_miv_; i++) {
|
|
754
|
+
const v = msg._datims_miv_._list_miv_._get_miv_(i);
|
|
755
|
+
this.TryGetObject(v._owner_miv_)?._setDateTime_miv_(v._value_utc_miv_, v._property_miv_, this._getUpdateQuery_miv_(v._assignment_miv_));
|
|
756
|
+
}
|
|
757
|
+
for (let i = 0; i < msg._blobs_miv_._count_miv_; i++) {
|
|
758
|
+
const v = msg._blobs_miv_._list_miv_._get_miv_(i);
|
|
759
|
+
this.TryGetObject(v._owner_miv_)?._setBinary_miv_(v._blob_id_miv_, v._data_length_miv_, v._value_miv_, v._property_miv_, this._getUpdateQuery_miv_(v._assignment_miv_));
|
|
760
|
+
}
|
|
761
|
+
this._queriesTMP_miv_.clear();
|
|
762
|
+
}
|
|
763
|
+
_executeSingleDataMessage_miv_(msg, virtualUpdate) {
|
|
764
|
+
this._executeDataMessageWithinSetOfMessages_miv_(msg);
|
|
765
|
+
return this._finalizeExecuteModel_miv_(virtualUpdate);
|
|
766
|
+
}
|
|
767
|
+
_finalizeExecuteModel_miv_(virtualUpdate) {
|
|
768
|
+
for (let i = 0; i < this._newChildren_miv_._count_miv_; i++) {
|
|
769
|
+
const nc = this._newChildren_miv_._get_miv_(i);
|
|
770
|
+
const cu = nc._cUpdate_miv_;
|
|
771
|
+
const parent = this.TryGetObject(cu._newParentID_miv_);
|
|
772
|
+
if (parent !== undefined) {
|
|
773
|
+
cu._setupNewParentAsNewlyCreated_miv_(parent);
|
|
774
|
+
nc._setupNewParentAsNewlyCreated_miv_(parent);
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
this._newChildren_miv_._clear_miv_(256);
|
|
778
|
+
for (let i = 0; i < this._newRelations_miv_._count_miv_; i++) {
|
|
779
|
+
this._newRelations_miv_._get_miv_(i)._assignTarget_miv_();
|
|
780
|
+
}
|
|
781
|
+
for (let i = 0; i < this._cuCache_miv_._count_miv_; i++) {
|
|
782
|
+
const cu = this._cuCache_miv_._list_miv_._get_miv_(i);
|
|
783
|
+
if (!cu._validate_miv_())
|
|
784
|
+
cu._owner_miv_._markForDestruction_miv_();
|
|
785
|
+
}
|
|
786
|
+
for (let i = 0; i < this._newRelations_miv_._count_miv_; i++) {
|
|
787
|
+
this._newRelations_miv_._get_miv_(i)._validateTarget_miv_();
|
|
788
|
+
}
|
|
789
|
+
this._newRelations_miv_._clear_miv_(128);
|
|
790
|
+
for (let i = 0; i < this._cuCache_miv_._count_miv_; i++) {
|
|
791
|
+
this._cuCache_miv_._list_miv_._get_miv_(i)._executeDepthUpdate_miv_();
|
|
792
|
+
}
|
|
793
|
+
for (let i = 0; i < this._destroyedChildren_miv_._count_miv_; i++) {
|
|
794
|
+
const c = this._destroyedChildren_miv_._get_miv_(i)._owner_miv_;
|
|
795
|
+
this._children_miv_.delete(c.ID);
|
|
796
|
+
c._executeDestruction_miv_();
|
|
797
|
+
}
|
|
798
|
+
this._destroyedChildren_miv_._clear_miv_(128);
|
|
799
|
+
for (let i = 0; i < this._cuCache_miv_._count_miv_; i++) {
|
|
800
|
+
const cu = this._cuCache_miv_._list_miv_._get_miv_(i);
|
|
801
|
+
if (!cu._owner_miv_.IsDestroyed)
|
|
802
|
+
cu._owner_miv_._executeMovement_miv_(cu);
|
|
803
|
+
}
|
|
804
|
+
for (let i = 0; i < this._listsChanged_miv_._count_miv_; i++) {
|
|
805
|
+
this._listsChanged_miv_._get_miv_(i)._finalizeUpdate_miv_();
|
|
806
|
+
}
|
|
807
|
+
this._dataUpdate_miv_._executeAndReset_miv_(virtualUpdate);
|
|
808
|
+
for (let i = 0; i < this._listsChanged_miv_._count_miv_; i++) {
|
|
809
|
+
this._listsChanged_miv_._get_miv_(i)._clearUpdateMark_miv_();
|
|
810
|
+
}
|
|
811
|
+
this._listsChanged_miv_._clear_miv_(64);
|
|
812
|
+
this._cuCache_miv_._reset_miv_(256);
|
|
813
|
+
if (this._unloadIDList_miv_._count_miv_ > 0 && this._connection_miv_._isActive_miv_) {
|
|
814
|
+
const arrID = new Array(this._unloadIDList_miv_._count_miv_);
|
|
815
|
+
const arrCode = new Array(this._unloadCodeList_miv_._count_miv_);
|
|
816
|
+
for (let i = 0; i < arrID.length; i++) {
|
|
817
|
+
arrID[i] = this._unloadIDList_miv_._get_miv_(i);
|
|
818
|
+
arrCode[i] = this._unloadCodeList_miv_._get_miv_(i);
|
|
819
|
+
}
|
|
820
|
+
const uq = new UnloadQuery_1.UnloadQuery(arrID, arrCode);
|
|
821
|
+
this._unloadIDList_miv_._clear_miv_(8, false);
|
|
822
|
+
this._unloadCodeList_miv_._clear_miv_(8, false);
|
|
823
|
+
return this._connection_miv_._unloadAsync_miv_(uq);
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
_childDestroyed_miv_(c) {
|
|
827
|
+
this._children_miv_.delete(c.ID);
|
|
828
|
+
}
|
|
829
|
+
_protint_ModelUpdateCompleted_miv_() { this.ModelUpdateCompleted(this._dataUpdate_miv_); }
|
|
830
|
+
ModelUpdateCompleted(mc) { }
|
|
831
|
+
async ExecuteVirtualUpdateAsync(virtualUpdate, updateView, lockToken = 0n) {
|
|
832
|
+
await this.TakeLockAsync(lockToken);
|
|
833
|
+
await this._executeVirtualUpdateAsync_must_have_lock_miv_(virtualUpdate);
|
|
834
|
+
if (updateView)
|
|
835
|
+
this._executeVUpdate_do_not_release_lock_miv();
|
|
836
|
+
this.ReleaseLock();
|
|
837
|
+
}
|
|
838
|
+
_executeVirtualUpdateAsync_must_have_lock_miv_(virtualUpdate) {
|
|
839
|
+
return this._finalizeExecuteModel_miv_(virtualUpdate);
|
|
840
|
+
}
|
|
841
|
+
async ExecuteViewUpdateAsync(lockToken = 0n) {
|
|
842
|
+
await this.TakeLockAsync(lockToken);
|
|
843
|
+
this._executeVUpdate_do_not_release_lock_miv();
|
|
844
|
+
this.ReleaseLock();
|
|
845
|
+
}
|
|
846
|
+
ExecuteViewUpdateOnUIThread() {
|
|
847
|
+
this.ExecuteViewUpdateAsync();
|
|
848
|
+
}
|
|
849
|
+
_executeVUpdate_do_not_release_lock_miv() {
|
|
850
|
+
this._constructing_view_miv_ = undefined;
|
|
851
|
+
for (let i = 0; i < this._objectsChangedForV_miv_._count_miv_; i++) {
|
|
852
|
+
const o = this._objectsChangedForV_miv_._get_miv_(i);
|
|
853
|
+
for (let j = 0; j < o._views_miv_._count_miv_; j++) {
|
|
854
|
+
o._views_miv_._get_miv_(j)._modelUpdated_miv_();
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
while (this._vSetsToPreapare_miv_._count_miv_ > 0) {
|
|
858
|
+
do {
|
|
859
|
+
this._vSetsToPreapare_miv_._get_miv_(this._vSetsToPreapare_miv_._count_miv_ - 1)._prepareUpdate_miv_();
|
|
860
|
+
} while (this._vSetsToPreapare_miv_._count_miv_ > 0);
|
|
861
|
+
for (let i = 0; i < this._paginationsWithMaybeDestroyed_miv_._count_miv_; i++) {
|
|
862
|
+
this._paginationsWithMaybeDestroyed_miv_._get_miv_(i)._computeToDestroy_miv_();
|
|
863
|
+
}
|
|
864
|
+
this._paginationsWithMaybeDestroyed_miv_._clear_miv_(32);
|
|
865
|
+
}
|
|
866
|
+
for (let i = 0; i < this._vSetsUpdated_miv_._count_miv_; i++) {
|
|
867
|
+
this._vSetsUpdated_miv_._get_miv_(i)._computeUpdate_miv_();
|
|
868
|
+
}
|
|
869
|
+
for (let i = 0; i < this._vSetsUpdated_miv_._count_miv_; i++) {
|
|
870
|
+
this._vSetsUpdated_miv_._get_miv_(i)._executeUpdate_miv_(this._viewUpdate_miv_);
|
|
871
|
+
}
|
|
872
|
+
for (let i = 0; i < this._vWithModelUpdated_miv_._count_miv_; i++) {
|
|
873
|
+
this._vWithModelUpdated_miv_._get_miv_(i)._executeModelUpdated_miv_(this._viewUpdate_miv_);
|
|
874
|
+
}
|
|
875
|
+
for (let i = 0; i < this._vStatusChanged_miv_._count_miv_; i++) {
|
|
876
|
+
this._vStatusChanged_miv_._get_miv_(i)._executeStatusUpdate_miv_(this._viewUpdate_miv_);
|
|
877
|
+
}
|
|
878
|
+
for (let i = 0; i < this._fieldsChangedForV_miv_._count_miv_; i++) {
|
|
879
|
+
this._fieldsChangedForV_miv_._get_miv_(i)._executeVChanged_miv_(this._viewUpdate_miv_);
|
|
880
|
+
}
|
|
881
|
+
for (let i = 0; i < this._uwTriggered_miv_._count_miv_; i++) {
|
|
882
|
+
this._uwTriggered_miv_._get_miv_(i)._executeTriggered_miv_(this._viewUpdate_miv_);
|
|
883
|
+
}
|
|
884
|
+
for (let i = 0; i < this._vStatusChanged_miv_._count_miv_; i++) {
|
|
885
|
+
this._vStatusChanged_miv_._get_miv_(i)._clearStatusUpdate_miv_();
|
|
886
|
+
}
|
|
887
|
+
for (let i = 0; i < this._vIndexChanged_miv_._count_miv_; i++) {
|
|
888
|
+
this._vIndexChanged_miv_._get_miv_(i)._protint_IndexChanged_miv_(this._viewUpdate_miv_);
|
|
889
|
+
}
|
|
890
|
+
this._viewUpdate_miv_._executeAndReset_miv_();
|
|
891
|
+
for (let i = 0; i < this._objectsChangedForV_miv_._count_miv_; i++) {
|
|
892
|
+
this._objectsChangedForV_miv_._get_miv_(i)._clearVChangedMark_miv_();
|
|
893
|
+
}
|
|
894
|
+
this._objectsChangedForV_miv_._clear_miv_(128);
|
|
895
|
+
for (let i = 0; i < this._fieldsChangedForV_miv_._count_miv_; i++) {
|
|
896
|
+
this._fieldsChangedForV_miv_._get_miv_(i)._clearVChangedMark_miv_();
|
|
897
|
+
}
|
|
898
|
+
this._fieldsChangedForV_miv_._clear_miv_(256);
|
|
899
|
+
for (let i = 0; i < this._uwTriggered_miv_._count_miv_; i++) {
|
|
900
|
+
this._uwTriggered_miv_._get_miv_(i)._clearTriggerMark_miv_();
|
|
901
|
+
}
|
|
902
|
+
this._uwTriggered_miv_._clear_miv_(16);
|
|
903
|
+
this._vWithModelUpdated_miv_._clear_miv_(256);
|
|
904
|
+
this._vStatusChanged_miv_._clear_miv_(256);
|
|
905
|
+
this._vSetsUpdated_miv_._clear_miv_(128);
|
|
906
|
+
this._vIndexChanged_miv_._clear_miv_(128);
|
|
907
|
+
}
|
|
908
|
+
_protint_ViewUpdateCompleted_miv_(vc) { this.ViewUpdateCompleted(vc); }
|
|
909
|
+
ViewUpdateCompleted(vc) { }
|
|
910
|
+
_creatingVBound_miv_(vs) {
|
|
911
|
+
this._owner_set_miv_ = vs;
|
|
912
|
+
}
|
|
913
|
+
_vBoundCreating_miv_() {
|
|
914
|
+
if (this._owner_set_miv_ === undefined) {
|
|
915
|
+
this._constructing_view_miv_ = undefined;
|
|
916
|
+
throw new Error("you cannot create a VBoundObject outside of a VSet update");
|
|
917
|
+
}
|
|
918
|
+
else {
|
|
919
|
+
return this._owner_set_miv_;
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
_vBoundCreated_miv_() {
|
|
923
|
+
this._constructing_view_miv_ = undefined;
|
|
924
|
+
this._owner_set_miv_ = undefined;
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
exports.MIVClient = MIVClient;
|
|
928
|
+
MIVClient.TOKEN_BASE_miv_ = 111n;
|
|
929
|
+
MIVClient.EMPTY_RESPONSE_PAYLOAD = new ArrayBuffer(0);
|
|
930
|
+
MIVClient.MAX_CUSTOM_READ_REQUEST_LENGTH = 32768;
|
|
931
|
+
//# sourceMappingURL=MIVClient.js.map
|