Add positions on company and person seeds (#13831)

addressing
https://discord.com/channels/1130383047699738754/1212034770792484934/1403352113865822279
This commit is contained in:
nitin
2025-08-12 15:18:06 +05:30
committed by GitHub
parent 63c8bb9530
commit 8cb6053321
2 changed files with 20 additions and 2 deletions
@@ -11,6 +11,7 @@ type CompanyDataSeed = {
createdByWorkspaceMemberId: string;
createdByName: string;
accountOwnerId: string;
position: number;
};
export const COMPANY_DATA_SEED_COLUMNS: (keyof CompanyDataSeed)[] = [
@@ -24,6 +25,7 @@ export const COMPANY_DATA_SEED_COLUMNS: (keyof CompanyDataSeed)[] = [
'createdByWorkspaceMemberId',
'createdByName',
'accountOwnerId',
'position',
];
// prettier-ignore
@@ -630,7 +632,7 @@ export const COMPANY_DATA_SEED_IDS = {
};
// prettier-ignore
export const COMPANY_DATA_SEEDS: CompanyDataSeed[] = [
const COMPANY_DATA_SEEDS_RAW = [
{
id: COMPANY_DATA_SEED_IDS.ID_1,
name: 'Google',
@@ -8518,3 +8520,10 @@ export const COMPANY_DATA_SEEDS: CompanyDataSeed[] = [
accountOwnerId: WORKSPACE_MEMBER_DATA_SEED_IDS.JONY,
},
];
export const COMPANY_DATA_SEEDS: CompanyDataSeed[] = COMPANY_DATA_SEEDS_RAW.map(
(company, index) => ({
...company,
position: index + 1,
}),
);
@@ -17,6 +17,7 @@ type PersonDataSeed = {
phonesPrimaryPhoneNumber: string;
phonesPrimaryPhoneCountryCode: string;
phonesPrimaryPhoneCallingCode: string;
position: number;
};
export const PERSON_DATA_SEED_COLUMNS: (keyof PersonDataSeed)[] = [
@@ -35,6 +36,7 @@ export const PERSON_DATA_SEED_COLUMNS: (keyof PersonDataSeed)[] = [
'phonesPrimaryPhoneNumber',
'phonesPrimaryPhoneCountryCode',
'phonesPrimaryPhoneCallingCode',
'position',
];
// prettier-ignore
@@ -1242,7 +1244,7 @@ export const PERSON_DATA_SEED_IDS = {
};
// prettier-ignore
export const PERSON_DATA_SEEDS: PersonDataSeed[] = [
const PERSON_DATA_SEEDS_RAW = [
{
id: PERSON_DATA_SEED_IDS.ID_1,
nameFirstName: 'Mark',
@@ -21644,3 +21646,10 @@ export const PERSON_DATA_SEEDS: PersonDataSeed[] = [
phonesPrimaryPhoneCallingCode: '+81',
}
];
export const PERSON_DATA_SEEDS: PersonDataSeed[] = PERSON_DATA_SEEDS_RAW.map(
(person, index) => ({
...person,
position: index + 1,
}),
);