-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
56 changed files
with
3,605 additions
and
1,858 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import type { | ||
ImportAddress, | ||
ImportBrand, | ||
ImportCategory, | ||
ImportCombination, | ||
ImportCreator, | ||
ImportCustomer, | ||
ImportHeaderItem, | ||
ImportProduct, | ||
} from '@data/types/import'; | ||
|
||
/** | ||
* Create new address to use in customer address form on BO and FO | ||
* @class | ||
*/ | ||
export default class FakerImport { | ||
public readonly entity: string; | ||
|
||
public readonly header: ImportHeaderItem[]; | ||
|
||
public readonly records: ImportAddress[]|ImportBrand[]|ImportCategory[]|ImportCombination[]|ImportCustomer[]|ImportProduct[]; | ||
|
||
/** | ||
* Constructor for class ImportData | ||
* @param valueToCreate {ImportCreator} Could be used to force the value of some members | ||
*/ | ||
constructor(valueToCreate: ImportCreator) { | ||
this.entity = valueToCreate.entity; | ||
this.header = valueToCreate.header; | ||
this.records = valueToCreate.records; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
type ImportAddress = { | ||
id: number | ||
alias: string | ||
active: number | ||
email: string | ||
customerID: number | ||
manufacturer: string | ||
supplier: string | ||
company: string | ||
lastname: string | ||
firstname: string | ||
address1: string | ||
address2: string | ||
zipCode: string | ||
city: string | ||
country: string | ||
state: string | ||
other: string | ||
phone: string | ||
mobilePhone: string | ||
vatNumber: string | ||
dni: string | ||
}; | ||
|
||
type ImportBrand = { | ||
id: number | ||
active: number | ||
name: string | ||
description: string | ||
shortDescription: string | ||
metaTitle: string | ||
metaKeywords: string[] | ||
metaDescription: string | ||
imageURL: string | ||
}; | ||
|
||
type ImportCategory = { | ||
id: number | ||
active: number | ||
name: string | ||
parent_category: string | ||
root_category: string | ||
description: string | ||
}; | ||
|
||
type ImportCombination = { | ||
id: number | ||
reference: string | ||
attribute: string | ||
value: string | ||
}; | ||
|
||
type ImportCreator = { | ||
entity: string | ||
header: ImportHeaderItem[] | ||
records: ImportAddress[]|ImportBrand[]|ImportCategory[]|ImportCombination[]|ImportCustomer[]|ImportProduct[] | ||
} | ||
|
||
type ImportCustomer = { | ||
id: number | ||
active: number | ||
title: number | ||
email: string | ||
password: string | ||
birthdate: string | ||
lastName: string | ||
firstName: string | ||
newsletter: number | ||
optIn: number | ||
registrationDate: string | ||
groups: string | ||
defaultGroup: string | ||
}; | ||
|
||
type ImportHeaderItem = { | ||
id: string | ||
title: string | ||
} | ||
|
||
type ImportProduct = { | ||
id: number | ||
active: number | ||
name: string | ||
categories: string | ||
price_TEXC: string | ||
tax_rule_id: string | ||
cost_price: string | ||
on_sale: string | ||
discount_amount: string | ||
discount_percent: string | ||
discount_from: string | ||
discount_to: string | ||
reference: string | ||
supplier_reference: string | ||
supplier: string | ||
brand: string | ||
ean13: string | ||
upc: string | ||
value: string | ||
mpn: string | ||
width: string | ||
height: string | ||
depth: string | ||
weight: string | ||
delivery_time_in_stock: string | ||
delivery_time_out_of_stock: string | ||
quantity: number | ||
}; | ||
|
||
export type { | ||
ImportAddress, | ||
ImportBrand, | ||
ImportCategory, | ||
ImportCombination, | ||
ImportCreator, | ||
ImportCustomer, | ||
ImportHeaderItem, | ||
ImportProduct, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
src/interfaces/BO/catalog/products/create/tabVirtualProduct.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.