# @mparticle/data-planning-models

Latest version **0.1.8** (published 2026-08-05) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @mparticle/data-planning-models
pnpm add @mparticle/data-planning-models
yarn add @mparticle/data-planning-models
bun add @mparticle/data-planning-models
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.1.8 |
| Published | 2026-08-05 |
| First published | 2019-12-20 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 23.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | mparticle-teamcity, samdozor, rmi22186, tbreffni, alexs-mparticle, bstalnaker, mparticle-ci, jaissica12, rokt-npmjs |

## Links

- npm: https://www.npmjs.com/package/@mparticle/data-planning-models
- Repository: https://github.com/mparticle/js-models.git#master
- Homepage: https://github.com/mparticle/js-models/tree/master#readme
- Issues: https://github.com/mparticle/js-models/issues
- npm.io page: https://npm.io/package/@mparticle/data-planning-models

## Dependencies (1)

- [@mparticle/event-models](https://npm.io/package/@mparticle/event-models.md) ^1.3.1

## Recent versions

- 0.1.8 (latest) — 2026-08-05
- 0.1.7 — 2026-05-29
- 0.1.6 — 2023-06-29
- 0.1.5 — 2023-06-08
- 0.1.4 — 2022-06-21
- 0.1.3 — 2022-05-19
- 0.1.2 — 2022-05-16
- 0.1.1 — 2022-05-13
- 0.1.0 — 2020-10-20
- 0.1.0-alpha.1 — 2020-03-26
- 0.1.0-alpha.0 — 2020-03-12
- 0.0.3 — 2020-03-03
- 0.0.2-alpha.3 — 2020-01-27
- 0.0.2-alpha.2 — 2020-01-27
- 0.0.2-alpha.1 — 2019-12-20

## README

<img src="https://static.mparticle.com/sdk/mp_logo_black.svg" width="280"><br>

[![npm](https://img.shields.io/npm/v/@mparticle/data-planning-models.svg?maxAge=2592000)](https://www.npmjs.com/package/@mparticle/data-planning-models)

# mParticle-data-planning-models

A collection of Data Planning interfaces for mParticle Services using TypeScript.

## Installation

```
npm install @mparticle/data-planning-models
```

## Usage

```typescript
import { DataPlan, DataPlanMatchType, DataPlanValidatorType } from '@mparticle/data-planning-models';

const samplePlan: DataPlan = {
    data_plan_id: 'test-XXXXXXX',
    data_plan_name: 'This is a test data plan',
    data_plan_description: 'Ipsum Lorem',
    data_plan_versions: [
        {
            version: 1,
            version_document: {
                data_points: [
                    {
                        match: {
                            type: DataPlanMatchType.CustomEvent,
                            criteria: {
                                event_name: 'My Custom Event',
                                custom_event_type: 'navigation',
                            },
                        },
                        validator: {
                            type: DataPlanValidatorType.JSONSchema,
                            definition: {
                                properties: {},
                            },
                        },
                    },
                ],
            },
        },
    ],
};
```

## License

Copyright 2019 mParticle, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

---
_Source: https://npm.io/package/@mparticle/data-planning-models · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
