mirror of https://github.com/laurent22/joplin.git
Chore: Sort property names
parent
63afbb7346
commit
5d31c087b0
|
@ -23,29 +23,32 @@ const config = {
|
|||
'filename': './db',
|
||||
'extends': {
|
||||
'main.api_clients': 'WithDates, WithUuid',
|
||||
'main.backup_items': 'WithCreatedDate',
|
||||
'main.changes': 'WithDates, WithUuid',
|
||||
'main.emails': 'WithDates',
|
||||
'main.events': 'WithUuid',
|
||||
'main.items': 'WithDates, WithUuid',
|
||||
'main.notifications': 'WithDates, WithUuid',
|
||||
'main.sessions': 'WithDates, WithUuid',
|
||||
'main.share_users': 'WithDates, WithUuid',
|
||||
'main.shares': 'WithDates, WithUuid',
|
||||
'main.task_states': 'WithDates',
|
||||
'main.tokens': 'WithDates',
|
||||
'main.user_deletions': 'WithDates',
|
||||
'main.user_flags': 'WithDates',
|
||||
'main.user_items': 'WithDates',
|
||||
'main.users': 'WithDates, WithUuid',
|
||||
'main.events': 'WithUuid',
|
||||
'main.user_deletions': 'WithDates',
|
||||
'main.task_states': 'WithDates',
|
||||
'main.backup_items': 'WithCreatedDate',
|
||||
},
|
||||
};
|
||||
|
||||
const propertyTypes: Record<string, string> = {
|
||||
'*.item_type': 'ItemType',
|
||||
'backup_items.content': 'Buffer',
|
||||
'changes.type': 'ChangeType',
|
||||
'emails.sender_id': 'EmailSender',
|
||||
'emails.sent_time': 'number',
|
||||
'events.created_time': 'number',
|
||||
'events.type': 'EventType',
|
||||
'items.content': 'Buffer',
|
||||
'items.jop_updated_time': 'number',
|
||||
'notifications.level': 'NotificationLevel',
|
||||
|
@ -53,20 +56,17 @@ const propertyTypes: Record<string, string> = {
|
|||
'shares.type': 'ShareType',
|
||||
'subscriptions.last_payment_failed_time': 'number',
|
||||
'subscriptions.last_payment_time': 'number',
|
||||
'task_states.task_id': 'TaskId',
|
||||
'user_deletions.end_time': 'number',
|
||||
'user_deletions.scheduled_time': 'number',
|
||||
'user_deletions.start_time': 'number',
|
||||
'user_flags.type': 'UserFlagType',
|
||||
'users.can_share_folder': 'number | null',
|
||||
'users.can_share_note': 'number | null',
|
||||
'users.disabled_time': 'number',
|
||||
'users.max_item_size': 'number | null',
|
||||
'users.max_total_item_size': 'number | null',
|
||||
'users.total_item_size': 'number',
|
||||
'events.created_time': 'number',
|
||||
'events.type': 'EventType',
|
||||
'user_deletions.start_time': 'number',
|
||||
'user_deletions.end_time': 'number',
|
||||
'user_deletions.scheduled_time': 'number',
|
||||
'users.disabled_time': 'number',
|
||||
'backup_items.content': 'Buffer',
|
||||
'task_states.task_id': 'TaskId',
|
||||
};
|
||||
|
||||
function insertContentIntoFile(filePath: string, markerOpen: string, markerClose: string, contentToInsert: string): void {
|
||||
|
|
Loading…
Reference in New Issue