@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,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeGetAssetBlobURLUC = exports.GetAssetBlobURLUC = void 0;
|
|
4
|
+
const HostAppObject_1 = require("../../../HostAppObject");
|
|
5
|
+
const VivedAPI_1 = require("../../VivedAPI");
|
|
6
|
+
const AssetRepo_1 = require("../Entities/AssetRepo");
|
|
7
|
+
const GetAssetUC_1 = require("./GetAssetUC");
|
|
8
|
+
class GetAssetBlobURLUC extends HostAppObject_1.HostAppObjectUC {
|
|
9
|
+
static get(appObjects) {
|
|
10
|
+
return HostAppObject_1.getSingletonComponent(GetAssetBlobURLUC.type, appObjects);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.GetAssetBlobURLUC = GetAssetBlobURLUC;
|
|
14
|
+
GetAssetBlobURLUC.type = "GetAssetBlobURLUC";
|
|
15
|
+
function makeGetAssetBlobURLUC(appObject) {
|
|
16
|
+
return new GetAssetBlobURLUCImp(appObject);
|
|
17
|
+
}
|
|
18
|
+
exports.makeGetAssetBlobURLUC = makeGetAssetBlobURLUC;
|
|
19
|
+
class GetAssetBlobURLUCImp extends GetAssetBlobURLUC {
|
|
20
|
+
constructor(appObject) {
|
|
21
|
+
super(appObject, GetAssetBlobURLUC.type);
|
|
22
|
+
this.getAssetBlobURL = (assetID) => {
|
|
23
|
+
const assetRepo = this.assetRepo;
|
|
24
|
+
const getAsset = this.getAsset;
|
|
25
|
+
const fetchAssetFile = this.fetchAssetFile;
|
|
26
|
+
if (!assetRepo || !getAsset || !fetchAssetFile) {
|
|
27
|
+
return Promise.reject();
|
|
28
|
+
}
|
|
29
|
+
const existing = assetRepo.get(assetID);
|
|
30
|
+
if (existing && existing.blobURL) {
|
|
31
|
+
return Promise.resolve(existing.blobURL);
|
|
32
|
+
}
|
|
33
|
+
return new Promise((resolve, reject) => {
|
|
34
|
+
let fetchedAsset;
|
|
35
|
+
getAsset(assetID)
|
|
36
|
+
.then((asset) => {
|
|
37
|
+
asset.isFetchingFile = true;
|
|
38
|
+
asset.fetchError = undefined;
|
|
39
|
+
fetchedAsset = asset;
|
|
40
|
+
return fetchAssetFile(asset);
|
|
41
|
+
})
|
|
42
|
+
.then((file) => {
|
|
43
|
+
if (fetchedAsset) {
|
|
44
|
+
fetchedAsset.setFile(file);
|
|
45
|
+
fetchedAsset.isFetchingFile = false;
|
|
46
|
+
if (fetchedAsset.blobURL) {
|
|
47
|
+
resolve(fetchedAsset.blobURL);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
reject(new Error("Blob URL is empty"));
|
|
52
|
+
})
|
|
53
|
+
.catch((e) => {
|
|
54
|
+
if (fetchedAsset) {
|
|
55
|
+
fetchedAsset.fetchError = e;
|
|
56
|
+
fetchedAsset.isFetchingFile = false;
|
|
57
|
+
}
|
|
58
|
+
reject(e);
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
this.appObjects.registerSingleton(this);
|
|
63
|
+
this.assetRepo = appObject.getComponent(AssetRepo_1.AssetRepo.type);
|
|
64
|
+
if (!this.assetRepo) {
|
|
65
|
+
this.error("UC added to an App Object that does not have AssetRepo");
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
get fetchAssetFile() {
|
|
70
|
+
var _a;
|
|
71
|
+
return (_a = this.getCachedSingleton(VivedAPI_1.FetchAssetFileFromAPIUC.type)) === null || _a === void 0 ? void 0 : _a.doFetch;
|
|
72
|
+
}
|
|
73
|
+
get getAsset() {
|
|
74
|
+
var _a;
|
|
75
|
+
return (_a = this.getCachedSingleton(GetAssetUC_1.GetAssetUC.type)) === null || _a === void 0 ? void 0 : _a.getAsset;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HostAppObject, HostAppObjectRepo, HostAppObjectUC } from "../../../HostAppObject";
|
|
2
|
+
export declare abstract class GetAssetFileUC extends HostAppObjectUC {
|
|
3
|
+
static type: string;
|
|
4
|
+
abstract getAssetFile(assetID: string): Promise<File>;
|
|
5
|
+
static get(appObjects: HostAppObjectRepo): GetAssetFileUC | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare function makeGetAssetFileUC(appObject: HostAppObject): GetAssetFileUC;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeGetAssetFileUC = exports.GetAssetFileUC = void 0;
|
|
4
|
+
const HostAppObject_1 = require("../../../HostAppObject");
|
|
5
|
+
const VivedAPI_1 = require("../../VivedAPI");
|
|
6
|
+
const AssetRepo_1 = require("../Entities/AssetRepo");
|
|
7
|
+
const GetAssetUC_1 = require("./GetAssetUC");
|
|
8
|
+
class GetAssetFileUC extends HostAppObject_1.HostAppObjectUC {
|
|
9
|
+
static get(appObjects) {
|
|
10
|
+
return HostAppObject_1.getSingletonComponent(GetAssetFileUC.type, appObjects);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.GetAssetFileUC = GetAssetFileUC;
|
|
14
|
+
GetAssetFileUC.type = "GetAssetFileUC";
|
|
15
|
+
function makeGetAssetFileUC(appObject) {
|
|
16
|
+
return new GetAssetFileUCImp(appObject);
|
|
17
|
+
}
|
|
18
|
+
exports.makeGetAssetFileUC = makeGetAssetFileUC;
|
|
19
|
+
class GetAssetFileUCImp extends GetAssetFileUC {
|
|
20
|
+
constructor(appObject) {
|
|
21
|
+
super(appObject, GetAssetFileUC.type);
|
|
22
|
+
this.getAssetFile = (assetID) => {
|
|
23
|
+
const assetRepo = this.assetRepo;
|
|
24
|
+
const getAsset = this.getAsset;
|
|
25
|
+
const fetchAssetFile = this.fetchAssetFile;
|
|
26
|
+
if (!assetRepo || !getAsset || !fetchAssetFile) {
|
|
27
|
+
return Promise.reject();
|
|
28
|
+
}
|
|
29
|
+
const existing = assetRepo.get(assetID);
|
|
30
|
+
if (existing && existing.file) {
|
|
31
|
+
return Promise.resolve(existing.file);
|
|
32
|
+
}
|
|
33
|
+
return new Promise((resolve, reject) => {
|
|
34
|
+
let fetchedAsset;
|
|
35
|
+
getAsset(assetID)
|
|
36
|
+
.then((asset) => {
|
|
37
|
+
asset.isFetchingFile = true;
|
|
38
|
+
asset.fetchError = undefined;
|
|
39
|
+
fetchedAsset = asset;
|
|
40
|
+
return fetchAssetFile(asset);
|
|
41
|
+
})
|
|
42
|
+
.then((file) => {
|
|
43
|
+
if (fetchedAsset) {
|
|
44
|
+
fetchedAsset.setFile(file);
|
|
45
|
+
fetchedAsset.isFetchingFile = false;
|
|
46
|
+
}
|
|
47
|
+
resolve(file);
|
|
48
|
+
})
|
|
49
|
+
.catch((e) => {
|
|
50
|
+
if (fetchedAsset) {
|
|
51
|
+
fetchedAsset.fetchError = e;
|
|
52
|
+
fetchedAsset.isFetchingFile = false;
|
|
53
|
+
}
|
|
54
|
+
reject(e);
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
this.appObjects.registerSingleton(this);
|
|
59
|
+
this.assetRepo = appObject.getComponent(AssetRepo_1.AssetRepo.type);
|
|
60
|
+
if (!this.assetRepo) {
|
|
61
|
+
this.error("UC added to an App Object that does not have AssetRepo");
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
get fetchAssetFile() {
|
|
66
|
+
var _a;
|
|
67
|
+
return (_a = this.getCachedSingleton(VivedAPI_1.FetchAssetFileFromAPIUC.type)) === null || _a === void 0 ? void 0 : _a.doFetch;
|
|
68
|
+
}
|
|
69
|
+
get getAsset() {
|
|
70
|
+
var _a;
|
|
71
|
+
return (_a = this.getCachedSingleton(GetAssetUC_1.GetAssetUC.type)) === null || _a === void 0 ? void 0 : _a.getAsset;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HostAppObject, HostAppObjectRepo, HostAppObjectUC } from "../../../HostAppObject";
|
|
2
|
+
import { AssetEntity } from "../Entities/AssetEntity";
|
|
3
|
+
export declare abstract class GetAssetUC extends HostAppObjectUC {
|
|
4
|
+
static type: string;
|
|
5
|
+
abstract getAsset(assetID: string): Promise<AssetEntity>;
|
|
6
|
+
static get(appObjects: HostAppObjectRepo): GetAssetUC | undefined;
|
|
7
|
+
}
|
|
8
|
+
export declare function makeGetAssetUC(appObject: HostAppObject): GetAssetUC;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeGetAssetUC = exports.GetAssetUC = void 0;
|
|
4
|
+
const HostAppObject_1 = require("../../../HostAppObject");
|
|
5
|
+
const VivedAPI_1 = require("../../VivedAPI");
|
|
6
|
+
const AssetRepo_1 = require("../Entities/AssetRepo");
|
|
7
|
+
class GetAssetUC extends HostAppObject_1.HostAppObjectUC {
|
|
8
|
+
static get(appObjects) {
|
|
9
|
+
return HostAppObject_1.getSingletonComponent(GetAssetUC.type, appObjects);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.GetAssetUC = GetAssetUC;
|
|
13
|
+
GetAssetUC.type = "GetAssetUC";
|
|
14
|
+
function makeGetAssetUC(appObject) {
|
|
15
|
+
return new GetAssetUCImp(appObject);
|
|
16
|
+
}
|
|
17
|
+
exports.makeGetAssetUC = makeGetAssetUC;
|
|
18
|
+
class GetAssetUCImp extends GetAssetUC {
|
|
19
|
+
constructor(appObject) {
|
|
20
|
+
super(appObject, GetAssetUC.type);
|
|
21
|
+
this.getAsset = (assetID) => {
|
|
22
|
+
const assetRepo = this.assetRepo;
|
|
23
|
+
const fetchAssetMeta = this.fetchAssetMeta;
|
|
24
|
+
if (!assetRepo || !fetchAssetMeta) {
|
|
25
|
+
return Promise.reject();
|
|
26
|
+
}
|
|
27
|
+
if (assetRepo.has(assetID)) {
|
|
28
|
+
return Promise.resolve(assetRepo.get(assetID));
|
|
29
|
+
}
|
|
30
|
+
return new Promise((resolve, reject) => {
|
|
31
|
+
fetchAssetMeta(assetID)
|
|
32
|
+
.then((baseDTO) => {
|
|
33
|
+
const baseAsset = assetRepo.addFromDTO(baseDTO);
|
|
34
|
+
resolve(baseAsset);
|
|
35
|
+
})
|
|
36
|
+
.catch((e) => {
|
|
37
|
+
this.warn(e.message);
|
|
38
|
+
reject(e);
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
this.appObjects.registerSingleton(this);
|
|
43
|
+
this.assetRepo = appObject.getComponent(AssetRepo_1.AssetRepo.type);
|
|
44
|
+
if (!this.assetRepo) {
|
|
45
|
+
this.error("UC added to an App Object that does not have AssetRepo");
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
get fetchAssetMeta() {
|
|
50
|
+
var _a;
|
|
51
|
+
return (_a = this.getCachedSingleton(VivedAPI_1.FetchAssetMetaFromAPIUC.type)) === null || _a === void 0 ? void 0 : _a.doFetch;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HostAppObject, HostAppObjectRepo, HostAppObjectUC } from '../../../HostAppObject';
|
|
2
|
+
export declare abstract class UpdateAssetIsArchivedUC extends HostAppObjectUC {
|
|
3
|
+
static type: string;
|
|
4
|
+
abstract setIsArchived(assetID: string, isArchived: boolean): Promise<void>;
|
|
5
|
+
static get(hostAppObjects: HostAppObjectRepo): UpdateAssetIsArchivedUC | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare function makeUpdateAssetIsArchivedUC(appObject: HostAppObject): UpdateAssetIsArchivedUC;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeUpdateAssetIsArchivedUC = exports.UpdateAssetIsArchivedUC = void 0;
|
|
4
|
+
const HostAppObject_1 = require("../../../HostAppObject");
|
|
5
|
+
const AppAssetsEntity_1 = require("../Entities/AppAssetsEntity");
|
|
6
|
+
const AssetRepo_1 = require("../Entities/AssetRepo");
|
|
7
|
+
class UpdateAssetIsArchivedUC extends HostAppObject_1.HostAppObjectUC {
|
|
8
|
+
static get(hostAppObjects) {
|
|
9
|
+
return HostAppObject_1.getSingletonComponent(UpdateAssetIsArchivedUC.type, hostAppObjects);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.UpdateAssetIsArchivedUC = UpdateAssetIsArchivedUC;
|
|
13
|
+
UpdateAssetIsArchivedUC.type = 'UpdateAssetIsArchivedUC';
|
|
14
|
+
function makeUpdateAssetIsArchivedUC(appObject) {
|
|
15
|
+
return new UpdateAssetIsArchivedUCImp(appObject);
|
|
16
|
+
}
|
|
17
|
+
exports.makeUpdateAssetIsArchivedUC = makeUpdateAssetIsArchivedUC;
|
|
18
|
+
class UpdateAssetIsArchivedUCImp extends UpdateAssetIsArchivedUC {
|
|
19
|
+
constructor(appObject) {
|
|
20
|
+
super(appObject, UpdateAssetIsArchivedUC.type);
|
|
21
|
+
this.setIsArchived = (assetID, isArchived) => {
|
|
22
|
+
const assetRepo = this.assetRepo;
|
|
23
|
+
if (!assetRepo) {
|
|
24
|
+
return Promise.reject();
|
|
25
|
+
}
|
|
26
|
+
return new Promise((resolve, reject) => {
|
|
27
|
+
assetRepo
|
|
28
|
+
.get(assetID)
|
|
29
|
+
.then((asset) => {
|
|
30
|
+
if (asset.archived === isArchived) {
|
|
31
|
+
resolve();
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
assetRepo
|
|
35
|
+
.setAssetArchived(assetID, isArchived)
|
|
36
|
+
.then(() => {
|
|
37
|
+
var _a;
|
|
38
|
+
asset.archived = isArchived;
|
|
39
|
+
(_a = this.appAssets) === null || _a === void 0 ? void 0 : _a.notifyOnChange();
|
|
40
|
+
resolve();
|
|
41
|
+
})
|
|
42
|
+
.catch((e) => {
|
|
43
|
+
reject(e);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
})
|
|
47
|
+
.catch((e) => {
|
|
48
|
+
reject(new Error('Unable to find app asset by id ' + assetID));
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
get assetRepo() {
|
|
54
|
+
return this.getCachedSingleton(AssetRepo_1.AssetRepo.type);
|
|
55
|
+
}
|
|
56
|
+
get appAssets() {
|
|
57
|
+
return this.getCachedSingleton(AppAssetsEntity_1.AppAssetsEntity.type);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HostAppObject, HostAppObjectRepo, HostAppObjectUC } from "../../../HostAppObject";
|
|
2
|
+
export interface UpdateAssetMetaDTO {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
archived: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare abstract class UpdateAssetFileUC extends HostAppObjectUC {
|
|
8
|
+
static type: string;
|
|
9
|
+
abstract updateFile(file: File): Promise<void>;
|
|
10
|
+
static get(assetID: string, appObjects: HostAppObjectRepo): UpdateAssetFileUC | undefined;
|
|
11
|
+
}
|
|
12
|
+
export declare function makeUpdateAssetFileUC(appObject: HostAppObject): UpdateAssetFileUC;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeUpdateAssetFileUC = exports.UpdateAssetFileUC = void 0;
|
|
4
|
+
const HostAppObject_1 = require("../../../HostAppObject");
|
|
5
|
+
const Dialog_1 = require("../../Dialog");
|
|
6
|
+
const VivedAPI_1 = require("../../VivedAPI");
|
|
7
|
+
const AssetEntity_1 = require("../Entities/AssetEntity");
|
|
8
|
+
class UpdateAssetFileUC extends HostAppObject_1.HostAppObjectUC {
|
|
9
|
+
static get(assetID, appObjects) {
|
|
10
|
+
const appObject = appObjects.get(assetID);
|
|
11
|
+
if (!appObject) {
|
|
12
|
+
appObjects.submitWarning("UpdateAssetFileUC.get", "Unable to find app object");
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
const uc = appObject.getComponent(UpdateAssetFileUC.type);
|
|
16
|
+
if (!uc) {
|
|
17
|
+
appObjects.submitWarning("UpdateAssetFileUC.get", "App Object does not have UpdateAssetFileUC");
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
return uc;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.UpdateAssetFileUC = UpdateAssetFileUC;
|
|
24
|
+
UpdateAssetFileUC.type = "UpdateAssetFileUC";
|
|
25
|
+
function makeUpdateAssetFileUC(appObject) {
|
|
26
|
+
return new UpdateAssetFileUCImp(appObject);
|
|
27
|
+
}
|
|
28
|
+
exports.makeUpdateAssetFileUC = makeUpdateAssetFileUC;
|
|
29
|
+
class UpdateAssetFileUCImp extends UpdateAssetFileUC {
|
|
30
|
+
constructor(appObject) {
|
|
31
|
+
super(appObject, UpdateAssetFileUC.type);
|
|
32
|
+
this.updateFile = (file) => {
|
|
33
|
+
const asset = this.asset;
|
|
34
|
+
if (!asset) {
|
|
35
|
+
return Promise.reject(new Error("No Asset Entity"));
|
|
36
|
+
}
|
|
37
|
+
const patchAssetFile = this.patchAssetFile;
|
|
38
|
+
const dialogQueue = this.dialogQueue;
|
|
39
|
+
if (!patchAssetFile || !dialogQueue) {
|
|
40
|
+
return Promise.reject();
|
|
41
|
+
}
|
|
42
|
+
const spinnerDialog = dialogQueue.spinnerDialogFactory({
|
|
43
|
+
title: "Asset File",
|
|
44
|
+
message: "Updating asset's file..."
|
|
45
|
+
});
|
|
46
|
+
if (spinnerDialog)
|
|
47
|
+
dialogQueue.submitDialog(spinnerDialog);
|
|
48
|
+
return new Promise((resolve, reject) => {
|
|
49
|
+
patchAssetFile(asset.id, file)
|
|
50
|
+
.then((newFilename) => {
|
|
51
|
+
asset.setFile(file);
|
|
52
|
+
asset.filename = newFilename;
|
|
53
|
+
spinnerDialog === null || spinnerDialog === void 0 ? void 0 : spinnerDialog.close();
|
|
54
|
+
resolve();
|
|
55
|
+
})
|
|
56
|
+
.catch((e) => {
|
|
57
|
+
this.error("Patch asset file error: " + e.message);
|
|
58
|
+
spinnerDialog === null || spinnerDialog === void 0 ? void 0 : spinnerDialog.close();
|
|
59
|
+
const dialogDTO = {
|
|
60
|
+
buttonLabel: "OK",
|
|
61
|
+
message: `Something went wrong when updating the asset's file. Check the console. ${e.message}`,
|
|
62
|
+
title: "Update Asset File Error",
|
|
63
|
+
};
|
|
64
|
+
const confirmDialog = dialogQueue.alertDialogFactory(dialogDTO);
|
|
65
|
+
if (confirmDialog)
|
|
66
|
+
dialogQueue.submitDialog(confirmDialog);
|
|
67
|
+
resolve();
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
this.asset = appObject.getComponent(AssetEntity_1.AssetEntity.type);
|
|
72
|
+
if (!this.asset) {
|
|
73
|
+
this.error("UC has been added to an App Object that does not have ArchiveAssetUC");
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
get patchAssetFile() {
|
|
77
|
+
var _a;
|
|
78
|
+
return (_a = this.getCachedSingleton(VivedAPI_1.PatchAssetFileUC.type)) === null || _a === void 0 ? void 0 : _a.doPatch;
|
|
79
|
+
}
|
|
80
|
+
get dialogQueue() {
|
|
81
|
+
return this.getCachedSingleton(Dialog_1.DialogQueue.type);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './ArchiveAssetUC';
|
|
2
|
+
export * from './DeleteAssetUC';
|
|
3
|
+
export * from './DownloadAssetFileUC';
|
|
4
|
+
export * from './GetAppAssetsUC';
|
|
5
|
+
export * from './GetAssetBlobURLUC';
|
|
6
|
+
export * from './GetAssetFileUC';
|
|
7
|
+
export * from './GetAssetUC';
|
|
8
|
+
export * from './UpdateAssetFileUC';
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./ArchiveAssetUC"), exports);
|
|
14
|
+
__exportStar(require("./DeleteAssetUC"), exports);
|
|
15
|
+
__exportStar(require("./DownloadAssetFileUC"), exports);
|
|
16
|
+
__exportStar(require("./GetAppAssetsUC"), exports);
|
|
17
|
+
__exportStar(require("./GetAssetBlobURLUC"), exports);
|
|
18
|
+
__exportStar(require("./GetAssetFileUC"), exports);
|
|
19
|
+
__exportStar(require("./GetAssetUC"), exports);
|
|
20
|
+
__exportStar(require("./UpdateAssetFileUC"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./Controllers"), exports);
|
|
14
|
+
__exportStar(require("./Entities"), exports);
|
|
15
|
+
__exportStar(require("./Mocks"), exports);
|
|
16
|
+
__exportStar(require("./PMs"), exports);
|
|
17
|
+
__exportStar(require("./UCs"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.activeDialogHasClosed = void 0;
|
|
4
|
+
const Entities_1 = require("../Entities");
|
|
5
|
+
function activeDialogHasClosed(appObjects) {
|
|
6
|
+
const dialogQueue = Entities_1.DialogQueue.get(appObjects);
|
|
7
|
+
if (dialogQueue) {
|
|
8
|
+
dialogQueue.activeDialogHasClosed();
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
appObjects.submitWarning('activeDialogHasClosed', 'Unable to find DialogQueue');
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.activeDialogHasClosed = activeDialogHasClosed;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./activeDialogHasClosed";
|
|
@@ -0,0 +1,13 @@
|
|
|
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("./activeDialogHasClosed"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { HostAppObject, HostAppObjectRepo } from '../../../HostAppObject';
|
|
2
|
+
import { Dialog } from './DialogQueue';
|
|
3
|
+
export interface DialogAlertDTO {
|
|
4
|
+
message: string;
|
|
5
|
+
title: string;
|
|
6
|
+
buttonLabel: string;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
preventOutsideDismiss?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const alertDialogType = "ALERT";
|
|
11
|
+
export declare class AlertDialogEntity extends Dialog {
|
|
12
|
+
static type: string;
|
|
13
|
+
static get(assetID: string, appObjects: HostAppObjectRepo): AlertDialogEntity | undefined;
|
|
14
|
+
readonly dialogType = "ALERT";
|
|
15
|
+
readonly title: string;
|
|
16
|
+
readonly message: string;
|
|
17
|
+
readonly buttonLabel: string;
|
|
18
|
+
readonly preventOutsideDismiss: boolean;
|
|
19
|
+
private postClose?;
|
|
20
|
+
close: () => void;
|
|
21
|
+
private _isOpen;
|
|
22
|
+
get isOpen(): boolean;
|
|
23
|
+
set isOpen(val: boolean);
|
|
24
|
+
constructor(data: DialogAlertDTO, appObject: HostAppObject);
|
|
25
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AlertDialogEntity = exports.alertDialogType = void 0;
|
|
4
|
+
const Entities_1 = require("../../../Entities");
|
|
5
|
+
const DialogQueue_1 = require("./DialogQueue");
|
|
6
|
+
exports.alertDialogType = 'ALERT';
|
|
7
|
+
class AlertDialogEntity extends DialogQueue_1.Dialog {
|
|
8
|
+
constructor(data, appObject) {
|
|
9
|
+
super(appObject, AlertDialogEntity.type);
|
|
10
|
+
this.dialogType = exports.alertDialogType;
|
|
11
|
+
this.preventOutsideDismiss = false;
|
|
12
|
+
this.close = () => {
|
|
13
|
+
this.isOpen = false;
|
|
14
|
+
if (this.postClose) {
|
|
15
|
+
this.postClose();
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
this._isOpen = new Entities_1.MemoizedBoolean(false, this.notifyOnChange);
|
|
19
|
+
this.buttonLabel = data.buttonLabel;
|
|
20
|
+
this.message = data.message;
|
|
21
|
+
this.title = data.title;
|
|
22
|
+
this.postClose = data.onClose;
|
|
23
|
+
if (data.preventOutsideDismiss !== undefined) {
|
|
24
|
+
this.preventOutsideDismiss = data.preventOutsideDismiss;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
static get(assetID, appObjects) {
|
|
28
|
+
const appObject = appObjects.get(assetID);
|
|
29
|
+
if (!appObject) {
|
|
30
|
+
appObjects.submitWarning('AlertDialogEntity.get', 'Unable to find app object');
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
const uc = appObject.getComponent(AlertDialogEntity.type);
|
|
34
|
+
if (!uc) {
|
|
35
|
+
appObjects.submitWarning('AlertDialogEntity.get', 'App Object does not have AlertDialogEntity');
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
return uc;
|
|
39
|
+
}
|
|
40
|
+
get isOpen() {
|
|
41
|
+
return this._isOpen.val;
|
|
42
|
+
}
|
|
43
|
+
set isOpen(val) {
|
|
44
|
+
this._isOpen.val = val;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.AlertDialogEntity = AlertDialogEntity;
|
|
48
|
+
AlertDialogEntity.type = 'AlertDialogEntity';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HostAppObject, HostAppObjectRepo } from '../../../HostAppObject';
|
|
2
|
+
import { Dialog } from './DialogQueue';
|
|
3
|
+
export interface DialogConfirmDTO {
|
|
4
|
+
message: string;
|
|
5
|
+
title: string;
|
|
6
|
+
confirmButtonLabel: string;
|
|
7
|
+
cancelButtonLabel: string;
|
|
8
|
+
onCancel?: () => void;
|
|
9
|
+
onConfirm?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const confirmDialogType = "CONFIRM";
|
|
12
|
+
export declare class ConfirmDialogEntity extends Dialog {
|
|
13
|
+
static type: string;
|
|
14
|
+
static get(assetID: string, appObjects: HostAppObjectRepo): ConfirmDialogEntity | undefined;
|
|
15
|
+
readonly dialogType = "CONFIRM";
|
|
16
|
+
readonly title: string;
|
|
17
|
+
readonly message: string;
|
|
18
|
+
readonly confirmButtonLabel: string;
|
|
19
|
+
readonly cancelButtonLabel: string;
|
|
20
|
+
readonly preventOutsideDismiss = true;
|
|
21
|
+
private postCancel?;
|
|
22
|
+
cancel: () => void;
|
|
23
|
+
private postConfirm?;
|
|
24
|
+
confirm: () => void;
|
|
25
|
+
private _isOpen;
|
|
26
|
+
get isOpen(): boolean;
|
|
27
|
+
set isOpen(val: boolean);
|
|
28
|
+
constructor(data: DialogConfirmDTO, appObject: HostAppObject);
|
|
29
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfirmDialogEntity = exports.confirmDialogType = void 0;
|
|
4
|
+
const Entities_1 = require("../../../Entities");
|
|
5
|
+
const DialogQueue_1 = require("./DialogQueue");
|
|
6
|
+
exports.confirmDialogType = 'CONFIRM';
|
|
7
|
+
class ConfirmDialogEntity extends DialogQueue_1.Dialog {
|
|
8
|
+
constructor(data, appObject) {
|
|
9
|
+
super(appObject, ConfirmDialogEntity.type);
|
|
10
|
+
this.dialogType = exports.confirmDialogType;
|
|
11
|
+
this.preventOutsideDismiss = true;
|
|
12
|
+
this.cancel = () => {
|
|
13
|
+
this.isOpen = false;
|
|
14
|
+
if (this.postCancel) {
|
|
15
|
+
this.postCancel();
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
this.confirm = () => {
|
|
19
|
+
this.isOpen = false;
|
|
20
|
+
if (this.postConfirm) {
|
|
21
|
+
this.postConfirm();
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
this._isOpen = new Entities_1.MemoizedBoolean(false, this.notifyOnChange);
|
|
25
|
+
this.confirmButtonLabel = data.confirmButtonLabel;
|
|
26
|
+
this.cancelButtonLabel = data.cancelButtonLabel;
|
|
27
|
+
this.message = data.message;
|
|
28
|
+
this.title = data.title;
|
|
29
|
+
this.postCancel = data.onCancel;
|
|
30
|
+
this.postConfirm = data.onConfirm;
|
|
31
|
+
}
|
|
32
|
+
static get(assetID, appObjects) {
|
|
33
|
+
const appObject = appObjects.get(assetID);
|
|
34
|
+
if (!appObject) {
|
|
35
|
+
appObjects.submitWarning('ConfirmDialogEntity.get', 'Unable to find app object');
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
const uc = appObject.getComponent(ConfirmDialogEntity.type);
|
|
39
|
+
if (!uc) {
|
|
40
|
+
appObjects.submitWarning('ConfirmDialogEntity.get', 'App Object does not have ConfirmDialogEntity');
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
return uc;
|
|
44
|
+
}
|
|
45
|
+
get isOpen() {
|
|
46
|
+
return this._isOpen.val;
|
|
47
|
+
}
|
|
48
|
+
set isOpen(val) {
|
|
49
|
+
this._isOpen.val = val;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.ConfirmDialogEntity = ConfirmDialogEntity;
|
|
53
|
+
ConfirmDialogEntity.type = 'ConfirmDialogEntity';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { HostAppObject, HostAppObjectRepo } from '../../../HostAppObject';
|
|
2
|
+
import { Dialog } from './DialogQueue';
|
|
3
|
+
export interface DialogAlertDTO {
|
|
4
|
+
message: string;
|
|
5
|
+
title: string;
|
|
6
|
+
buttonLabel: string;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
preventOutsideDismiss?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const alertDialogType = "ALERT";
|
|
11
|
+
export declare class DialogAlertEntity extends Dialog {
|
|
12
|
+
static type: string;
|
|
13
|
+
static get(assetID: string, appObjects: HostAppObjectRepo): DialogAlertEntity | undefined;
|
|
14
|
+
readonly dialogType = "ALERT";
|
|
15
|
+
readonly title: string;
|
|
16
|
+
readonly message: string;
|
|
17
|
+
readonly buttonLabel: string;
|
|
18
|
+
readonly preventOutsideDismiss: boolean;
|
|
19
|
+
private postClose?;
|
|
20
|
+
close: () => void;
|
|
21
|
+
private _isOpen;
|
|
22
|
+
get isOpen(): boolean;
|
|
23
|
+
set isOpen(val: boolean);
|
|
24
|
+
constructor(data: DialogAlertDTO, appObject: HostAppObject);
|
|
25
|
+
}
|