struct-fakerator 2.8.9 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/LICENSE +21 -0
  2. package/dist/config.cjs +51 -0
  3. package/dist/config.js +2 -51
  4. package/dist/config_scheme.cjs +95 -0
  5. package/dist/config_scheme.js +24 -73
  6. package/dist/create_config.cjs +110 -0
  7. package/dist/create_config.js +9 -58
  8. package/dist/{create_generator_fn.mjs → create_generator_fn.cjs} +63 -11
  9. package/dist/create_generator_fn.js +11 -63
  10. package/dist/generator_fn.cjs +54 -0
  11. package/dist/generator_fn.js +2 -54
  12. package/dist/index.cjs +107 -0
  13. package/dist/index.js +6 -107
  14. package/dist/type.cjs +18 -0
  15. package/dist/type.js +0 -18
  16. package/dist/{type.d.ts → types/type.d.ts} +10 -1
  17. package/dist/types/utils/airline.d.ts +31 -0
  18. package/dist/{utils → types/utils}/animal.d.ts +2 -0
  19. package/dist/types/utils/book.d.ts +12 -0
  20. package/dist/{utils → types/utils}/color.d.ts +9 -9
  21. package/dist/{utils → types/utils}/finance.d.ts +7 -9
  22. package/dist/{utils → types/utils}/image.d.ts +0 -11
  23. package/dist/{utils → types/utils}/index.d.ts +2 -0
  24. package/dist/{utils → types/utils}/internet.d.ts +9 -7
  25. package/dist/{utils → types/utils}/location.d.ts +29 -16
  26. package/dist/{utils → types/utils}/number.d.ts +5 -0
  27. package/dist/{utils → types/utils}/person.d.ts +1 -1
  28. package/dist/{utils → types/utils}/science.d.ts +2 -2
  29. package/dist/{utils → types/utils}/string.d.ts +4 -0
  30. package/dist/utils/airline.cjs +62 -0
  31. package/dist/utils/airline.js +10 -46
  32. package/dist/utils/animal.cjs +98 -0
  33. package/dist/utils/animal.js +19 -94
  34. package/dist/utils/book.cjs +58 -0
  35. package/dist/utils/book.js +9 -0
  36. package/dist/utils/color.cjs +78 -0
  37. package/dist/utils/color.js +14 -78
  38. package/dist/utils/commerce.cjs +66 -0
  39. package/dist/utils/commerce.js +11 -66
  40. package/dist/utils/common.cjs +37 -0
  41. package/dist/utils/common.js +3 -37
  42. package/dist/utils/company.cjs +70 -0
  43. package/dist/utils/company.js +12 -70
  44. package/dist/utils/database.cjs +54 -0
  45. package/dist/utils/database.js +8 -54
  46. package/dist/utils/datatype.cjs +38 -0
  47. package/dist/utils/datatype.js +4 -38
  48. package/dist/utils/datetime.cjs +78 -0
  49. package/dist/utils/datetime.js +14 -78
  50. package/dist/utils/finance.cjs +114 -0
  51. package/dist/utils/finance.js +23 -110
  52. package/dist/utils/food.cjs +70 -0
  53. package/dist/utils/food.js +12 -70
  54. package/dist/utils/git.cjs +54 -0
  55. package/dist/utils/git.js +8 -54
  56. package/dist/utils/hacker.cjs +58 -0
  57. package/dist/utils/hacker.js +9 -58
  58. package/dist/utils/image.cjs +58 -0
  59. package/dist/utils/image.js +9 -66
  60. package/dist/utils/index.cjs +143 -0
  61. package/dist/utils/index.js +29 -136
  62. package/dist/utils/internet.cjs +118 -0
  63. package/dist/utils/internet.js +24 -114
  64. package/dist/utils/location.cjs +110 -0
  65. package/dist/utils/location.js +22 -98
  66. package/dist/utils/lorem.cjs +70 -0
  67. package/dist/utils/lorem.js +12 -70
  68. package/dist/utils/music.cjs +50 -0
  69. package/dist/utils/music.js +7 -50
  70. package/dist/utils/number.cjs +62 -0
  71. package/dist/utils/number.js +10 -58
  72. package/dist/utils/person.cjs +94 -0
  73. package/dist/utils/person.js +18 -94
  74. package/dist/utils/phone.cjs +42 -0
  75. package/dist/utils/phone.js +5 -42
  76. package/dist/utils/science.cjs +42 -0
  77. package/dist/utils/science.js +5 -42
  78. package/dist/utils/string.cjs +78 -0
  79. package/dist/utils/string.js +14 -74
  80. package/dist/utils/system.cjs +82 -0
  81. package/dist/utils/system.js +15 -82
  82. package/dist/utils/utils.cjs +39 -0
  83. package/dist/utils/utils.js +3 -37
  84. package/dist/utils/vehicle.cjs +70 -0
  85. package/dist/utils/vehicle.js +12 -70
  86. package/dist/utils/word.cjs +70 -0
  87. package/dist/utils/word.js +12 -70
  88. package/package.json +26 -36
  89. package/biome.json +0 -31
  90. package/dist/config.mjs +0 -2
  91. package/dist/config_scheme.mjs +0 -46
  92. package/dist/create_config.mjs +0 -61
  93. package/dist/generator_fn.mjs +0 -2
  94. package/dist/index.mjs +0 -6
  95. package/dist/type.mjs +0 -0
  96. package/dist/utils/airline.d.ts +0 -14
  97. package/dist/utils/airline.mjs +0 -6
  98. package/dist/utils/animal.mjs +0 -18
  99. package/dist/utils/color.mjs +0 -14
  100. package/dist/utils/commerce.mjs +0 -11
  101. package/dist/utils/common.mjs +0 -3
  102. package/dist/utils/company.mjs +0 -12
  103. package/dist/utils/database.mjs +0 -8
  104. package/dist/utils/datatype.mjs +0 -4
  105. package/dist/utils/datetime.mjs +0 -14
  106. package/dist/utils/finance.mjs +0 -22
  107. package/dist/utils/food.mjs +0 -12
  108. package/dist/utils/git.mjs +0 -8
  109. package/dist/utils/hacker.mjs +0 -9
  110. package/dist/utils/image.mjs +0 -11
  111. package/dist/utils/index.mjs +0 -27
  112. package/dist/utils/internet.mjs +0 -23
  113. package/dist/utils/location.mjs +0 -19
  114. package/dist/utils/lorem.mjs +0 -12
  115. package/dist/utils/music.mjs +0 -7
  116. package/dist/utils/number.mjs +0 -9
  117. package/dist/utils/person.mjs +0 -18
  118. package/dist/utils/phone.mjs +0 -5
  119. package/dist/utils/science.mjs +0 -5
  120. package/dist/utils/string.mjs +0 -13
  121. package/dist/utils/system.mjs +0 -15
  122. package/dist/utils/utils.mjs +0 -5
  123. package/dist/utils/vehicle.mjs +0 -12
  124. package/dist/utils/word.mjs +0 -12
  125. package/pnpm-workspace.yaml +0 -2
  126. package/rslib.config.ts +0 -26
  127. package/src/config.ts +0 -8
  128. package/src/config_scheme.ts +0 -41
  129. package/src/create_config.test.ts +0 -70
  130. package/src/create_config.ts +0 -170
  131. package/src/create_generator_fn.test.ts +0 -229
  132. package/src/create_generator_fn.ts +0 -342
  133. package/src/generator_fn.ts +0 -9
  134. package/src/index.ts +0 -5
  135. package/src/type.ts +0 -167
  136. package/src/utils/airline.ts +0 -11
  137. package/src/utils/animal.ts +0 -47
  138. package/src/utils/color.ts +0 -41
  139. package/src/utils/commerce.ts +0 -32
  140. package/src/utils/common.ts +0 -4
  141. package/src/utils/company.ts +0 -33
  142. package/src/utils/database.ts +0 -19
  143. package/src/utils/datatype.ts +0 -5
  144. package/src/utils/datetime.ts +0 -35
  145. package/src/utils/finance.ts +0 -65
  146. package/src/utils/food.ts +0 -29
  147. package/src/utils/git.ts +0 -17
  148. package/src/utils/hacker.ts +0 -20
  149. package/src/utils/image.ts +0 -26
  150. package/src/utils/index.ts +0 -26
  151. package/src/utils/internet.ts +0 -62
  152. package/src/utils/location.ts +0 -58
  153. package/src/utils/lorem.ts +0 -29
  154. package/src/utils/music.ts +0 -14
  155. package/src/utils/number.ts +0 -20
  156. package/src/utils/person.ts +0 -47
  157. package/src/utils/phone.ts +0 -8
  158. package/src/utils/science.ts +0 -8
  159. package/src/utils/string.ts +0 -32
  160. package/src/utils/system.ts +0 -40
  161. package/src/utils/utils.ts +0 -8
  162. package/src/utils/vehicle.ts +0 -29
  163. package/src/utils/word.ts +0 -29
  164. package/tsconfig.json +0 -18
  165. /package/dist/{config.d.ts → types/config.d.ts} +0 -0
  166. /package/dist/{config_scheme.d.ts → types/config_scheme.d.ts} +0 -0
  167. /package/dist/{create_config.d.ts → types/create_config.d.ts} +0 -0
  168. /package/dist/{create_config.test.d.ts → types/create_config.test.d.ts} +0 -0
  169. /package/dist/{create_generator_fn.d.ts → types/create_generator_fn.d.ts} +0 -0
  170. /package/dist/{create_generator_fn.test.d.ts → types/create_generator_fn.test.d.ts} +0 -0
  171. /package/dist/{generator_fn.d.ts → types/generator_fn.d.ts} +0 -0
  172. /package/dist/{index.d.ts → types/index.d.ts} +0 -0
  173. /package/dist/{utils → types/utils}/commerce.d.ts +0 -0
  174. /package/dist/{utils → types/utils}/common.d.ts +0 -0
  175. /package/dist/{utils → types/utils}/company.d.ts +0 -0
  176. /package/dist/{utils → types/utils}/database.d.ts +0 -0
  177. /package/dist/{utils → types/utils}/datatype.d.ts +0 -0
  178. /package/dist/{utils → types/utils}/datetime.d.ts +0 -0
  179. /package/dist/{utils → types/utils}/food.d.ts +0 -0
  180. /package/dist/{utils → types/utils}/git.d.ts +0 -0
  181. /package/dist/{utils → types/utils}/hacker.d.ts +0 -0
  182. /package/dist/{utils → types/utils}/lorem.d.ts +0 -0
  183. /package/dist/{utils → types/utils}/music.d.ts +0 -0
  184. /package/dist/{utils → types/utils}/phone.d.ts +0 -0
  185. /package/dist/{utils → types/utils}/system.d.ts +0 -0
  186. /package/dist/{utils → types/utils}/utils.d.ts +0 -0
  187. /package/dist/{utils → types/utils}/vehicle.d.ts +0 -0
  188. /package/dist/{utils → types/utils}/word.d.ts +0 -0
