Skip to content

Commit 473797c

Browse files
committed
add expensify_integrationServerExportTemplates NVP
1 parent be501d6 commit 473797c

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

src/ONYXKEYS.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@ const ONYXKEYS = {
249249
/** Details on whether an account is locked or not */
250250
NVP_PRIVATE_LOCK_ACCOUNT_DETAILS: 'nvp_private_lockAccountDetails',
251251

252+
/** The NVP containing the user's custom IS templates */
253+
NVP_INTEGRATION_SERVER_EXPORT_TEMPLATES: 'nvp_expensify_integrationServerExportTemplates',
254+
252255
/** Plaid data (access tokens, bank accounts ...) */
253256
PLAID_DATA: 'plaidData',
254257

@@ -1203,6 +1206,7 @@ type OnyxValuesMapping = {
12031206
[ONYXKEYS.NVP_LAST_IPHONE_LOGIN]: string;
12041207
[ONYXKEYS.NVP_LAST_ANDROID_LOGIN]: string;
12051208
[ONYXKEYS.TRANSACTION_THREAD_NAVIGATION_REPORT_IDS]: string[];
1209+
[ONYXKEYS.NVP_INTEGRATION_SERVER_EXPORT_TEMPLATES]: OnyxTypes.IntegrationServerExportTemplate[];
12061210
};
12071211

12081212
type OnyxDerivedValuesMapping = {
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import type * as OnyxCommon from './OnyxCommon';
2+
3+
/** Information about integration server export templates */
4+
type IntegrationServerExportTemplate = OnyxCommon.OnyxValueWithOfflineFeedback<{
5+
/** Name of the template */
6+
name: string;
7+
8+
}>;
9+
10+
export default IntegrationServerExportTemplate;

src/types/onyx/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ import type WalletOnfido from './WalletOnfido';
120120
import type WalletStatement from './WalletStatement';
121121
import type WalletTerms from './WalletTerms';
122122
import type WalletTransfer from './WalletTransfer';
123+
import type IntegrationServerExportTemplate from './IntegrationServerExportTemplate';
123124

124125
export type {
125126
TryNewDot,
@@ -266,4 +267,5 @@ export type {
266267
ValidateUserAndGetAccessiblePolicies,
267268
BillingReceiptDetails,
268269
VacationDelegate,
270+
IntegrationServerExportTemplate,
269271
};

0 commit comments

Comments
 (0)