Send new fields to the client

This commit is contained in:
Jonas L
2019-06-03 00:00:00 +00:00
parent 0d86dab5fe
commit 65200e83c2
2 changed files with 10 additions and 4 deletions
+8 -4
View File
@@ -98,7 +98,8 @@ export const generateServerDataStatus = async ({ database, clientStatus, familyI
hOverlay: item.highestOverlayPermission,
asEnabled: item.asEnabled,
wasAsEnabled: item.wasAsEnabled,
activityLevelBlocking: item.activityLevelBlocking
activityLevelBlocking: item.activityLevelBlocking,
qOrLater: item.isQorLater
}))
}
}
@@ -332,7 +333,8 @@ export const generateServerDataStatus = async ({ database, clientStatus, familyI
'temporarilyBlocked',
'baseVersion',
'parentCategoryId',
'blockAllNotifications'
'blockAllNotifications',
'timeWarnings'
],
transaction
})).map((item) => ({
@@ -344,7 +346,8 @@ export const generateServerDataStatus = async ({ database, clientStatus, familyI
temporarilyBlocked: item.temporarilyBlocked,
baseVersion: item.baseVersion,
parentCategoryId: item.parentCategoryId,
blockAllNotifications: item.blockAllNotifications
blockAllNotifications: item.blockAllNotifications,
timeWarningFlags: item.timeWarningFlags
}))
result.categoryBase = dataForSyncing.map((item): ServerUpdatedCategoryBaseData => ({
@@ -356,7 +359,8 @@ export const generateServerDataStatus = async ({ database, clientStatus, familyI
tempBlocked: item.temporarilyBlocked,
version: item.baseVersion,
parentCategoryId: item.parentCategoryId,
blockAllNotifications: item.blockAllNotifications
blockAllNotifications: item.blockAllNotifications,
timeWarnings: item.timeWarningFlags
}))
}
+2
View File
@@ -88,6 +88,7 @@ export interface ServerDeviceData {
asEnabled: boolean
wasAsEnabled: boolean
activityLevelBlocking: boolean
qOrLater: boolean
}
export interface ServerUpdatedCategoryBaseData {
@@ -100,6 +101,7 @@ export interface ServerUpdatedCategoryBaseData {
version: string
parentCategoryId: string
blockAllNotifications: boolean
timeWarnings: number
}
export interface ServerUpdatedCategoryAssignedApps {