@vived/host 3.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 +0 -0
- package/lib/AppObject/AppObject.d.ts +14 -0
- package/lib/AppObject/AppObject.js +58 -0
- package/lib/AppObject/AppObjectComponent.d.ts +15 -0
- package/lib/AppObject/AppObjectComponent.js +61 -0
- package/lib/AppObject/AppObjectController.d.ts +3 -0
- package/lib/AppObject/AppObjectController.js +7 -0
- package/lib/AppObject/AppObjectEntity.d.ts +14 -0
- package/lib/AppObject/AppObjectEntity.js +36 -0
- package/lib/AppObject/AppObjectEntityRepo.d.ts +15 -0
- package/lib/AppObject/AppObjectEntityRepo.js +55 -0
- package/lib/AppObject/AppObjectPM.d.ts +11 -0
- package/lib/AppObject/AppObjectPM.js +38 -0
- package/lib/AppObject/AppObjectRepo.d.ts +25 -0
- package/lib/AppObject/AppObjectRepo.js +132 -0
- package/lib/AppObject/AppObjectUC.d.ts +3 -0
- package/lib/AppObject/AppObjectUC.js +7 -0
- package/lib/AppObject/AppObjectView.d.ts +3 -0
- package/lib/AppObject/AppObjectView.js +7 -0
- package/lib/AppObject/getSingletonComponent.d.ts +3 -0
- package/lib/AppObject/getSingletonComponent.js +7 -0
- package/lib/AppObject/index.d.ts +9 -0
- package/lib/AppObject/index.js +21 -0
- package/lib/Components/Assets/Controllers/archiveAsset.d.ts +2 -0
- package/lib/Components/Assets/Controllers/archiveAsset.js +13 -0
- package/lib/Components/Assets/Controllers/deleteAsset.d.ts +2 -0
- package/lib/Components/Assets/Controllers/deleteAsset.js +13 -0
- package/lib/Components/Assets/Controllers/downloadAssetFile.d.ts +2 -0
- package/lib/Components/Assets/Controllers/downloadAssetFile.js +13 -0
- package/lib/Components/Assets/Controllers/getAppAssets.d.ts +2 -0
- package/lib/Components/Assets/Controllers/getAppAssets.js +13 -0
- package/lib/Components/Assets/Controllers/index.d.ts +6 -0
- package/lib/Components/Assets/Controllers/index.js +18 -0
- package/lib/Components/Assets/Controllers/toggleShowArchivedAssets.d.ts +2 -0
- package/lib/Components/Assets/Controllers/toggleShowArchivedAssets.js +14 -0
- package/lib/Components/Assets/Controllers/updateAssetFile.d.ts +2 -0
- package/lib/Components/Assets/Controllers/updateAssetFile.js +13 -0
- package/lib/Components/Assets/Entities/AppAssetsEntity.d.ts +15 -0
- package/lib/Components/Assets/Entities/AppAssetsEntity.js +65 -0
- package/lib/Components/Assets/Entities/AssetEntity.d.ts +34 -0
- package/lib/Components/Assets/Entities/AssetEntity.js +150 -0
- package/lib/Components/Assets/Entities/AssetRepo.d.ts +28 -0
- package/lib/Components/Assets/Entities/AssetRepo.js +86 -0
- package/lib/Components/Assets/Entities/AssetRepository.d.ts +34 -0
- package/lib/Components/Assets/Entities/AssetRepository.js +267 -0
- package/lib/Components/Assets/Entities/index.d.ts +3 -0
- package/lib/Components/Assets/Entities/index.js +15 -0
- package/lib/Components/Assets/Mocks/MockArchiveAsset.d.ts +8 -0
- package/lib/Components/Assets/Mocks/MockArchiveAsset.js +15 -0
- package/lib/Components/Assets/Mocks/MockDeleteAssetUC.d.ts +9 -0
- package/lib/Components/Assets/Mocks/MockDeleteAssetUC.js +16 -0
- package/lib/Components/Assets/Mocks/MockDownloadAssetFileUC.d.ts +9 -0
- package/lib/Components/Assets/Mocks/MockDownloadAssetFileUC.js +16 -0
- package/lib/Components/Assets/Mocks/MockGetAppAssetsUC.d.ts +8 -0
- package/lib/Components/Assets/Mocks/MockGetAppAssetsUC.js +15 -0
- package/lib/Components/Assets/Mocks/MockGetAssetBlobURLUC.d.ts +8 -0
- package/lib/Components/Assets/Mocks/MockGetAssetBlobURLUC.js +15 -0
- package/lib/Components/Assets/Mocks/MockGetAssetFileUC.d.ts +8 -0
- package/lib/Components/Assets/Mocks/MockGetAssetFileUC.js +15 -0
- package/lib/Components/Assets/Mocks/MockGetAssetUC.d.ts +8 -0
- package/lib/Components/Assets/Mocks/MockGetAssetUC.js +15 -0
- package/lib/Components/Assets/Mocks/MockUpdateAssetFileUC.d.ts +8 -0
- package/lib/Components/Assets/Mocks/MockUpdateAssetFileUC.js +15 -0
- package/lib/Components/Assets/Mocks/index.d.ts +8 -0
- package/lib/Components/Assets/Mocks/index.js +20 -0
- package/lib/Components/Assets/PMs/AppAssetListPM.d.ts +10 -0
- package/lib/Components/Assets/PMs/AppAssetListPM.js +57 -0
- package/lib/Components/Assets/PMs/AssetPM.d.ts +16 -0
- package/lib/Components/Assets/PMs/AssetPM.js +60 -0
- package/lib/Components/Assets/PMs/EditingAppAssetPM.d.ts +16 -0
- package/lib/Components/Assets/PMs/EditingAppAssetPM.js +56 -0
- package/lib/Components/Assets/PMs/ShowArchivedAppAssetPM.d.ts +9 -0
- package/lib/Components/Assets/PMs/ShowArchivedAppAssetPM.js +31 -0
- package/lib/Components/Assets/PMs/index.d.ts +4 -0
- package/lib/Components/Assets/PMs/index.js +16 -0
- package/lib/Components/Assets/UCs/ArchiveAssetUC.d.ts +7 -0
- package/lib/Components/Assets/UCs/ArchiveAssetUC.js +95 -0
- package/lib/Components/Assets/UCs/DeleteAssetUC.d.ts +8 -0
- package/lib/Components/Assets/UCs/DeleteAssetUC.js +109 -0
- package/lib/Components/Assets/UCs/DownloadAssetFileUC.d.ts +8 -0
- package/lib/Components/Assets/UCs/DownloadAssetFileUC.js +101 -0
- package/lib/Components/Assets/UCs/GetAppAssetsUC.d.ts +7 -0
- package/lib/Components/Assets/UCs/GetAppAssetsUC.js +57 -0
- package/lib/Components/Assets/UCs/GetAssetBlobURLUC.d.ts +7 -0
- package/lib/Components/Assets/UCs/GetAssetBlobURLUC.js +77 -0
- package/lib/Components/Assets/UCs/GetAssetFileUC.d.ts +7 -0
- package/lib/Components/Assets/UCs/GetAssetFileUC.js +73 -0
- package/lib/Components/Assets/UCs/GetAssetUC.d.ts +8 -0
- package/lib/Components/Assets/UCs/GetAssetUC.js +53 -0
- package/lib/Components/Assets/UCs/UpdateArchiveAssetUC.d.ts +7 -0
- package/lib/Components/Assets/UCs/UpdateArchiveAssetUC.js +59 -0
- package/lib/Components/Assets/UCs/UpdateAssetFileUC.d.ts +12 -0
- package/lib/Components/Assets/UCs/UpdateAssetFileUC.js +83 -0
- package/lib/Components/Assets/UCs/index.d.ts +8 -0
- package/lib/Components/Assets/UCs/index.js +20 -0
- package/lib/Components/Assets/index.d.ts +5 -0
- package/lib/Components/Assets/index.js +17 -0
- package/lib/Components/Dialog/Controllers/activeDialogHasClosed.d.ts +2 -0
- package/lib/Components/Dialog/Controllers/activeDialogHasClosed.js +14 -0
- package/lib/Components/Dialog/Controllers/index.d.ts +1 -0
- package/lib/Components/Dialog/Controllers/index.js +13 -0
- package/lib/Components/Dialog/Entities/Alert.d.ts +25 -0
- package/lib/Components/Dialog/Entities/Alert.js +48 -0
- package/lib/Components/Dialog/Entities/Confirm.d.ts +29 -0
- package/lib/Components/Dialog/Entities/Confirm.js +53 -0
- package/lib/Components/Dialog/Entities/DialogAlert.d.ts +25 -0
- package/lib/Components/Dialog/Entities/DialogAlert.js +48 -0
- package/lib/Components/Dialog/Entities/DialogConfirm.d.ts +29 -0
- package/lib/Components/Dialog/Entities/DialogConfirm.js +53 -0
- package/lib/Components/Dialog/Entities/DialogMarkDownEditor.d.ts +21 -0
- package/lib/Components/Dialog/Entities/DialogMarkDownEditor.js +44 -0
- package/lib/Components/Dialog/Entities/DialogQueue.d.ts +24 -0
- package/lib/Components/Dialog/Entities/DialogQueue.js +68 -0
- package/lib/Components/Dialog/Entities/DialogSpinner.d.ts +24 -0
- package/lib/Components/Dialog/Entities/DialogSpinner.js +63 -0
- package/lib/Components/Dialog/Entities/MarkDownEditor.d.ts +21 -0
- package/lib/Components/Dialog/Entities/MarkDownEditor.js +44 -0
- package/lib/Components/Dialog/Entities/SelectModel.d.ts +20 -0
- package/lib/Components/Dialog/Entities/SelectModel.js +49 -0
- package/lib/Components/Dialog/Entities/Spinner.d.ts +24 -0
- package/lib/Components/Dialog/Entities/Spinner.js +63 -0
- package/lib/Components/Dialog/Entities/index.d.ts +6 -0
- package/lib/Components/Dialog/Entities/index.js +18 -0
- package/lib/Components/Dialog/Factories/alertDialogFactory.d.ts +3 -0
- package/lib/Components/Dialog/Factories/alertDialogFactory.js +15 -0
- package/lib/Components/Dialog/Factories/confirmDialogFactory.d.ts +3 -0
- package/lib/Components/Dialog/Factories/confirmDialogFactory.js +15 -0
- package/lib/Components/Dialog/Factories/index.d.ts +5 -0
- package/lib/Components/Dialog/Factories/index.js +17 -0
- package/lib/Components/Dialog/Factories/markdownDialogEditorFactory.d.ts +3 -0
- package/lib/Components/Dialog/Factories/markdownDialogEditorFactory.js +15 -0
- package/lib/Components/Dialog/Factories/selectDialogModelFactory.d.ts +3 -0
- package/lib/Components/Dialog/Factories/selectDialogModelFactory.js +12 -0
- package/lib/Components/Dialog/Factories/spinnerDialogFactory.d.ts +3 -0
- package/lib/Components/Dialog/Factories/spinnerDialogFactory.js +15 -0
- package/lib/Components/Dialog/PMs/AlertDialogPM.d.ts +16 -0
- package/lib/Components/Dialog/PMs/AlertDialogPM.js +59 -0
- package/lib/Components/Dialog/PMs/ConfirmDialogPM.d.ts +18 -0
- package/lib/Components/Dialog/PMs/ConfirmDialogPM.js +67 -0
- package/lib/Components/Dialog/PMs/DialogQueuePM.d.ts +16 -0
- package/lib/Components/Dialog/PMs/DialogQueuePM.js +52 -0
- package/lib/Components/Dialog/PMs/MarkDownEditorDialogPM.d.ts +14 -0
- package/lib/Components/Dialog/PMs/MarkDownEditorDialogPM.js +51 -0
- package/lib/Components/Dialog/PMs/SpinnerDialogPM.d.ts +14 -0
- package/lib/Components/Dialog/PMs/SpinnerDialogPM.js +51 -0
- package/lib/Components/Dialog/PMs/index.d.ts +5 -0
- package/lib/Components/Dialog/PMs/index.js +17 -0
- package/lib/Components/Dialog/index.d.ts +4 -0
- package/lib/Components/Dialog/index.js +16 -0
- package/lib/Components/Dispatcher/Entities/HostDispatchEntity.d.ts +13 -0
- package/lib/Components/Dispatcher/Entities/HostDispatchEntity.js +86 -0
- package/lib/Components/Dispatcher/Entities/index.d.ts +1 -0
- package/lib/Components/Dispatcher/Entities/index.js +13 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchAppDispatcherUC.d.ts +7 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchAppDispatcherUC.js +11 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchIsAuthoringUC.d.ts +7 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchIsAuthoringUC.js +11 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchSetStateUC.d.ts +7 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchSetStateUC.js +11 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchShowBabylonInspectorUC.d.ts +7 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchShowBabylonInspectorUC.js +11 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchStartAppUC.d.ts +7 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchStartAppUC.js +11 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchStartBrowseChannelsUC.d.ts +7 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchStartBrowseChannelsUC.js +11 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchStartZSpaceUC.d.ts +7 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchStartZSpaceUC.js +11 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchStopAppUC.d.ts +7 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchStopAppUC.js +11 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchStopZSpaceUC.d.ts +7 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchStopZSpaceUC.js +11 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchThemeUC.d.ts +7 -0
- package/lib/Components/Dispatcher/Mocks/MockDispatchThemeUC.js +11 -0
- package/lib/Components/Dispatcher/Mocks/MockHostDispatcher.d.ts +11 -0
- package/lib/Components/Dispatcher/Mocks/MockHostDispatcher.js +15 -0
- package/lib/Components/Dispatcher/Mocks/index.d.ts +11 -0
- package/lib/Components/Dispatcher/Mocks/index.js +23 -0
- package/lib/Components/Dispatcher/UCs/DispatchDisposeAppUC.d.ts +9 -0
- package/lib/Components/Dispatcher/UCs/DispatchDisposeAppUC.js +48 -0
- package/lib/Components/Dispatcher/UCs/DispatchIsAuthoringUC.d.ts +9 -0
- package/lib/Components/Dispatcher/UCs/DispatchIsAuthoringUC.js +52 -0
- package/lib/Components/Dispatcher/UCs/DispatchSetStateUC.d.ts +9 -0
- package/lib/Components/Dispatcher/UCs/DispatchSetStateUC.js +52 -0
- package/lib/Components/Dispatcher/UCs/DispatchShowBabylonInspectorUC.d.ts +9 -0
- package/lib/Components/Dispatcher/UCs/DispatchShowBabylonInspectorUC.js +51 -0
- package/lib/Components/Dispatcher/UCs/DispatchStartAppUC.d.ts +9 -0
- package/lib/Components/Dispatcher/UCs/DispatchStartAppUC.js +51 -0
- package/lib/Components/Dispatcher/UCs/DispatchStartBrowseChannelsUC.d.ts +15 -0
- package/lib/Components/Dispatcher/UCs/DispatchStartBrowseChannelsUC.js +55 -0
- package/lib/Components/Dispatcher/UCs/DispatchStartZSpaceUC.d.ts +9 -0
- package/lib/Components/Dispatcher/UCs/DispatchStartZSpaceUC.js +76 -0
- package/lib/Components/Dispatcher/UCs/DispatchStopAppUC.d.ts +9 -0
- package/lib/Components/Dispatcher/UCs/DispatchStopAppUC.js +48 -0
- package/lib/Components/Dispatcher/UCs/DispatchStopZSpaceUC.d.ts +9 -0
- package/lib/Components/Dispatcher/UCs/DispatchStopZSpaceUC.js +48 -0
- package/lib/Components/Dispatcher/UCs/DispatchThemeUC.d.ts +9 -0
- package/lib/Components/Dispatcher/UCs/DispatchThemeUC.js +51 -0
- package/lib/Components/Dispatcher/UCs/index.d.ts +10 -0
- package/lib/Components/Dispatcher/UCs/index.js +22 -0
- package/lib/Components/Dispatcher/index.d.ts +3 -0
- package/lib/Components/Dispatcher/index.js +15 -0
- package/lib/Components/Handler/Entites/HostHandler.d.ts +22 -0
- package/lib/Components/Handler/Entites/HostHandler.js +61 -0
- package/lib/Components/Handler/Entites/index.d.ts +1 -0
- package/lib/Components/Handler/Entites/index.js +13 -0
- package/lib/Components/Handler/Entities/HostHandler.d.ts +22 -0
- package/lib/Components/Handler/Entities/HostHandler.js +61 -0
- package/lib/Components/Handler/Entities/index.d.ts +1 -0
- package/lib/Components/Handler/Entities/index.js +13 -0
- package/lib/Components/Handler/Mocks/MockGetAssetBlobURLHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockGetAssetBlobURLHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockGetAssetFolderURLHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockGetAssetFolderURLHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockGetAssetMetaHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockGetAssetMetaHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockGetAssetsForOwnerHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockGetAssetsForOwnerHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockGetLinkedAssetsHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockGetLinkedAssetsHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockGoToNextStateHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockGoToNextStateHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockGoToPreviousStateHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockGoToPreviousStateHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockHasNextStateHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockHasNextStateHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockHasPreviousStateHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockHasPreviousStateHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockIsAssetFetchedHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockIsAssetFetchedHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockIsZSpaceAvailableHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockIsZSpaceAvailableHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockNewActivityAssetHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockNewActivityAssetHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockOnAppIsReadyHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockOnAppIsReadyHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockOnStateChangeHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockOnStateChangeHandler.js +12 -0
- package/lib/Components/Handler/Mocks/MockOnStateCompleteHandler.d.ts +8 -0
- package/lib/Components/Handler/Mocks/MockOnStateCompleteHandler.js +12 -0
- package/lib/Components/Handler/Mocks/index.d.ts +13 -0
- package/lib/Components/Handler/Mocks/index.js +25 -0
- package/lib/Components/Handler/UCs/CallbackAssetDTO.d.ts +5 -0
- package/lib/Components/Handler/UCs/CallbackAssetDTO.js +2 -0
- package/lib/Components/Handler/UCs/GetAssetBlobURLHandler.d.ts +10 -0
- package/lib/Components/Handler/UCs/GetAssetBlobURLHandler.js +64 -0
- package/lib/Components/Handler/UCs/GetAssetFolderURLHandler.d.ts +10 -0
- package/lib/Components/Handler/UCs/GetAssetFolderURLHandler.js +47 -0
- package/lib/Components/Handler/UCs/GetAssetMetaHandler.d.ts +11 -0
- package/lib/Components/Handler/UCs/GetAssetMetaHandler.js +70 -0
- package/lib/Components/Handler/UCs/GetAssetsForOwnerHandler.d.ts +11 -0
- package/lib/Components/Handler/UCs/GetAssetsForOwnerHandler.js +47 -0
- package/lib/Components/Handler/UCs/GetLinkedAssetsHandler.d.ts +11 -0
- package/lib/Components/Handler/UCs/GetLinkedAssetsHandler.js +82 -0
- package/lib/Components/Handler/UCs/GoToNextStateHandler.d.ts +9 -0
- package/lib/Components/Handler/UCs/GoToNextStateHandler.js +40 -0
- package/lib/Components/Handler/UCs/GoToPreviousStateHandler.d.ts +9 -0
- package/lib/Components/Handler/UCs/GoToPreviousStateHandler.js +40 -0
- package/lib/Components/Handler/UCs/HasNextStateHandler.d.ts +10 -0
- package/lib/Components/Handler/UCs/HasNextStateHandler.js +47 -0
- package/lib/Components/Handler/UCs/HasPreviousStateHandler.d.ts +10 -0
- package/lib/Components/Handler/UCs/HasPreviousStateHandler.js +47 -0
- package/lib/Components/Handler/UCs/IsAssetFetchedHandler.d.ts +14 -0
- package/lib/Components/Handler/UCs/IsAssetFetchedHandler.js +48 -0
- package/lib/Components/Handler/UCs/IsZSpaceAvailableHandler.d.ts +10 -0
- package/lib/Components/Handler/UCs/IsZSpaceAvailableHandler.js +47 -0
- package/lib/Components/Handler/UCs/NewActivityAssetHandler.d.ts +10 -0
- package/lib/Components/Handler/UCs/NewActivityAssetHandler.js +47 -0
- package/lib/Components/Handler/UCs/OnAppIsReadyHandler.d.ts +9 -0
- package/lib/Components/Handler/UCs/OnAppIsReadyHandler.js +39 -0
- package/lib/Components/Handler/UCs/OnStateChangeHandler.d.ts +18 -0
- package/lib/Components/Handler/UCs/OnStateChangeHandler.js +70 -0
- package/lib/Components/Handler/UCs/OnStateCompleteHandler.d.ts +9 -0
- package/lib/Components/Handler/UCs/OnStateCompleteHandler.js +39 -0
- package/lib/Components/Handler/UCs/RegisterExternalStyleSheetsHandler.d.ts +10 -0
- package/lib/Components/Handler/UCs/RegisterExternalStyleSheetsHandler.js +48 -0
- package/lib/Components/Handler/UCs/RestoreCurrentStateHandler.d.ts +9 -0
- package/lib/Components/Handler/UCs/RestoreCurrentStateHandler.js +41 -0
- package/lib/Components/Handler/UCs/ShowAlertHandler.d.ts +16 -0
- package/lib/Components/Handler/UCs/ShowAlertHandler.js +64 -0
- package/lib/Components/Handler/UCs/ShowConfirmHandler.d.ts +18 -0
- package/lib/Components/Handler/UCs/ShowConfirmHandler.js +68 -0
- package/lib/Components/Handler/UCs/ShowMarkDownEditorHandler.d.ts +22 -0
- package/lib/Components/Handler/UCs/ShowMarkDownEditorHandler.js +61 -0
- package/lib/Components/Handler/UCs/ShowSelectModelHandler.d.ts +10 -0
- package/lib/Components/Handler/UCs/ShowSelectModelHandler.js +47 -0
- package/lib/Components/Handler/UCs/ShowSpinnerHandler.d.ts +15 -0
- package/lib/Components/Handler/UCs/ShowSpinnerHandler.js +65 -0
- package/lib/Components/Handler/UCs/StartZSpaceHandler.d.ts +9 -0
- package/lib/Components/Handler/UCs/StartZSpaceHandler.js +40 -0
- package/lib/Components/Handler/UCs/StopZSpaceHandler.d.ts +9 -0
- package/lib/Components/Handler/UCs/StopZSpaceHandler.js +40 -0
- package/lib/Components/Handler/UCs/SubmitActivityAssetHandler.d.ts +10 -0
- package/lib/Components/Handler/UCs/SubmitActivityAssetHandler.js +47 -0
- package/lib/Components/Handler/UCs/SubmitLogHandler.d.ts +11 -0
- package/lib/Components/Handler/UCs/SubmitLogHandler.js +49 -0
- package/lib/Components/Handler/UCs/SubmitResultHandler.d.ts +31 -0
- package/lib/Components/Handler/UCs/SubmitResultHandler.js +60 -0
- package/lib/Components/Handler/UCs/index.d.ts +28 -0
- package/lib/Components/Handler/UCs/index.js +40 -0
- package/lib/Components/Handler/index.d.ts +2 -0
- package/lib/Components/Handler/index.js +14 -0
- package/lib/Components/VivedAPI/Controllers/index.d.ts +3 -0
- package/lib/Components/VivedAPI/Controllers/index.js +15 -0
- package/lib/Components/VivedAPI/Controllers/loginUser.d.ts +2 -0
- package/lib/Components/VivedAPI/Controllers/loginUser.js +15 -0
- package/lib/Components/VivedAPI/Controllers/logoutUser.d.ts +2 -0
- package/lib/Components/VivedAPI/Controllers/logoutUser.js +15 -0
- package/lib/Components/VivedAPI/Controllers/refreshAuthenticatedUser.d.ts +2 -0
- package/lib/Components/VivedAPI/Controllers/refreshAuthenticatedUser.js +15 -0
- package/lib/Components/VivedAPI/Entities/VivedAPIEntity.d.ts +11 -0
- package/lib/Components/VivedAPI/Entities/VivedAPIEntity.js +27 -0
- package/lib/Components/VivedAPI/Entities/index.d.ts +1 -0
- package/lib/Components/VivedAPI/Entities/index.js +13 -0
- package/lib/Components/VivedAPI/Mocks/MockBasicFetchUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockBasicFetchUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockBlobRequestUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockBlobRequestUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockDeleteAssetOnAPIUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockDeleteAssetOnAPIUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockDeleteAssetUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockDeleteAssetUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockFetchAssetFileFromAPIUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockFetchAssetFileFromAPIUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockFetchAssetFileUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockFetchAssetFileUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockFetchAssetMetaFromAPIUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockFetchAssetMetaFromAPIUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockFetchAssetMetaUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockFetchAssetMetaUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockFileUpload.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockFileUpload.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockGetAppFromAPIUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockGetAppFromAPIUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockGetAppUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockGetAppUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockGetAssetsForOwnerUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockGetAssetsForOwnerUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockJsonRequestUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockJsonRequestUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockPatchAssetFileUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockPatchAssetFileUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockPatchAssetIsArchivedUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockPatchAssetIsArchivedUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockPatchAssetMetaUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockPatchAssetMetaUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockPatchAssetUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockPatchAssetUC.js +15 -0
- package/lib/Components/VivedAPI/Mocks/MockPostNewAssetUC.d.ts +8 -0
- package/lib/Components/VivedAPI/Mocks/MockPostNewAssetUC.js +18 -0
- package/lib/Components/VivedAPI/Mocks/MockSignedAuthToken.d.ts +9 -0
- package/lib/Components/VivedAPI/Mocks/MockSignedAuthToken.js +16 -0
- package/lib/Components/VivedAPI/Mocks/MockUserLoginUC.d.ts +10 -0
- package/lib/Components/VivedAPI/Mocks/MockUserLoginUC.js +17 -0
- package/lib/Components/VivedAPI/Mocks/index.d.ts +16 -0
- package/lib/Components/VivedAPI/Mocks/index.js +28 -0
- package/lib/Components/VivedAPI/PMs/UserTokenPM.d.ts +9 -0
- package/lib/Components/VivedAPI/PMs/UserTokenPM.js +31 -0
- package/lib/Components/VivedAPI/PMs/index.d.ts +1 -0
- package/lib/Components/VivedAPI/PMs/index.js +13 -0
- package/lib/Components/VivedAPI/UCs/BasicFetchUC.d.ts +13 -0
- package/lib/Components/VivedAPI/UCs/BasicFetchUC.js +35 -0
- package/lib/Components/VivedAPI/UCs/BlobRequestUC.d.ts +13 -0
- package/lib/Components/VivedAPI/UCs/BlobRequestUC.js +38 -0
- package/lib/Components/VivedAPI/UCs/DeleteAssetOnAPIUC.d.ts +7 -0
- package/lib/Components/VivedAPI/UCs/DeleteAssetOnAPIUC.js +63 -0
- package/lib/Components/VivedAPI/UCs/DeleteAssetUC.d.ts +7 -0
- package/lib/Components/VivedAPI/UCs/DeleteAssetUC.js +63 -0
- package/lib/Components/VivedAPI/UCs/FetchAssetFileFromAPIUC.d.ts +8 -0
- package/lib/Components/VivedAPI/UCs/FetchAssetFileFromAPIUC.js +53 -0
- package/lib/Components/VivedAPI/UCs/FetchAssetFileUC.d.ts +8 -0
- package/lib/Components/VivedAPI/UCs/FetchAssetFileUC.js +53 -0
- package/lib/Components/VivedAPI/UCs/FetchAssetMetaFromAPIUC.d.ts +8 -0
- package/lib/Components/VivedAPI/UCs/FetchAssetMetaFromAPIUC.js +72 -0
- package/lib/Components/VivedAPI/UCs/FetchAssetMetaUC.d.ts +20 -0
- package/lib/Components/VivedAPI/UCs/FetchAssetMetaUC.js +72 -0
- package/lib/Components/VivedAPI/UCs/FileUploadUC.d.ts +7 -0
- package/lib/Components/VivedAPI/UCs/FileUploadUC.js +62 -0
- package/lib/Components/VivedAPI/UCs/GetAppFromAPIUC.d.ts +28 -0
- package/lib/Components/VivedAPI/UCs/GetAppFromAPIUC.js +70 -0
- package/lib/Components/VivedAPI/UCs/GetAppUC.d.ts +28 -0
- package/lib/Components/VivedAPI/UCs/GetAppUC.js +70 -0
- package/lib/Components/VivedAPI/UCs/GetAssetsForOwnerFromAPIUC.d.ts +8 -0
- package/lib/Components/VivedAPI/UCs/GetAssetsForOwnerFromAPIUC.js +86 -0
- package/lib/Components/VivedAPI/UCs/GetAssetsForOwnerUC.d.ts +20 -0
- package/lib/Components/VivedAPI/UCs/GetAssetsForOwnerUC.js +86 -0
- package/lib/Components/VivedAPI/UCs/JsonRequestUC.d.ts +13 -0
- package/lib/Components/VivedAPI/UCs/JsonRequestUC.js +49 -0
- package/lib/Components/VivedAPI/UCs/PatchAssetFileUC.d.ts +7 -0
- package/lib/Components/VivedAPI/UCs/PatchAssetFileUC.js +84 -0
- package/lib/Components/VivedAPI/UCs/PatchAssetIsArchivedUC.d.ts +7 -0
- package/lib/Components/VivedAPI/UCs/PatchAssetIsArchivedUC.js +67 -0
- package/lib/Components/VivedAPI/UCs/PatchAssetMetaUC.d.ts +13 -0
- package/lib/Components/VivedAPI/UCs/PatchAssetMetaUC.js +70 -0
- package/lib/Components/VivedAPI/UCs/PatchAssetUC.d.ts +14 -0
- package/lib/Components/VivedAPI/UCs/PatchAssetUC.js +88 -0
- package/lib/Components/VivedAPI/UCs/PostNewAssetUC.d.ts +17 -0
- package/lib/Components/VivedAPI/UCs/PostNewAssetUC.js +92 -0
- package/lib/Components/VivedAPI/UCs/SignedAuthTokenUC.d.ts +7 -0
- package/lib/Components/VivedAPI/UCs/SignedAuthTokenUC.js +11 -0
- package/lib/Components/VivedAPI/UCs/UserAuthUC.d.ts +8 -0
- package/lib/Components/VivedAPI/UCs/UserAuthUC.js +11 -0
- package/lib/Components/VivedAPI/UCs/index.d.ts +16 -0
- package/lib/Components/VivedAPI/UCs/index.js +28 -0
- package/lib/Components/VivedAPI/index.d.ts +5 -0
- package/lib/Components/VivedAPI/index.js +17 -0
- package/lib/Components/ZSpaceHost/Controllers/index.d.ts +1 -0
- package/lib/Components/ZSpaceHost/Controllers/index.js +13 -0
- package/lib/Components/ZSpaceHost/Controllers/toggleEmulateZSpace.d.ts +2 -0
- package/lib/Components/ZSpaceHost/Controllers/toggleEmulateZSpace.js +13 -0
- package/lib/Components/ZSpaceHost/Entities/ZSpaceHost.d.ts +14 -0
- package/lib/Components/ZSpaceHost/Entities/ZSpaceHost.js +43 -0
- package/lib/Components/ZSpaceHost/Entities/index.d.ts +1 -0
- package/lib/Components/ZSpaceHost/Entities/index.js +13 -0
- package/lib/Components/ZSpaceHost/PMs/EmulateZSpacePM.d.ts +9 -0
- package/lib/Components/ZSpaceHost/PMs/EmulateZSpacePM.js +31 -0
- package/lib/Components/ZSpaceHost/PMs/ZSpaceIsActivePM.d.ts +9 -0
- package/lib/Components/ZSpaceHost/PMs/ZSpaceIsActivePM.js +31 -0
- package/lib/Components/ZSpaceHost/PMs/index.d.ts +2 -0
- package/lib/Components/ZSpaceHost/PMs/index.js +14 -0
- package/lib/Components/ZSpaceHost/UCs/checkForZSpaceSupport.d.ts +2 -0
- package/lib/Components/ZSpaceHost/UCs/checkForZSpaceSupport.js +30 -0
- package/lib/Components/ZSpaceHost/UCs/index.d.ts +1 -0
- package/lib/Components/ZSpaceHost/UCs/index.js +13 -0
- package/lib/Components/ZSpaceHost/index.d.ts +4 -0
- package/lib/Components/ZSpaceHost/index.js +16 -0
- package/lib/Components/index.d.ts +6 -0
- package/lib/Components/index.js +18 -0
- package/lib/Entities/Asset.d.ts +30 -0
- package/lib/Entities/Asset.js +131 -0
- package/lib/Entities/AssetRepo.d.ts +10 -0
- package/lib/Entities/AssetRepo.js +56 -0
- package/lib/Entities/Auth.d.ts +7 -0
- package/lib/Entities/Auth.js +25 -0
- package/lib/Entities/ChallengeResults.d.ts +40 -0
- package/lib/Entities/ChallengeResults.js +104 -0
- package/lib/Entities/DevicePreview.d.ts +20 -0
- package/lib/Entities/DevicePreview.js +67 -0
- package/lib/Entities/DialogAlert.d.ts +18 -0
- package/lib/Entities/DialogAlert.js +25 -0
- package/lib/Entities/DialogBase.d.ts +10 -0
- package/lib/Entities/DialogBase.js +20 -0
- package/lib/Entities/DialogConfirm.d.ts +22 -0
- package/lib/Entities/DialogConfirm.js +30 -0
- package/lib/Entities/DialogMarkDownEditor.d.ts +14 -0
- package/lib/Entities/DialogMarkDownEditor.js +21 -0
- package/lib/Entities/DialogRepo.d.ts +8 -0
- package/lib/Entities/DialogRepo.js +38 -0
- package/lib/Entities/DialogSpinner.d.ts +15 -0
- package/lib/Entities/DialogSpinner.js +47 -0
- package/lib/Entities/HostBoundary.d.ts +10 -0
- package/lib/Entities/HostBoundary.js +2 -0
- package/lib/Entities/HostDispatcher.d.ts +16 -0
- package/lib/Entities/HostDispatcher.js +171 -0
- package/lib/Entities/HostHandler.d.ts +19 -0
- package/lib/Entities/HostHandler.js +59 -0
- package/lib/Entities/HostHandlerX.d.ts +7 -0
- package/lib/Entities/HostHandlerX.js +35 -0
- package/lib/Entities/Logger.d.ts +41 -0
- package/lib/Entities/Logger.js +117 -0
- package/lib/Entities/MemoizedBoolean.d.ts +7 -0
- package/lib/Entities/MemoizedBoolean.js +19 -0
- package/lib/Entities/MemoizedNumber.d.ts +7 -0
- package/lib/Entities/MemoizedNumber.js +19 -0
- package/lib/Entities/MemoizedString.d.ts +7 -0
- package/lib/Entities/MemoizedString.js +19 -0
- package/lib/Entities/ObservableEntity.d.ts +7 -0
- package/lib/Entities/ObservableEntity.js +19 -0
- package/lib/Entities/ObserverList.d.ts +7 -0
- package/lib/Entities/ObserverList.js +26 -0
- package/lib/Entities/SnackbarRepo.d.ts +20 -0
- package/lib/Entities/SnackbarRepo.js +98 -0
- package/lib/Entities/VivedAPI.d.ts +50 -0
- package/lib/Entities/VivedAPI.js +69 -0
- package/lib/Entities/index.d.ts +9 -0
- package/lib/Entities/index.js +21 -0
- package/lib/HostAppObject/HostAppObject.d.ts +14 -0
- package/lib/HostAppObject/HostAppObject.js +58 -0
- package/lib/HostAppObject/HostAppObjectComponent.d.ts +16 -0
- package/lib/HostAppObject/HostAppObjectComponent.js +71 -0
- package/lib/HostAppObject/HostAppObjectController.d.ts +3 -0
- package/lib/HostAppObject/HostAppObjectController.js +7 -0
- package/lib/HostAppObject/HostAppObjectEntity.d.ts +14 -0
- package/lib/HostAppObject/HostAppObjectEntity.js +36 -0
- package/lib/HostAppObject/HostAppObjectEntityRepo.d.ts +15 -0
- package/lib/HostAppObject/HostAppObjectEntityRepo.js +54 -0
- package/lib/HostAppObject/HostAppObjectPM.d.ts +11 -0
- package/lib/HostAppObject/HostAppObjectPM.js +38 -0
- package/lib/HostAppObject/HostAppObjectRepo.d.ts +25 -0
- package/lib/HostAppObject/HostAppObjectRepo.js +132 -0
- package/lib/HostAppObject/HostAppObjectUC.d.ts +3 -0
- package/lib/HostAppObject/HostAppObjectUC.js +7 -0
- package/lib/HostAppObject/HostAppObjectView.d.ts +3 -0
- package/lib/HostAppObject/HostAppObjectView.js +7 -0
- package/lib/HostAppObject/getSingletonComponent.d.ts +3 -0
- package/lib/HostAppObject/getSingletonComponent.js +7 -0
- package/lib/HostAppObject/index.d.ts +9 -0
- package/lib/HostAppObject/index.js +21 -0
- package/lib/PresentationManagers/DevicePreview/DevicePreviewListPM.d.ts +23 -0
- package/lib/PresentationManagers/DevicePreview/DevicePreviewListPM.js +50 -0
- package/lib/PresentationManagers/Dialog/AlertDialogPM.d.ts +18 -0
- package/lib/PresentationManagers/Dialog/AlertDialogPM.js +65 -0
- package/lib/PresentationManagers/Dialog/ConfirmDialogPM.d.ts +21 -0
- package/lib/PresentationManagers/Dialog/ConfirmDialogPM.js +87 -0
- package/lib/PresentationManagers/Dialog/DialogPM.d.ts +19 -0
- package/lib/PresentationManagers/Dialog/DialogPM.js +66 -0
- package/lib/PresentationManagers/Dialog/MarkDownEditorDialogPM.d.ts +17 -0
- package/lib/PresentationManagers/Dialog/MarkDownEditorDialogPM.js +68 -0
- package/lib/PresentationManagers/Dialog/SpinnerDialogPM.d.ts +16 -0
- package/lib/PresentationManagers/Dialog/SpinnerDialogPM.js +62 -0
- package/lib/PresentationManagers/PresentationManager.d.ts +8 -0
- package/lib/PresentationManagers/PresentationManager.js +16 -0
- package/lib/PresentationManagers/Snackbar/SnackbarPM.d.ts +13 -0
- package/lib/PresentationManagers/Snackbar/SnackbarPM.js +30 -0
- package/lib/PresentationManagers/index.d.ts +6 -0
- package/lib/PresentationManagers/index.js +18 -0
- package/lib/Types/PluginBoundary.d.ts +10 -0
- package/lib/Types/PluginBoundary.js +2 -0
- package/lib/Types/index.d.ts +1 -0
- package/lib/Types/index.js +13 -0
- package/lib/UseCases/Handlers/CallbackAssetDTO.d.ts +5 -0
- package/lib/UseCases/Handlers/CallbackAssetDTO.js +2 -0
- package/lib/UseCases/Handlers/GetAssetBlobURLBase.d.ts +10 -0
- package/lib/UseCases/Handlers/GetAssetBlobURLBase.js +30 -0
- package/lib/UseCases/Handlers/GetAssetFolderURLBase.d.ts +10 -0
- package/lib/UseCases/Handlers/GetAssetFolderURLBase.js +30 -0
- package/lib/UseCases/Handlers/GetAssetMetaBase.d.ts +11 -0
- package/lib/UseCases/Handlers/GetAssetMetaBase.js +30 -0
- package/lib/UseCases/Handlers/GetAssetsForOwnerBase.d.ts +11 -0
- package/lib/UseCases/Handlers/GetAssetsForOwnerBase.js +30 -0
- package/lib/UseCases/Handlers/GetLinkedAssetsBase.d.ts +11 -0
- package/lib/UseCases/Handlers/GetLinkedAssetsBase.js +30 -0
- package/lib/UseCases/Handlers/GoToNextStateBase.d.ts +9 -0
- package/lib/UseCases/Handlers/GoToNextStateBase.js +23 -0
- package/lib/UseCases/Handlers/GoToPreviousStateBase.d.ts +9 -0
- package/lib/UseCases/Handlers/GoToPreviousStateBase.js +23 -0
- package/lib/UseCases/Handlers/HasNextStateBase.d.ts +10 -0
- package/lib/UseCases/Handlers/HasNextStateBase.js +30 -0
- package/lib/UseCases/Handlers/HasPreviousStateBase.d.ts +10 -0
- package/lib/UseCases/Handlers/HasPreviousStateBase.js +30 -0
- package/lib/UseCases/Handlers/IsAssetFetchedBase.d.ts +14 -0
- package/lib/UseCases/Handlers/IsAssetFetchedBase.js +31 -0
- package/lib/UseCases/Handlers/IsZSpaceAvailableBase.d.ts +10 -0
- package/lib/UseCases/Handlers/IsZSpaceAvailableBase.js +30 -0
- package/lib/UseCases/Handlers/NewActivityAssetBase.d.ts +10 -0
- package/lib/UseCases/Handlers/NewActivityAssetBase.js +30 -0
- package/lib/UseCases/Handlers/OnAppIsReadyBase.d.ts +8 -0
- package/lib/UseCases/Handlers/OnAppIsReadyBase.js +22 -0
- package/lib/UseCases/Handlers/OnStateChangeBase.d.ts +12 -0
- package/lib/UseCases/Handlers/OnStateChangeBase.js +52 -0
- package/lib/UseCases/Handlers/OnStateCompleteBase.d.ts +8 -0
- package/lib/UseCases/Handlers/OnStateCompleteBase.js +22 -0
- package/lib/UseCases/Handlers/RegisterExternalStyleSheetsBase.d.ts +10 -0
- package/lib/UseCases/Handlers/RegisterExternalStyleSheetsBase.js +30 -0
- package/lib/UseCases/Handlers/RestoreCurrentStateBase.d.ts +9 -0
- package/lib/UseCases/Handlers/RestoreCurrentStateBase.js +23 -0
- package/lib/UseCases/Handlers/ShowAlertBase.d.ts +16 -0
- package/lib/UseCases/Handlers/ShowAlertBase.js +33 -0
- package/lib/UseCases/Handlers/ShowConfirmBase.d.ts +18 -0
- package/lib/UseCases/Handlers/ShowConfirmBase.js +35 -0
- package/lib/UseCases/Handlers/ShowMarkDownEditorBase.d.ts +15 -0
- package/lib/UseCases/Handlers/ShowMarkDownEditorBase.js +31 -0
- package/lib/UseCases/Handlers/ShowSelectModelBase.d.ts +10 -0
- package/lib/UseCases/Handlers/ShowSelectModelBase.js +30 -0
- package/lib/UseCases/Handlers/ShowSpinnerBase.d.ts +15 -0
- package/lib/UseCases/Handlers/ShowSpinnerBase.js +32 -0
- package/lib/UseCases/Handlers/StartZSpaceBase.d.ts +9 -0
- package/lib/UseCases/Handlers/StartZSpaceBase.js +23 -0
- package/lib/UseCases/Handlers/StopZSpaceBase.d.ts +9 -0
- package/lib/UseCases/Handlers/StopZSpaceBase.js +23 -0
- package/lib/UseCases/Handlers/SubmitActivityAssetBase.d.ts +10 -0
- package/lib/UseCases/Handlers/SubmitActivityAssetBase.js +30 -0
- package/lib/UseCases/Handlers/SubmitLogBase.d.ts +11 -0
- package/lib/UseCases/Handlers/SubmitLogBase.js +32 -0
- package/lib/UseCases/Handlers/SubmitResultBase.d.ts +32 -0
- package/lib/UseCases/Handlers/SubmitResultBase.js +43 -0
- package/lib/UseCases/Handlers/index.d.ts +6 -0
- package/lib/UseCases/Handlers/index.js +18 -0
- package/lib/UseCases/index.d.ts +1 -0
- package/lib/UseCases/index.js +13 -0
- package/lib/Utilities/generateUniqueID.d.ts +1 -0
- package/lib/Utilities/generateUniqueID.js +8 -0
- package/lib/Utilities/index.d.ts +1 -0
- package/lib/Utilities/index.js +13 -0
- package/lib/ValueObjects/Result.d.ts +30 -0
- package/lib/ValueObjects/Result.js +45 -0
- package/lib/ValueObjects/Version.d.ts +22 -0
- package/lib/ValueObjects/Version.js +170 -0
- package/lib/ValueObjects/index.d.ts +2 -0
- package/lib/ValueObjects/index.js +14 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +19 -0
- package/package.json +49 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./archiveAsset"), exports);
|
|
14
|
+
__exportStar(require("./deleteAsset"), exports);
|
|
15
|
+
__exportStar(require("./downloadAssetFile"), exports);
|
|
16
|
+
__exportStar(require("./getAppAssets"), exports);
|
|
17
|
+
__exportStar(require("./toggleShowArchivedAssets"), exports);
|
|
18
|
+
__exportStar(require("./updateAssetFile"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toggleShowArchivedAssets = void 0;
|
|
4
|
+
const AppAssetsEntity_1 = require("../Entities/AppAssetsEntity");
|
|
5
|
+
function toggleShowArchivedAssets(appObjects) {
|
|
6
|
+
const appAssets = AppAssetsEntity_1.AppAssetsEntity.get(appObjects);
|
|
7
|
+
if (appAssets) {
|
|
8
|
+
appAssets.showArchived = !appAssets.showArchived;
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
appObjects.submitWarning('toggleShowArchivedAssets', 'Unable to find AppAssetsEntity');
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.toggleShowArchivedAssets = toggleShowArchivedAssets;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateAssetFile = void 0;
|
|
4
|
+
const UpdateAssetFileUC_1 = require("../UCs/UpdateAssetFileUC");
|
|
5
|
+
function updateAssetFile(file, assetID, appObjects) {
|
|
6
|
+
const uc = UpdateAssetFileUC_1.UpdateAssetFileUC.get(assetID, appObjects);
|
|
7
|
+
if (!uc) {
|
|
8
|
+
appObjects.submitWarning("updateAssetFile", "Unable to find UpdateAssetFileUC");
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
uc.updateFile(file);
|
|
12
|
+
}
|
|
13
|
+
exports.updateAssetFile = updateAssetFile;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HostAppObject, HostAppObjectEntity, HostAppObjectRepo } from '../../../HostAppObject';
|
|
2
|
+
import { AssetEntity } from './AssetEntity';
|
|
3
|
+
export declare abstract class AppAssetsEntity extends HostAppObjectEntity {
|
|
4
|
+
static type: string;
|
|
5
|
+
abstract getAll(): string[];
|
|
6
|
+
abstract add(assetID: string): void;
|
|
7
|
+
abstract has(assetID: string): boolean;
|
|
8
|
+
abstract remove(assetID: string): void;
|
|
9
|
+
abstract get editingAsset(): AssetEntity | undefined;
|
|
10
|
+
abstract set editingAsset(val: AssetEntity | undefined);
|
|
11
|
+
abstract get showArchived(): boolean;
|
|
12
|
+
abstract set showArchived(show: boolean);
|
|
13
|
+
static get(hostAppObjects: HostAppObjectRepo): AppAssetsEntity | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare function makeAppAssets(appObj: HostAppObject): AppAssetsEntity;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeAppAssets = exports.AppAssetsEntity = void 0;
|
|
4
|
+
const Entities_1 = require("../../../Entities");
|
|
5
|
+
const HostAppObject_1 = require("../../../HostAppObject");
|
|
6
|
+
class AppAssetsEntity extends HostAppObject_1.HostAppObjectEntity {
|
|
7
|
+
static get(hostAppObjects) {
|
|
8
|
+
return HostAppObject_1.getSingletonComponent(AppAssetsEntity.type, hostAppObjects);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.AppAssetsEntity = AppAssetsEntity;
|
|
12
|
+
AppAssetsEntity.type = 'AppAssetsEntity';
|
|
13
|
+
function makeAppAssets(appObj) {
|
|
14
|
+
return new AppAssetsImp(appObj);
|
|
15
|
+
}
|
|
16
|
+
exports.makeAppAssets = makeAppAssets;
|
|
17
|
+
class AppAssetsImp extends AppAssetsEntity {
|
|
18
|
+
constructor(appObj) {
|
|
19
|
+
super(appObj, AppAssetsEntity.type);
|
|
20
|
+
this.appAssets = [];
|
|
21
|
+
this.getAll = () => {
|
|
22
|
+
return [...this.appAssets];
|
|
23
|
+
};
|
|
24
|
+
this.add = (assetID) => {
|
|
25
|
+
if (this.appAssets.includes(assetID))
|
|
26
|
+
return;
|
|
27
|
+
this.appAssets.push(assetID);
|
|
28
|
+
this.notifyOnChange();
|
|
29
|
+
};
|
|
30
|
+
this.memoizedShowArchived = new Entities_1.MemoizedBoolean(false, this.notifyOnChange);
|
|
31
|
+
this.appObjects.registerSingleton(this);
|
|
32
|
+
}
|
|
33
|
+
get editingAsset() {
|
|
34
|
+
return this._editingAsset;
|
|
35
|
+
}
|
|
36
|
+
set editingAsset(val) {
|
|
37
|
+
var _a;
|
|
38
|
+
if ((val === null || val === void 0 ? void 0 : val.id) === ((_a = this._editingAsset) === null || _a === void 0 ? void 0 : _a.id))
|
|
39
|
+
return;
|
|
40
|
+
if (this._editingAsset) {
|
|
41
|
+
this._editingAsset.removeChangeObserver(this.notifyOnChange);
|
|
42
|
+
}
|
|
43
|
+
this._editingAsset = val;
|
|
44
|
+
if (this._editingAsset) {
|
|
45
|
+
this._editingAsset.addChangeObserver(this.notifyOnChange);
|
|
46
|
+
}
|
|
47
|
+
this.notifyOnChange();
|
|
48
|
+
}
|
|
49
|
+
has(assetID) {
|
|
50
|
+
return this.appAssets.includes(assetID);
|
|
51
|
+
}
|
|
52
|
+
remove(assetID) {
|
|
53
|
+
const index = this.appAssets.indexOf(assetID, 0);
|
|
54
|
+
if (index > -1) {
|
|
55
|
+
this.appAssets.splice(index, 1);
|
|
56
|
+
this.notifyOnChange();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
get showArchived() {
|
|
60
|
+
return this.memoizedShowArchived.val;
|
|
61
|
+
}
|
|
62
|
+
set showArchived(show) {
|
|
63
|
+
this.memoizedShowArchived.val = show;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { HostAppObject, HostAppObjectEntity } from '../../../HostAppObject';
|
|
2
|
+
export declare abstract class AssetEntity extends HostAppObjectEntity {
|
|
3
|
+
static type: string;
|
|
4
|
+
abstract readonly id: string;
|
|
5
|
+
abstract get name(): string;
|
|
6
|
+
abstract set name(name: string);
|
|
7
|
+
abstract get description(): string;
|
|
8
|
+
abstract set description(description: string);
|
|
9
|
+
abstract get owner(): string;
|
|
10
|
+
abstract set owner(val: string);
|
|
11
|
+
abstract get archived(): boolean;
|
|
12
|
+
abstract set archived(archived: boolean);
|
|
13
|
+
abstract get filename(): string;
|
|
14
|
+
abstract set filename(filename: string);
|
|
15
|
+
abstract get fileURL(): string;
|
|
16
|
+
abstract set fileURL(fileURL: string);
|
|
17
|
+
abstract setFile(file: File): void;
|
|
18
|
+
abstract get file(): File | undefined;
|
|
19
|
+
abstract get blobURL(): string | undefined;
|
|
20
|
+
abstract get fileHasBeenFetched(): boolean;
|
|
21
|
+
abstract get linkedAssets(): {
|
|
22
|
+
type: string;
|
|
23
|
+
id: string;
|
|
24
|
+
}[];
|
|
25
|
+
abstract addLinkedAsset(type: string, id: string): void;
|
|
26
|
+
abstract removeLinkedAsset(type: string, id: string): void;
|
|
27
|
+
abstract getLinkedAssetByType(type: string): string[];
|
|
28
|
+
abstract get isFetchingFile(): boolean;
|
|
29
|
+
abstract set isFetchingFile(isFetchingFile: boolean);
|
|
30
|
+
abstract get fetchError(): Error | undefined;
|
|
31
|
+
abstract set fetchError(fetchError: Error | undefined);
|
|
32
|
+
static get(appObject: HostAppObject): AssetEntity | undefined;
|
|
33
|
+
}
|
|
34
|
+
export declare function makeAssetEntity(appObject: HostAppObject): AssetEntity;
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeAssetEntity = exports.AssetEntity = void 0;
|
|
4
|
+
const Entities_1 = require("../../../Entities");
|
|
5
|
+
const HostAppObject_1 = require("../../../HostAppObject");
|
|
6
|
+
class AssetEntity extends HostAppObject_1.HostAppObjectEntity {
|
|
7
|
+
static get(appObject) {
|
|
8
|
+
const asset = appObject.getComponent(AssetEntity.type);
|
|
9
|
+
if (!asset) {
|
|
10
|
+
appObject.appObjectRepo.submitWarning('AssetEntity.get', 'Unable to find AssetEntity on app object ' + appObject.id);
|
|
11
|
+
}
|
|
12
|
+
return asset;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.AssetEntity = AssetEntity;
|
|
16
|
+
AssetEntity.type = 'AssetEntity';
|
|
17
|
+
function makeAssetEntity(appObject) {
|
|
18
|
+
return new AssetImp(appObject);
|
|
19
|
+
}
|
|
20
|
+
exports.makeAssetEntity = makeAssetEntity;
|
|
21
|
+
class AssetImp extends AssetEntity {
|
|
22
|
+
constructor(appObject) {
|
|
23
|
+
super(appObject, AssetEntity.type);
|
|
24
|
+
this._memoizedName = new Entities_1.MemoizedString('', this.notifyOnChange);
|
|
25
|
+
this._memoizedOwner = new Entities_1.MemoizedString('', this.notifyOnChange);
|
|
26
|
+
this._memoizedDescription = new Entities_1.MemoizedString('', this.notifyOnChange);
|
|
27
|
+
this._memoizedArchived = new Entities_1.MemoizedBoolean(false, this.notifyOnChange);
|
|
28
|
+
this._memoizedFileURL = new Entities_1.MemoizedString('', this.notifyOnChange);
|
|
29
|
+
this._memoizedFilename = new Entities_1.MemoizedString('', this.notifyOnChange);
|
|
30
|
+
this._file = undefined;
|
|
31
|
+
this._blobURL = undefined;
|
|
32
|
+
this.setFile = (file) => {
|
|
33
|
+
this._file = file;
|
|
34
|
+
this._blobURL = URL.createObjectURL(file);
|
|
35
|
+
this.notifyOnChange();
|
|
36
|
+
};
|
|
37
|
+
this._linkedAssets = [];
|
|
38
|
+
this.addLinkedAsset = (type, id) => {
|
|
39
|
+
const existingAsset = this._linkedAssets.find((asset) => {
|
|
40
|
+
return asset.id === id;
|
|
41
|
+
});
|
|
42
|
+
if (existingAsset === undefined) {
|
|
43
|
+
this._linkedAssets.push({
|
|
44
|
+
id,
|
|
45
|
+
type,
|
|
46
|
+
});
|
|
47
|
+
this.notifyOnChange();
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
this.removeLinkedAsset = (type, id) => {
|
|
51
|
+
let foundAsset = false;
|
|
52
|
+
this._linkedAssets.forEach((asset) => {
|
|
53
|
+
if (asset.type === type && asset.id === id) {
|
|
54
|
+
foundAsset = true;
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
if (foundAsset) {
|
|
58
|
+
this._linkedAssets = this._linkedAssets.filter((asset) => asset.id !== id);
|
|
59
|
+
this.notifyOnChange();
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
this.getLinkedAssetByType = (type) => {
|
|
63
|
+
const rVal = [];
|
|
64
|
+
this._linkedAssets.forEach((asset) => {
|
|
65
|
+
if (asset.type === type) {
|
|
66
|
+
rVal.push(asset.id);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
return rVal;
|
|
70
|
+
};
|
|
71
|
+
this._memoizedIsFetchingFile = new Entities_1.MemoizedBoolean(false, this.notifyOnChange);
|
|
72
|
+
this._fetchError = undefined;
|
|
73
|
+
this.dispose = () => {
|
|
74
|
+
if (this._blobURL !== undefined) {
|
|
75
|
+
URL.revokeObjectURL(this._blobURL);
|
|
76
|
+
this._blobURL = undefined;
|
|
77
|
+
this.notifyOnChange();
|
|
78
|
+
}
|
|
79
|
+
super.dispose();
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
get id() {
|
|
83
|
+
return this.appObject.id;
|
|
84
|
+
}
|
|
85
|
+
get name() {
|
|
86
|
+
return this._memoizedName.val;
|
|
87
|
+
}
|
|
88
|
+
set name(name) {
|
|
89
|
+
this._memoizedName.val = name;
|
|
90
|
+
}
|
|
91
|
+
get owner() {
|
|
92
|
+
return this._memoizedOwner.val;
|
|
93
|
+
}
|
|
94
|
+
set owner(val) {
|
|
95
|
+
this._memoizedOwner.val = val;
|
|
96
|
+
}
|
|
97
|
+
get description() {
|
|
98
|
+
return this._memoizedDescription.val;
|
|
99
|
+
}
|
|
100
|
+
set description(description) {
|
|
101
|
+
this._memoizedDescription.val = description;
|
|
102
|
+
}
|
|
103
|
+
get archived() {
|
|
104
|
+
return this._memoizedArchived.val;
|
|
105
|
+
}
|
|
106
|
+
set archived(archived) {
|
|
107
|
+
this._memoizedArchived.val = archived;
|
|
108
|
+
}
|
|
109
|
+
get filename() {
|
|
110
|
+
return this._memoizedFilename.val;
|
|
111
|
+
}
|
|
112
|
+
set filename(name) {
|
|
113
|
+
this._memoizedFilename.val = name;
|
|
114
|
+
}
|
|
115
|
+
get fileURL() {
|
|
116
|
+
return this._memoizedFileURL.val;
|
|
117
|
+
}
|
|
118
|
+
set fileURL(name) {
|
|
119
|
+
this._memoizedFileURL.val = name;
|
|
120
|
+
}
|
|
121
|
+
get file() {
|
|
122
|
+
return this._file;
|
|
123
|
+
}
|
|
124
|
+
get blobURL() {
|
|
125
|
+
return this._blobURL;
|
|
126
|
+
}
|
|
127
|
+
get fileHasBeenFetched() {
|
|
128
|
+
return this._file !== undefined;
|
|
129
|
+
}
|
|
130
|
+
get linkedAssets() {
|
|
131
|
+
return [...this._linkedAssets];
|
|
132
|
+
}
|
|
133
|
+
get isFetchingFile() {
|
|
134
|
+
return this._memoizedIsFetchingFile.val;
|
|
135
|
+
}
|
|
136
|
+
set isFetchingFile(archived) {
|
|
137
|
+
this._memoizedIsFetchingFile.val = archived;
|
|
138
|
+
}
|
|
139
|
+
get fetchError() {
|
|
140
|
+
return this._fetchError;
|
|
141
|
+
}
|
|
142
|
+
set fetchError(fetchError) {
|
|
143
|
+
if (fetchError === undefined && this.fetchError === undefined)
|
|
144
|
+
return;
|
|
145
|
+
if (fetchError !== undefined && this.fetchError !== undefined && fetchError.message === this.fetchError.message)
|
|
146
|
+
return;
|
|
147
|
+
this._fetchError = fetchError;
|
|
148
|
+
this.notifyOnChange();
|
|
149
|
+
}
|
|
150
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { HostAppObject, HostAppObjectEntity, HostAppObjectRepo } from '../../../HostAppObject';
|
|
2
|
+
import { AssetEntity } from './AssetEntity';
|
|
3
|
+
export interface AssetDTO {
|
|
4
|
+
id: string;
|
|
5
|
+
ownerId: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
archived: boolean;
|
|
9
|
+
filename: string;
|
|
10
|
+
fileURL: string;
|
|
11
|
+
linkedAssets: {
|
|
12
|
+
type: string;
|
|
13
|
+
asset: AssetDTO;
|
|
14
|
+
}[];
|
|
15
|
+
}
|
|
16
|
+
export declare abstract class AssetRepo extends HostAppObjectEntity {
|
|
17
|
+
static type: string;
|
|
18
|
+
abstract add(asset: AssetEntity): void;
|
|
19
|
+
abstract has(id: string): boolean;
|
|
20
|
+
abstract get(assetID: string): AssetEntity | undefined;
|
|
21
|
+
abstract getOrCreate(assetID: string): AssetEntity;
|
|
22
|
+
abstract getAll(): AssetEntity[];
|
|
23
|
+
abstract remove(assetID: string): void;
|
|
24
|
+
abstract assetFactory(id: string): AssetEntity;
|
|
25
|
+
abstract addFromDTO(dto: AssetDTO): AssetEntity;
|
|
26
|
+
static get(hostAppObjects: HostAppObjectRepo): AssetRepo | undefined;
|
|
27
|
+
}
|
|
28
|
+
export declare function makeAssetRepo(appObj: HostAppObject): AssetRepo;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeAssetRepo = exports.AssetRepo = void 0;
|
|
4
|
+
const HostAppObject_1 = require("../../../HostAppObject");
|
|
5
|
+
const AssetEntity_1 = require("./AssetEntity");
|
|
6
|
+
class AssetRepo extends HostAppObject_1.HostAppObjectEntity {
|
|
7
|
+
static get(hostAppObjects) {
|
|
8
|
+
return HostAppObject_1.getSingletonComponent(AssetRepo.type, hostAppObjects);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.AssetRepo = AssetRepo;
|
|
12
|
+
AssetRepo.type = 'AssetRepository';
|
|
13
|
+
function makeAssetRepo(appObj) {
|
|
14
|
+
return new AssetRepositoryImp(appObj);
|
|
15
|
+
}
|
|
16
|
+
exports.makeAssetRepo = makeAssetRepo;
|
|
17
|
+
class AssetRepositoryImp extends AssetRepo {
|
|
18
|
+
constructor(appObj) {
|
|
19
|
+
super(appObj, AssetRepo.type);
|
|
20
|
+
this.assetLookup = new Map();
|
|
21
|
+
this.has = (id) => {
|
|
22
|
+
return this.assetLookup.has(id);
|
|
23
|
+
};
|
|
24
|
+
this.assetFactory = (id) => {
|
|
25
|
+
this.error('Asset factory has not been injected');
|
|
26
|
+
return AssetEntity_1.makeAssetEntity(this.appObjects.getOrCreate(id));
|
|
27
|
+
};
|
|
28
|
+
this.add = (asset) => {
|
|
29
|
+
if (this.assetLookup.has(asset.id))
|
|
30
|
+
return;
|
|
31
|
+
this.assetLookup.set(asset.id, asset);
|
|
32
|
+
this.notifyOnChange();
|
|
33
|
+
};
|
|
34
|
+
this.get = (assetID) => {
|
|
35
|
+
return this.assetLookup.get(assetID);
|
|
36
|
+
};
|
|
37
|
+
this.getOrCreate = (assetID) => {
|
|
38
|
+
const existing = this.assetLookup.get(assetID);
|
|
39
|
+
if (existing) {
|
|
40
|
+
return existing;
|
|
41
|
+
}
|
|
42
|
+
const newAsset = this.assetFactory(assetID);
|
|
43
|
+
this.add(newAsset);
|
|
44
|
+
return newAsset;
|
|
45
|
+
};
|
|
46
|
+
this.getAll = () => {
|
|
47
|
+
return Array.from(this.assetLookup.values());
|
|
48
|
+
};
|
|
49
|
+
this.remove = (assetID) => {
|
|
50
|
+
if (!this.assetLookup.has(assetID))
|
|
51
|
+
return;
|
|
52
|
+
this.assetLookup.delete(assetID);
|
|
53
|
+
this.notifyOnChange();
|
|
54
|
+
};
|
|
55
|
+
this.setAssetFromDTO = (data, asset) => {
|
|
56
|
+
asset.description = data.description;
|
|
57
|
+
asset.name = data.name;
|
|
58
|
+
asset.archived = data.archived;
|
|
59
|
+
asset.filename = data.filename;
|
|
60
|
+
asset.owner = data.ownerId;
|
|
61
|
+
asset.fileURL = data.fileURL;
|
|
62
|
+
data.linkedAssets.forEach((linkedAsset) => {
|
|
63
|
+
asset.addLinkedAsset(linkedAsset.type, linkedAsset.asset.id);
|
|
64
|
+
});
|
|
65
|
+
return asset;
|
|
66
|
+
};
|
|
67
|
+
this.appObjects.registerSingleton(this);
|
|
68
|
+
}
|
|
69
|
+
addFromDTO(dto) {
|
|
70
|
+
const baseAsset = this.getOrCreate(dto.id);
|
|
71
|
+
this.setAssetFromDTO(dto, baseAsset);
|
|
72
|
+
const allLinkedDTOs = [];
|
|
73
|
+
this.addLinkedAssetDTOsRecursively(dto.linkedAssets, allLinkedDTOs);
|
|
74
|
+
allLinkedDTOs.forEach((linkedDTO) => {
|
|
75
|
+
const asset = this.getOrCreate(linkedDTO.id);
|
|
76
|
+
this.setAssetFromDTO(linkedDTO, asset);
|
|
77
|
+
});
|
|
78
|
+
return baseAsset;
|
|
79
|
+
}
|
|
80
|
+
addLinkedAssetDTOsRecursively(linkedAssetList, metaList) {
|
|
81
|
+
linkedAssetList.forEach((linkedAsset) => {
|
|
82
|
+
metaList.push(linkedAsset.asset);
|
|
83
|
+
this.addLinkedAssetDTOsRecursively(linkedAsset.asset.linkedAssets, metaList);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AssetDTO, NewAssetDTO, UpdateAssetDTO } from '../../../Entities';
|
|
2
|
+
import { HostAppObject, HostAppObjectEntity } from '../../../HostAppObject';
|
|
3
|
+
import { AssetEntity } from './AssetEntity';
|
|
4
|
+
export interface APIComms {
|
|
5
|
+
getAssetFile: (assetID: string) => Promise<File>;
|
|
6
|
+
getAssetMeta: (assetID: string) => Promise<AssetDTO>;
|
|
7
|
+
getAssetsForOwner: (ownerID: string) => Promise<AssetDTO[]>;
|
|
8
|
+
updateArchiveAsset: (assetID: string, archived: boolean) => Promise<void>;
|
|
9
|
+
updateAssetMeta: (data: AssetDTO) => Promise<void>;
|
|
10
|
+
createNewAsset: (data: NewAssetDTO) => Promise<string>;
|
|
11
|
+
updateAssetFile: (assetID: string, file: File) => Promise<void>;
|
|
12
|
+
deleteAsset: (assetID: string) => Promise<void>;
|
|
13
|
+
updateAsset: (data: UpdateAssetDTO) => Promise<AssetDTO>;
|
|
14
|
+
}
|
|
15
|
+
export declare abstract class AssetRepository extends HostAppObjectEntity {
|
|
16
|
+
static type: string;
|
|
17
|
+
abstract set apiComms(comms: APIComms);
|
|
18
|
+
abstract addAsset(asset: AssetEntity): void;
|
|
19
|
+
abstract hasFetchedAsset(assetID: string): boolean;
|
|
20
|
+
abstract getFetchedAsset(assetID: string): AssetEntity | undefined;
|
|
21
|
+
abstract getAsset(assetID: string): Promise<AssetEntity>;
|
|
22
|
+
abstract getAssetBlobURL(assetID: string): Promise<string>;
|
|
23
|
+
abstract getAssetsForOwner(ownerID: string): Promise<AssetEntity[]>;
|
|
24
|
+
abstract setAssetArchived(assetID: string, archive: boolean): Promise<void>;
|
|
25
|
+
abstract updateAssetMeta(data: AssetDTO): Promise<void>;
|
|
26
|
+
abstract newAsset(data: NewAssetDTO): Promise<AssetEntity>;
|
|
27
|
+
abstract updateAssetFile(assetID: string, file: File): Promise<void>;
|
|
28
|
+
abstract deleteAsset(assetID: string): Promise<void>;
|
|
29
|
+
abstract updateAsset(data: UpdateAssetDTO): Promise<AssetDTO>;
|
|
30
|
+
abstract assetFactory(id: string): AssetEntity;
|
|
31
|
+
}
|
|
32
|
+
export declare function makeAssetRepository(appObj: HostAppObject): AssetRepository;
|
|
33
|
+
export declare const NO_API_COMMS_ERROR: Error;
|
|
34
|
+
export declare const NO_ASSET_ERROR: Error;
|