feat: add StartupDataStorage

This class will let scripts retrieve and modify the startup data object.

Change-Id: I83298612425ab8a87ce5b83c7b83c62088af56ac
diff --git a/src/scripts/startupDataStorage/baseApplyStartupDataModifications.script.ts b/src/scripts/startupDataStorage/baseApplyStartupDataModifications.script.ts
new file mode 100644
index 0000000..1686b77
--- /dev/null
+++ b/src/scripts/startupDataStorage/baseApplyStartupDataModifications.script.ts
@@ -0,0 +1,26 @@
+import DependenciesProviderSingleton, {
+  StartupDataStorageDependency,
+} from '../../common/architecture/dependenciesProvider/DependenciesProvider';
+import Script, {
+  ScriptEnvironment,
+  ScriptPage,
+} from '../../common/architecture/scripts/Script';
+
+/**
+ * Base class which applies pending startup data modifications which have been
+ * added by other scripts.
+ */
+export default abstract class BaseApplyStartupDataModificationsScript extends Script {
+  priority = 2 ** 32;
+
+  page = ScriptPage.CommunityConsole;
+  environment = ScriptEnvironment.ContentScript;
+
+  execute() {
+    const dependenciesProvider = DependenciesProviderSingleton.getInstance();
+    const startupDataStoarge = dependenciesProvider.getDependency(
+      StartupDataStorageDependency,
+    );
+    startupDataStoarge.applyModifications();
+  }
+}