{"_id":"@dvsa/mes-dsp-mi-schema","_rev":"3-2a85333985f3bf0373ca93e192ae841f","name":"@dvsa/mes-dsp-mi-schema","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@dvsa/mes-dsp-mi-schema","version":"1.0.0","keywords":["dvsa"],"author":{"name":"DVSA"},"license":"MIT","_id":"@dvsa/mes-dsp-mi-schema@1.0.0","maintainers":[{"name":"r.stepnowski","email":"stepnowski.r@gmail.com"},{"name":"rfaulds","email":"ross.faulds@gmail.com"},{"name":"cullifordm","email":"matthew.culliford@gmail.com"},{"name":"matthew2564","email":"mbell.dvsa@icloud.com"},{"name":"edwardwilson","email":"edward.wilson@me.com"},{"name":"shaun.hare","email":"shaun.hare@dvsa.gov.uk"},{"name":"janmrozowicz","email":"jan.mrozowicz+npm@gmail.com"},{"name":"wraggj_dvsa","email":"james.wragg@dvsa.gov.uk"},{"name":"david.aaron","email":"david.aaron@dvsa.gov.uk"},{"name":"tomcrawleyy","email":"thomas.crawley@dvsa.gov.uk"},{"name":"setterfielda","email":"asetterfield.dvsa@icloud.com"},{"name":"annadodson","email":"anna.dodson@dvsa.gov.uk"},{"name":"michalszy","email":"szyszka.michal@gmail.com"},{"name":"johnneill","email":"david.neill@kainos.com"},{"name":"foysalm","email":"mohammedf@kainos.com"},{"name":"gittinsr","email":"rgittins.dvsa@icloud.com"},{"name":"baljinderhayre","email":"baljinder.hayre@dvsa.gov.uk"},{"name":"rlcorp","email":"rhys.lewis@dvsa.gov.uk"},{"name":"dhcrees","email":"howard.rees@dvsa.gov.uk"}],"homepage":"https://github.com/dvsa/mes-api-definitions#readme","bugs":{"url":"https://github.com/dvsa/mes-api-definitions/issues"},"dist":{"shasum":"ee8a22d15bf0bb7c0c4f15224162f7846543d3f3","tarball":"https://registry.npmjs.org/@dvsa/mes-dsp-mi-schema/-/mes-dsp-mi-schema-1.0.0.tgz","fileCount":86,"integrity":"sha512-EtneSgqEbUlcKbexN51daSYgHVWRCAwv2exs2VjE93x+TcvR3j6pV2Kmma0AQYVVw11pnsjxzlhAUQVABP3tbQ==","signatures":[{"sig":"MEUCIQDB+moxqhqw8PL9440sLHNH1V3uX8sUGzFD5c4TNGtBUwIgKiUEVY0SKeGvIm4D6PIlaqDYAGuqEoITf4FBXQPisFU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7139229},"type":"module","gitHead":"cd20663723890c015ef3e274c2f1affa46f79ad2","scripts":{"clean":"npx tsx generateSchemas.ts clean","swagger":"npx tsx generate-swagger.ts","generate":"npx tsx generateSchemas.ts generate","generate:all":"npm run generate && npm run swagger"},"_npmUser":{"name":"setterfielda","email":"asetterfield.dvsa@icloud.com"},"repository":{"url":"git+https://github.com/dvsa/mes-api-definitions.git","type":"git"},"_npmVersion":"11.16.0","description":"Downstream contract schema for DSP Management Information, derived from mes-test-schema with app-only fields removed","directories":{},"_nodeVersion":"24.18.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","js-yaml":"^4.1.0","fs-extra":"^11.3.2","deepmerge":"^4.3.1","pretty-js":"^0.2.2","typescript":"^5.1.6","@types/node":"^24.13.2","@types/js-yaml":"^4.0.9","@types/fs-extra":"^11.0.4","json-schema-deref-sync":"^0.14.0","json-schema-to-typescript":"^13.0.2"},"_npmOperationalInternal":{"tmp":"tmp/mes-dsp-mi-schema_1.0.0_1786347193369_0.2850311608475158","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@dvsa/mes-dsp-mi-schema","version":"1.0.1","keywords":["dvsa"],"author":{"name":"DVSA"},"license":"MIT","_id":"@dvsa/mes-dsp-mi-schema@1.0.1","maintainers":[{"name":"r.stepnowski","email":"stepnowski.r@gmail.com"},{"name":"rfaulds","email":"ross.faulds@gmail.com"},{"name":"cullifordm","email":"matthew.culliford@gmail.com"},{"name":"matthew2564","email":"mbell.dvsa@icloud.com"},{"name":"edwardwilson","email":"edward.wilson@me.com"},{"name":"shaun.hare","email":"shaun.hare@dvsa.gov.uk"},{"name":"janmrozowicz","email":"jan.mrozowicz+npm@gmail.com"},{"name":"wraggj_dvsa","email":"james.wragg@dvsa.gov.uk"},{"name":"david.aaron","email":"david.aaron@dvsa.gov.uk"},{"name":"tomcrawleyy","email":"thomas.crawley@dvsa.gov.uk"},{"name":"setterfielda","email":"asetterfield.dvsa@icloud.com"},{"name":"annadodson","email":"anna.dodson@dvsa.gov.uk"},{"name":"michalszy","email":"szyszka.michal@gmail.com"},{"name":"johnneill","email":"david.neill@kainos.com"},{"name":"foysalm","email":"mohammedf@kainos.com"},{"name":"gittinsr","email":"rgittins.dvsa@icloud.com"},{"name":"baljinderhayre","email":"baljinder.hayre@dvsa.gov.uk"},{"name":"rlcorp","email":"rhys.lewis@dvsa.gov.uk"},{"name":"dhcrees","email":"howard.rees@dvsa.gov.uk"}],"homepage":"https://github.com/dvsa/mes-api-definitions#readme","bugs":{"url":"https://github.com/dvsa/mes-api-definitions/issues"},"dist":{"shasum":"cd3ea021cc6a0c119ae4757fd3461c9dc0d06864","tarball":"https://registry.npmjs.org/@dvsa/mes-dsp-mi-schema/-/mes-dsp-mi-schema-1.0.1.tgz","fileCount":86,"integrity":"sha512-DFy9yAE5ASxudAOy4lWYyEiDf4liK2AU4bz0ayJoZsju1HLwxOw2LwRtKYjyojIriX0glueiZlzxw1j+geqUwg==","signatures":[{"sig":"MEQCIEUYfWpEY25ty2ncpxwNWJM9XgtOmgeedzPRE9lCJBWMAiBXSVXxd9ULH5wJq9sC344yMmCyzmXqc07aSW85AEWYxA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4757537},"type":"module","gitHead":"aff08392ef83fad3e096b002a5f46523111d15a3","scripts":{"clean":"npx tsx generateSchemas.ts clean","swagger":"npx tsx generate-swagger.ts","generate":"npx tsx generateSchemas.ts generate","generate:all":"npm run generate && npm run swagger"},"_npmUser":{"name":"setterfielda","email":"asetterfield.dvsa@icloud.com"},"repository":{"url":"git+https://github.com/dvsa/mes-api-definitions.git","type":"git"},"_npmVersion":"11.16.0","description":"Downstream contract schema for DSP Management Information, derived from mes-test-schema with app-only fields removed","directories":{},"_nodeVersion":"24.18.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","js-yaml":"^4.1.0","fs-extra":"^11.3.2","deepmerge":"^4.3.1","pretty-js":"^0.2.2","typescript":"^5.1.6","@types/node":"^24.13.2","@types/js-yaml":"^4.0.9","@types/fs-extra":"^11.0.4","json-schema-deref-sync":"^0.14.0","json-schema-to-typescript":"^13.0.2"},"_npmOperationalInternal":{"tmp":"tmp/mes-dsp-mi-schema_1.0.1_1786354102895_0.5653898108989295","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@dvsa/mes-dsp-mi-schema","version":"1.1.0","description":"Downstream contract schema for DSP Management Information, derived from mes-test-schema with app-only fields removed","type":"module","scripts":{"generate":"npx tsx generateSchemas.ts generate","clean":"npx tsx generateSchemas.ts clean","swagger":"npx tsx generate-swagger.ts","generate:all":"npm run generate && npm run swagger"},"repository":{"type":"git","url":"git+https://github.com/dvsa/mes-api-definitions.git"},"keywords":["dvsa"],"author":{"name":"DVSA"},"license":"MIT","bugs":{"url":"https://github.com/dvsa/mes-api-definitions/issues"},"homepage":"https://github.com/dvsa/mes-api-definitions#readme","publishConfig":{"access":"public"},"devDependencies":{"@types/fs-extra":"^11.0.4","@types/js-yaml":"^4.0.9","@types/node":"^24.13.2","deepmerge":"^4.3.1","fs-extra":"^11.3.2","js-yaml":"^4.1.0","json-schema-deref-sync":"^0.14.0","json-schema-to-typescript":"^13.0.2","pretty-js":"^0.2.2","tsx":"^4.21.0","typescript":"^5.1.6"},"gitHead":"28d9f3af79b58ff572b5df0edcc0f2bbec6cc10c","_id":"@dvsa/mes-dsp-mi-schema@1.1.0","_nodeVersion":"24.16.0","_npmVersion":"12.0.2","dist":{"integrity":"sha512-Bk92Yne3N+N4Qo7P6PzhKqpOnENO+xd+9RP+QYy24j+Z9Cp9anYuSO+n9R36tbTGiaxOYGni+epTyL5zT48P0A==","shasum":"c3e3e02304ea54b64067434bd3abc90aecb9aa69","tarball":"https://registry.npmjs.org/@dvsa/mes-dsp-mi-schema/-/mes-dsp-mi-schema-1.1.0.tgz","fileCount":86,"unpackedSize":4802332,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDSPWlhsWzBBQtybUO3qOiKkTROV+nTNhIMSPe7Il8eSAiEA4LirqLYLtmkcw3hmsoSZPWJQQfw1vNdGE+wQUdIKhKA="}]},"_npmUser":{"name":"rlcorp","email":"rhys.lewis@dvsa.gov.uk"},"directories":{},"maintainers":[{"name":"r.stepnowski","email":"stepnowski.r@gmail.com"},{"name":"rfaulds","email":"ross.faulds@gmail.com"},{"name":"cullifordm","email":"matthew.culliford@gmail.com"},{"name":"matthew2564","email":"mbell.dvsa@icloud.com"},{"name":"edwardwilson","email":"edward.wilson@me.com"},{"name":"shaun.hare","email":"shaun.hare@dvsa.gov.uk"},{"name":"janmrozowicz","email":"jan.mrozowicz+npm@gmail.com"},{"name":"wraggj_dvsa","email":"james.wragg@dvsa.gov.uk"},{"name":"david.aaron","email":"david.aaron@dvsa.gov.uk"},{"name":"tomcrawleyy","email":"thomas.crawley@dvsa.gov.uk"},{"name":"setterfielda","email":"asetterfield.dvsa@icloud.com"},{"name":"annadodson","email":"anna.dodson@dvsa.gov.uk"},{"name":"michalszy","email":"szyszka.michal@gmail.com"},{"name":"johnneill","email":"david.neill@kainos.com"},{"name":"foysalm","email":"mohammedf@kainos.com"},{"name":"gittinsr","email":"rgittins.dvsa@icloud.com"},{"name":"baljinderhayre","email":"baljinder.hayre@dvsa.gov.uk"},{"name":"rlcorp","email":"rhys.lewis@dvsa.gov.uk"},{"name":"dhcrees","email":"howard.rees@dvsa.gov.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mes-dsp-mi-schema_1.1.0_1788771815857_0.24977507276562294"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-10T07:33:13.047Z","modified":"2026-09-07T09:03:36.412Z","1.0.0":"2026-08-10T07:33:13.580Z","1.0.1":"2026-08-10T09:28:23.065Z","1.1.0":"2026-09-07T09:03:35.988Z"},"bugs":{"url":"https://github.com/dvsa/mes-api-definitions/issues"},"author":{"name":"DVSA"},"license":"MIT","homepage":"https://github.com/dvsa/mes-api-definitions#readme","keywords":["dvsa"],"repository":{"type":"git","url":"git+https://github.com/dvsa/mes-api-definitions.git"},"description":"Downstream contract schema for DSP Management Information, derived from mes-test-schema with app-only fields removed","maintainers":[{"name":"r.stepnowski","email":"stepnowski.r@gmail.com"},{"name":"rfaulds","email":"ross.faulds@gmail.com"},{"name":"cullifordm","email":"matthew.culliford@gmail.com"},{"name":"matthew2564","email":"mbell.dvsa@icloud.com"},{"name":"edwardwilson","email":"edward.wilson@me.com"},{"name":"shaun.hare","email":"shaun.hare@dvsa.gov.uk"},{"name":"janmrozowicz","email":"jan.mrozowicz+npm@gmail.com"},{"name":"wraggj_dvsa","email":"james.wragg@dvsa.gov.uk"},{"name":"david.aaron","email":"david.aaron@dvsa.gov.uk"},{"name":"tomcrawleyy","email":"thomas.crawley@dvsa.gov.uk"},{"name":"setterfielda","email":"asetterfield.dvsa@icloud.com"},{"name":"annadodson","email":"anna.dodson@dvsa.gov.uk"},{"name":"michalszy","email":"szyszka.michal@gmail.com"},{"name":"johnneill","email":"david.neill@kainos.com"},{"name":"foysalm","email":"mohammedf@kainos.com"},{"name":"gittinsr","email":"rgittins.dvsa@icloud.com"},{"name":"baljinderhayre","email":"baljinder.hayre@dvsa.gov.uk"},{"name":"rlcorp","email":"rhys.lewis@dvsa.gov.uk"},{"name":"dhcrees","email":"howard.rees@dvsa.gov.uk"}],"readme":"# @dvsa/mes-dsp-mi-schema\n\nDownstream contract schema for **DSP Management Information**, derived from [`@dvsa/mes-test-schema`](../mes-test-schema).\n\n## Purpose\n\n`mes-test-schema` serves as the internal application state for the DES frontend application as well as api processing. Over time it\naccumulates fields that are needed by the app but are not relevant to downstream consumers.\n\nThis package provides a **stable, independently-versioned contract** for DSP. It is generated\nfrom the same source definitions as `mes-test-schema` but with specific fields removed to \nallow it to the original schema to be freely changed without impacting downstream systems. This\nmeans:\n\n- The DES app can evolve `mes-test-schema` freely without breaking the DSP contract.\n- DSP validates records against *this* schema, not `mes-test-schema` directly.\n- Differences between the two schemas are explicit, documented, and version-controlled here.\n\n## Omitted fields\n\nTBC to describe how to add fields to the exclusion list and how to handle breaking changes.\n\n## Usage\n\n### Navigate to mes-dsp-mi-schema folder\n```bash\ncd mes-dsp-mi-schema\n```\n\n### Install dependencies\n```bash\nnpm install\n```\n\n### Generate schemas\n```bash\nnpm run generate\n```\nThis reads source definitions from `../mes-test-schema/category-definitions/`, strips the\nfields to be omitted, and writes the resulting JSON schemas and TypeScript interfaces to `./categories/`.\n\n### Clean generated output\n```bash\nnpm run clean\n```\n\n## Versioning\n\nThis package is versioned independently of `mes-test-schema`. \nIncrement the version here when a field is added to or removed from the omit list.\n\n","readmeFilename":"README.md"}