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 | 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 { VariableType, type QuotaType } from '@amalia/amalia-lang/tokens/types';
import { PeriodFrequencyEnum } from '@amalia/payout-definition/periods/types';
export const QUOTA_TYPE_AND_FREQUENCY_CSV_TEMPLATE: Record<QuotaType, Record<PeriodFrequencyEnum, string>> = {
[VariableType.user]: {
[PeriodFrequencyEnum.null]:
'https://docs.google.com/spreadsheets/d/1co2veOc170-uUGnxh-o-WF2zUpQNEJ-qz8CoPB3yeek#gid=1042747964',
[PeriodFrequencyEnum.year]:
'https://docs.google.com/spreadsheets/d/1co2veOc170-uUGnxh-o-WF2zUpQNEJ-qz8CoPB3yeek#gid=1042747964',
[PeriodFrequencyEnum.quarter]:
'https://docs.google.com/spreadsheets/d/1co2veOc170-uUGnxh-o-WF2zUpQNEJ-qz8CoPB3yeek#gid=1207472647',
[PeriodFrequencyEnum.month]:
'https://docs.google.com/spreadsheets/d/1co2veOc170-uUGnxh-o-WF2zUpQNEJ-qz8CoPB3yeek#gid=0',
},
[VariableType.team]: {
[PeriodFrequencyEnum.null]:
'https://docs.google.com/spreadsheets/d/1co2veOc170-uUGnxh-o-WF2zUpQNEJ-qz8CoPB3yeek#gid=1915163023',
[PeriodFrequencyEnum.year]:
'https://docs.google.com/spreadsheets/d/1co2veOc170-uUGnxh-o-WF2zUpQNEJ-qz8CoPB3yeek#gid=1915163023',
[PeriodFrequencyEnum.quarter]:
'https://docs.google.com/spreadsheets/d/1co2veOc170-uUGnxh-o-WF2zUpQNEJ-qz8CoPB3yeek#gid=1607748297',
[PeriodFrequencyEnum.month]:
'https://docs.google.com/spreadsheets/d/1co2veOc170-uUGnxh-o-WF2zUpQNEJ-qz8CoPB3yeek#gid=2114805339',
},
[VariableType.plan]: {
[PeriodFrequencyEnum.null]:
'https://docs.google.com/spreadsheets/d/1co2veOc170-uUGnxh-o-WF2zUpQNEJ-qz8CoPB3yeek#gid=1657524879',
[PeriodFrequencyEnum.year]:
'https://docs.google.com/spreadsheets/d/1co2veOc170-uUGnxh-o-WF2zUpQNEJ-qz8CoPB3yeek#gid=1657524879',
[PeriodFrequencyEnum.quarter]:
'https://docs.google.com/spreadsheets/d/1co2veOc170-uUGnxh-o-WF2zUpQNEJ-qz8CoPB3yeek#gid=1394348362',
[PeriodFrequencyEnum.month]:
'https://docs.google.com/spreadsheets/d/1co2veOc170-uUGnxh-o-WF2zUpQNEJ-qz8CoPB3yeek#gid=255368415',
},
};
export const QUOTA_TYPE_ID_COLUMN: Record<QuotaType, string> = {
[VariableType.user]: 'Email',
[VariableType.team]: 'Name',
[VariableType.plan]: 'Name',
};
export const QUOTA_FREQUENCY_COLUMNS: Record<PeriodFrequencyEnum, string[]> = {
[PeriodFrequencyEnum.null]: ['Value'],
[PeriodFrequencyEnum.year]: ['Value'],
[PeriodFrequencyEnum.quarter]: ['Q1', 'Q2', 'Q3', 'Q4'],
[PeriodFrequencyEnum.month]: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
};
|