@@ -0,0 +1,31 @@
1
+ import { faker } from "@faker-js/faker";
2
+ import type { ValueConfig } from "../type";
3
+ /** Airline [aircraftType](https://fakerjs.dev/api/airline.html#aircraftType) */
4
+ export declare const aircraftType: () => ValueConfig<"narrowbody" | "regional" | "widebody">;
5
+ type Airline = ReturnType<typeof faker.airline.airline>;
6
+ /** Airline [airline](https://fakerjs.dev/api/airline.html#airline) */
7
+ export declare const airline: () => ValueConfig<Airline>;
8
+ type Airplane = ReturnType<typeof faker.airline.airplane>;
9
+ /** Airline [airplane](https://fakerjs.dev/api/airline.html#airplane) */
10
+ export declare const airplane: () => ValueConfig<Airplane>;
11
+ type Airport = ReturnType<typeof faker.airline.airport>;
12
+ /** Airline [airport](https://fakerjs.dev/api/airline.html#airport) */
13
+ export declare const airport: () => ValueConfig<Airport>;
14
+ /** Airline [flightNumber](https://fakerjs.dev/api/airline.html#flightNumber) */
15
+ export declare const flightNumber: (options?: {
16
+ length?: number | {
17
+ min: number;
18
+ max: number;
19
+ };
20
+ addLeadingZeros?: boolean;
21
+ }) => ValueConfig<string>;
22
+ /** Airline [recordLocator](https://fakerjs.dev/api/airline.html#recordLocator) */
23
+ export declare const recordLocator: (options?: {
24
+ allowNumerics?: boolean;
25
+ allowVisuallySimilarCharacters?: boolean;
26
+ }) => ValueConfig<string>;
27
+ /** Airline [seat](https://fakerjs.dev/api/airline.html#seat) */
28
+ export declare const seat: (options?: {
29
+ aircraftType?: import("@faker-js/faker").AircraftType;
30
+ }) => ValueConfig<string>;
31
+ export {};
@@ -20,6 +20,8 @@ export declare const horse: () => import("..").ValueConfig<string>;
20
20
  export declare const insect: () => import("..").ValueConfig<string>;
