chore: add option to transition your data - internal feature (#2449)
* chore: add option to transition your data - internal feature * chore: fix spec typo
This commit is contained in:
@@ -81,6 +81,8 @@ import {
|
||||
GenerateUuid,
|
||||
CreateDecryptedBackupFile,
|
||||
CreateEncryptedBackupFile,
|
||||
GetTransitionStatus,
|
||||
StartTransition,
|
||||
} from '@standardnotes/services'
|
||||
import {
|
||||
SNNote,
|
||||
@@ -1138,6 +1140,14 @@ export class SNApplication implements ApplicationInterface, AppGroupManagedAppli
|
||||
return this.dependencies.get<SetHost>(TYPES.SetHost)
|
||||
}
|
||||
|
||||
get getTransitionStatus(): GetTransitionStatus {
|
||||
return this.dependencies.get<GetTransitionStatus>(TYPES.GetTransitionStatus)
|
||||
}
|
||||
|
||||
get startTransition(): StartTransition {
|
||||
return this.dependencies.get<StartTransition>(TYPES.StartTransition)
|
||||
}
|
||||
|
||||
public get legacyApi(): LegacyApiService {
|
||||
return this.dependencies.get<LegacyApiService>(TYPES.LegacyApiService)
|
||||
}
|
||||
|
||||
@@ -141,6 +141,8 @@ import {
|
||||
CreateDecryptedBackupFile,
|
||||
CreateEncryptedBackupFile,
|
||||
SyncLocalVaultsWithRemoteSharedVaults,
|
||||
GetTransitionStatus,
|
||||
StartTransition,
|
||||
} from '@standardnotes/services'
|
||||
import { ItemManager } from '../../Services/Items/ItemManager'
|
||||
import { PayloadManager } from '../../Services/Payloads/PayloadManager'
|
||||
@@ -153,6 +155,7 @@ import {
|
||||
AuthenticatorApiService,
|
||||
AuthenticatorServer,
|
||||
HttpService,
|
||||
HttpServiceInterface,
|
||||
RevisionApiService,
|
||||
RevisionServer,
|
||||
SharedVaultInvitesServer,
|
||||
@@ -1023,6 +1026,14 @@ export class Dependencies {
|
||||
)
|
||||
})
|
||||
|
||||
this.factory.set(TYPES.GetTransitionStatus, () => {
|
||||
return new GetTransitionStatus(this.get<HttpServiceInterface>(TYPES.HttpService))
|
||||
})
|
||||
|
||||
this.factory.set(TYPES.StartTransition, () => {
|
||||
return new StartTransition(this.get<HttpServiceInterface>(TYPES.HttpService))
|
||||
})
|
||||
|
||||
this.factory.set(TYPES.ListRevisions, () => {
|
||||
return new ListRevisions(this.get<RevisionManager>(TYPES.RevisionManager))
|
||||
})
|
||||
|
||||
@@ -171,6 +171,8 @@ export const TYPES = {
|
||||
AuthorizeVaultDeletion: Symbol.for('AuthorizeVaultDeletion'),
|
||||
CreateDecryptedBackupFile: Symbol.for('CreateDecryptedBackupFile'),
|
||||
CreateEncryptedBackupFile: Symbol.for('CreateEncryptedBackupFile'),
|
||||
GetTransitionStatus: Symbol.for('GetTransitionStatus'),
|
||||
StartTransition: Symbol.for('StartTransition'),
|
||||
|
||||
// Mappers
|
||||
SessionStorageMapper: Symbol.for('SessionStorageMapper'),
|
||||
|
||||
Reference in New Issue
Block a user