-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
9 changed files
with
66 additions
and
18 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# deverything | ||
|
||
## 0.28.0 | ||
|
||
### Minor Changes | ||
|
||
- company and phone number | ||
|
||
## 0.27.1 | ||
|
||
### Patch Changes | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export const VAT_REGISTRATION_NUMBER_SAMPLES = [ | ||
"IE1234567T", | ||
"GB123456789", | ||
"XI123456789", | ||
]; | ||
|
||
export const COMPANY_NAME_SAMPLES = [ | ||
"Acme Inc.", | ||
"Globex Ltd.", | ||
"Aurora LLC", | ||
"Serenity Systems", | ||
"Vulcan Ventures", | ||
"Umbrella Corp.", | ||
]; | ||
|
||
export type Company = { | ||
name: string; | ||
vatRegNumber?: string; | ||
}; |
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,7 @@ | ||
export const PHONE_NUMBER_SAMPLES = [ | ||
"+44 20 7123 4567", // (United Kingdom) | ||
"+33 1 45 67 89 10", // (France) | ||
"+81 3 1234 5678", //(Japan) | ||
"+61 2 9876 5432", //(Australia) | ||
"+49 30 9876 5432", //(Germany) | ||
]; |
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,13 @@ | ||
import { | ||
COMPANY_NAME_SAMPLES, | ||
Company, | ||
VAT_REGISTRATION_NUMBER_SAMPLES, | ||
} from "../constants/companies"; | ||
import { randomArrayItem } from "./randomArrayItem"; | ||
|
||
export const randomCompany = (): Company => { | ||
return { | ||
name: randomArrayItem(COMPANY_NAME_SAMPLES), | ||
vatRegNumber: randomArrayItem(VAT_REGISTRATION_NUMBER_SAMPLES), | ||
}; | ||
}; |
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,6 @@ | ||
import { PHONE_NUMBER_SAMPLES } from "../constants/phoneNumbers"; | ||
import { randomArrayItem } from "./randomArrayItem"; | ||
|
||
export const randomPhoneNumber = () => { | ||
return randomArrayItem(PHONE_NUMBER_SAMPLES); | ||
}; |