21
21
  /** Animal [lion](https://fakerjs.dev/api/animal.html#lion) */
22
22
  export declare const lion: () => import("..").ValueConfig<string>;
23
+ /** Animal [petName](https://fakerjs.dev/api/animal.html#petName) */
24
+ export declare const petName: () => import("..").ValueConfig<string>;
23
25
  /** Animal [rabbit](https://fakerjs.dev/api/animal.html#rabbit) */
24
26
  export declare const rabbit: () => import("..").ValueConfig<string>;
25
27
  /** Animal [rodent](https://fakerjs.dev/api/animal.html#rodent) */
@@ -0,0 +1,12 @@
1
+ /** Book [author](https://fakerjs.dev/api/book.html#author) */
2
+ export declare const author: () => import("..").ValueConfig<string>;
3
+ /** Book [format](https://fakerjs.dev/api/book.html#format) */
4
+ export declare const format: () => import("..").ValueConfig<string>;
5
+ /** Book [genre](https://fakerjs.dev/api/book.html#genre) */
6
+ export declare const genre: () => import("..").ValueConfig<string>;
7
+ /** Book [publisher](https://fakerjs.dev/api/book.html#publisher) */
8
+ export declare const publisher: () => import("..").ValueConfig<string>;
9
+ /** Book [series](https://fakerjs.dev/api/book.html#series) */
10
+ export declare const series: () => import("..").ValueConfig<string>;
11
+ /** Book [title](https://fakerjs.dev/api/book.html#title) */
12
+ export declare const title: () => import("..").ValueConfig<string>;
@@ -1,11 +1,11 @@
1
1
  /** Color [cmyk](https://fakerjs.dev/api/color.html#cmyk) */
2
2
  export declare const cmyk: (options?: {
3
- format?: import("@faker-js/faker/.").ColorFormat;
3
+ format?: import("@faker-js/faker").ColorFormat;
4
4
  }) => import("..").ValueConfig<string | number[]>;
5
5
  /** Color [colorByCSSColorSpace](https://fakerjs.dev/api/color.html#colorByCSSColorSpace) */
