chore: refetch subscription when prefs menu opens (#2360)

This commit is contained in:
Mo
2023-07-17 09:04:22 -05:00
committed by GitHub
parent a56e1f5398
commit 7fb33c400c
31 changed files with 113 additions and 66 deletions

View File

@@ -1,4 +1,4 @@
import { ValetTokenOperation } from './ValetTokenOperation'
import { ValetTokenOperation } from '../Temp/ValetTokenOperation'
export type CreateValetTokenPayload = {
operation: ValetTokenOperation

View File

@@ -1 +0,0 @@
export type ValetTokenOperation = 'read' | 'write' | 'delete' | 'move'

View File

@@ -1,4 +1,4 @@
import { Role } from '@standardnotes/security'
import { Role } from '../Temp/Role'
export type DeprecatedResponseMeta = {
auth: {

View File

@@ -1,4 +1,4 @@
import { Role } from '@standardnotes/security'
import { Role } from '../Temp/Role'
export type HttpResponseMeta = {
auth: {

View File

@@ -0,0 +1,4 @@
export type Role = {
uuid: string
name: string
}

View File

@@ -0,0 +1 @@
export type SharedVaultMoveType = 'shared-vault-to-user' | 'user-to-shared-vault' | 'shared-vault-to-shared-vault'

View File

@@ -0,0 +1,7 @@
export type Subscription = {
planName: string
endsAt: number
createdAt: number
updatedAt: number
cancelled: boolean
}

View File

@@ -0,0 +1,6 @@
export enum ValetTokenOperation {
Read = 'read',
Write = 'write',
Delete = 'delete',
Move = 'move',
}

View File

@@ -1,4 +1,4 @@
import { Subscription } from '@standardnotes/security'
import { Subscription } from '../Temp/Subscription'
export type GetSubscriptionResponse = {
subscription?: Subscription

View File

@@ -14,6 +14,12 @@ export * from './Auth/SignInResponse'
export * from './Auth/SignOutResponse'
export * from './Auth/User'
/** Temps are awaiting final publish state on server repo */
export * from './Temp/SharedVaultMoveType'
export * from './Temp/Subscription'
export * from './Temp/ValetTokenOperation'
export * from './Temp/Role'
export * from './Error/ClientDisplayableError'
export * from './Files/CloseUploadSessionResponse'
@@ -24,7 +30,6 @@ export * from './Files/DownloadFileChunkResponse'
export * from './Files/StartUploadSessionResponse'
export * from './Files/UploadFileChunkResponse'
export * from './Files/MoveFileResponse'
export * from './Files/ValetTokenOperation'
export * from './Http'