Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/ONYXKEYS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,7 @@ const ONYXKEYS = {

/** Collection Keys */
COLLECTION: {
DOMAIN: 'domain_',
Comment thread
NikkiWines marked this conversation as resolved.
Resolved
DOWNLOAD: 'download_',
POLICY: 'policy_',
POLICY_DRAFTS: 'policyDrafts_',
Expand Down Expand Up @@ -1024,6 +1025,7 @@ type OnyxFormDraftValuesMapping = {
};

type OnyxCollectionValuesMapping = {
[ONYXKEYS.COLLECTION.DOMAIN]: OnyxTypes.Domain;
[ONYXKEYS.COLLECTION.DOWNLOAD]: OnyxTypes.Download;
[ONYXKEYS.COLLECTION.POLICY]: OnyxTypes.Policy;
[ONYXKEYS.COLLECTION.POLICY_DRAFTS]: OnyxTypes.Policy;
Expand Down
25 changes: 25 additions & 0 deletions src/types/onyx/Domain.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/** Model of domain data */
type Domain = {
/** Whether the domain is validated */
validated: boolean;

/** Account ID associated with the domain */
accountID: number;

/** Email address for the domain */
email: string;

/** Validation code for the domain */
validateCode: string;

/** Whether domain creation is pending */
isCreationPending?: boolean;

/** Whether domain validation is pending */
isValidationPending?: boolean;

/** Whether validation code is currently loading */
isValidateCodeLoading?: boolean;
};

export default Domain;
4 changes: 3 additions & 1 deletion src/types/onyx/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import type CustomStatusDraft from './CustomStatusDraft';
import type {OutstandingReportsByPolicyIDDerivedValue, ReportAttributesDerivedValue, ReportTransactionsAndViolationsDerivedValue} from './DerivedValues';
import type DismissedProductTraining from './DismissedProductTraining';
import type DismissedReferralBanners from './DismissedReferralBanners';
import type Domain from './Domain';
import type Download from './Download';
import type DuplicateWorkspace from './DuplicateWorkspace';
import type ExpensifyCardBankAccountMetadata from './ExpensifyCardBankAccountMetadata';
Expand Down Expand Up @@ -150,8 +151,9 @@ export type {
CurrencyList,
CustomStatusDraft,
DismissedReferralBanners,
DuplicateWorkspace,
Domain,
Download,
DuplicateWorkspace,
WorkspaceCardsList,
ExpensifyCardSettings,
ExpensifyCardBankAccountMetadata,
Expand Down