6
6
  export declare const colorByCSSColorSpace: (options?: {
7
- format?: import("@faker-js/faker/.").ColorFormat;
8
- space?: import("@faker-js/faker/.").CssSpaceType;
7
+ format?: import("@faker-js/faker").ColorFormat;
8
+ space?: import("@faker-js/faker").CssSpaceType;
9
9
  }) => import("..").ValueConfig<string | number[]>;
10
10
  /** Color [cssSupportedFunction](https://fakerjs.dev/api/color.html#cssSupportedFunction) */
11
11
  export declare const cssSupportedFunction: () => import("..").ValueConfig<"rgb" | "rgba" | "hsl" | "hsla" | "hwb" | "cmyk" | "lab" | "lch" | "color">;
@@ -13,28 +13,28 @@ export declare const cssSupportedFunction: () => import("..").ValueConfig<"rgb"
13
13
  export declare const cssSupportedSpace: () => import("..").ValueConfig<"sRGB" | "display-p3" | "rec2020" | "a98-rgb" | "prophoto-rgb">;
14
14
  /** Color [hsl](https://fakerjs.dev/api/color.html#hsl) */
15
15
  export declare const hsl: (options?: {
16
- format?: import("@faker-js/faker/.").ColorFormat;
16
+ format?: import("@faker-js/faker").ColorFormat;
17
17
  includeAlpha?: boolean;
18
18
  }) => import("..").ValueConfig<string | number[]>;
19
19
  /** Color [human](https://fakerjs.dev/api/color.html#human) */
20
20
  export declare const human: () => import("..").ValueConfig<string>;
21
21
  /** Color [hwb](https://fakerjs.dev/api/color.html#hwb) */
22
22
  export declare const hwb: (options?: {
23
- format?: import("@faker-js/faker/.").ColorFormat;
23
+ format?: import("@faker-js/faker").ColorFormat;
24
24
  }) => import("..").ValueConfig<string | number[]>;
25
25
  /** Color [lab](https://fakerjs.dev/api/color.html#lab) */
26
26
  export declare const lab: (options?: {
27
- format?: import("@faker-js/faker/.").ColorFormat;
27
+ format?: import("@faker-js/faker").ColorFormat;
28
28
  }) => import("..").ValueConfig<string | number[]>;
29
29
  /** Color [lch](https://fakerjs.dev/api/color.html#lch) */
30
30
  export declare const lch: (options?: {
31
- format?: import("@faker-js/faker/.").ColorFormat;
31
+ format?: import("@faker-js/faker").ColorFormat;
32
32
  }) => import("..").ValueConfig<string | number[]>;
33
33
  /** Color [rgb](https://fakerjs.dev/api/color.html#rgb) */
34
34
  export declare const rgb: (options?: {
35
35
  prefix?: string;
36
- casing?: import("@faker-js/faker/.").Casing;
37
- format?: "hex" | import("@faker-js/faker/.").ColorFormat;
36
+ casing?: import("@faker-js/faker").Casing;
37
+ format?: "hex" | import("@faker-js/faker").ColorFormat;
38
38
  includeAlpha?: boolean;
39
39
  }) => import("..").ValueConfig<string | number[]>;
40
40
  /** Color [space](https://fakerjs.dev/api/color.html#space) */
@@ -18,8 +18,8 @@ export declare const bic: (options?: {
18
18
  }) => import("..").ValueConfig<string>;
19
19
  /** Finance [bitcoinAddress](https://fakerjs.dev/api/finance.html#bitcoinAddress) */
20
20
  export declare const bitcoinAddress: (options?: {
21
- type?: import("@faker-js/faker/.").BitcoinAddressFamilyType;
22
- network?: import("@faker-js/faker/.").BitcoinNetworkType;
21
+ type?: import("@faker-js/faker").BitcoinAddressFamilyType;
22
+ network?: import("@faker-js/faker").BitcoinNetworkType;
23
23
  }) => import("..").ValueConfig<string>;
24
24
  /** Finance [creditCardCVV](https://fakerjs.dev/api/finance.html#creditCardCVV) */
25
25
  export declare const creditCardCVV: () => import("..").ValueConfig<string>;
@@ -30,9 +30,13 @@ export declare const creditCardNumber: (options?: string | {
30
30
  issuer?: string;
31
31
  }) => import("..").ValueConfig<string>;
32
32
  /** Finance [currency](https://fakerjs.dev/api/finance.html#currency) */
33
- export declare const currency: () => import("..").ValueConfig<import("@faker-js/faker/.").Currency>;
33
+ export declare const currency: () => import("..").ValueConfig<import("@faker-js/faker").Currency>;
34
34
  /** Finance [currencyCode](https://fakerjs.dev/api/finance.html#currencyCode) */
35
35
  export declare const currencyCode: () => import("..").ValueConfig<string>;
36
+ /** Finance [currencyName](https://fakerjs.dev/api/finance.html#currencyName) */
37
+ export declare const currencyName: () => import("..").ValueConfig<string>;
38
+ /** Finance [currencyNumericCode](https://fakerjs.dev/api/finance.html#currencyNumericCode) */
39
+ export declare const currencyNumericCode: () => import("..").ValueConfig<string>;
36
40
  /** Finance [currencySymbol](https://fakerjs.dev/api/finance.html#currencySymbol) */
