mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-11 02:10:30 +00:00
38 lines
959 B
TypeScript
38 lines
959 B
TypeScript
import { SeedDemoAbstract } from './SeedDemoAbstract';
|
|
|
|
export class SeedDemoAccountCustomers extends SeedDemoAbstract {
|
|
/**
|
|
* Retrieves the seeder file mapping.
|
|
*/
|
|
get mapping() {
|
|
return [
|
|
{ from: 'Customer Type', to: 'customerType' },
|
|
{ from: 'First Name', to: 'firstName' },
|
|
{ from: 'Last Name', to: 'lastName' },
|
|
{ from: 'Display Name', to: 'displayName' },
|
|
{ from: 'Email', to: 'email' },
|
|
{ from: 'Work Phone Number', to: 'workPhone' },
|
|
{ from: 'Personal Phone Number', to: 'personalPhone' },
|
|
{ from: 'Company Name', to: 'companyName' },
|
|
{ from: 'Website', to: 'website' },
|
|
{ from: 'Active', to: 'active' },
|
|
];
|
|
}
|
|
|
|
/**
|
|
* Retrieves the seeder file name.
|
|
* @returns {string}
|
|
*/
|
|
get importFileName() {
|
|
return `customers.csv`;
|
|
}
|
|
|
|
/**
|
|
* Retrieve the resource name of the seeder.
|
|
* @returns {string}
|
|
*/
|
|
get resource() {
|
|
return 'Customer';
|
|
}
|
|
}
|