@przeslijmi/real-fake-data-playwright 0.1.0 → 1.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.
package/README.md CHANGED
@@ -1,11 +1,15 @@
1
1
  # @przeslijmi/real-fake-data-playwright
2
2
 
3
- Playwright fixtures for [Real Fake Data](https://github.com/przeslijmi/rfd) — realistic, synthetic **Polish** test data with one line per record: valid PESELs (correct checksums), NIPs, REGONs, IBANs, addresses drawn from real cities and streets, people, company names, and vehicle plates.
3
+ Playwright fixtures for [Real Fake Data](https://github.com/przeslijmi/rfd) — **70 generators** of realistic, synthetic test data, one typed method per record:
4
+
5
+ - **Person and company names across 27 EU countries** — `dePersonName`, `itCompanyName`, `frPersonName`, … in the local script and inflection, plus multi-country `personName`/`companyName` that draw from any mix of countries.
6
+ - **The full Polish national set** — valid PESELs (correct checksums), NIPs, REGONs, IBANs, KRS and land-register numbers, ID cards, passports, driving licences, addresses drawn from real cities and streets, and vehicle plates.
7
+ - **Locale-agnostic** — emails and lorem ipsum.
4
8
 
5
9
  Output _looks_ real but is fake — safe for staging, demos, and seed data.
6
10
 
7
11
  - **Seeded and reproducible by default.** Each test derives a stable seed from its title, so a failing test replays the exact same data on the next run — no flakiness, trivial repro.
8
- - **Typed end to end.** One method per generator, fully typed inputs and results.
12
+ - **Typed end to end.** Two methods per generator (one record, or a batch), fully typed inputs and results.
9
13
  - **Zero ceremony.** A `fakeData` fixture; no manual client wiring.
10
14
 
11
15
  ## Install
@@ -24,10 +28,10 @@ Point the fixture at a Real Fake Data API instance, then pull data inside any te
24
28
  ```ts
25
29
  import { test, expect } from '@przeslijmi/real-fake-data-playwright';
26
30
 
27
- test.use({ realFakeData: { baseUrl: 'https://api.real-fake-data.example' } });
31
+ test.use({ realFakeData: { baseUrl: 'https://realfakedata-api.onrender.com' } });
28
32
 
29
33
  test('registers a new customer', async ({ page, fakeData }) => {
30
- const person = await fakeData.person({ sex: 'f' });
34
+ const person = await fakeData.plPerson({ sex: 'f' });
31
35
 
32
36
  await page.goto('/signup');
33
37
  await page.getByLabel('First name').fill(person.name);
@@ -47,7 +51,7 @@ Set options with `test.use({ realFakeData: { … } })`, at any scope (file, `des
47
51
 
48
52
  | Option | Type | Description |
49
53
  | --------- | ------------------------ | ------------------------------------------------------------------------------------------------------- |
50
- | `baseUrl` | `string` (required) | Base URL of the Real Fake Data API, e.g. `https://api.example.com`. |
54
+ | `baseUrl` | `string` (required) | Base URL of the Real Fake Data API, e.g. `https://realfakedata-api.onrender.com`. |
51
55
  | `seed` | `number` | Base seed for the test. Omit to derive a stable seed from the test title (reproducible-by-default). |
52
56
  | `headers` | `Record<string, string>` | Extra headers sent with every request (e.g. an API key once your plan requires one). |
53
57
 
@@ -61,26 +65,80 @@ test.use({ realFakeData: { baseUrl, seed: 42 } }); // pin this file to a fixed d
61
65
 
62
66
  ## Generators
63
67
 
64
- Every method returns a typed result and accepts optional constraints. Pass `seed` on any call to override that call's automatic seed.
68
+ Each generator exposes a **singular** method returning one record and a **plural** taking `count` as its first argument and returning an array of that many. Method names are locale-prefixed (`plPesel`, `dePersonName`, …) so generators for different countries never collide; locale-agnostic generators (`email`, `lorem`) and the multi-country aggregates (`personName`, `companyName`) carry no prefix.
69
+
70
+ Every method accepts optional constraints. Pass `seed` on any call to override that call's automatic seed.
71
+
72
+ #### Names across 27 EU countries
73
+
74
+ Every country listed below exposes `<cc>PersonName`/`<cc>PersonNames` and `<cc>CompanyName`/`<cc>CompanyNames`, where `<cc>` is its ISO 3166 code: `at`, `be`, `bg`, `cy`, `cz`, `de`, `dk`, `ee`, `es`, `fi`, `fr`, `gr`, `hr`, `hu`, `ie`, `it`, `lt`, `lu`, `lv`, `mt`, `nl`, `pl`, `pt`, `ro`, `se`, `si`, `sk`.
75
+
76
+ | Singular | Plural | Returns (singular) | Options |
77
+ | ----------------------- | ------------------------------- | ------------------------------------------- | -------------------------------------- |
78
+ | `<cc>PersonName(opts?)` | `<cc>PersonNames(count, opts?)` | `{ name, surname, initials, sex }` | `sex`, `edge`, `caseStrict` |
79
+ | `<cc>CompanyName(opts?)`| `<cc>CompanyNames(count, opts?)`| `{ value, legalForm, strategy }` | `strategy`, `legalForm`, `edge` |
80
+ | `personName(opts?)` | `personNames(count, opts?)` | `{ name, surname, initials, sex, country }` | `sex`, `edge`, `caseStrict`, `countries` |
81
+ | `companyName(opts?)` | `companyNames(count, opts?)` | `{ value, legalForm, strategy, country }` | `strategy`, `edge`, `countries` |
82
+
83
+ ```ts
84
+ const ceo = await fakeData.dePersonName({ sex: 'f' }); // German given name + surname
85
+ const vendor = await fakeData.itCompanyName({ edge: true }); // edge-case Italian company name
86
+ const eu = await fakeData.personName({ countries: ['pl', 'sk', 'it'] }); // drawn from one of the three
87
+ ```
88
+
89
+ `countries` (on the prefix-less `personName`/`companyName` only) is an array of ISO codes; each record is generated by one country picked from the list. Omit it to draw from all 27. The per-country `legalForm` values differ by country (e.g. `GmbH`, `S.r.l.`, `S.A.`), so they are typed as `string`; pass `'any'` for a weighted-random one or `'none'` to omit it.
90
+
91
+ #### Polish national generators
92
+
93
+ | Singular | Plural | Returns (singular) | Common options |
94
+ | ------------------------------ | -------------------------------------- | ---------------------------------------------------------- | --------------------------------------------------------------------- |
95
+ | `plPesel(opts?)` | `plPesels(count, opts?)` | `{ value, birthDate, sex }` | `sex`, `atAge`, `olderThan`, `youngerThan`, `bornOn/Before/After`, `invalid` |
96
+ | `plPerson(opts?)` | `plPeople(count, opts?)` | `{ name, surname, initials, birthDate, pesel }` | same as `plPesel` |
97
+ | `plAddress(opts?)` | `plAddresses(count, opts?)` | `{ buildingNumber, postalCode, cityName, …, terytCodes }` | `teryt` (1–7 digit prefix) |
98
+ | `plNip(opts?)` | `plNips(count, opts?)` | `{ value, digits }` | `format`, `invalid` |
99
+ | `plIban(opts?)` | `plIbans(count, opts?)` | `{ value, electronicFormat, bankCode, bankName }` | `format`, `bankCode`, `bankName`, `invalid` |
100
+ | `plRegon(opts?)` | `plRegons(count, opts?)` | `{ value, variant }` | `variant` (`short`/`long`/`any`), `invalid` |
101
+ | `plCompany(opts?)` | `plCompanies(count, opts?)` | `{ name, legalForm, nip, regon, krs }` | `strategy`, `legalForm`, `activityPrefix`, `format`, `edge`, `invalid` |
102
+ | `plCompanyName(opts?)` | `plCompanyNames(count, opts?)` | `{ value, legalForm, strategy }` | `strategy`, `legalForm`, `activityPrefix`, `edge` |
103
+ | `plIdCard(opts?)` | `plIdCards(count, opts?)` | `{ value, series, number, expirationDate }` | `format`, `expired`, `invalid` |
104
+ | `plPassport(opts?)` | `plPassports(count, opts?)` | `{ value, series, number }` | `format`, `invalid` |
105
+ | `plKrs(opts?)` | `plKrsNumbers(count, opts?)` | `{ value, number }` | `format` |
106
+ | `plLandRegister(opts?)` | `plLandRegisters(count, opts?)` | `{ value, courtCode, number, checkDigit, court? }` | `format`, `court`, `invalid` |
107
+ | `plDrivingLicense(opts?)` | `plDrivingLicenses(count, opts?)` | `{ value, serial, year, suffix }` | `format`, `year` |
108
+ | `plVehicleRegistration(opts?)` | `plVehicleRegistrations(count, opts?)` | `{ value, prefix, individualPart, type, … }` | `type`, `voivodeship`, `county`, `format` |
65
109
 
66
- | Method | Returns | Common options |
67
- | --------------------------------- | ------------------------------------------------------------ | --------------------------------------------------------------------- |
68
- | `fakeData.pesel(opts?)` | `{ value, birthDate, sex }` | `sex`, `atAge`, `olderThan`, `youngerThan`, `bornOn/Before/After`, `invalid` |
69
- | `fakeData.person(opts?)` | `{ name, surname, initials, birthDate, pesel }` | same as `pesel` |
70
- | `fakeData.address(opts?)` | `{ buildingNumber, postalCode, cityName, …, terytCodes }` | `teryt` (1–7 digit prefix) |
71
- | `fakeData.nip(opts?)` | `{ value, digits }` | `format`, `invalid` |
72
- | `fakeData.iban(opts?)` | `{ value, electronicFormat, bankCode, bankName }` | `format`, `bankCode`, `bankName`, `invalid` |
73
- | `fakeData.regon(opts?)` | `{ value, variant }` | `variant` (`short`/`long`/`any`), `invalid` |
74
- | `fakeData.companyName(opts?)` | `{ value, legalForm, strategy }` | `strategy`, `legalForm`, `activityPrefix` |
75
- | `fakeData.vehicleRegistration(opts?)` | `{ value, prefix, individualPart, type, … }` | `type`, `voivodeship`, `county`, `format` |
110
+ A Polish person name on its own (no PESEL/birth date) is `plPersonName` — part of the 27-country table above.
76
111
 
77
- ### Testing your validators
112
+ #### Locale-agnostic
78
113
 
79
- Every checksum generator accepts `invalid: true` to produce a value with a **deliberately wrong check digit** (the rest stays well-formed) for asserting that your own validators reject bad input:
114
+ | Singular | Plural | Returns (singular) | Common options |
115
+ | ------------------------------ | -------------------------------------- | ---------------------------------------------------------- | --------------------------------------------------------------------- |
116
+ | `email(opts?)` | `emails(count, opts?)` | `{ value, localPart, domain, pattern, plusTag }` | `domain`, `domainCategory`, `pattern`, `plusTag`, `exotic` |
117
+ | `lorem(opts?)` | `lorems(count, opts?)` | `{ value, words, chars, bytes, paragraphs, startedWithLorem }` | `bytes`, `chars`, `words`, `paragraphs`, `startWithLorem` |
118
+
119
+ ### Generating many records at once
120
+
121
+ Every plural takes `count` as its first argument and returns an array. The bound (10 by default, raised by paid tiers) is enforced by the API — an out-of-range `count` throws a `RealFakeDataError` (HTTP 400), never a silent clamp. A plural is a single request seeded once, so it consumes one slot of the per-test seed sequence just like a singular call.
80
122
 
81
123
  ```ts
82
- const bad = await fakeData.nip({ invalid: true });
124
+ const team = await fakeData.plPeople(5, { sex: 'f' }); // PolishPersonData[] of length 5
125
+ const inboxes = await fakeData.emails(3); // EmailData[] of length 3
126
+ ```
127
+
128
+ ### Special triggers
129
+
130
+ Three opt-in flags steer generators toward the cases real-world data throws at your code:
131
+
132
+ - **`invalid: true`** — on every checksum generator (`plPesel`, `plNip`, `plRegon`, `plIban`, `plCompany`, `plIdCard`, `plPassport`, `plLandRegister`), produces a value with a **deliberately wrong check digit** while the rest stays well-formed. For asserting that your own validators reject bad input. When set, the response `meta.invalid` is `true` so a batch can tell the broken record apart.
133
+ - **`edge: true`** — on the name generators (`<cc>PersonName`, `<cc>CompanyName`, `personName`, `companyName`, `plCompany`), biases toward **edge-case shapes**: second given names, double-barrelled surnames, very short names, punctuation-heavy or unusually long company names. The corners that break naïve form validation and layout.
134
+ - **`caseStrict: false`** — on the person-name generators, **deliberately mangles the casing** of name and surname (all-lower, all-upper, or random); initials stay proper uppercase. Defaults to `true` (proper casing). For testing case-insensitive matching and normalisation.
135
+
136
+ ```ts
137
+ const bad = await fakeData.plNip({ invalid: true });
83
138
  await expect(submitNip(bad.value)).rejects.toThrow('invalid checksum');
139
+
140
+ const messy = await fakeData.dePersonName({ caseStrict: false }); // e.g. { name: 'hANS', surname: 'müller' }
141
+ const tricky = await fakeData.itCompanyName({ edge: true }); // punctuation-heavy / long-form name
84
142
  ```
85
143
 
86
144
  ## Error handling
@@ -91,7 +149,7 @@ A non-2xx API response throws a `RealFakeDataError` carrying `status` (HTTP code
91
149
  import { RealFakeDataError } from '@przeslijmi/real-fake-data-playwright';
92
150
 
93
151
  try {
94
- await fakeData.address({ teryt: 'not-digits' });
152
+ await fakeData.plAddress({ teryt: 'not-digits' });
95
153
  } catch (error) {
96
154
  if (error instanceof RealFakeDataError) {
97
155
  console.log(error.status, error.code, error.details);
@@ -107,10 +165,10 @@ The fixture is a thin wrapper over a provider and a facade you can use directly
107
165
  ```ts
108
166
  import { CloudFakeDataProvider, createFakeData } from '@przeslijmi/real-fake-data-playwright';
109
167
 
110
- const provider = new CloudFakeDataProvider({ baseUrl: 'https://api.example.com' });
168
+ const provider = new CloudFakeDataProvider({ baseUrl: 'https://realfakedata-api.onrender.com' });
111
169
  const fakeData = createFakeData(provider, { seed: 42 });
112
170
 
113
- const company = await fakeData.companyName({ legalForm: 'S.A.' });
171
+ const company = await fakeData.plCompanyName({ legalForm: 'S.A.' });
114
172
  ```
115
173
 
116
174
  The `FakeDataProvider` interface is the swap point: the cloud provider talks HTTP to the hosted API, and the same facade can run against other backends.
@@ -118,3 +176,9 @@ The `FakeDataProvider` interface is the swap point: the cloud provider talks HTT
118
176
  ## License
119
177
 
120
178
  MIT
179
+
180
+ ---
181
+
182
+ > **This repository is auto-generated** from a private upstream monorepo. Open
183
+ > **issues** here, but code changes are made upstream and re-synced — pull
184
+ > requests against this repo are applied upstream, not merged directly.
@@ -1,16 +1,80 @@
1
1
  import type { FakeDataProvider } from './fake-data-provider.js';
2
- import type { AddressOptions, CompanyNameOptions, IbanOptions, NipOptions, PeselOptions, PersonOptions, PolishAddressData, PolishCompanyNameData, PolishIbanData, PolishNipData, PolishPeselData, PolishPersonData, PolishRegonData, PolishVehicleRegistrationData, RegonOptions, VehicleRegistrationOptions } from './types.js';
3
- /** The typed surface tests use; one method per Real Fake Data generator. */
4
- export interface FakeData {
5
- pesel(options?: PeselOptions): Promise<PolishPeselData>;
6
- person(options?: PersonOptions): Promise<PolishPersonData>;
7
- address(options?: AddressOptions): Promise<PolishAddressData>;
8
- nip(options?: NipOptions): Promise<PolishNipData>;
9
- iban(options?: IbanOptions): Promise<PolishIbanData>;
10
- regon(options?: RegonOptions): Promise<PolishRegonData>;
11
- companyName(options?: CompanyNameOptions): Promise<PolishCompanyNameData>;
12
- vehicleRegistration(options?: VehicleRegistrationOptions): Promise<PolishVehicleRegistrationData>;
13
- }
2
+ import type { AddressOptions, AnyCompanyNameData, AnyCompanyNameOptions, AnyPersonNameData, AnyPersonNameOptions, CompanyNameOptions, CompanyOptions, CountryCode, DrivingLicenseOptions, EmailData, EmailOptions, IbanOptions, IdCardOptions, KrsOptions, LandRegisterOptions, LocaleCompanyNameData, LocaleCompanyNameOptions, LoremData, LoremOptions, NipOptions, PassportOptions, PersonNameData, PersonNameOptions, PeselOptions, PersonOptions, PolishAddressData, PolishCompanyData, PolishCompanyNameData, PolishDrivingLicenseData, PolishIbanData, PolishIdCardData, PolishKrsData, PolishLandRegisterData, PolishNipData, PolishPassportData, PolishPeselData, PolishPersonData, PolishRegonData, PolishVehicleRegistrationData, RegonOptions, VehicleRegistrationOptions } from './types.js';
3
+ /**
4
+ * Singular + plural method pair every country's `person-name` generator
5
+ * contributes: `dePersonName`/`dePersonNames`, `plPersonName`/`plPersonNames`,
6
+ * and so on for all 27 country codes.
7
+ */
8
+ type PersonNameMethods = {
9
+ [Country in CountryCode as `${Country}PersonName`]: (options?: PersonNameOptions) => Promise<PersonNameData>;
10
+ } & {
11
+ [Country in CountryCode as `${Country}PersonNames`]: (count: number, options?: PersonNameOptions) => Promise<PersonNameData[]>;
12
+ };
13
+ /**
14
+ * `company-name` method pair for every country *except* Poland — `plCompanyName`
15
+ * is declared explicitly below because it carries the typed Polish `legalForm`.
16
+ */
17
+ type LocaleCompanyNameMethods = {
18
+ [Country in Exclude<CountryCode, 'pl'> as `${Country}CompanyName`]: (options?: LocaleCompanyNameOptions) => Promise<LocaleCompanyNameData>;
19
+ } & {
20
+ [Country in Exclude<CountryCode, 'pl'> as `${Country}CompanyNames`]: (count: number, options?: LocaleCompanyNameOptions) => Promise<LocaleCompanyNameData[]>;
21
+ };
22
+ /**
23
+ * The typed surface tests use. Each generator exposes a singular method
24
+ * returning one record and a plural returning an array of `count` records.
25
+ *
26
+ * Method names are locale-prefixed (`plPesel`, `dePersonName`, …) so generators
27
+ * for different countries never collide; the locale-agnostic generators
28
+ * (`email`, `lorem`) and the multi-country aggregates (`personName`,
29
+ * `companyName`) carry no prefix. Plurals take `count` as their first positional
30
+ * argument; its bounds are enforced by the API (out-of-range → a
31
+ * {@link RealFakeDataError} 400), so paid tiers can raise the ceiling without
32
+ * a client change.
33
+ *
34
+ * Beyond the Polish national set below, every one of the 27 supported EU
35
+ * countries adds a `<cc>PersonName` and `<cc>CompanyName` pair (see
36
+ * {@link PersonNameMethods} and {@link LocaleCompanyNameMethods}).
37
+ */
38
+ export type FakeData = PersonNameMethods & LocaleCompanyNameMethods & {
39
+ plPesel(options?: PeselOptions): Promise<PolishPeselData>;
40
+ plPesels(count: number, options?: PeselOptions): Promise<PolishPeselData[]>;
41
+ plPerson(options?: PersonOptions): Promise<PolishPersonData>;
42
+ plPeople(count: number, options?: PersonOptions): Promise<PolishPersonData[]>;
43
+ plAddress(options?: AddressOptions): Promise<PolishAddressData>;
44
+ plAddresses(count: number, options?: AddressOptions): Promise<PolishAddressData[]>;
45
+ plNip(options?: NipOptions): Promise<PolishNipData>;
46
+ plNips(count: number, options?: NipOptions): Promise<PolishNipData[]>;
47
+ plIban(options?: IbanOptions): Promise<PolishIbanData>;
48
+ plIbans(count: number, options?: IbanOptions): Promise<PolishIbanData[]>;
49
+ plRegon(options?: RegonOptions): Promise<PolishRegonData>;
50
+ plRegons(count: number, options?: RegonOptions): Promise<PolishRegonData[]>;
51
+ plCompany(options?: CompanyOptions): Promise<PolishCompanyData>;
52
+ plCompanies(count: number, options?: CompanyOptions): Promise<PolishCompanyData[]>;
53
+ plCompanyName(options?: CompanyNameOptions): Promise<PolishCompanyNameData>;
54
+ plCompanyNames(count: number, options?: CompanyNameOptions): Promise<PolishCompanyNameData[]>;
55
+ plVehicleRegistration(options?: VehicleRegistrationOptions): Promise<PolishVehicleRegistrationData>;
56
+ plVehicleRegistrations(count: number, options?: VehicleRegistrationOptions): Promise<PolishVehicleRegistrationData[]>;
57
+ plIdCard(options?: IdCardOptions): Promise<PolishIdCardData>;
58
+ plIdCards(count: number, options?: IdCardOptions): Promise<PolishIdCardData[]>;
59
+ plPassport(options?: PassportOptions): Promise<PolishPassportData>;
60
+ plPassports(count: number, options?: PassportOptions): Promise<PolishPassportData[]>;
61
+ plKrs(options?: KrsOptions): Promise<PolishKrsData>;
62
+ plKrsNumbers(count: number, options?: KrsOptions): Promise<PolishKrsData[]>;
63
+ plLandRegister(options?: LandRegisterOptions): Promise<PolishLandRegisterData>;
64
+ plLandRegisters(count: number, options?: LandRegisterOptions): Promise<PolishLandRegisterData[]>;
65
+ plDrivingLicense(options?: DrivingLicenseOptions): Promise<PolishDrivingLicenseData>;
66
+ plDrivingLicenses(count: number, options?: DrivingLicenseOptions): Promise<PolishDrivingLicenseData[]>;
67
+ /** Multi-country person name: each record is drawn from one of `countries` (default: all 27). */
68
+ personName(options?: AnyPersonNameOptions): Promise<AnyPersonNameData>;
69
+ personNames(count: number, options?: AnyPersonNameOptions): Promise<AnyPersonNameData[]>;
70
+ /** Multi-country company name: each record is drawn from one of `countries` (default: all 27). */
71
+ companyName(options?: AnyCompanyNameOptions): Promise<AnyCompanyNameData>;
72
+ companyNames(count: number, options?: AnyCompanyNameOptions): Promise<AnyCompanyNameData[]>;
73
+ email(options?: EmailOptions): Promise<EmailData>;
74
+ emails(count: number, options?: EmailOptions): Promise<EmailData[]>;
75
+ lorem(options?: LoremOptions): Promise<LoremData>;
76
+ lorems(count: number, options?: LoremOptions): Promise<LoremData[]>;
77
+ };
14
78
  export interface CreateFakeDataOptions {
15
79
  /**
16
80
  * Base seed for this instance. When set, the Nth call uses `seed + N`, so a
@@ -25,4 +89,5 @@ export interface CreateFakeDataOptions {
25
89
  * distinct within a run.
26
90
  */
27
91
  export declare const createFakeData: (provider: FakeDataProvider, options?: CreateFakeDataOptions) => FakeData;
92
+ export {};
28
93
  //# sourceMappingURL=fake-data.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fake-data.d.ts","sourceRoot":"","sources":["../src/fake-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAClB,WAAW,EACX,UAAU,EACV,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,6BAA6B,EAC7B,YAAY,EAEZ,0BAA0B,EAC3B,MAAM,YAAY,CAAC;AAEpB,4EAA4E;AAC5E,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IACxD,MAAM,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG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CAAC;IACvC,iGAAiG;IACjG,UAAU,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACvE,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;IACzF,kGAAkG;IAClG,WAAW,CAAC,OAAO,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAC1E,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC;IAC5F,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAClD,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;IACpE,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAClD,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;CACrE,CAAC;AAEJ,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAgBD;;;;GAIG;AACH,eAAO,MAAM,cAAc,GACzB,UAAU,gBAAgB,EAC1B,UAAS,qBAA0B,KAClC,QAuMF,CAAC"}
package/dist/fake-data.js CHANGED
@@ -1,3 +1,14 @@
1
+ /**
2
+ * The multi-country aggregates take a `countries` array; the wire wants it as a
3
+ * comma-separated string (`?countries=pl,sk,it`), so we join it here.
4
+ */
5
+ const toAggregateWire = (aggregateOptions) => {
6
+ const { countries, ...rest } = aggregateOptions;
7
+ return {
8
+ ...rest,
9
+ ...(countries === undefined ? {} : { countries: countries.join(',') }),
10
+ };
11
+ };
1
12
  /**
2
13
  * Builds a {@link FakeData} facade over any {@link FakeDataProvider}. Owns the
3
14
  * per-call seed sequence so that calls are reproducible across runs yet
@@ -27,15 +38,120 @@ export const createFakeData = (provider, options = {}) => {
27
38
  });
28
39
  return response.data;
29
40
  };
41
+ // A plural call is a single request carrying `count`; the API batches the
42
+ // records from one seed, so — like a singular call — it consumes exactly one
43
+ // slot of the per-instance seed sequence.
44
+ const runMany = async (path, count, callOptions) => {
45
+ const { seed, ...rest } = callOptions;
46
+ const response = await provider.generate(path, {
47
+ ...rest,
48
+ count,
49
+ seed: nextSeed(seed),
50
+ });
51
+ return response.data;
52
+ };
53
+ // The per-country name generators share one wire shape, so a pair of helpers
54
+ // builds the method pair for each country. The assertion narrows the
55
+ // computed-key object literal (which TypeScript infers as a string-indexed
56
+ // record) back to the precise pair of named methods.
57
+ const personNamePair = (countryCode) => ({
58
+ [`${countryCode}PersonName`]: async (personNameOptions = {}) => await run(`${countryCode}/person-name`, personNameOptions),
59
+ [`${countryCode}PersonNames`]: async (count, personNameOptions = {}) => await runMany(`${countryCode}/person-name`, count, personNameOptions),
60
+ });
61
+ const companyNamePair = (countryCode) => ({
62
+ [`${countryCode}CompanyName`]: async (companyNameOptions = {}) => await run(`${countryCode}/company-name`, companyNameOptions),
63
+ [`${countryCode}CompanyNames`]: async (count, companyNameOptions = {}) => await runMany(`${countryCode}/company-name`, count, companyNameOptions),
64
+ });
30
65
  return {
31
- pesel: async (peselOptions = {}) => await run('pl/pesel', peselOptions),
32
- person: async (personOptions = {}) => await run('pl/person', personOptions),
33
- address: async (addressOptions = {}) => await run('pl/address', addressOptions),
34
- nip: async (nipOptions = {}) => await run('pl/nip', nipOptions),
35
- iban: async (ibanOptions = {}) => await run('pl/iban', ibanOptions),
36
- regon: async (regonOptions = {}) => await run('pl/regon', regonOptions),
37
- companyName: async (companyNameOptions = {}) => await run('pl/company-name', companyNameOptions),
38
- vehicleRegistration: async (vehicleOptions = {}) => await run('pl/vehicle-registration', vehicleOptions),
66
+ plPesel: async (peselOptions = {}) => await run('pl/pesel', peselOptions),
67
+ plPesels: async (count, peselOptions = {}) => await runMany('pl/pesel', count, peselOptions),
68
+ plPerson: async (personOptions = {}) => await run('pl/person', personOptions),
69
+ plPeople: async (count, personOptions = {}) => await runMany('pl/person', count, personOptions),
70
+ plAddress: async (addressOptions = {}) => await run('pl/address', addressOptions),
71
+ plAddresses: async (count, addressOptions = {}) => await runMany('pl/address', count, addressOptions),
72
+ plNip: async (nipOptions = {}) => await run('pl/nip', nipOptions),
73
+ plNips: async (count, nipOptions = {}) => await runMany('pl/nip', count, nipOptions),
74
+ plIban: async (ibanOptions = {}) => await run('pl/iban', ibanOptions),
75
+ plIbans: async (count, ibanOptions = {}) => await runMany('pl/iban', count, ibanOptions),
76
+ plRegon: async (regonOptions = {}) => await run('pl/regon', regonOptions),
77
+ plRegons: async (count, regonOptions = {}) => await runMany('pl/regon', count, regonOptions),
78
+ plCompany: async (companyOptions = {}) => await run('pl/company', companyOptions),
79
+ plCompanies: async (count, companyOptions = {}) => await runMany('pl/company', count, companyOptions),
80
+ plCompanyName: async (companyNameOptions = {}) => await run('pl/company-name', companyNameOptions),
81
+ plCompanyNames: async (count, companyNameOptions = {}) => await runMany('pl/company-name', count, companyNameOptions),
82
+ plVehicleRegistration: async (vehicleOptions = {}) => await run('pl/vehicle-registration', vehicleOptions),
83
+ plVehicleRegistrations: async (count, vehicleOptions = {}) => await runMany('pl/vehicle-registration', count, vehicleOptions),
84
+ plIdCard: async (idCardOptions = {}) => await run('pl/id-card', idCardOptions),
85
+ plIdCards: async (count, idCardOptions = {}) => await runMany('pl/id-card', count, idCardOptions),
86
+ plPassport: async (passportOptions = {}) => await run('pl/passport', passportOptions),
87
+ plPassports: async (count, passportOptions = {}) => await runMany('pl/passport', count, passportOptions),
88
+ plKrs: async (krsOptions = {}) => await run('pl/krs', krsOptions),
89
+ plKrsNumbers: async (count, krsOptions = {}) => await runMany('pl/krs', count, krsOptions),
90
+ plLandRegister: async (landRegisterOptions = {}) => await run('pl/land-register', landRegisterOptions),
91
+ plLandRegisters: async (count, landRegisterOptions = {}) => await runMany('pl/land-register', count, landRegisterOptions),
92
+ plDrivingLicense: async (drivingLicenseOptions = {}) => await run('pl/driving-license', drivingLicenseOptions),
93
+ plDrivingLicenses: async (count, drivingLicenseOptions = {}) => await runMany('pl/driving-license', count, drivingLicenseOptions),
94
+ personName: async (personNameOptions = {}) => await run('person-name', toAggregateWire(personNameOptions)),
95
+ personNames: async (count, personNameOptions = {}) => await runMany('person-name', count, toAggregateWire(personNameOptions)),
96
+ companyName: async (companyNameOptions = {}) => await run('company-name', toAggregateWire(companyNameOptions)),
97
+ companyNames: async (count, companyNameOptions = {}) => await runMany('company-name', count, toAggregateWire(companyNameOptions)),
98
+ email: async (emailOptions = {}) => await run('email', emailOptions),
99
+ emails: async (count, emailOptions = {}) => await runMany('email', count, emailOptions),
100
+ lorem: async (loremOptions = {}) => await run('lorem', loremOptions),
101
+ lorems: async (count, loremOptions = {}) => await runMany('lorem', count, loremOptions),
102
+ ...personNamePair('at'),
103
+ ...personNamePair('be'),
104
+ ...personNamePair('bg'),
105
+ ...personNamePair('cy'),
106
+ ...personNamePair('cz'),
107
+ ...personNamePair('de'),
108
+ ...personNamePair('dk'),
109
+ ...personNamePair('ee'),
110
+ ...personNamePair('es'),
111
+ ...personNamePair('fi'),
112
+ ...personNamePair('fr'),
113
+ ...personNamePair('gr'),
114
+ ...personNamePair('hr'),
115
+ ...personNamePair('hu'),
116
+ ...personNamePair('ie'),
117
+ ...personNamePair('it'),
118
+ ...personNamePair('lt'),
119
+ ...personNamePair('lu'),
120
+ ...personNamePair('lv'),
121
+ ...personNamePair('mt'),
122
+ ...personNamePair('nl'),
123
+ ...personNamePair('pl'),
124
+ ...personNamePair('pt'),
125
+ ...personNamePair('ro'),
126
+ ...personNamePair('se'),
127
+ ...personNamePair('si'),
128
+ ...personNamePair('sk'),
129
+ ...companyNamePair('at'),
130
+ ...companyNamePair('be'),
131
+ ...companyNamePair('bg'),
132
+ ...companyNamePair('cy'),
133
+ ...companyNamePair('cz'),
134
+ ...companyNamePair('de'),
135
+ ...companyNamePair('dk'),
136
+ ...companyNamePair('ee'),
137
+ ...companyNamePair('es'),
138
+ ...companyNamePair('fi'),
139
+ ...companyNamePair('fr'),
140
+ ...companyNamePair('gr'),
141
+ ...companyNamePair('hr'),
142
+ ...companyNamePair('hu'),
143
+ ...companyNamePair('ie'),
144
+ ...companyNamePair('it'),
145
+ ...companyNamePair('lt'),
146
+ ...companyNamePair('lu'),
147
+ ...companyNamePair('lv'),
148
+ ...companyNamePair('mt'),
149
+ ...companyNamePair('nl'),
150
+ ...companyNamePair('pt'),
151
+ ...companyNamePair('ro'),
152
+ ...companyNamePair('se'),
153
+ ...companyNamePair('si'),
154
+ ...companyNamePair('sk'),
39
155
  };
40
156
  };
41
157
  //# sourceMappingURL=fake-data.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fake-data.js","sourceRoot":"","sources":["../src/fake-data.ts"],"names":[],"mappings":"AA4CA;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,QAA0B,EAC1B,UAAiC,EAAE,EACzB,EAAE;IACZ,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAC9B,IAAI,OAAO,GAAG,CAAC,CAAC;IAEhB,MAAM,QAAQ,GAAG,CAAC,QAA4B,EAAsB,EAAE;QACpE,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,OAAO,QAAQ,CAAC;QAClB,CAAC;QACD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,MAAM,IAAI,GAAG,QAAQ,GAAG,OAAO,CAAC;QAChC,OAAO,IAAI,CAAC,CAAC;QACb,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;IAEF,MAAM,GAAG,GA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,IAAI,CAAC;QACxB,GAAG,eAAe,CAAC,IAAI,CAAC;QACxB,GAAG,eAAe,CAAC,IAAI,CAAC;QACxB,GAAG,eAAe,CAAC,IAAI,CAAC;QACxB,GAAG,eAAe,CAAC,IAAI,CAAC;QACxB,GAAG,eAAe,CAAC,IAAI,CAAC;QACxB,GAAG,eAAe,CAAC,IAAI,CAAC;QACxB,GAAG,eAAe,CAAC,IAAI,CAAC;QACxB,GAAG,eAAe,CAAC,IAAI,CAAC;QACxB,GAAG,eAAe,CAAC,IAAI,CAAC;QACxB,GAAG,eAAe,CAAC,IAAI,CAAC;QACxB,GAAG,eAAe,CAAC,IAAI,CAAC;QACxB,GAAG,eAAe,CAAC,IAAI,CAAC;KACzB,CAAC;AACJ,CAAC,CAAC"}
package/dist/fixture.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { FakeData } from './fake-data.js';
2
2
  /** Test-level configuration, set with `test.use({ realFakeData: { … } })`. */
3
3
  export interface RealFakeDataConfig {
4
- /** Base URL of the Real Fake Data API, e.g. `https://api.example.com`. */
4
+ /** Base URL of the Real Fake Data API, e.g. `https://realfakedata-api.onrender.com`. */
5
5
  baseUrl: string;
6
6
  /**
7
7
  * Base seed for the test. When omitted, a stable seed is derived from the
@@ -1 +1 @@
1
- {"version":3,"file":"fixture.d.ts","sourceRoot":"","sources":["../src/fixture.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAI/C,8EAA8E;AAC9E,MAAM,WAAW,kBAAkB;IACjC,0EAA0E;IAC1E,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,kBAAkB,CAAC;IACjC,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,IAAI,oQAUf,CAAC;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"fixture.d.ts","sourceRoot":"","sources":["../src/fixture.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAI/C,8EAA8E;AAC9E,MAAM,WAAW,kBAAkB;IACjC,wFAAwF;IACxF,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,kBAAkB,CAAC;IACjC,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,IAAI,oQAUf,CAAC;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC"}
@@ -2,7 +2,7 @@ import type { FakeDataProvider, GeneratorResponse, QueryValue } from '../fake-da
2
2
  /** The subset of the global `fetch` signature this provider relies on. */
3
3
  export type FetchLike = (input: string | URL, init?: RequestInit) => Promise<Response>;
4
4
  export interface CloudFakeDataProviderOptions {
5
- /** Base URL of the Real Fake Data API, e.g. `https://api.example.com`. */
5
+ /** Base URL of the Real Fake Data API, e.g. `https://realfakedata-api.onrender.com`. */
6
6
  readonly baseUrl: string;
7
7
  /** Extra headers (e.g. authentication) sent with every request. */
8
8
  readonly headers?: Readonly<Record<string, string>>;
@@ -1 +1 @@
1
- {"version":3,"file":"cloud-provider.d.ts","sourceRoot":"","sources":["../../src/providers/cloud-provider.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEhG,0EAA0E;AAC1E,MAAM,MA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,CAAC;CAC5B;AAED;;;;;GAKG;AACH,qBAAa,qBAAsB,YAAW,gBAAgB;;gBAKzC,OAAO,EAAE,4BAA4B;IAM3C,QAAQ,CAAC,IAAI,EACxB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,GAC1C,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;CAiCpC"}
package/dist/types.d.ts CHANGED
@@ -5,12 +5,22 @@
5
5
  */
6
6
  /** Sex marker used by the PESEL and person generators. */
7
7
  export type Sex = 'm' | 'f';
8
+ /**
9
+ * ISO 3166 alpha-2 codes of the 27 EU countries that have `person-name` and
10
+ * `company-name` generators. Poland (`pl`) additionally has the full national
11
+ * generator set (PESEL, NIP, addresses, …).
12
+ */
13
+ export type CountryCode = 'at' | 'be' | 'bg' | 'cy' | 'cz' | 'de' | 'dk' | 'ee' | 'es' | 'fi' | 'fr' | 'gr' | 'hr' | 'hu' | 'ie' | 'it' | 'lt' | 'lu' | 'lv' | 'mt' | 'nl' | 'pl' | 'pt' | 'ro' | 'se' | 'si' | 'sk';
8
14
  /** A Polish legal form the company-name generator can append. */
9
- export type PolishLegalForm = 'Sp. z o.o.' | 'Sp. z o.o. sp.k.' | 'S.A.' | 'Sp. j.' | 'Sp. k.' | 'S.C.';
15
+ export type PolishLegalForm = 'Sp. z o.o.' | 'Sp. z o.o. sp.k.' | 'P.S.A.' | 'S.A.' | 'Sp. j.' | 'Sp. k.' | 'S.C.';
10
16
  /** Naming family the company-name generator drew from. */
11
17
  export type CompanyNameStrategy = 'morpheme' | 'surname' | 'descriptive' | 'modern';
12
18
  /** Kind of vehicle registration plate produced. */
13
19
  export type VehicleRegistrationType = 'standard' | 'custom' | 'police' | 'military';
20
+ /** Local-part shape the email generator can produce. */
21
+ export type EmailLocalPattern = 'first.last' | 'firstlast' | 'first_last' | 'first.last.number' | 'flast' | 'initial.last' | 'noun.number';
22
+ /** Provider-domain category the email generator can draw from. */
23
+ export type EmailDomainCategory = 'free' | 'regional';
14
24
  /**
15
25
  * Per-call options shared by every method. A `seed` here overrides the
16
26
  * fixture's automatic per-call seed for this one request.
@@ -59,6 +69,17 @@ export interface CompanyNameOptions extends RequestOptions {
59
69
  readonly strategy?: CompanyNameStrategy | 'any';
60
70
  readonly legalForm?: PolishLegalForm | 'any' | 'none';
61
71
  readonly activityPrefix?: boolean;
72
+ /** Restrict output to edge-case names (punctuation-heavy families, long/rare forms). */
73
+ readonly edge?: boolean;
74
+ }
75
+ export interface CompanyOptions extends RequestOptions {
76
+ readonly strategy?: CompanyNameStrategy | 'any';
77
+ readonly legalForm?: PolishLegalForm | 'any' | 'none';
78
+ readonly activityPrefix?: boolean;
79
+ readonly format?: 'with-hyphens' | 'digits-only';
80
+ readonly invalid?: boolean;
81
+ /** Restrict output to edge-case values from the rare corners. */
82
+ readonly edge?: boolean;
62
83
  }
63
84
  export interface VehicleRegistrationOptions extends RequestOptions {
64
85
  readonly type?: VehicleRegistrationType;
@@ -66,6 +87,64 @@ export interface VehicleRegistrationOptions extends RequestOptions {
66
87
  readonly county?: string;
67
88
  readonly format?: 'with-space' | 'compact';
68
89
  }
90
+ export interface IdCardOptions extends RequestOptions {
91
+ readonly format?: 'compact' | 'with-space';
92
+ readonly invalid?: boolean;
93
+ /** Produce a card whose expiration date is in the past. */
94
+ readonly expired?: boolean;
95
+ }
96
+ export interface PassportOptions extends RequestOptions {
97
+ readonly format?: 'compact' | 'with-space';
98
+ readonly invalid?: boolean;
99
+ }
100
+ export interface KrsOptions extends RequestOptions {
101
+ readonly format?: 'padded' | 'plain';
102
+ }
103
+ export interface LandRegisterOptions extends RequestOptions {
104
+ readonly format?: 'with-slashes' | 'compact';
105
+ /** Restrict to a single court, by code (e.g. `WA1M`) or name substring. */
106
+ readonly court?: string;
107
+ readonly invalid?: boolean;
108
+ }
109
+ export interface DrivingLicenseOptions extends RequestOptions {
110
+ readonly format?: 'with-slashes' | 'compact';
111
+ /** Full 4-digit issue year, within the supported range. */
112
+ readonly year?: number;
113
+ }
114
+ export interface EmailOptions extends RequestOptions {
115
+ /** Pin an exact provider domain, e.g. `"gmail.com"`. */
116
+ readonly domain?: string;
117
+ /** Scope the weighted domain draw; ignored when `domain` is set. */
118
+ readonly domainCategory?: EmailDomainCategory | 'any';
119
+ /** Which local-part shape to produce, or `any` for a weighted-random one. */
120
+ readonly pattern?: EmailLocalPattern | 'any';
121
+ /**
122
+ * Plus-addressing (sub-addressing) tag: `true` always adds a random tag,
123
+ * `false` never, a string is used verbatim (`name+tag@…`). Omitted means
124
+ * the generator occasionally adds one.
125
+ */
126
+ readonly plusTag?: boolean | string;
127
+ /** Opt in to the rarer-but-still-RFC-valid local-part characters. */
128
+ readonly exotic?: boolean;
129
+ }
130
+ export interface LoremOptions extends RequestOptions {
131
+ /**
132
+ * Size the text by a length unit. When more than one is given the most
133
+ * precise wins, in precedence `bytes` → `chars` → `words` → `paragraphs`;
134
+ * with none given a few paragraphs are returned. `bytes`/`chars` cut on an
135
+ * exact boundary (the final word may be clipped); `words`/`paragraphs` end
136
+ * on a whole sentence.
137
+ */
138
+ readonly bytes?: number;
139
+ readonly chars?: number;
140
+ readonly words?: number;
141
+ readonly paragraphs?: number;
142
+ /**
143
+ * Begin with the canonical "Lorem ipsum dolor sit amet…" opening. Defaults
144
+ * to `true`; `false` starts from a random word.
145
+ */
146
+ readonly startWithLorem?: boolean;
147
+ }
69
148
  export interface PolishPeselData {
70
149
  readonly value: string;
71
150
  readonly birthDate: string;
@@ -114,6 +193,13 @@ export interface PolishCompanyNameData {
114
193
  readonly legalForm: PolishLegalForm | null;
115
194
  readonly strategy: CompanyNameStrategy;
116
195
  }
196
+ export interface PolishCompanyData {
197
+ readonly name: string;
198
+ readonly legalForm: PolishLegalForm | null;
199
+ readonly nip: string;
200
+ readonly regon: string;
201
+ readonly krs: string | null;
202
+ }
117
203
  export interface PolishVehicleRegistrationData {
118
204
  readonly value: string;
119
205
  readonly prefix: string;
@@ -122,4 +208,122 @@ export interface PolishVehicleRegistrationData {
122
208
  readonly voivodeship?: string;
123
209
  readonly county?: string;
124
210
  }
211
+ export interface PolishIdCardData {
212
+ readonly value: string;
213
+ readonly series: string;
214
+ readonly number: string;
215
+ readonly expirationDate: string;
216
+ }
217
+ export interface PolishPassportData {
218
+ readonly value: string;
219
+ readonly series: string;
220
+ readonly number: string;
221
+ }
222
+ export interface PolishKrsData {
223
+ readonly value: string;
224
+ readonly number: number;
225
+ }
226
+ export interface PolishLandRegisterData {
227
+ readonly value: string;
228
+ readonly courtCode: string;
229
+ readonly number: string;
230
+ readonly checkDigit: string;
231
+ readonly court?: string;
232
+ }
233
+ export interface PolishDrivingLicenseData {
234
+ readonly value: string;
235
+ readonly serial: string;
236
+ readonly year: number;
237
+ readonly suffix: string;
238
+ }
239
+ export interface EmailData {
240
+ readonly value: string;
241
+ readonly localPart: string;
242
+ readonly domain: string;
243
+ readonly pattern: EmailLocalPattern;
244
+ readonly plusTag: string | null;
245
+ }
246
+ export interface LoremData {
247
+ readonly value: string;
248
+ readonly words: number;
249
+ readonly chars: number;
250
+ readonly bytes: number;
251
+ readonly paragraphs: number;
252
+ readonly startedWithLorem: boolean;
253
+ }
254
+ /**
255
+ * Options shared by every country's `person-name` generator (`dePersonName`,
256
+ * `itPersonName`, `plPersonName`, …). Only the underlying name pools and
257
+ * inflection rules differ between countries — the controls are identical.
258
+ */
259
+ export interface PersonNameOptions extends RequestOptions {
260
+ /** Gendered form of the name (`m`/`f`). Omit for a random one. */
261
+ readonly sex?: Sex;
262
+ /**
263
+ * Bias toward edge-case name shapes — second given names, double-barrelled
264
+ * surnames, and minimal-length names become far more likely.
265
+ */
266
+ readonly edge?: boolean;
267
+ /**
268
+ * Defaults to `true` (proper casing). Set `false` to deliberately mangle the
269
+ * casing of name and surname (all-lower, all-upper, or random); initials stay
270
+ * proper uppercase.
271
+ */
272
+ readonly caseStrict?: boolean;
273
+ }
274
+ /** Options for the multi-country `personName` generator. */
275
+ export interface AnyPersonNameOptions extends PersonNameOptions {
276
+ /**
277
+ * ISO 3166 codes to draw each record from, e.g. `['pl', 'sk', 'it']`. Each
278
+ * record picks one country from the list at random. Omit to draw from all 27.
279
+ */
280
+ readonly countries?: readonly CountryCode[];
281
+ }
282
+ /** One person name, shared shape across every country's `person-name` generator. */
283
+ export interface PersonNameData {
284
+ readonly name: string;
285
+ readonly surname: string;
286
+ readonly initials: string;
287
+ readonly sex: Sex;
288
+ }
289
+ /** A multi-country person name: the shared fields plus the country it came from. */
290
+ export interface AnyPersonNameData extends PersonNameData {
291
+ /** ISO 3166 alpha-2 code of the country this name was drawn from. */
292
+ readonly country: string;
293
+ }
294
+ /**
295
+ * Options shared by every country's `company-name` generator except Poland's
296
+ * (use {@link CompanyNameOptions} for `plCompanyName`, which has a typed
297
+ * Polish `legalForm`). `legalForm` values are country-specific, so they are
298
+ * typed loosely as `string` here — the API validates them per country.
299
+ */
300
+ export interface LocaleCompanyNameOptions extends RequestOptions {
301
+ readonly strategy?: CompanyNameStrategy | 'any';
302
+ /** Country-specific legal form, `'any'` for weighted-random, or `'none'` to omit. */
303
+ readonly legalForm?: string;
304
+ /** Restrict output to edge-case names (punctuation-heavy families, long/rare forms). */
305
+ readonly edge?: boolean;
306
+ }
307
+ /** Options for the multi-country `companyName` generator (no `legalForm` — it is country-specific). */
308
+ export interface AnyCompanyNameOptions extends RequestOptions {
309
+ readonly strategy?: CompanyNameStrategy | 'any';
310
+ readonly edge?: boolean;
311
+ /**
312
+ * ISO 3166 codes to draw each record from, e.g. `['de', 'fr', 'it']`. Omit to
313
+ * draw from all 27.
314
+ */
315
+ readonly countries?: readonly CountryCode[];
316
+ }
317
+ /** One company name, shared shape across every country's `company-name` generator. */
318
+ export interface LocaleCompanyNameData {
319
+ readonly value: string;
320
+ /** The appended legal form (e.g. `GmbH`, `S.r.l.`), or `null` when none was added. */
321
+ readonly legalForm: string | null;
322
+ readonly strategy: CompanyNameStrategy;
323
+ }
324
+ /** A multi-country company name: the shared fields plus the country it came from. */
325
+ export interface AnyCompanyNameData extends LocaleCompanyNameData {
326
+ /** ISO 3166 alpha-2 code of the country this name was drawn from. */
327
+ readonly country: string;
328
+ }
125
329
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,0DAA0D;AAC1D,MAAM,MAAM,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAE5B,iEAAiE;AACjE,MAAM,MAAM,eAAe,GACvB,YAAY,GACZ,kBAAkB,GAClB,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,MAAM,CAAC;AAEX,0DAA0D;AAC1D,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,SAAS,GAAG,aAAa,GAAG,QAAQ,CAAC;AAEpF,mDAAmD;AACnD,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEpF;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,wDAAwD;AACxD,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC7D,QAAQ,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC;IACnB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,0CAA0C;IAC1C,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,0CAA0C;IAC1C,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,0CAA0C;IAC1C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,CAA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Q,CAAC,QAAQ,EAAE,mBAAmB,CAAC;CACxC;AAED,qFAAqF;AACrF,MAAM,WAAW,kBAAmB,SAAQ,qBAAqB;IAC/D,qEAAqE;IACrE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B"}
package/package.json CHANGED
@@ -1,24 +1,27 @@
1
1
  {
2
2
  "name": "@przeslijmi/real-fake-data-playwright",
3
- "version": "0.1.0",
4
- "description": "Playwright fixtures for Real Fake Data — seeded, realistic Polish test data (PESEL, NIP, REGON, IBAN, addresses, companies, people, vehicle plates).",
3
+ "version": "1.0.0",
4
+ "description": "Playwright fixtures for Real Fake Data — 70 seeded, realistic test-data generators: person & company names across 27 EU countries plus the full Polish national set (PESEL, NIP, REGON, IBAN, KRS, addresses, ID cards, passports, driving licences, vehicle plates), emails, and lorem ipsum.",
5
5
  "keywords": [
6
6
  "playwright",
7
7
  "playwright-fixtures",
8
8
  "fake-data",
9
9
  "test-data",
10
10
  "seed-data",
11
+ "europe",
12
+ "person-name",
13
+ "company-name",
11
14
  "pesel",
12
15
  "nip",
13
16
  "regon",
17
+ "iban",
14
18
  "poland"
15
19
  ],
16
- "homepage": "https://github.com/przeslijmi/rfd/tree/main/packages/addon-playwright",
17
- "bugs": "https://github.com/przeslijmi/rfd/issues",
20
+ "homepage": "https://github.com/przeslijmi/real-fake-data-playwright#readme",
21
+ "bugs": "https://github.com/przeslijmi/real-fake-data-playwright/issues",
18
22
  "repository": {
19
23
  "type": "git",
20
- "url": "https://github.com/przeslijmi/rfd.git",
21
- "directory": "packages/addon-playwright"
24
+ "url": "git+https://github.com/przeslijmi/real-fake-data-playwright.git"
22
25
  },
23
26
  "license": "MIT",
24
27
  "type": "module",
@@ -36,21 +39,17 @@
36
39
  "publishConfig": {
37
40
  "access": "public"
38
41
  },
42
+ "scripts": {
43
+ "build": "tsc -p tsconfig.json",
44
+ "typecheck": "tsc -p tsconfig.json --noEmit",
45
+ "clean": "rm -rf dist *.tsbuildinfo"
46
+ },
39
47
  "peerDependencies": {
40
48
  "@playwright/test": ">=1.40.0"
41
49
  },
42
50
  "devDependencies": {
43
51
  "@playwright/test": "^1.40.0",
44
52
  "@types/node": "^22.0.0",
45
- "typescript": "^5.6.0",
46
- "@przeslijmi/rfd-eslint-config": "0.0.0",
47
- "@przeslijmi/rfd-tsconfig": "0.0.0"
48
- },
49
- "scripts": {
50
- "build": "tsc -b tsconfig.build.json",
51
- "dev": "tsc -b tsconfig.build.json --watch",
52
- "clean": "rm -rf dist .turbo *.tsbuildinfo",
53
- "lint": "eslint .",
54
- "typecheck": "tsc -b tsconfig.build.json --noEmit"
53
+ "typescript": "^5.6.0"
55
54
  }
56
- }
55
+ }