37
41
  export declare const currencySymbol: () => import("..").ValueConfig<string>;
38
42
  /** Finance [ethereumAddress](https://fakerjs.dev/api/finance.html#ethereumAddress) */
@@ -44,12 +48,6 @@ export declare const iban: (options?: {
44
48
  }) => import("..").ValueConfig<string>;
45
49
  /** Finance [litecoinAddress](https://fakerjs.dev/api/finance.html#litecoinAddress) */
46
50
  export declare const litecoinAddress: () => import("..").ValueConfig<string>;
47
- /** Finance [maskedNumber](https://fakerjs.dev/api/finance.html#maskedNumber) */
48
- export declare const maskedNumber: (optionsOrLength?: number | {
49
- length?: number;
50
- parens?: boolean;
51
- ellipsis?: boolean;
52
- }) => import("..").ValueConfig<string>;
53
51
  /** Finance [pin](https://fakerjs.dev/api/finance.html#pin) */
54
52
  export declare const pin: (options?: number | {
55
53
  length?: number;
@@ -2,8 +2,6 @@
2
2
  export declare const avatar: () => import("..").ValueConfig<string>;
3
3
  /** Image [avatarGitHub](https://fakerjs.dev/api/image.html#avatarGitHub) */
4
4
  export declare const avatarGitHub: () => import("..").ValueConfig<string>;
5
- /** Image [avatarLegacy](https://fakerjs.dev/api/image.html#avatarLegacy) */
6
- export declare const avatarLegacy: () => import("..").ValueConfig<string>;
7
5
  /** Image [dataUri](https://fakerjs.dev/api/image.html#dataUri) */
8
6
  export declare const dataUri: (options?: {
9
7
  width?: number;
@@ -29,12 +27,3 @@ export declare const urlPicsumPhotos: (options?: {
29
27
  grayscale?: boolean;
30
28
  blur?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
31
29
  }) => import("..").ValueConfig<string>;
32
- /** Image [urlPlaceholder](https://fakerjs.dev/api/image.html#urlPlaceholder) */
33
- export declare const urlPlaceholder: (options?: {
34
- width?: number;
35
- height?: number;
36
- backgroundColor?: string;
37
- textColor?: string;
38
- format?: "gif" | "jpeg" | "jpg" | "png" | "webp";
39
- text?: string;
40
- }) => import("..").ValueConfig<string>;
@@ -1,5 +1,6 @@
1
1
  export * as Airline from "./airline";
2
2
  export * as Animal from "./animal";
3
+ export * as Book from "./book";
3
4
  export * as Color from "./color";
4
5
  export * as Commerce from "./commerce";
5
6
  export * as Common from "./common";
@@ -23,4 +24,5 @@ export * as Science from "./science";
23
24
  export * as String from "./string";
24
25
  export * as System from "./system";
25
26
  export * as utils from "./utils";
27
+ export { makeValueConfigFn } from "./utils";
26
28
  export * as Vehicle from "./vehicle";
@@ -1,9 +1,3 @@
1
- /** Internet [color](https://fakerjs.dev/api/internet.html#color) */
2
- export declare const color: (options?: {
3
- redBase?: number;
4
- greenBase?: number;
5
- blueBase?: number;
6
- }) => import("..").ValueConfig<string>;
7
1
  /** Internet [displayName](https://fakerjs.dev/api/internet.html#displayName) */
8
2
  export declare const displayName: (options?: {
9
3
  firstName?: string;
@@ -44,10 +38,18 @@ export declare const ip: () => import("..").ValueConfig<string>;
44
38
  export declare const ipv4: (options?: {
45
39
  cidrBlock?: string;
46
40
  } | {
47
- network?: import("@faker-js/faker/.").IPv4NetworkType;
41
+ network?: import("@faker-js/faker").IPv4NetworkType;
48
42
  }) => import("..").ValueConfig<string>;
49
43
  /** Internet [ipv6](https://fakerjs.dev/api/internet.html#ipv6) */
50
44
  export declare const ipv6: () => import("..").ValueConfig<string>;
45
+ /** Internet [jwt](https://fakerjs.dev/api/internet.html#jwt) */
46
+ export declare const jwt: (options?: {
47
+ header?: Record<string, unknown>;
48
+ payload?: Record<string, unknown>;
49
+ refDate?: string | Date | number;
50
+ }) => import("..").ValueConfig<string>;
51
+ /** Internet [jwtAlgorithm](https://fakerjs.dev/api/internet.html#jwtAlgorithm) */
52
+ export declare const jwtAlgorithm: () => import("..").ValueConfig<string>;
51
53
  /** Internet [mac](https://fakerjs.dev/api/internet.html#mac) */
52
54
  export declare const mac: (options?: string | {
53
55
  separator?: string;
@@ -1,56 +1,69 @@
1
+ import { faker } from "@faker-js/faker";
2
+ import type { ValueConfig } from "../type";
1
3
  /** Location [buildingNumber](https://fakerjs.dev/api/location.html#buildingNumber) */
2
- export declare const buildingNumber: () => import("..").ValueConfig<string>;
4
+ export declare const buildingNumber: () => ValueConfig<string>;
3
5
  /** Location [cardinalDirection](https://fakerjs.dev/api/location.html#cardinalDirection) */
4
6
  export declare const cardinalDirection: (options?: {
5
7
  abbreviated?: boolean;
6
- }) => import("..").ValueConfig<string>;
8
+ }) => ValueConfig<string>;
7
9
  /** Location [city](https://fakerjs.dev/api/location.html#city) */
8
- export declare const city: () => import("..").ValueConfig<string>;
10
+ export declare const city: () => ValueConfig<string>;
11
+ /** Location [continent](https://fakerjs.dev/api/location.html#continent) */
12
+ export declare const continent: () => ValueConfig<string>;
9
13
  /** Location [country](https://fakerjs.dev/api/location.html#country) */
10
- export declare const country: () => import("..").ValueConfig<string>;
14
+ export declare const country: () => ValueConfig<string>;
11
15
  /** Location [countryCode](https://fakerjs.dev/api/location.html#countryCode) */
12
16
  export declare const countryCode: (options?: "alpha-2" | "alpha-3" | "numeric" | {
13
17
  variant?: "alpha-2" | "alpha-3" | "numeric";
14
- }) => import("..").ValueConfig<string>;
18
+ }) => ValueConfig<string>;
15
19
  /** Location [county](https://fakerjs.dev/api/location.html#county) */
16
- export declare const county: () => import("..").ValueConfig<string>;
20
+ export declare const county: () => ValueConfig<string>;
17
21
  /** Location [direction](https://fakerjs.dev/api/location.html#direction) */
18
22
  export declare const direction: (options?: {
19
23
  abbreviated?: boolean;
20
- }) => import("..").ValueConfig<string>;
24
+ }) => ValueConfig<string>;
25
+ type Language = ReturnType<typeof faker.location.language>;
26
+ /** Location [language](https://fakerjs.dev/api/location.html#language) */
27
+ export declare const language: () => ValueConfig<Language>;
21
28
  /** Location [latitude](https://fakerjs.dev/api/location.html#latitude) */
22
29
  export declare const latitude: (options?: {
23
30
  max?: number;
24
31
  min?: number;
25
32
  precision?: number;
26
- }) => import("..").ValueConfig<number>;
33
+ }) => ValueConfig<number>;
27
34
  /** Location [longitude](https://fakerjs.dev/api/location.html#longitude) */
