refactor(project): Renamed all instances of dafa to msfa or mina-sidor-fa. (TV-379)

Squashed commit of the following:

commit d3f52ff6876f6e246c7d3c188e56cc2370289341
Author: Erik Tiekstra <erik.tiekstra@arbetsformedlingen.se>
Date:   Tue Aug 17 14:10:38 2021 +0200

    Renamed all dafa instances to msfa
This commit is contained in:
Erik Tiekstra
2021-08-18 07:10:28 +02:00
parent 6d29baa533
commit 03a2c7a42f
349 changed files with 720 additions and 734 deletions

View File

@@ -0,0 +1,16 @@
export enum AddressType {
OFFICIAL = 'Folkbokföringsadress',
POSTAL = 'Postadress',
UNSPECIFIED = 'Ospecificerad adress',
}
export function getAddressType(addressType: 'FBF' | 'EgenAngiven'): AddressType {
switch (addressType) {
case 'FBF':
return AddressType.OFFICIAL;
case 'EgenAngiven':
return AddressType.POSTAL;
default:
return AddressType.UNSPECIFIED;
}
}

View File

@@ -0,0 +1,6 @@
export enum Authorization {
UserManagement = 'UserManagement',
Economy = 'Economy',
Reports = 'Reports',
ParticipantManagement = 'ParticipantManagement',
}

View File

@@ -0,0 +1,5 @@
export enum ErrorSeverity {
HIGH = 'High',
MEDIUM = 'Medium',
LOW = 'Low'
}

View File

@@ -0,0 +1,6 @@
export enum ErrorType {
API = 'API Error',
NETWORK = 'Network Error',
APP = 'Application Error',
UNKNOWN = 'Unknown Error'
}

View File

@@ -0,0 +1,7 @@
export enum IconSize {
S = 's',
M = 'm',
L = 'l',
XL = 'xl',
XXL = 'xxl',
}

View File

@@ -0,0 +1,21 @@
export enum IconType {
HOME = 'home', // Custom
SETTINGS = 'settings', // Custom
PLUS = 'plus', // Custom
CLIPBOARD = 'clipboard', // Custom
USER = 'user',
USERS = 'users',
BELL = 'bell',
CALENDAR = 'calendar',
ENVELOPE = 'envelope',
SOK_KANDIDAT = 'sok-kandidat',
EDIT = 'edit',
INFO = 'info',
WARNING = 'warning',
APPROVED = 'approved',
X = 'x',
ARROW_LEFT = 'arrow-left',
ARROW_RIGHT = 'arrow-right',
EYE = 'eye',
EYESLASH = 'eyeslash',
}

View File

@@ -0,0 +1,4 @@
export enum KeyboardCodes {
ENTER = 'Enter',
ESCAPE = 'Escape',
}

View File

@@ -0,0 +1,4 @@
export enum ParticipantStatus {
ACTIVE = 'active',
FOLLOW_UP = 'follow-up',
}

View File

@@ -0,0 +1,17 @@
export enum PhoneNumberType {
CELL = 'Mobil',
DOMESTIC = 'Hem',
WORK = 'Arbete',
UNKNOWN = 'Okänd',
}
export function getPhoneNumberType(phoneNumberType: 'Mobil' | 'Bostad'): PhoneNumberType {
switch (phoneNumberType) {
case 'Mobil':
return PhoneNumberType.CELL;
case 'Bostad':
return PhoneNumberType.DOMESTIC;
default:
return PhoneNumberType.UNKNOWN;
}
}

View File

@@ -0,0 +1,5 @@
export enum Service {
KVL = 'KVL',
KROM = 'KROM',
STOM = 'STOM',
}

View File

@@ -0,0 +1,4 @@
export enum SortOrder {
ASC = 'asc',
DESC = 'desc',
}

View File

@@ -0,0 +1,11 @@
export enum ToastPosition {
TOP_RIGHT = 'top-right',
TOP_CENTER = 'top-center',
TOP_LEFT = 'top-left',
BOTTOM_RIGHT = 'bottom-right',
BOTTOM_CENTER = 'bottom-center',
BOTTOM_LEFT = 'bottom-left',
CENTER_RIGHT = 'center-right',
CENTER_CENTER = 'center-center',
CENTER_LEFT = 'center-left',
}