struct-fakerator 2.3.3 → 2.4.4

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 (238) hide show
  1. package/README.md +12 -13
  2. package/biome.json +2 -1
  3. package/dist/airline-BUwgrfsj.d.ts +26 -0
  4. package/dist/airline-C0ManYED.d.mts +26 -0
  5. package/dist/animal-arG64NM6.d.mts +53 -0
  6. package/dist/animal-erAZXs_d.d.ts +53 -0
  7. package/dist/chunk-2R3Q64AD.mjs +28 -0
  8. package/dist/chunk-3HQMGDUF.js +98 -0
  9. package/dist/chunk-4UGSTE5Q.js +1968 -0
  10. package/dist/chunk-5U5KT6H4.js +61 -0
  11. package/dist/chunk-7GE2A5VT.mjs +43 -0
  12. package/dist/chunk-7R4M2AAS.js +25 -0
  13. package/dist/chunk-7YNCYSJY.js +19 -0
  14. package/dist/chunk-A5HM6XTD.js +76 -0
  15. package/dist/chunk-AONYMB6O.mjs +40 -0
  16. package/dist/chunk-ARUJ7L4V.mjs +64 -0
  17. package/dist/chunk-BB5LVHI7.mjs +46 -0
  18. package/dist/chunk-BELV2S6H.js +46 -0
  19. package/dist/chunk-BS7IEV74.mjs +1968 -0
  20. package/dist/chunk-BXJJGEM5.js +22 -0
  21. package/dist/chunk-CFX43E3I.mjs +22 -0
  22. package/dist/chunk-D7PC2EQM.mjs +73 -0
  23. package/dist/chunk-DF3HCW6W.js +43 -0
  24. package/dist/chunk-DVBKP7FB.mjs +31 -0
  25. package/dist/chunk-EDATUWC4.js +40 -0
  26. package/dist/chunk-FLNVEEY2.mjs +34 -0
  27. package/dist/chunk-GE7QO474.js +64 -0
  28. package/dist/chunk-H4XUR4CP.mjs +34 -0
  29. package/dist/chunk-HADENNJW.js +22 -0
  30. package/dist/chunk-HHL3SY7A.js +34 -0
  31. package/dist/chunk-HOVGSNA4.js +73 -0
  32. package/dist/chunk-J266ZY25.mjs +22 -0
  33. package/dist/chunk-J3IXKUJK.js +61 -0
  34. package/dist/chunk-J5ZX7PK3.js +34 -0
  35. package/dist/chunk-L7PFM742.mjs +49 -0
  36. package/dist/chunk-LBQLRQOQ.js +28 -0
  37. package/dist/chunk-LJKI4ZZ5.mjs +43 -0
  38. package/dist/chunk-M2J3MAM7.mjs +52 -0
  39. package/dist/chunk-NEE5QKPY.mjs +40 -0
  40. package/dist/chunk-OLSCXZ3D.mjs +98 -0
  41. package/dist/chunk-P65FYBLE.mjs +61 -0
  42. package/dist/chunk-PVPH6A5C.mjs +43 -0
  43. package/dist/chunk-RKTNWUZK.js +43 -0
  44. package/dist/chunk-S73SWVKV.js +31 -0
  45. package/dist/chunk-SYSS7JTS.js +49 -0
  46. package/dist/chunk-T5JPOARU.js +40 -0
  47. package/dist/chunk-TX7HRLKE.mjs +19 -0
  48. package/dist/chunk-USSK73G6.js +43 -0
  49. package/dist/chunk-VCWW76K4.mjs +61 -0
  50. package/dist/chunk-WJ5EC6UN.js +49 -0
  51. package/dist/chunk-X5TOZB77.mjs +43 -0
  52. package/dist/chunk-XG6RUZSI.mjs +16 -0
  53. package/dist/chunk-XL5V4E3Z.js +16 -0
  54. package/dist/chunk-XPZ47TRN.js +52 -0
  55. package/dist/chunk-YJWVP2PN.mjs +31 -0
  56. package/dist/chunk-YQWQUNOA.js +31 -0
  57. package/dist/chunk-YTTIRC5J.mjs +49 -0
  58. package/dist/chunk-YY2TF7WC.mjs +25 -0
  59. package/dist/chunk-ZPQWZLYI.js +43 -0
  60. package/dist/chunk-ZRQDW34U.mjs +76 -0
  61. package/dist/color-BmTZnKiW.d.mts +61 -0
  62. package/dist/color-WFinq_Y4.d.ts +61 -0
  63. package/dist/commerce-Ch71_dd2.d.ts +40 -0
  64. package/dist/commerce-IGFkOXjQ.d.mts +40 -0
  65. package/dist/common-CbuXAeQ-.d.mts +11 -0
  66. package/dist/common-Kp8LaAzK.d.ts +11 -0
  67. package/dist/company---O1IwYo.d.ts +35 -0
  68. package/dist/company-D7Cc_hsx.d.mts +35 -0
  69. package/dist/database-B8Wr1oXH.d.mts +23 -0
  70. package/dist/database-Dnsy3cQb.d.ts +23 -0
  71. package/dist/datatype-CAu_sc1g.d.ts +13 -0
  72. package/dist/datatype-gjFHrdMj.d.mts +13 -0
  73. package/dist/datetime-BDgsnqq_.d.mts +78 -0
  74. package/dist/datetime-BkidbR1O.d.ts +78 -0
  75. package/dist/finance-BZEmlfNQ.d.mts +90 -0
  76. package/dist/finance-Cn3DFbX4.d.ts +90 -0
  77. package/dist/food-CfxZX81O.d.mts +35 -0
  78. package/dist/food-tr11e_Qp.d.ts +35 -0
  79. package/dist/git-DoCI9ZYT.d.ts +31 -0
  80. package/dist/git-Feo1ntKa.d.mts +31 -0
  81. package/dist/hacker-X3zBTMoE.d.ts +26 -0
  82. package/dist/hacker-mGVIO_wL.d.mts +26 -0
  83. package/dist/image-BeZbZlyo.d.ts +56 -0
  84. package/dist/image-govZ7HjA.d.mts +56 -0
  85. package/dist/index.d.mts +2 -682
  86. package/dist/index.d.ts +2 -682
  87. package/dist/index.js +22 -2439
  88. package/dist/index.mjs +20 -2390
  89. package/dist/internet-CJEETk0v.d.mts +101 -0
  90. package/dist/internet-jHHnqVJG.d.ts +101 -0
  91. package/dist/location-CTA_Bq7w.d.mts +80 -0
  92. package/dist/location-CsVekxIU.d.ts +80 -0
  93. package/dist/lorem-BE4n3dVs.d.mts +62 -0
  94. package/dist/lorem-Btv0fltY.d.ts +62 -0
  95. package/dist/music-CQ3lnDvg.d.mts +20 -0
  96. package/dist/music-D3zj5REe.d.ts +20 -0
  97. package/dist/number-Bj9ydAOH.d.ts +47 -0
  98. package/dist/number-D9Wn_qjS.d.mts +47 -0
  99. package/dist/person-LLleVozS.d.ts +58 -0
  100. package/dist/person-OKRyYmeX.d.mts +58 -0
  101. package/dist/phone-Bc8UXPF3.d.ts +16 -0
  102. package/dist/phone-QbHXAqVF.d.mts +16 -0
  103. package/dist/science-BgXAZ3YR.d.ts +15 -0
  104. package/dist/science-CSN41yUZ.d.mts +15 -0
  105. package/dist/string-9w976kVk.d.mts +87 -0
  106. package/dist/string-Cm9TczI6.d.ts +87 -0
  107. package/dist/system-DOyHjHxs.d.mts +55 -0
  108. package/dist/system-DipW6DYb.d.ts +55 -0
  109. package/dist/type-C8Ny1fB6.d.mts +33 -0
  110. package/dist/type-C8Ny1fB6.d.ts +33 -0
  111. package/dist/utils/airline.d.mts +3 -0
  112. package/dist/utils/airline.d.ts +3 -0
  113. package/dist/utils/airline.js +12 -0
  114. package/dist/utils/airline.mjs +12 -0
  115. package/dist/utils/animal.d.mts +2 -0
  116. package/dist/utils/animal.d.ts +2 -0
  117. package/dist/utils/animal.js +36 -0
  118. package/dist/utils/animal.mjs +36 -0
  119. package/dist/utils/color.d.mts +3 -0
  120. package/dist/utils/color.d.ts +3 -0
  121. package/dist/utils/color.js +28 -0
  122. package/dist/utils/color.mjs +28 -0
  123. package/dist/utils/commerce.d.mts +2 -0
  124. package/dist/utils/commerce.d.ts +2 -0
  125. package/dist/utils/commerce.js +22 -0
  126. package/dist/utils/commerce.mjs +22 -0
  127. package/dist/utils/common.d.mts +2 -0
  128. package/dist/utils/common.d.ts +2 -0
  129. package/dist/utils/common.js +7 -0
  130. package/dist/utils/common.mjs +7 -0
  131. package/dist/utils/company.d.mts +2 -0
  132. package/dist/utils/company.d.ts +2 -0
  133. package/dist/utils/company.js +24 -0
  134. package/dist/utils/company.mjs +24 -0
  135. package/dist/utils/database.d.mts +2 -0
  136. package/dist/utils/database.d.ts +2 -0
  137. package/dist/utils/database.js +16 -0
  138. package/dist/utils/database.mjs +16 -0
  139. package/dist/utils/datatype.d.mts +2 -0
  140. package/dist/utils/datatype.d.ts +2 -0
  141. package/dist/utils/datatype.js +8 -0
  142. package/dist/utils/datatype.mjs +8 -0
  143. package/dist/utils/datetime.d.mts +2 -0
  144. package/dist/utils/datetime.d.ts +2 -0
  145. package/dist/utils/datetime.js +28 -0
  146. package/dist/utils/datetime.mjs +28 -0
  147. package/dist/utils/finance.d.mts +3 -0
  148. package/dist/utils/finance.d.ts +3 -0
  149. package/dist/utils/finance.js +44 -0
  150. package/dist/utils/finance.mjs +44 -0
  151. package/dist/utils/food.d.mts +2 -0
  152. package/dist/utils/food.d.ts +2 -0
  153. package/dist/utils/food.js +24 -0
  154. package/dist/utils/food.mjs +24 -0
  155. package/dist/utils/git.d.mts +2 -0
  156. package/dist/utils/git.d.ts +2 -0
  157. package/dist/utils/git.js +16 -0
  158. package/dist/utils/git.mjs +16 -0
  159. package/dist/utils/hacker.d.mts +2 -0
  160. package/dist/utils/hacker.d.ts +2 -0
  161. package/dist/utils/hacker.js +18 -0
  162. package/dist/utils/hacker.mjs +18 -0
  163. package/dist/utils/image.d.mts +2 -0
  164. package/dist/utils/image.d.ts +2 -0
  165. package/dist/utils/image.js +22 -0
  166. package/dist/utils/image.mjs +22 -0
  167. package/dist/utils/index.d.mts +27 -0
  168. package/dist/utils/index.d.ts +27 -0
  169. package/dist/utils/index.js +104 -0
  170. package/dist/utils/index.mjs +104 -0
  171. package/dist/utils/internet.d.mts +2 -0
  172. package/dist/utils/internet.d.ts +2 -0
  173. package/dist/utils/internet.js +46 -0
  174. package/dist/utils/internet.mjs +46 -0
  175. package/dist/utils/location.d.mts +2 -0
  176. package/dist/utils/location.d.ts +2 -0
  177. package/dist/utils/location.js +38 -0
  178. package/dist/utils/location.mjs +38 -0
  179. package/dist/utils/lorem.d.mts +2 -0
  180. package/dist/utils/lorem.d.ts +2 -0
  181. package/dist/utils/lorem.js +24 -0
  182. package/dist/utils/lorem.mjs +24 -0
  183. package/dist/utils/music.d.mts +2 -0
  184. package/dist/utils/music.d.ts +2 -0
  185. package/dist/utils/music.js +14 -0
  186. package/dist/utils/music.mjs +14 -0
  187. package/dist/utils/number.d.mts +2 -0
  188. package/dist/utils/number.d.ts +2 -0
  189. package/dist/utils/number.js +18 -0
  190. package/dist/utils/number.mjs +18 -0
  191. package/dist/utils/person.d.mts +3 -0
  192. package/dist/utils/person.d.ts +3 -0
  193. package/dist/utils/person.js +36 -0
  194. package/dist/utils/person.mjs +36 -0
  195. package/dist/utils/phone.d.mts +2 -0
  196. package/dist/utils/phone.d.ts +2 -0
  197. package/dist/utils/phone.js +10 -0
  198. package/dist/utils/phone.mjs +10 -0
  199. package/dist/utils/science.d.mts +3 -0
  200. package/dist/utils/science.d.ts +3 -0
  201. package/dist/utils/science.js +10 -0
  202. package/dist/utils/science.mjs +10 -0
  203. package/dist/utils/string.d.mts +2 -0
  204. package/dist/utils/string.d.ts +2 -0
  205. package/dist/utils/string.js +26 -0
  206. package/dist/utils/string.mjs +26 -0
  207. package/dist/utils/system.d.mts +2 -0
  208. package/dist/utils/system.d.ts +2 -0
  209. package/dist/utils/system.js +30 -0
  210. package/dist/utils/system.mjs +30 -0
  211. package/dist/utils/vehicle.d.mts +2 -0
  212. package/dist/utils/vehicle.d.ts +2 -0
  213. package/dist/utils/vehicle.js +24 -0
  214. package/dist/utils/vehicle.mjs +24 -0
  215. package/dist/utils/word.d.mts +75 -0
  216. package/dist/utils/word.d.ts +75 -0
  217. package/dist/utils/word.js +28 -0
  218. package/dist/utils/word.mjs +28 -0
  219. package/dist/vehicle-DmBDda98.d.mts +35 -0
  220. package/dist/vehicle-rnBz1Za2.d.ts +35 -0
  221. package/package.json +41 -10
  222. package/src/create_config.test.ts +4 -4
  223. package/src/create_config.ts +7 -7
  224. package/src/create_generator_fn.test.ts +11 -11
  225. package/src/create_generator_fn.ts +8 -8
  226. package/src/index.ts +0 -1
  227. package/src/utils/food.ts +43 -0
  228. package/src/utils/git.ts +25 -0
  229. package/src/utils/hacker.ts +28 -0
  230. package/src/utils/image.ts +39 -0
  231. package/src/utils/index.ts +10 -29
  232. package/src/utils/internet.ts +93 -0
  233. package/src/utils/location.ts +78 -0
  234. package/src/utils/music.ts +18 -0
  235. package/src/utils/science.ts +11 -0
  236. package/src/utils/system.ts +59 -0
  237. package/src/utils/vehicle.ts +39 -0
  238. package/tsup.config.ts +8 -0