28
35
  export declare const longitude: (options?: {
29
36
  max?: number;
30
37
  min?: number;
31
38
  precision?: number;
32
- }) => import("..").ValueConfig<number>;
39
+ }) => ValueConfig<number>;
33
40
  /** Location [nearbyGPSCoordinate](https://fakerjs.dev/api/location.html#nearbyGPSCoordinate) */
34
41
  export declare const nearbyGPSCoordinate: (options?: {
35
42
  origin?: [latitude: number, longitude: number];
36
43
  radius?: number;
37
44
  isMetric?: boolean;
38
- }) => import("..").ValueConfig<[latitude: number, longitude: number]>;
45
+ }) => ValueConfig<[latitude: number, longitude: number]>;
39
46
  /** Location [ordinalDirection](https://fakerjs.dev/api/location.html#ordinalDirection) */
40
47
  export declare const ordinalDirection: (options?: {
41
48
  abbreviated?: boolean;
42
- }) => import("..").ValueConfig<string>;
49
+ }) => ValueConfig<string>;
43
50
  /** Location [secondaryAddress](https://fakerjs.dev/api/location.html#secondaryAddress) */
44
- export declare const secondaryAddress: () => import("..").ValueConfig<string>;
51
+ export declare const secondaryAddress: () => ValueConfig<string>;
45
52
  /** Location [state](https://fakerjs.dev/api/location.html#state) */
46
53
  export declare const state: (options?: {
47
54
  abbreviated?: boolean;
48
- }) => import("..").ValueConfig<string>;
55
+ }) => ValueConfig<string>;
49
56
  /** Location [street](https://fakerjs.dev/api/location.html#street) */
50
- export declare const street: () => import("..").ValueConfig<string>;
57
+ export declare const street: () => ValueConfig<string>;
51
58
  /** Location [streetAddress](https://fakerjs.dev/api/location.html#streetAddress) */
52
59
  export declare const streetAddress: (options?: boolean | {
53
60
  useFullAddress?: boolean;
54
- }) => import("..").ValueConfig<string>;
61
+ }) => ValueConfig<string>;
55
62
  /** Location [timeZone](https://fakerjs.dev/api/location.html#timeZone) */
56
- export declare const timeZone: () => import("..").ValueConfig<string>;
63
+ export declare const timeZone: () => ValueConfig<string>;
64
+ /** Location [zipCode](https://fakerjs.dev/api/location.html#zipCode) */
65
+ export declare const zipCode: (options?: string | {
66
+ state?: string;
67
+ format?: string;
68
+ }) => ValueConfig<string>;
69
+ export {};
@@ -32,3 +32,8 @@ export declare const octal: (options?: number | {
32
32
  min?: number;
33
33
  max?: number;
34
34
  }) => import("..").ValueConfig<string>;
