Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import { type AmaliaFormula } from '@amalia/amalia-lang/formula/types';
import { PeriodFrequencyEnum } from '@amalia/payout-definition/periods/types';
import { type Plan } from '@amalia/payout-definition/plans/types';
import { company } from './company';
import { filters } from './filters';
import { users } from './users';
import { variables } from './variables';
export const plans = {
bonus: {
id: '4ea3c42b-35ed-4e2b-911b-2dae9c28628f',
name: 'BONUS PLAN ACCOUNT EXECUTIVE 2019-2020',
user: users.antoine,
userId: users.antoine.id,
frequency: PeriodFrequencyEnum.month,
indexedWeight: 0,
archived: false,
isHidden: false,
isForecasted: true,
forecast: {
id: 'd0371b91-8d72-4d8b-8201-a0aa0a44740f',
forecastConfig: {
fields: { [variables.abr.id]: 'test' },
datasets: {},
kpis: { [variables.veryImportantVariable.id]: '1234' },
},
objectsToDisplay: {},
companyId: company.id,
planId: '4ea3c42b-35ed-4e2b-911b-2dae9c28628f',
createdAt: new Date(),
updatedAt: new Date(),
},
forecastId: 'd0371b91-8d72-4d8b-8201-a0aa0a44740f',
workflowId: null,
calculateBothStatements: false,
calculationBatchSize: null,
calculationMaxParallel: null,
maxRecursionLevel: null,
categoriesV2: null,
isSimulationEnabled: false,
isSimulationAddRecordEnabled: false,
planTemplateError: null,
manualWeight: null,
linkToPlanDocumentation: null,
useVariableInsteadOfTotal: null,
totalVariableId: null,
createdAt: new Date(),
updatedAt: new Date(),
},
conditionsTests: {
id: '4ea3c42b-35ed-4e2b-911b-2dae9c28629f',
name: 'CONDITION TESTS',
user: users.antoine,
userId: users.antoine.id,
forecastId: '5e87f1fd-ec64-4c9e-a499-31cc37158dde',
isForecasted: true,
forecast: {
id: '5e87f1fd-ec64-4c9e-a499-31cc37158dde',
forecastConfig: {
fields: undefined,
datasets: {
[filters.closedInPeriod.id]: 'opportunity.totalAmount * 0.10 > 0' as AmaliaFormula,
},
kpis: {
[variables.variableToForecast.id]: '1234' as AmaliaFormula,
},
},
companyId: company.id,
objectsToDisplay: {},
planId: '4ea3c42b-35ed-4e2b-911b-2dae9c28629f',
createdAt: new Date(),
updatedAt: new Date(),
},
frequency: PeriodFrequencyEnum.month,
indexedWeight: 0,
archived: false,
isHidden: false,
workflowId: null,
calculateBothStatements: false,
calculationBatchSize: null,
calculationMaxParallel: null,
maxRecursionLevel: null,
categoriesV2: null,
isSimulationEnabled: false,
isSimulationAddRecordEnabled: false,
planTemplateError: null,
manualWeight: null,
linkToPlanDocumentation: null,
useVariableInsteadOfTotal: null,
totalVariableId: null,
createdAt: new Date(),
updatedAt: new Date(),
},
relation: {
id: 'a171d8b0-64b2-436d-a2fb-b55aef082f26',
name: 'RELATION FILTER TEST',
user: users.antoine,
userId: users.antoine.id,
frequency: PeriodFrequencyEnum.month,
indexedWeight: 0,
archived: false,
isHidden: false,
forecastId: null,
workflowId: null,
calculateBothStatements: false,
calculationBatchSize: null,
calculationMaxParallel: null,
maxRecursionLevel: null,
categoriesV2: null,
isForecasted: false,
isSimulationEnabled: false,
isSimulationAddRecordEnabled: false,
planTemplateError: null,
manualWeight: null,
linkToPlanDocumentation: null,
useVariableInsteadOfTotal: null,
totalVariableId: null,
createdAt: new Date(),
updatedAt: new Date(),
},
} as const satisfies Record<string, Plan>;
|