diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 99f4b22b473c..4232c565e715 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -84,6 +84,7 @@

+ {% include CONST.html %}

Didn't find what you were looking for?

Concierge is here to answer all your questions.

diff --git a/src/CONST.ts b/src/CONST.ts index 4bef4022af62..b07b622cec05 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -1200,6 +1200,24 @@ const CONST = { EXPENSIFY_EMAIL_DOMAIN: '@expensify.com', }, + INTEGRATION_ENTITY_MAP_TYPES: { + DEFAULT: 'DEFAULT', + NONE: 'NONE', + TAG: 'TAG', + REPORT_FIELD: 'REPORT_FIELD', + NOT_IMPORTED: 'NOT_IMPORTED', + IMPORTED: 'IMPORTED', + }, + QUICK_BOOKS_ONLINE: 'quickbooksOnline', + + QUICK_BOOKS_IMPORTS: { + SYNC_CLASSES: 'syncClasses', + ENABLE_NEW_CATEGORIES: 'enableNewCategories', + SYNC_CUSTOMERS: 'syncCustomers', + SYNC_LOCATIONS: 'syncLocations', + SYNC_TAXES: 'syncTaxes', + }, + ACCOUNT_ID: { ACCOUNTING: Number(Config?.EXPENSIFY_ACCOUNT_ID_ACCOUNTING ?? 9645353), ADMIN: Number(Config?.EXPENSIFY_ACCOUNT_ID_ADMIN ?? -1), diff --git a/src/ROUTES.ts b/src/ROUTES.ts index 25a84c4480e3..60fca9fac87b 100644 --- a/src/ROUTES.ts +++ b/src/ROUTES.ts @@ -1,5 +1,6 @@ import type {IsEqual, ValueOf} from 'type-fest'; import type CONST from './CONST'; +import type {IOURequestType} from './libs/actions/IOU'; // This is a file containing constants for all the routes we want to be able to go to @@ -396,7 +397,7 @@ const ROUTES = { // straight to those flows without needing to have optimistic transaction and report IDs. MONEY_REQUEST_START: { route: 'start/:iouType/:iouRequestType', - getRoute: (iouType: ValueOf, iouRequestType: ValueOf) => `start/${iouType}/${iouRequestType}` as const, + getRoute: (iouType: ValueOf, iouRequestType: IOURequestType) => `start/${iouType}/${iouRequestType}` as const, }, MONEY_REQUEST_CREATE_TAB_DISTANCE: { route: ':action/:iouType/start/:transactionID/:reportID/distance', @@ -697,6 +698,30 @@ const ROUTES = { route: 'r/:reportID/transaction/:transactionID/receipt', getRoute: (reportID: string, transactionID: string) => `r/${reportID}/transaction/${transactionID}/receipt` as const, }, + WORKSPACE_ACCOUNTING_QUICKBOOKS_ONLINE_IMPORT: { + route: 'settings/workspaces/:policyID/accounting/quickbooks-online/import', + getRoute: (policyID: string) => `settings/workspaces/${policyID}/accounting/quickbooks-online/import` as const, + }, + WORKSPACE_ACCOUNTING_QUICKBOOKS_ONLINE_CHART_OF_ACCOUNTS: { + route: 'settings/workspaces/:policyID/accounting/quickbooks-online/import/accounts', + getRoute: (policyID: string) => `settings/workspaces/${policyID}/accounting/quickbooks-online/import/accounts` as const, + }, + WORKSPACE_ACCOUNTING_QUICKBOOKS_ONLINE_CLASSES: { + route: 'settings/workspaces/:policyID/accounting/quickbooks-online/import/classes', + getRoute: (policyID: string) => `settings/workspaces/${policyID}/accounting/quickbooks-online/import/classes` as const, + }, + WORKSPACE_ACCOUNTING_QUICKBOOKS_ONLINE_CUSTOMERS: { + route: 'settings/workspaces/:policyID/accounting/quickbooks-online/import/customers', + getRoute: (policyID: string) => `settings/workspaces/${policyID}/accounting/quickbooks-online/import/customers` as const, + }, + WORKSPACE_ACCOUNTING_QUICKBOOKS_ONLINE_LOCATIONS: { + route: 'settings/workspaces/:policyID/accounting/quickbooks-online/import/locations', + getRoute: (policyID: string) => `settings/workspaces/${policyID}/accounting/quickbooks-online/import/locations` as const, + }, + WORKSPACE_ACCOUNTING_QUICKBOOKS_ONLINE_TAXES: { + route: 'settings/workspaces/:policyID/accounting/quickbooks-online/import/taxes', + getRoute: (policyID: string) => `settings/workspaces/${policyID}/accounting/quickbooks-online/import/taxes` as const, + }, } as const; /** diff --git a/src/SCREENS.ts b/src/SCREENS.ts index e7cd76a1907b..b3c2012e90d2 100644 --- a/src/SCREENS.ts +++ b/src/SCREENS.ts @@ -253,6 +253,12 @@ const SCREENS = { DISTANCE_RATES: 'Distance_Rates', CREATE_DISTANCE_RATE: 'Create_Distance_Rate', DISTANCE_RATES_SETTINGS: 'Distance_Rates_Settings', + QUICKBOOKS_ONLINE_IMPORT: 'Workspace_Accounting_Quickbooks_Online_Import', + QUICKBOOKS_ONLINE_CHART_OF_ACCOUNTS: 'Workspace_Accounting_Quickbooks_Online_Import_Chart_Of_Accounts', + QUICKBOOKS_ONLINE_CLASSES: 'Workspace_Accounting_Quickbooks_Online_Import_Classes', + QUICKBOOKS_ONLINE_CUSTOMERS: 'Workspace_Accounting_Quickbooks_Online_Import_Customers', + QUICKBOOKS_ONLINE_LOCATIONS: 'Workspace_Accounting_Quickbooks_Online_Import_Locations', + QUICKBOOKS_ONLINE_TAXES: 'Workspace_Accounting_Quickbooks_Online_Import_Taxes', DISTANCE_RATE_DETAILS: 'Distance_Rate_Details', DISTANCE_RATE_EDIT: 'Distance_Rate_Edit', }, diff --git a/src/components/AvatarWithDisplayName.tsx b/src/components/AvatarWithDisplayName.tsx index 396c10151fbf..f6afb4dae2d6 100644 --- a/src/components/AvatarWithDisplayName.tsx +++ b/src/components/AvatarWithDisplayName.tsx @@ -141,6 +141,7 @@ function AvatarWithDisplayName({ )} diff --git a/src/components/CategoryPicker.tsx b/src/components/CategoryPicker.tsx index 0307b67114e5..f26d7c25c7e2 100644 --- a/src/components/CategoryPicker.tsx +++ b/src/components/CategoryPicker.tsx @@ -21,7 +21,7 @@ type CategoryPickerProps = CategoryPickerOnyxProps & { /** It's used by withOnyx HOC */ // eslint-disable-next-line react/no-unused-prop-types policyID: string; - selectedCategory: string; + selectedCategory?: string; onSubmit: (item: ListItem) => void; }; @@ -38,7 +38,7 @@ function CategoryPicker({selectedCategory, policyCategories, policyRecentlyUsedC { name: selectedCategory, enabled: true, - accountID: null, + accountID: undefined, isSelected: true, }, ]; diff --git a/src/components/OnboardingWelcomeVideo.tsx b/src/components/OnboardingWelcomeVideo.tsx index f38bd4edcc10..257bd1b9c457 100644 --- a/src/components/OnboardingWelcomeVideo.tsx +++ b/src/components/OnboardingWelcomeVideo.tsx @@ -1,6 +1,7 @@ import type {VideoReadyForDisplayEvent} from 'expo-av'; import React, {useCallback, useEffect, useState} from 'react'; import {View} from 'react-native'; +import {GestureHandlerRootView} from 'react-native-gesture-handler'; import useLocalize from '@hooks/useLocalize'; import useNetwork from '@hooks/useNetwork'; import useOnboardingLayout from '@hooks/useOnboardingLayout'; @@ -134,22 +135,24 @@ function OnboardingWelcomeVideo() { : {}), }} > - - {getWelcomeVideo()} - - - {translate('onboarding.welcomeVideo.title')} - {translate('onboarding.welcomeVideo.description')} + + + {getWelcomeVideo()} + + + {translate('onboarding.welcomeVideo.title')} + {translate('onboarding.welcomeVideo.description')} + +