35
+ /** Number [romanNumeral](https://fakerjs.dev/api/number.html#romanNumeral) */
36
+ export declare const romanNumeral: (options?: number | {
37
+ min?: number;
38
+ max?: number;
39
+ }) => import("..").ValueConfig<string>;
@@ -6,7 +6,7 @@ export declare const firstName: (sex?: "female" | "male") => import("..").ValueC
6
6
  export declare const fullName: (options?: {
7
7
  firstName?: string;
8
8
  lastName?: string;
9
- sex?: import("@faker-js/faker/.").SexType;
9
+ sex?: import("@faker-js/faker").SexType;
10
10
  }) => import("..").ValueConfig<string>;
11
11
  /** Person [gender](https://fakerjs.dev/api/person.html#gender) */
12
12
  export declare const gender: () => import("..").ValueConfig<string>;
@@ -1,4 +1,4 @@
1
1
  /** Science [chemicalElement](https://fakerjs.dev/api/science.html#chemicalElement) */
2
- export declare const chemicalElement: () => import("..").ValueConfig<import("@faker-js/faker/.").ChemicalElement>;
2
+ export declare const chemicalElement: () => import("..").ValueConfig<import("@faker-js/faker").ChemicalElement>;
3
3
  /** Science [unit](https://fakerjs.dev/api/science.html#unit) */
4
- export declare const unit: () => import("..").ValueConfig<import("@faker-js/faker/.").Unit>;
4
+ export declare const unit: () => import("..").ValueConfig<import("@faker-js/faker").Unit>;
@@ -65,5 +65,9 @@ export declare const symbol: (length?: number | {
65
65
  min: number;
66
66
  max: number;
67
67
  }) => import("..").ValueConfig<string>;
68
+ /** String [ulid](https://fakerjs.dev/api/string.html#ulid) */
69
+ export declare const ulid: (options?: {
70
+ refDate?: string | Date | number;
71
+ }) => import("..").ValueConfig<string>;
68
72
  /** String [uuid](https://fakerjs.dev/api/string.html#uuid) */
