|
1 | 1 | import Onyx from 'react-native-onyx'; |
2 | | -import type {OnyxUpdate} from 'react-native-onyx'; |
3 | | -import type {ValueOf} from 'type-fest'; |
| 2 | +import type { OnyxUpdate } from 'react-native-onyx'; |
| 3 | +import type { ValueOf } from 'type-fest'; |
4 | 4 | import * as API from '@libs/API'; |
5 | | -import type {AddAdminToDomainParams, DeleteDomainParams, RemoveDomainAdminParams, SetTechnicalContactEmailParams, ToggleConsolidatedDomainBillingParams} from '@libs/API/parameters'; |
6 | | -import {READ_COMMANDS, SIDE_EFFECT_REQUEST_COMMANDS, WRITE_COMMANDS} from '@libs/API/types'; |
7 | | -import {getMicroSecondOnyxErrorWithTranslationKey} from '@libs/ErrorUtils'; |
| 5 | +import type { AddAdminToDomainParams, DeleteDomainParams, RemoveDomainAdminParams, SetTechnicalContactEmailParams, ToggleConsolidatedDomainBillingParams } from '@libs/API/parameters'; |
| 6 | +import { READ_COMMANDS, SIDE_EFFECT_REQUEST_COMMANDS, WRITE_COMMANDS } from '@libs/API/types'; |
| 7 | +import { getMicroSecondOnyxErrorWithTranslationKey } from '@libs/ErrorUtils'; |
8 | 8 | import CONST from '@src/CONST'; |
9 | 9 | import ONYXKEYS from '@src/ONYXKEYS'; |
10 | | -import type {Domain} from '@src/types/onyx'; |
11 | | -import type {BaseVacationDelegate} from '@src/types/onyx/VacationDelegate'; |
12 | | -import {isEmptyObject} from '@src/types/utils/EmptyObject'; |
| 10 | +import type { Domain } from '@src/types/onyx'; |
| 11 | +import type { BaseVacationDelegate } from '@src/types/onyx/VacationDelegate'; |
| 12 | +import { isEmptyObject } from '@src/types/utils/EmptyObject'; |
13 | 13 | import type PrefixedRecord from '@src/types/utils/PrefixedRecord'; |
14 | | -import type {ScimTokenWithState} from './ScimToken/ScimTokenUtils'; |
15 | | -import {ScimTokenState} from './ScimToken/ScimTokenUtils'; |
| 14 | +import type { ScimTokenWithState } from './ScimToken/ScimTokenUtils'; |
| 15 | +import { ScimTokenState } from './ScimToken/ScimTokenUtils'; |
| 16 | + |
16 | 17 |
|
17 | 18 | /** |
18 | 19 | * Fetches a validation code that the user is supposed to put in the domain's DNS records to verify it |
@@ -791,7 +792,7 @@ function setDomainVacationDelegate( |
791 | 792 | creator: string, // who is performing the action |
792 | 793 | delegate: string, // who will be set as the vacation delegate |
793 | 794 | previousDelegate: string, // who was the previous vacation delegate |
794 | | - shouldOverridePolicyDiffWarning: boolean = false, // whether to force setting the vacation delegate despite a warning that they are not in our workspace |
| 795 | + shouldOverridePolicyDiffWarning= false, // whether to force setting the vacation delegate despite a warning that they are not in our workspace |
795 | 796 | ) { |
796 | 797 | const optimisticData: Array<OnyxUpdate<typeof ONYXKEYS.COLLECTION.DOMAIN | typeof ONYXKEYS.COLLECTION.DOMAIN_PENDING_ACTIONS | typeof ONYXKEYS.COLLECTION.DOMAIN_ERRORS>> = [ |
797 | 798 | { |
@@ -907,7 +908,7 @@ function deleteDomainVacationDelegate(vacationDelegate: BaseVacationDelegate, do |
907 | 908 | creator: null, |
908 | 909 | previousDelegate: previousDelegate ?? null, |
909 | 910 | }, |
910 | | - } as PrefixedRecord<typeof CONST.DOMAIN.PRIVATE_VACATION_DELEGATE_PREFIX, BaseVacationDelegate>, |
| 911 | + } as unknown as PrefixedRecord<typeof CONST.DOMAIN.PRIVATE_VACATION_DELEGATE_PREFIX, BaseVacationDelegate>, |
911 | 912 | }, |
912 | 913 | { |
913 | 914 | onyxMethod: Onyx.METHOD.MERGE, |
|
0 commit comments