{"_id":"@binochoi/nestjs-mapped-types","_rev":"2-26413dc48bc8ec9c22b733c61e348a24","name":"@binochoi/nestjs-mapped-types","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.2":{"name":"@binochoi/nestjs-mapped-types","version":"0.0.2","description":"Nest - modern, fast, powerful node.js web framework (@mapped-types)","author":{"name":"Kamil Mysliwiec"},"license":"MIT","url":"https://github.com/koloboid/mapped-types","scripts":{"build":"rimraf -rf dist && tsc -p tsconfig.json","lint":"eslint 'lib/**/*.ts' --fix","format":"prettier \"{lib,tests}/**/*.ts\" --write","prepublish:npm":"npm run build","publish:npm":"npm publish --access public","prepublish:next":"npm run build","publish:next":"npm publish --access public --tag next","test:e2e":"jest --config ./tests/jest-e2e.json --runInBand","test:e2e:dev":"jest --config ./tests/jest-e2e.json --runInBand --watch","prerelease":"npm run build","release":"release-it","prepare":"husky install"},"devDependencies":{"@commitlint/cli":"17.7.1","@commitlint/config-angular":"17.7.0","@nestjs/common":"10.2.3","@types/jest":"29.5.4","@types/node":"18.17.12","@typescript-eslint/eslint-plugin":"6.5.0","@typescript-eslint/parser":"6.5.0","class-transformer":"0.5.1","class-validator":"0.14.0","eslint":"8.48.0","eslint-config-prettier":"9.0.0","eslint-plugin-import":"2.28.1","husky":"8.0.3","jest":"29.6.4","lint-staged":"14.0.1","prettier":"3.0.3","reflect-metadata":"0.1.13","release-it":"16.1.5","rimraf":"5.0.1","ts-jest":"29.1.1","typescript":"5.2.2"},"peerDependencies":{"class-transformer":"^0.4.0 || ^0.5.0","class-validator":"^0.13.0 || ^0.14.0","reflect-metadata":"^0.1.12"},"peerDependenciesMeta":{"class-validator":{"optional":true},"class-transformer":{"optional":true}},"lint-staged":{"**/*.{ts,json}":[]},"repository":{"type":"git","url":"git+https://github.com/koloboid/mapped-types.git"},"_id":"@binochoi/nestjs-mapped-types@0.0.2","gitHead":"9931ccd9488dc6305995d72baf846cadae906d49","types":"./index.d.ts","bugs":{"url":"https://github.com/koloboid/mapped-types/issues"},"homepage":"https://github.com/koloboid/mapped-types#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-ibC9w2gp2r5NR8faYXqUL7Zcw126T7okdJ4VYp/75S/7QikJbA/ZFsXy+YVMHU5ens6+x4WO69QT61sVU1WO8Q==","shasum":"b53420239cabe6d769eafd84c319d00f66b5fb56","tarball":"https://registry.npmjs.org/@binochoi/nestjs-mapped-types/-/nestjs-mapped-types-0.0.2.tgz","fileCount":29,"unpackedSize":22643,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAfiqEjzmgOqJrjrQ0IQ+ZMUaMeHcB2ZyPLVRczErQ0SAiBvLFDxHx0KHV3/+6azG15TpKOg8+h88i0yIZgOHPUy6g=="}]},"_npmUser":{"name":"bino0216","email":"bonoself@gmail.com"},"directories":{},"maintainers":[{"name":"bino0216","email":"bonoself@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-mapped-types_0.0.2_1703158587745_0.733361700449001"},"_hasShrinkwrap":false},"0.0.4":{"name":"@binochoi/nestjs-mapped-types","version":"0.0.4","description":"Nest - modern, fast, powerful node.js web framework (@mapped-types)","author":{"name":"Kamil Mysliwiec"},"license":"MIT","url":"https://github.com/koloboid/mapped-types","scripts":{"build":"rimraf -rf dist && tsc -p tsconfig.json","lint":"eslint 'lib/**/*.ts' --fix","format":"prettier \"{lib,tests}/**/*.ts\" --write","prepublish:npm":"npm run build","publish:npm":"npm publish --access public","prepublish:next":"npm run build","publish:next":"npm publish --access public --tag next","test:e2e":"jest --config ./tests/jest-e2e.json --runInBand","test:e2e:dev":"jest --config ./tests/jest-e2e.json --runInBand --watch","prerelease":"npm run build","release":"release-it","prepare":"husky install"},"devDependencies":{"@commitlint/cli":"17.7.1","@commitlint/config-angular":"17.7.0","@nestjs/common":"10.2.3","@types/jest":"29.5.4","@types/node":"18.17.12","@typescript-eslint/eslint-plugin":"6.5.0","@typescript-eslint/parser":"6.5.0","class-transformer":"0.5.1","class-validator":"0.14.0","eslint":"8.48.0","eslint-config-prettier":"9.0.0","eslint-plugin-import":"2.28.1","husky":"8.0.3","jest":"29.6.4","lint-staged":"14.0.1","prettier":"3.0.3","reflect-metadata":"0.1.13","release-it":"16.1.5","rimraf":"5.0.1","ts-jest":"29.1.1","typescript":"5.2.2"},"peerDependencies":{"class-transformer":"^0.4.0 || ^0.5.0","class-validator":"^0.13.0 || ^0.14.0","reflect-metadata":"^0.1.12"},"peerDependenciesMeta":{"class-validator":{"optional":true},"class-transformer":{"optional":true}},"lint-staged":{"**/*.{ts,json}":[]},"repository":{"type":"git","url":"git+https://github.com/koloboid/mapped-types.git"},"types":"./index.d.ts","gitHead":"da7c9ae811ef748044d5d8a81beba3c7f39e427f","bugs":{"url":"https://github.com/koloboid/mapped-types/issues"},"homepage":"https://github.com/koloboid/mapped-types#readme","_id":"@binochoi/nestjs-mapped-types@0.0.4","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-3BJ/+vlW86wiUhqofOceUm76n5GX1IrOSNrxG9omMx7wA3Ngv+tR/APNGpYiE+7CJAp7eTnz+FGsoNX6+wBj6g==","shasum":"7552a584adbd3f7f0af7944dc0072859b81c1c7d","tarball":"https://registry.npmjs.org/@binochoi/nestjs-mapped-types/-/nestjs-mapped-types-0.0.4.tgz","fileCount":25,"unpackedSize":38564,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSPZlKlYIFEMqTf4czGVd/YA9ViQcXFt1l++kEFJn2WgIgUkQOlhOEVbpxsa/0Lio4Jz3+aWm/ktsu5zKpNripnB8="}]},"_npmUser":{"name":"bino0216","email":"bonoself@gmail.com"},"directories":{},"maintainers":[{"name":"bino0216","email":"bonoself@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-mapped-types_0.0.4_1703655754783_0.693893127937965"},"_hasShrinkwrap":false},"0.0.5":{"name":"@binochoi/nestjs-mapped-types","version":"0.0.5","description":"Nest - modern, fast, powerful node.js web framework (@mapped-types)","author":{"name":"Kamil Mysliwiec"},"license":"MIT","url":"https://github.com/koloboid/mapped-types","scripts":{"build":"rimraf -rf dist && tsc -p tsconfig.json","lint":"eslint 'lib/**/*.ts' --fix","format":"prettier \"{lib,tests}/**/*.ts\" --write","prepublish:npm":"npm run build","publish:npm":"npm publish --access public","prepublish:next":"npm run build","publish:next":"npm publish --access public --tag next","test:e2e":"jest --config ./tests/jest-e2e.json --runInBand","test:e2e:dev":"jest --config ./tests/jest-e2e.json --runInBand --watch","prerelease":"npm run build","release":"release-it","prepare":"husky install"},"devDependencies":{"@commitlint/cli":"17.7.1","@commitlint/config-angular":"17.7.0","@nestjs/common":"10.2.3","@types/jest":"29.5.4","@types/node":"18.17.12","@typescript-eslint/eslint-plugin":"6.5.0","@typescript-eslint/parser":"6.5.0","class-transformer":"0.5.1","class-validator":"0.14.0","eslint":"8.48.0","eslint-config-prettier":"9.0.0","eslint-plugin-import":"2.28.1","husky":"8.0.3","jest":"29.6.4","lint-staged":"14.0.1","prettier":"3.0.3","reflect-metadata":"0.1.13","release-it":"16.1.5","rimraf":"5.0.1","ts-jest":"29.1.1","typescript":"5.2.2"},"peerDependencies":{"class-transformer":"^0.4.0 || ^0.5.0","class-validator":"^0.13.0 || ^0.14.0","reflect-metadata":"^0.1.12"},"peerDependenciesMeta":{"class-validator":{"optional":true},"class-transformer":{"optional":true}},"lint-staged":{"**/*.{ts,json}":[]},"repository":{"type":"git","url":"git+https://github.com/koloboid/mapped-types.git"},"types":"./index.d.ts","gitHead":"6bee76102dfc141b2022281b3d5f01eb98db68d7","bugs":{"url":"https://github.com/koloboid/mapped-types/issues"},"homepage":"https://github.com/koloboid/mapped-types#readme","_id":"@binochoi/nestjs-mapped-types@0.0.5","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-nZVarB7v8Bwj81H4b7Ro55i8pmHIAYb8gpdyi/6GcORLxjpTIbERBwa7rhgxge8Lb/AiKWeuDFBVbh5urah1Tw==","shasum":"916350af81909b1236967222c97a7e0f207eae7c","tarball":"https://registry.npmjs.org/@binochoi/nestjs-mapped-types/-/nestjs-mapped-types-0.0.5.tgz","fileCount":33,"unpackedSize":40279,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE25AZ6WXPmP/akO54BqZ7Y82M+LGygYOU+bW878ePYXAiEAh2xupwqIJltGKTG8214Wu+YMQLH2bfdWHfNTFxT0ssk="}]},"_npmUser":{"name":"bino0216","email":"bonoself@gmail.com"},"directories":{},"maintainers":[{"name":"bino0216","email":"bonoself@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-mapped-types_0.0.5_1703663730505_0.5641934446805663"},"_hasShrinkwrap":false}},"time":{"created":"2023-12-21T11:36:27.617Z","0.0.2":"2023-12-21T11:36:27.904Z","modified":"2023-12-27T07:55:30.889Z","0.0.4":"2023-12-27T05:42:34.967Z","0.0.5":"2023-12-27T07:55:30.709Z"},"maintainers":[{"name":"bino0216","email":"bonoself@gmail.com"}],"description":"Nest - modern, fast, powerful node.js web framework (@mapped-types)","homepage":"https://github.com/koloboid/mapped-types#readme","repository":{"type":"git","url":"git+https://github.com/koloboid/mapped-types.git"},"author":{"name":"Kamil Mysliwiec"},"bugs":{"url":"https://github.com/koloboid/mapped-types/issues"},"license":"MIT","readme":"<p align=\"center\">\n  <a href=\"http://nestjs.com/\" target=\"blank\"><img src=\"https://nestjs.com/img/logo-small.svg\" width=\"120\" alt=\"Nest Logo\" /></a>\n</p>\n\n[travis-image]: https://api.travis-ci.org/nestjs/nest.svg?branch=master\n[travis-url]: https://travis-ci.org/nestjs/nest\n[linux-image]: https://img.shields.io/travis/nestjs/nest/master.svg?label=linux\n[linux-url]: https://travis-ci.org/nestjs/nest\n\n  <p align=\"center\">A progressive <a href=\"http://nodejs.org\" target=\"blank\">Node.js</a> framework for building efficient and scalable server-side applications.</p>\n    <p align=\"center\">\n<a href=\"https://www.npmjs.com/~nestjscore\"><img src=\"https://img.shields.io/npm/v/@nestjs/core.svg\" alt=\"NPM Version\" /></a>\n<a href=\"https://www.npmjs.com/~nestjscore\"><img src=\"https://img.shields.io/npm/l/@nestjs/core.svg\" alt=\"Package License\" /></a>\n<a href=\"https://www.npmjs.com/~nestjscore\"><img src=\"https://img.shields.io/npm/dm/@nestjs/core.svg\" alt=\"NPM Downloads\" /></a>\n<a href=\"https://coveralls.io/github/nestjs/nest?branch=master\"><img src=\"https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#5\" alt=\"Coverage\" /></a>\n<a href=\"https://discord.gg/G7Qnnhy\" target=\"_blank\"><img src=\"https://img.shields.io/badge/discord-online-brightgreen.svg\" alt=\"Discord\"/></a>\n<a href=\"https://opencollective.com/nest#backer\"><img src=\"https://opencollective.com/nest/backers/badge.svg\" alt=\"Backers on Open Collective\" /></a>\n<a href=\"https://opencollective.com/nest#sponsor\"><img src=\"https://opencollective.com/nest/sponsors/badge.svg\" alt=\"Sponsors on Open Collective\" /></a>\n  <a href=\"https://paypal.me/kamilmysliwiec\"><img src=\"https://img.shields.io/badge/Donate-PayPal-dc3d53.svg\"/></a>\n  <a href=\"https://twitter.com/nestframework\"><img src=\"https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow\"></a>\n</p>\n  <!--[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer)\n  [![Sponsors on Open Collective](https://opencollective.com/nest/sponsors/badge.svg)](https://opencollective.com/nest#sponsor)-->\n\n## Description\n\nThis fork removes dependency to @nestjs/common, makes usable mapped types on the browser side\n\n## Installation\n\n```bash\n$ npm i --save nestjs-mapped-types\n```\n\n## Quick Start\n\nAs you build out features, it's often useful to construct variants on a base entity type. A good example of such a variant is a **Data Transfer Object** (DTO). A Data Transfer Object is an object that is used to encapsulate data, and send it from one part of your application to another. DTO’s help us define the input and output interfaces of our system.\n\nLet's imagine a real-world example, where we typically need to build both a **create** and **update** variations for the same entity type.\n\nThe create variant may require all fields, while the update variant may make all fields **optional**. Not to mention, both these types can also be variants of an entity type (to some extent).\n\nThat's a lot of redundant code!\n\nThus, [NestJS](https://github.com/nestjs/nest) now provides several utility functions that perform type transformations to help us avoid doing this, and make life a little bit easier.\n\nAvailable mapped types:\n\n- `PartialType` - returns a type (class) with all the properties of the input type set to optional (requirement: at least 1 validation decorator applied to each property)\n- `PickType` - constructs a new type (class) by picking a set of properties from an input type\n- `OmitType` - constructs a type by picking all properties from an input type and then removing a particular set of keys\n- `IntersectionType` - combines two types into one new type (class)\n\nRead more in [this article](https://trilon.io/blog/introducing-mapped-types-for-nestjs).\n\n## Support\n\nNest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).\n\n## Stay in touch\n\n- Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)\n- Website - [https://nestjs.com](https://nestjs.com/)\n- Twitter - [@nestframework](https://twitter.com/nestframework)\n\n## License\n\nNest is [MIT licensed](LICENSE).\n","readmeFilename":"README.md"}