69
73
  export declare const uuid: () => import("..").ValueConfig<string>;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = (exports1, definition)=>{
5
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
+ enumerable: true,
7
+ get: definition[key]
8
+ });
9
+ };
10
+ })();
11
+ (()=>{
12
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
+ })();
14
+ (()=>{
15
+ __webpack_require__.r = (exports1)=>{
16
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
+ value: 'Module'
18
+ });
19
+ Object.defineProperty(exports1, '__esModule', {
20
+ value: true
21
+ });
22
+ };
23
+ })();
24
+ var __webpack_exports__ = {};
25
+ __webpack_require__.r(__webpack_exports__);
26
+ __webpack_require__.d(__webpack_exports__, {
27
+ airport: ()=>airport,
28
+ recordLocator: ()=>recordLocator,
29
+ flightNumber: ()=>flightNumber,
30
+ aircraftType: ()=>aircraftType,
31
+ airline: ()=>airline,
32
+ seat: ()=>seat,
33
+ airplane: ()=>airplane
34
+ });
35
+ const faker_namespaceObject = require("@faker-js/faker");
36
+ const external_utils_cjs_namespaceObject = require("./utils.cjs");
37
+ const aircraftType = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.airline.aircraftType);
38
+ const airline = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.airline.airline);
39
+ const airplane = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.airline.airplane);
40
+ const airport = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.airline.airport);
41
+ const flightNumber = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.airline.flightNumber);
42
+ const recordLocator = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.airline.recordLocator);
43
+ const seat = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.airline.seat);
44
+ exports.aircraftType = __webpack_exports__.aircraftType;
45
+ exports.airline = __webpack_exports__.airline;
46
+ exports.airplane = __webpack_exports__.airplane;
47
+ exports.airport = __webpack_exports__.airport;
48
+ exports.flightNumber = __webpack_exports__.flightNumber;
49
+ exports.recordLocator = __webpack_exports__.recordLocator;
50
+ exports.seat = __webpack_exports__.seat;
51
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
52
+ "aircraftType",
53
+ "airline",
54
+ "airplane",
55
+ "airport",
56
+ "flightNumber",
57
+ "recordLocator",
58
+ "seat"
59
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
60
+ Object.defineProperty(exports, '__esModule', {
61
+ value: true
62
+ });
@@ -1,46 +1,10 @@
1
- "use strict";
2
- var __webpack_require__ = {};
3
- (()=>{
4
- __webpack_require__.d = (exports1, definition)=>{
5
- for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
- enumerable: true,
7
- get: definition[key]
8
- });
9
- };
10
- })();
11
- (()=>{
12
- __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
- })();
14
- (()=>{
15
- __webpack_require__.r = (exports1)=>{
16
- if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
- value: 'Module'
18
- });
19
- Object.defineProperty(exports1, '__esModule', {
20
- value: true
21
- });
22
- };
23
- })();
24
- var __webpack_exports__ = {};
25
- __webpack_require__.r(__webpack_exports__);
26
- __webpack_require__.d(__webpack_exports__, {
27
- seat: ()=>seat,
28
- flightNumber: ()=>flightNumber,
29
- aircraftType: ()=>aircraftType
30
- });
31
- const faker_namespaceObject = require("@faker-js/faker");
32
- const external_utils_js_namespaceObject = require("./utils.js");
33
- const aircraftType = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.airline.aircraftType);
34
- const flightNumber = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.airline.flightNumber);
35
- const seat = (0, external_utils_js_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.airline.seat);
36
- exports.aircraftType = __webpack_exports__.aircraftType;
37
- exports.flightNumber = __webpack_exports__.flightNumber;
38
- exports.seat = __webpack_exports__.seat;
39
- for(var __webpack_i__ in __webpack_exports__)if (-1 === [
40
- "aircraftType",
41
- "flightNumber",
42
- "seat"
43
- ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
44
- Object.defineProperty(exports, '__esModule', {
45
- value: true
46
- });
1
+ import { faker } from "@faker-js/faker";
2
+ import { makeValueConfigFn } from "./utils.js";
3
+ const aircraftType = makeValueConfigFn(faker.airline.aircraftType);
4
+ const airline = makeValueConfigFn(faker.airline.airline);
5
+ const airplane = makeValueConfigFn(faker.airline.airplane);
6
+ const airport = makeValueConfigFn(faker.airline.airport);
7
+ const flightNumber = makeValueConfigFn(faker.airline.flightNumber);
8
+ const recordLocator = makeValueConfigFn(faker.airline.recordLocator);
9
+ const seat = makeValueConfigFn(faker.airline.seat);
10
+ export { aircraftType, airline, airplane, airport, flightNumber, recordLocator, seat };
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = (exports1, definition)=>{
5
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
+ enumerable: true,
7
+ get: definition[key]
8
+ });
9
+ };
10
+ })();
11
+ (()=>{
12
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
+ })();
14
+ (()=>{
15
+ __webpack_require__.r = (exports1)=>{
16
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
+ value: 'Module'
18
+ });
19
+ Object.defineProperty(exports1, '__esModule', {
20
+ value: true
21
+ });
22
+ };
23
+ })();
24
+ var __webpack_exports__ = {};
25
+ __webpack_require__.r(__webpack_exports__);
26
+ __webpack_require__.d(__webpack_exports__, {
27
+ dog: ()=>dog,
28
+ cow: ()=>cow,
29
+ cetacean: ()=>cetacean,
30
+ lion: ()=>lion,
31
+ bird: ()=>bird,
32
+ insect: ()=>insect,
33
+ rodent: ()=>rodent,
34
+ bear: ()=>bear,
35
+ type: ()=>type,
36
+ fish: ()=>fish,
37
+ snake: ()=>snake,
38
+ rabbit: ()=>rabbit,
39
+ crocodilia: ()=>crocodilia,
40
+ petName: ()=>petName,
41
+ cat: ()=>cat,
42
+ horse: ()=>horse
43
+ });
44
+ const faker_namespaceObject = require("@faker-js/faker");
45
+ const external_utils_cjs_namespaceObject = require("./utils.cjs");
46
+ const bear = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.animal.bear);
47
+ const bird = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.animal.bird);
48
+ const cat = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.animal.cat);
49
+ const cetacean = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.animal.cetacean);
50
+ const cow = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.animal.cow);
51
+ const crocodilia = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.animal.crocodilia);
52
+ const dog = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.animal.dog);
53
+ const fish = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.animal.fish);
54
+ const horse = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.animal.horse);
55
+ const insect = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.animal.insect);
56
+ const lion = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.animal.lion);
57
+ const petName = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.animal.petName);
58
+ const rabbit = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.animal.rabbit);
59
+ const rodent = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.animal.rodent);
60
+ const snake = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.animal.snake);
61
+ const type = (0, external_utils_cjs_namespaceObject.makeValueConfigFn)(faker_namespaceObject.faker.animal.type);
62
+ exports.bear = __webpack_exports__.bear;
63
+ exports.bird = __webpack_exports__.bird;
64
+ exports.cat = __webpack_exports__.cat;
65
+ exports.cetacean = __webpack_exports__.cetacean;
66
+ exports.cow = __webpack_exports__.cow;
67
+ exports.crocodilia = __webpack_exports__.crocodilia;
68
+ exports.dog = __webpack_exports__.dog;
69
+ exports.fish = __webpack_exports__.fish;
70
+ exports.horse = __webpack_exports__.horse;
71
+ exports.insect = __webpack_exports__.insect;
72
+ exports.lion = __webpack_exports__.lion;
73
+ exports.petName = __webpack_exports__.petName;
74
+ exports.rabbit = __webpack_exports__.rabbit;
75
+ exports.rodent = __webpack_exports__.rodent;
76
+ exports.snake = __webpack_exports__.snake;
77
+ exports.type = __webpack_exports__.type;
78
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
79
+ "bear",
80
+ "bird",
81
+ "cat",
82
+ "cetacean",
83
+ "cow",
84
+ "crocodilia",
85
+ "dog",
86
+ "fish",
87
+ "horse",
88
+ "insect",
89
+ "lion",
90
+ "petName",
91
+ "rabbit",
92
+ "rodent",
93
+ "snake",
94
+ "type"
95
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
96
+ Object.defineProperty(exports, '__esModule', {
97
+ value: true
98
+ });