update requirements,
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import { faker } from "@faker-js/faker";
|
||||
|
||||
const getId = (id) => id.padStart(15, "0");
|
||||
|
||||
const row_array = Array.from({ length: 10 }, (_, i) => [
|
||||
getId(String(i + 1)),
|
||||
faker.person.firstName(),
|
||||
"",
|
||||
faker.internet.email(),
|
||||
faker.phone.number(),
|
||||
faker.company.name(),
|
||||
{
|
||||
country: faker.location.country(),
|
||||
state: faker.location.state(),
|
||||
city: faker.location.city(),
|
||||
zipCode: faker.location.zipCode(),
|
||||
line1: faker.location.streetAddress(),
|
||||
line2: faker.location.secondaryAddress(),
|
||||
},
|
||||
Math.floor(Math.random() * (100 - 0 + 1)) + 0,
|
||||
faker.location.timeZone(),
|
||||
["en", "de", "es", "fr", "ja", "ko", "zh-CN"].sort(
|
||||
() => Math.random() - 0.5
|
||||
)[0],
|
||||
faker.finance.currencyCode(),
|
||||
]);
|
||||
|
||||
import fs from "fs";
|
||||
const filePath = "output.json";
|
||||
fs.writeFileSync(filePath, JSON.stringify(row_array, null, 2));
|
||||
console.log(`Wrote ${row_array.length} records to ${filePath}`);
|
202
001_documentation/Requirements/REQ0006/gen_customer/output.json
Normal file
202
001_documentation/Requirements/REQ0006/gen_customer/output.json
Normal file
@@ -0,0 +1,202 @@
|
||||
[
|
||||
[
|
||||
"000000000000001",
|
||||
"May",
|
||||
"",
|
||||
"June_Wintheiser33@hotmail.com",
|
||||
"281-378-5900 x822",
|
||||
"Green, Rempel and Hoeger",
|
||||
{
|
||||
"country": "Central African Republic",
|
||||
"state": "Arizona",
|
||||
"city": "Winfieldburgh",
|
||||
"zipCode": "92017-8004",
|
||||
"line1": "1838 Willa Freeway",
|
||||
"line2": "Suite 307"
|
||||
},
|
||||
98,
|
||||
"Asia/Urumqi",
|
||||
"de",
|
||||
"MUR"
|
||||
],
|
||||
[
|
||||
"000000000000002",
|
||||
"Marilyne",
|
||||
"",
|
||||
"Carol_Blick@yahoo.com",
|
||||
"(893) 919-2445 x193",
|
||||
"White - Hessel",
|
||||
{
|
||||
"country": "Iraq",
|
||||
"state": "Nevada",
|
||||
"city": "Casa Grande",
|
||||
"zipCode": "83831-3843",
|
||||
"line1": "6984 Alberto Radial",
|
||||
"line2": "Suite 154"
|
||||
},
|
||||
49,
|
||||
"Africa/Tunis",
|
||||
"zh-CN",
|
||||
"CHF"
|
||||
],
|
||||
[
|
||||
"000000000000003",
|
||||
"Jacklyn",
|
||||
"",
|
||||
"Tamara_Lynch11@yahoo.com",
|
||||
"597-593-0144 x168",
|
||||
"Rolfson LLC",
|
||||
{
|
||||
"country": "Grenada",
|
||||
"state": "Georgia",
|
||||
"city": "New Brodyfort",
|
||||
"zipCode": "18887-7075",
|
||||
"line1": "493 Pfannerstill Meadow",
|
||||
"line2": "Apt. 358"
|
||||
},
|
||||
44,
|
||||
"Asia/Manila",
|
||||
"zh-CN",
|
||||
"CDF"
|
||||
],
|
||||
[
|
||||
"000000000000004",
|
||||
"Alana",
|
||||
"",
|
||||
"Ahmed_Willms@hotmail.com",
|
||||
"401.212.0386 x31125",
|
||||
"Friesen, Langworth and Thompson",
|
||||
{
|
||||
"country": "Australia",
|
||||
"state": "North Carolina",
|
||||
"city": "Fort Jerrell",
|
||||
"zipCode": "14211",
|
||||
"line1": "1763 West Street",
|
||||
"line2": "Suite 699"
|
||||
},
|
||||
34,
|
||||
"America/Boa_Vista",
|
||||
"ja",
|
||||
"KES"
|
||||
],
|
||||
[
|
||||
"000000000000005",
|
||||
"Rocky",
|
||||
"",
|
||||
"Angela_Kuhic@gmail.com",
|
||||
"653.964.0412",
|
||||
"Hayes - Morar",
|
||||
{
|
||||
"country": "Reunion",
|
||||
"state": "New York",
|
||||
"city": "Kayton",
|
||||
"zipCode": "82048-0645",
|
||||
"line1": "636 Angel Junction",
|
||||
"line2": "Apt. 361"
|
||||
},
|
||||
70,
|
||||
"America/Grand_Turk",
|
||||
"fr",
|
||||
"PGK"
|
||||
],
|
||||
[
|
||||
"000000000000006",
|
||||
"Carmela",
|
||||
"",
|
||||
"Larry94@hotmail.com",
|
||||
"1-508-980-1889 x134",
|
||||
"Goodwin - Brown",
|
||||
{
|
||||
"country": "Heard Island and McDonald Islands",
|
||||
"state": "Wisconsin",
|
||||
"city": "Jalenbury",
|
||||
"zipCode": "75732-7013",
|
||||
"line1": "669 Sven Trail",
|
||||
"line2": "Suite 409"
|
||||
},
|
||||
48,
|
||||
"Asia/Karachi",
|
||||
"fr",
|
||||
"AMD"
|
||||
],
|
||||
[
|
||||
"000000000000007",
|
||||
"Lucious",
|
||||
"",
|
||||
"Lera67@yahoo.com",
|
||||
"(684) 748-3653 x8745",
|
||||
"Harvey - Kilback",
|
||||
{
|
||||
"country": "Israel",
|
||||
"state": "Maryland",
|
||||
"city": "East Allenmouth",
|
||||
"zipCode": "21779",
|
||||
"line1": "6070 W Grand Avenue",
|
||||
"line2": "Suite 448"
|
||||
},
|
||||
83,
|
||||
"America/St_Barthelemy",
|
||||
"en",
|
||||
"SBD"
|
||||
],
|
||||
[
|
||||
"000000000000008",
|
||||
"Anika",
|
||||
"",
|
||||
"Shane.Moore@gmail.com",
|
||||
"(996) 909-3575 x614",
|
||||
"Donnelly, Larson and Stamm",
|
||||
{
|
||||
"country": "Canada",
|
||||
"state": "Michigan",
|
||||
"city": "Lafayette",
|
||||
"zipCode": "90430-8775",
|
||||
"line1": "430 Orland Place",
|
||||
"line2": "Suite 891"
|
||||
},
|
||||
64,
|
||||
"America/Toronto",
|
||||
"fr",
|
||||
"PKR"
|
||||
],
|
||||
[
|
||||
"000000000000009",
|
||||
"Otto",
|
||||
"",
|
||||
"Emery_Wisozk@yahoo.com",
|
||||
"1-602-251-7035 x9461",
|
||||
"Kreiger - Boehm",
|
||||
{
|
||||
"country": "South Georgia and the South Sandwich Islands",
|
||||
"state": "Colorado",
|
||||
"city": "Lake Isaias",
|
||||
"zipCode": "26025-5909",
|
||||
"line1": "143 Kautzer Unions",
|
||||
"line2": "Apt. 752"
|
||||
},
|
||||
98,
|
||||
"Africa/Ndjamena",
|
||||
"fr",
|
||||
"JOD"
|
||||
],
|
||||
[
|
||||
"000000000000010",
|
||||
"Cortez",
|
||||
"",
|
||||
"Jameson13@hotmail.com",
|
||||
"1-660-472-1494",
|
||||
"Parisian LLC",
|
||||
{
|
||||
"country": "Mali",
|
||||
"state": "Illinois",
|
||||
"city": "Stammburgh",
|
||||
"zipCode": "92318",
|
||||
"line1": "7669 Jude Drive",
|
||||
"line2": "Apt. 594"
|
||||
},
|
||||
59,
|
||||
"Africa/Lubumbashi",
|
||||
"en",
|
||||
"VND"
|
||||
]
|
||||
]
|
33
001_documentation/Requirements/REQ0006/gen_customer/package-lock.json
generated
Normal file
33
001_documentation/Requirements/REQ0006/gen_customer/package-lock.json
generated
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"name": "gen_customer",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "gen_customer",
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"@faker-js/faker": "^9.7.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@faker-js/faker": {
|
||||
"version": "9.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@faker-js/faker/-/faker-9.7.0.tgz",
|
||||
"integrity": "sha512-aozo5vqjCmDoXLNUJarFZx2IN/GgGaogY4TMJ6so/WLZOWpSV7fvj2dmrV6sEAnUm1O7aCrhTibjpzeDFgNqbg==",
|
||||
"dev": true,
|
||||
"funding": [
|
||||
{
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/fakerjs"
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=18.0.0",
|
||||
"npm": ">=9.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "gen_customer",
|
||||
"version": "1.0.0",
|
||||
"main": "gen_customer.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"description": "",
|
||||
"devDependencies": {
|
||||
"@faker-js/faker": "^9.7.0"
|
||||
}
|
||||
}
|
23
001_documentation/Requirements/REQ0006/gen_customer/pnpm-lock.yaml
generated
Normal file
23
001_documentation/Requirements/REQ0006/gen_customer/pnpm-lock.yaml
generated
Normal file
@@ -0,0 +1,23 @@
|
||||
lockfileVersion: '9.0'
|
||||
|
||||
settings:
|
||||
autoInstallPeers: true
|
||||
excludeLinksFromLockfile: false
|
||||
|
||||
importers:
|
||||
|
||||
.:
|
||||
devDependencies:
|
||||
'@faker-js/faker':
|
||||
specifier: ^9.7.0
|
||||
version: 9.7.0
|
||||
|
||||
packages:
|
||||
|
||||
'@faker-js/faker@9.7.0':
|
||||
resolution: {integrity: sha512-aozo5vqjCmDoXLNUJarFZx2IN/GgGaogY4TMJ6so/WLZOWpSV7fvj2dmrV6sEAnUm1O7aCrhTibjpzeDFgNqbg==}
|
||||
engines: {node: '>=18.0.0', npm: '>=9.0.0'}
|
||||
|
||||
snapshots:
|
||||
|
||||
'@faker-js/faker@9.7.0': {}
|
Reference in New Issue
Block a user