Skip to content

Commit

Permalink
Add Text Size option
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Sep 5, 2024
1 parent 94d98f8 commit d82edd0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions api/lib/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ export enum Layer_Priority {
OFF = 'off'
}

export enum Profile_Text {
Small = 's',
Medium = 'm',
Large = 'l',
ExtraLarge = 'xl',
}

export enum Profile_Stale {
Immediate = 'Immediate',
TenMinutes = '10 Minutes',
Expand Down
3 changes: 2 additions & 1 deletion api/lib/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { geometry, GeometryType } from '@openaddresses/batch-generic';
import { ConnectionAuth } from './connection-config.js';
import { TAKGroup, TAKRole } from './api/types.js';
import { Layer_Config } from './models/Layer.js';
import { Layer_Priority, Profile_Stale, Profile_Speed, Profile_Elevation, Profile_Distance } from './enums.js';
import { Layer_Priority, Profile_Stale, Profile_Speed, Profile_Elevation, Profile_Distance, Profile_Text } from './enums.js';
import { json, boolean, numeric, integer, timestamp, pgTable, serial, varchar, text, unique, index } from 'drizzle-orm/pg-core';

/** Internal Tables for Postgis for use with drizzle-kit push:pg */
Expand Down Expand Up @@ -36,6 +36,7 @@ export const Profile = pgTable('profile', {
display_distance: text('display_distance').$type<Profile_Distance>().notNull().default(Profile_Distance.MILE),
display_elevation: text('display_elevation').$type<Profile_Elevation>().notNull().default(Profile_Elevation.FEET),
display_speed: text('display_speed').$type<Profile_Speed>().notNull().default(Profile_Speed.MPH),
display_text: text('display_text').$type<Profile_Text>().notNull().default(Profile_Text.Medium),
system_admin: boolean('system_admin').notNull().default(false),
agency_admin: json('agency_admin').notNull().$type<Array<number>>().default([])
});
Expand Down

0 comments on commit d82edd0

Please sign in to comment.