make-mp-data 1.4.1 → 1.4.3
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 +3 -2
- package/{cli.js → core/cli.js} +1 -1
- package/core/defaults.js +960 -0
- package/{index.js → core/index.js} +217 -87
- package/{utils.js → core/utils.js} +163 -34
- package/package.json +8 -9
- package/schemas/anon.js +104 -0
- package/schemas/complex.js +11 -2
- package/schemas/deepNest.js +5 -1
- package/schemas/foobar.js +2 -2
- package/schemas/funnels.js +1 -1
- package/schemas/simple.js +11 -1
- package/scratch.mjs +19 -5
- package/scripts/jsdoctest.js +1 -1
- package/tests/e2e.test.js +25 -7
- package/{testSoup.mjs → tests/testSoup.mjs} +2 -2
- package/tests/unit.test.js +157 -9
- package/tsconfig.json +1 -1
- package/types.d.ts +17 -3
- package/defaults.js +0 -11662
- /package/{chart.js → core/chart.js} +0 -0
- /package/{testCases.mjs → tests/testCases.mjs} +0 -0
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ the CLI looks like this:
|
|
|
9
9
|
|
|
10
10
|

|
|
11
11
|
|
|
12
|
-
under the hood, `make-mp-data` is modeling data adherent to match [Mixpanel's data model](https://docs.mixpanel.com/docs/data-structure/concepts), giving you the tools you need for robust,
|
|
12
|
+
under the hood, `make-mp-data` is modeling data adherent to match [Mixpanel's data model](https://docs.mixpanel.com/docs/data-structure/concepts), giving you the tools you need for robust, realistic field ready test data.
|
|
13
13
|
|
|
14
14
|
## 🚀 Quick Start
|
|
15
15
|
|
|
@@ -64,8 +64,9 @@ npx make-mp-data [dataModel.js] [options]
|
|
|
64
64
|
Example:
|
|
65
65
|
|
|
66
66
|
```bash
|
|
67
|
-
npx make-mp-data
|
|
67
|
+
npx make-mp-data myDataSpec.js --token 1234 --numDays 30 --numUsers 1000 --numEvents 1000000
|
|
68
68
|
```
|
|
69
|
+
where `myDataSpec.js` exports a [JS object of this shape](https://github.com/ak--47/make-mp-data/blob/main/types.d.ts#L8) ... (see [`./schemas`](https://github.com/ak--47/make-mp-data/tree/main/schemas) for examples)
|
|
69
70
|
|
|
70
71
|
### Data Models
|
|
71
72
|
|
package/{cli.js → core/cli.js}
RENAMED