refactor: native feature management (#2350)

This commit is contained in:
Mo
2023-07-12 12:56:08 -05:00
committed by GitHub
parent 49f7581cd8
commit 078ef3772c
223 changed files with 3996 additions and 3438 deletions

View File

@@ -1,4 +1,4 @@
import { FeatureDescription } from '@standardnotes/features'
import { AnyFeatureDescription } from '@standardnotes/features'
import { SubscriptionName } from '@standardnotes/common'
export type AvailableSubscriptions = {
@@ -8,6 +8,6 @@ export type AvailableSubscriptions = {
price: number
period: string
}[]
features: FeatureDescription[]
features: AnyFeatureDescription[]
}
}

View File

@@ -1,6 +1,6 @@
import { FeatureDescription } from '@standardnotes/features'
import { AnyFeatureDescription } from '@standardnotes/features'
export type GetOfflineFeaturesResponse = {
features: FeatureDescription[]
features: AnyFeatureDescription[]
roles: string[]
}

View File

@@ -1,5 +0,0 @@
import { FeatureDescription } from '@standardnotes/features'
export type UserFeaturesData = {
features: FeatureDescription[]
}

View File

@@ -1,3 +0,0 @@
import { UserFeaturesData } from './UserFeaturesData'
export type UserFeaturesResponse = UserFeaturesData

View File

@@ -61,8 +61,6 @@ export * from './User/ListSettingsResponse'
export * from './User/PostSubscriptionTokensResponse'
export * from './User/SettingData'
export * from './User/UpdateSettingResponse'
export * from './User/UserFeaturesData'
export * from './User/UserFeaturesResponse'
export * from './UserEvent/UserEventServerHash'
export * from './UserEvent/UserEventType'