package/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # 假資料結構產生器
2
2
 
3
-
4
3
  - [假資料結構產生器](#假資料結構產生器)
5
- - [port to fakerjs](#port-to-fakerjs)
4
+ - [Wrapping fakerjs Functions](#wrapping-fakerjs-functions)
6
5
  - [用途](#用途)
7
6
  - [createValueGenerator](#createvaluegenerator)
8
7
  - [createSelectionGenerator](#createselectiongenerator)
@@ -12,7 +11,7 @@
12
11
  - [createBoundedSeriesGenerator](#createboundedseriesgenerator)
13
12
  - [擴充](#擴充)
14
13
 
15
- ## port to fakerjs
14
+ ## Wrapping fakerjs Functions
16
15
 
17
16
  - [X] Airline
18
17
  - [X] Animal
@@ -23,21 +22,21 @@
23
22
  - [X] Datatype
24
23
  - [X] Date(Datetime)
25
24
  - [X] Finance
26
- - [ ] Food
27
- - [ ] Git
28
- - [ ] Hacker
29
- - [ ] Image
30
- - [ ] Internet
31
- - [ ] Location
25
+ - [X] Food
26
+ - [X] Git
27
+ - [X] Hacker
28
+ - [X] Image
29
+ - [X] Internet
30
+ - [X] Location
32
31
  - [X] Lorem
33
- - [ ] Music
32
+ - [X] Music
34
33
  - [X] Number
35
34
  - [X] Person
36
35
  - [X] Phone
37
- - [ ] Science
36
+ - [X] Science
38
37
  - [X] String
39
- - [ ] System
40
- - [ ] Vehicle
38
+ - [X] System
39
+ - [X] Vehicle
41
40
 
42
41
  ## 用途
43
42
 
package/biome.json CHANGED
@@ -15,7 +15,8 @@
15
15
  "formatter": {
16
16
  "indentStyle": "space",
17
17
  "include": [
18
- "src/**/*"
18
+ "src/**/*",
19
+ "tsup.config.ts"
19
20
  ]
20
21
  },
21
22
  "javascript": {
@@ -0,0 +1,26 @@
1
+ import * as _faker_js_faker__ from '@faker-js/faker/.';
2
+ import { V as ValueConfig } from './type-C8Ny1fB6.js';
3
+
4
+ /** Airline [aircraftType](https://fakerjs.dev/api/airline.html#aircraftType) */
5
+ declare const aircraftType: () => ValueConfig<"narrowbody" | "regional" | "widebody">;
6
+ /** Airline [flightNumber](https://fakerjs.dev/api/airline.html#flightNumber) */
7
+ declare const flightNumber: (options?: {
8
+ length?: number | {
9
+ min: number;
10
+ max: number;
11
+ };
12
+ addLeadingZeros?: boolean;
13
+ }) => ValueConfig<string>;
14
+ /** Airline [seat](https://fakerjs.dev/api/airline.html#seat) */
15
+ declare const seat: (options?: {
16
+ aircraftType?: _faker_js_faker__.AircraftType;
17
+ }) => ValueConfig<string>;
18
+
19
+ declare const airline_aircraftType: typeof aircraftType;
20
+ declare const airline_flightNumber: typeof flightNumber;
21
+ declare const airline_seat: typeof seat;
22
+ declare namespace airline {
23
+ export { airline_aircraftType as aircraftType, airline_flightNumber as flightNumber, airline_seat as seat };
24
+ }
25
+
26
+ export { airline as a, aircraftType as b, flightNumber as f, seat as s };
@@ -0,0 +1,26 @@
1
+ import * as _faker_js_faker__ from '@faker-js/faker/.';
2
+ import { V as ValueConfig } from './type-C8Ny1fB6.mjs';
3
+
4
+ /** Airline [aircraftType](https://fakerjs.dev/api/airline.html#aircraftType) */
5
+ declare const aircraftType: () => ValueConfig<"narrowbody" | "regional" | "widebody">;
6
+ /** Airline [flightNumber](https://fakerjs.dev/api/airline.html#flightNumber) */
7
+ declare const flightNumber: (options?: {
8
+ length?: number | {
9
+ min: number;
10
+ max: number;
11
+ };
12
+ addLeadingZeros?: boolean;
13
+ }) => ValueConfig<string>;
14
+ /** Airline [seat](https://fakerjs.dev/api/airline.html#seat) */
15
+ declare const seat: (options?: {
16
+ aircraftType?: _faker_js_faker__.AircraftType;
17
+ }) => ValueConfig<string>;
18
+
19
+ declare const airline_aircraftType: typeof aircraftType;
20
+ declare const airline_flightNumber: typeof flightNumber;
21
+ declare const airline_seat: typeof seat;
22
+ declare namespace airline {
23
+ export { airline_aircraftType as aircraftType, airline_flightNumber as flightNumber, airline_seat as seat };
24
+ }
25
+
26
+ export { airline as a, aircraftType as b, flightNumber as f, seat as s };
@@ -0,0 +1,53 @@
1
+ import { V as ValueConfig } from './type-C8Ny1fB6.mjs';
2
+
3
+ /** Animal [bear](https://fakerjs.dev/api/animal.html#bear) */
4
+ declare const bear: () => ValueConfig<string>;
5
+ /** Animal [bird](https://fakerjs.dev/api/animal.html#bird) */
6
+ declare const bird: () => ValueConfig<string>;
7
+ /** Animal [cat](https://fakerjs.dev/api/animal.html#cat) */
8
+ declare const cat: () => ValueConfig<string>;
9
+ /** Animal [cetacean](https://fakerjs.dev/api/animal.html#cetacean) */
10
+ declare const cetacean: () => ValueConfig<string>;
11
+ /** Animal [cow](https://fakerjs.dev/api/animal.html#cow) */
12
+ declare const cow: () => ValueConfig<string>;
13
+ /** Animal [crocodilia](https://fakerjs.dev/api/animal.html#crocodilia) */
14
+ declare const crocodilia: () => ValueConfig<string>;
15
+ /** Animal [dog](https://fakerjs.dev/api/animal.html#dog) */
16
+ declare const dog: () => ValueConfig<string>;
17
+ /** Animal [fish](https://fakerjs.dev/api/animal.html#fish) */
18
+ declare const fish: () => ValueConfig<string>;
19
+ /** Animal [horse](https://fakerjs.dev/api/animal.html#horse) */
20
+ declare const horse: () => ValueConfig<string>;
21
+ /** Animal [insect](https://fakerjs.dev/api/animal.html#insect) */
22
+ declare const insect: () => ValueConfig<string>;
23
+ /** Animal [lion](https://fakerjs.dev/api/animal.html#lion) */
24
+ declare const lion: () => ValueConfig<string>;
25
+ /** Animal [rabbit](https://fakerjs.dev/api/animal.html#rabbit) */
26
+ declare const rabbit: () => ValueConfig<string>;
27
+ /** Animal [rodent](https://fakerjs.dev/api/animal.html#rodent) */
28
+ declare const rodent: () => ValueConfig<string>;
29
+ /** Animal [snake](https://fakerjs.dev/api/animal.html#snake) */
30
+ declare const snake: () => ValueConfig<string>;
31
+ /** Animal [type](https://fakerjs.dev/api/animal.html#type) */
32
+ declare const type: () => ValueConfig<string>;
33
+
34
+ declare const animal_bear: typeof bear;
35
+ declare const animal_bird: typeof bird;
36
+ declare const animal_cat: typeof cat;
37
+ declare const animal_cetacean: typeof cetacean;
38
+ declare const animal_cow: typeof cow;
39
+ declare const animal_crocodilia: typeof crocodilia;
40
+ declare const animal_dog: typeof dog;
41
+ declare const animal_fish: typeof fish;
42
+ declare const animal_horse: typeof horse;
43
+ declare const animal_insect: typeof insect;
44
+ declare const animal_lion: typeof lion;
45
+ declare const animal_rabbit: typeof rabbit;
46
+ declare const animal_rodent: typeof rodent;
47
+ declare const animal_snake: typeof snake;
48
+ declare const animal_type: typeof type;
49
+ declare namespace animal {
50
+ export { animal_bear as bear, animal_bird as bird, animal_cat as cat, animal_cetacean as cetacean, animal_cow as cow, animal_crocodilia as crocodilia, animal_dog as dog, animal_fish as fish, animal_horse as horse, animal_insect as insect, animal_lion as lion, animal_rabbit as rabbit, animal_rodent as rodent, animal_snake as snake, animal_type as type };
51
+ }
52
+
53
+ export { animal as a, bear as b, bird as c, cat as d, cetacean as e, cow as f, crocodilia as g, dog as h, fish as i, horse as j, insect as k, lion as l, rodent as m, rabbit as r, snake as s, type as t };
@@ -0,0 +1,53 @@
1
+ import { V as ValueConfig } from './type-C8Ny1fB6.js';
2
+
3
+ /** Animal [bear](https://fakerjs.dev/api/animal.html#bear) */
4
+ declare const bear: () => ValueConfig<string>;
5
+ /** Animal [bird](https://fakerjs.dev/api/animal.html#bird) */
6
+ declare const bird: () => ValueConfig<string>;
7
+ /** Animal [cat](https://fakerjs.dev/api/animal.html#cat) */
8
+ declare const cat: () => ValueConfig<string>;
9
+ /** Animal [cetacean](https://fakerjs.dev/api/animal.html#cetacean) */
10
+ declare const cetacean: () => ValueConfig<string>;
11
+ /** Animal [cow](https://fakerjs.dev/api/animal.html#cow) */
12
+ declare const cow: () => ValueConfig<string>;
13
+ /** Animal [crocodilia](https://fakerjs.dev/api/animal.html#crocodilia) */
14
+ declare const crocodilia: () => ValueConfig<string>;
15
+ /** Animal [dog](https://fakerjs.dev/api/animal.html#dog) */
16
+ declare const dog: () => ValueConfig<string>;
17
+ /** Animal [fish](https://fakerjs.dev/api/animal.html#fish) */
18
+ declare const fish: () => ValueConfig<string>;
19
+ /** Animal [horse](https://fakerjs.dev/api/animal.html#horse) */
20
+ declare const horse: () => ValueConfig<string>;
21
+ /** Animal [insect](https://fakerjs.dev/api/animal.html#insect) */
22
+ declare const insect: () => ValueConfig<string>;
23
+ /** Animal [lion](https://fakerjs.dev/api/animal.html#lion) */
24
+ declare const lion: () => ValueConfig<string>;
25
+ /** Animal [rabbit](https://fakerjs.dev/api/animal.html#rabbit) */
26
+ declare const rabbit: () => ValueConfig<string>;
27
+ /** Animal [rodent](https://fakerjs.dev/api/animal.html#rodent) */
28
+ declare const rodent: () => ValueConfig<string>;
29
+ /** Animal [snake](https://fakerjs.dev/api/animal.html#snake) */
30
+ declare const snake: () => ValueConfig<string>;
31
+ /** Animal [type](https://fakerjs.dev/api/animal.html#type) */
32
+ declare const type: () => ValueConfig<string>;
33
+
34
+ declare const animal_bear: typeof bear;
35
+ declare const animal_bird: typeof bird;
36
+ declare const animal_cat: typeof cat;
37
+ declare const animal_cetacean: typeof cetacean;
38
+ declare const animal_cow: typeof cow;
39
+ declare const animal_crocodilia: typeof crocodilia;
40
+ declare const animal_dog: typeof dog;
41
+ declare const animal_fish: typeof fish;
42
+ declare const animal_horse: typeof horse;
43
+ declare const animal_insect: typeof insect;
44
+ declare const animal_lion: typeof lion;
45
+ declare const animal_rabbit: typeof rabbit;
46
+ declare const animal_rodent: typeof rodent;
47
+ declare const animal_snake: typeof snake;
48
+ declare const animal_type: typeof type;
49
+ declare namespace animal {
50
+ export { animal_bear as bear, animal_bird as bird, animal_cat as cat, animal_cetacean as cetacean, animal_cow as cow, animal_crocodilia as crocodilia, animal_dog as dog, animal_fish as fish, animal_horse as horse, animal_insect as insect, animal_lion as lion, animal_rabbit as rabbit, animal_rodent as rodent, animal_snake as snake, animal_type as type };
51
+ }
52
+
53
+ export { animal as a, bear as b, bird as c, cat as d, cetacean as e, cow as f, crocodilia as g, dog as h, fish as i, horse as j, insect as k, lion as l, rodent as m, rabbit as r, snake as s, type as t };
@@ -0,0 +1,28 @@
1
+ import {
2
+ f
3
+ } from "./chunk-BS7IEV74.mjs";
4
+ import {
5
+ __export,
6
+ createValueConfig
7
+ } from "./chunk-OLSCXZ3D.mjs";
8
+
9
+ // src/utils/music.ts
10
+ var music_exports = {};
11
+ __export(music_exports, {
12
+ album: () => album,
13
+ artist: () => artist,
14
+ genre: () => genre,
15
+ songName: () => songName
16
+ });
17
+ var album = (...options) => createValueConfig(() => f.music.album(...options));
18
+ var artist = (...options) => createValueConfig(() => f.music.artist(...options));
19
+ var genre = (...options) => createValueConfig(() => f.music.genre(...options));
20
+ var songName = (...options) => createValueConfig(() => f.music.songName(...options));
21
+
22
+ export {
23
+ album,
24
+ artist,
25
+ genre,
26
+ songName,
27
+ music_exports
28
+ };
@@ -0,0 +1,98 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
7
+ // src/config_scheme.ts
8
+ var _zod = require('zod');
9
+ var valueConfigScheme = _zod.z.object({
10
+ type: _zod.z.string().regex(/^value$/, { message: "invalid type string" }),
11
+ generateFn: _zod.z.function()
12
+ });
13
+ var selectionConfigScheme = _zod.z.object({
14
+ type: _zod.z.string().regex(/^select$/, { message: "invalid type string" }),
15
+ items: _zod.z.any().array().nonempty({ message: "items can not be empty" })
16
+ });
17
+ var arrayConfigScheme = _zod.z.object({
18
+ type: _zod.z.string().regex(/^arr$/, { message: "invalid type string" }),
19
+ item: _zod.z.object({}),
20
+ len: _zod.z.number().nonnegative()
21
+ });
22
+ var tupleConfigScheme = _zod.z.object({
23
+ type: _zod.z.string().regex(/^tuple$/, { message: "invalid type string" }),
24
+ configItems: _zod.z.any().array()
25
+ });
26
+ var objConfigScheme = _zod.z.object({
27
+ type: _zod.z.string().regex(/^obj$/, { message: "invalid type string" }),
28
+ content: _zod.z.object({})
29
+ });
30
+ var boundedSeriesScheme = _zod.z.object({
31
+ type: _zod.z.string().regex(/^bounded_series$/, { message: "invalid type string" }),
32
+ upperLimit: _zod.z.number().nonnegative(),
33
+ lowerLimit: _zod.z.number().nonnegative(),
34
+ createInitValue: _zod.z.function().args().returns(_zod.z.number()),
35
+ count: _zod.z.number().nonnegative()
36
+ }).refine(({ upperLimit, lowerLimit }) => upperLimit >= lowerLimit, {
37
+ message: "lowerLimit can not greater then upperLimit"
38
+ }).refine(({ createInitValue }) => typeof createInitValue() === "number", {
39
+ message: "createInitValue is not return number",
40
+ path: ["createInitValue"]
41
+ });
42
+
43
+ // src/create_config.ts
44
+ var createValueConfig = (generateFn) => {
45
+ const config = {
46
+ type: "value",
47
+ generateFn
48
+ };
49
+ valueConfigScheme.parse(config);
50
+ return config;
51
+ };
52
+ var createSelectionConfig = (items) => {
53
+ const config = { type: "select", items };
54
+ selectionConfigScheme.parse(config);
55
+ return config;
56
+ };
57
+ var createObjectConfig = (content) => {
58
+ const config = { type: "obj", content };
59
+ objConfigScheme.parse(config);
60
+ return config;
61
+ };
62
+ var createArrayConfig = (item, len) => {
63
+ const config = { type: "arr", item, len };
64
+ arrayConfigScheme.parse(config);
65
+ return config;
66
+ };
67
+ var createTupleConfig = (configItems) => {
68
+ const config = {
69
+ type: "tuple",
70
+ configItems
71
+ };
72
+ tupleConfigScheme.parse(config);
73
+ return config;
74
+ };
75
+ var createBoundedSeriesConfig = (config) => {
76
+ const newConfig = {
77
+ type: "bounded_series",
78
+ ...config
79
+ };
80
+ boundedSeriesScheme.parse(newConfig);
81
+ return newConfig;
82
+ };
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+ exports.__export = __export; exports.valueConfigScheme = valueConfigScheme; exports.selectionConfigScheme = selectionConfigScheme; exports.arrayConfigScheme = arrayConfigScheme; exports.tupleConfigScheme = tupleConfigScheme; exports.objConfigScheme = objConfigScheme; exports.boundedSeriesScheme = boundedSeriesScheme; exports.createValueConfig = createValueConfig; exports.createSelectionConfig = createSelectionConfig; exports.createObjectConfig = createObjectConfig; exports.createArrayConfig = createArrayConfig; exports.createTupleConfig = createTupleConfig; exports.createBoundedSeriesConfig = createBoundedSeriesConfig;