{"_id":"@assetval/license","_rev":"1-8a5da3f6ae3a9be5675e1175d32a20c9","name":"@assetval/license","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@assetval/license","version":"0.0.1","license":"MIT","_id":"@assetval/license@0.0.1","maintainers":[{"name":"abaccus","email":"abourassa@assetval.com"},{"name":"lekxy_","email":"kyle.hagad@gmail.com"}],"homepage":"https://github.com/AssetVal/Hub#readme","bugs":{"url":"https://github.com/AssetVal/Hub/issues"},"nx":{"targets":{"lint":{"cache":true,"inputs":["{projectRoot}/src/**/*.ts","{projectRoot}/tsconfig.json","{projectRoot}/package.json"],"outputs":[]},"test":{"cache":true,"inputs":["{projectRoot}/src/**/*.ts","{projectRoot}/tsconfig.json","{projectRoot}/package.json"],"outputs":[]},"build":{"cache":true,"inputs":["{projectRoot}/src/**/*.ts","{projectRoot}/tsconfig.json","{projectRoot}/package.json"],"outputs":["{projectRoot}/dist"]},"clean":{"cache":false,"inputs":["{projectRoot}/dist"],"outputs":["{projectRoot}/dist"]}}},"dist":{"shasum":"612239bfd422211a68485f88200c5efd8081d49a","tarball":"https://registry.npmjs.org/@assetval/license/-/license-0.0.1.tgz","fileCount":8,"integrity":"sha512-AtV7mc2zFypnUlRS/Q8mwvXfE/pnEgJFwk6z09dL3TIn8skapGybdezGDBBtQPqms+5qYlXUuu9/x7Cvk/EGLg==","signatures":[{"sig":"MEYCIQCPXCVNyd0ArJeDFcYVdCNFbzDc+cXfUND5be2Po/6paAIhAMvc4Jjf4rytlF1SBQpgEjz/KoTtSLVrO7ZmKGfv5r4y","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18390},"main":"dist/License.cjs","type":"module","_from":"file:assetval-license-0.0.1.tgz","types":"dist/License.d.ts","module":"dist/License.mjs","authors":[{"name":"Antonio B.","email":"Abourassa@AssetVal.com","github":"https://github.com/Abourass"}],"exports":{".":{"types":"./dist/License.d.ts","import":"./dist/License.mjs","require":"./dist/License.cjs"}},"scripts":{"lint":"nx eslint:lint","test":"nx exec -- vitest run --coverage --config ./vitest.config.ts","build":"nx exec -- unbuild","clean":"nx exec -- rm -rf dist","iterate":"pnpm version patch && pnpm publish --access public --no-git-checks && git push --follow-tags"},"unbuild":{"clean":true,"rollup":{"dts":{"include":["src/**/*.ts"],"compilerOptions":{"composite":false}},"esbuild":{"tsconfigRaw":{"extends":"./tsconfig.json","include":["./src/**/*.ts"],"compilerOptions":{"outDir":"dist","target":"ESNext","rootDir":"src","declaration":true,"emitDecoratorMetadata":true,"experimentalDecorators":true}}},"inlineDependencies":false},"external":["mongoose","@nestjs/mongoose","dayjs"],"declaration":true},"_npmUser":{"name":"abaccus","email":"abourassa@assetval.com"},"_resolved":"/tmp/9f72df4e7456d96723e7e5cab1a3dde6/assetval-license-0.0.1.tgz","_integrity":"sha512-AtV7mc2zFypnUlRS/Q8mwvXfE/pnEgJFwk6z09dL3TIn8skapGybdezGDBBtQPqms+5qYlXUuu9/x7Cvk/EGLg==","repository":{"url":"git+https://github.com/AssetVal/Hub.git","type":"git"},"_npmVersion":"10.8.2","description":"AssetVal's license workspace","directories":{},"sideEffects":false,"_nodeVersion":"22.6.0","browserslist":["last 2 version","> 1%"],"dependencies":{"zod":"^3.23.8","tslib":"^2.6.3","mongoose":"^8.5.2","@assetval/user":"^0.2.4","@nestjs/mongoose":"^10.0.10","reflect-metadata":"^0.2.2","mongoose-lean-virtuals":"^0.9.1","@assetval/state-switcher":"^5.0.6"},"_hasShrinkwrap":false,"devDependencies":{"rxjs":"^7.8.1","vitest":"^2.0.5","unbuild":"^2.0.0","typescript":"^5.5.4","@nestjs/core":"^10.4.1","@nestjs/common":"^10.4.1","@assetval/confs":"^1.0.0","@vitest/coverage-v8":"^2.0.5"},"peerDependencies":{"zod":"*","rxjs":"*","tslib":"^*","mongoose":"*"},"_npmOperationalInternal":{"tmp":"tmp/license_0.0.1_1724692631314_0.25134259163256867","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@assetval/license","description":"AssetVal's license workspace","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/License.d.ts","import":"./dist/License.mjs","require":"./dist/License.cjs"}},"main":"dist/License.cjs","module":"dist/License.mjs","types":"dist/License.d.ts","dependencies":{"@nestjs/mongoose":"^10.0.10","mongoose":"^8.5.2","mongoose-lean-virtuals":"^0.9.1","reflect-metadata":"^0.2.2","tslib":"^2.6.3","zod":"^3.23.8","@assetval/state-switcher":"^5.0.7","@assetval/user":"^0.2.5"},"peerDependencies":{"mongoose":"*","rxjs":"*","tslib":"^*","zod":"*"},"devDependencies":{"@nestjs/common":"^10.4.1","@nestjs/core":"^10.4.1","@vitest/coverage-v8":"^2.0.5","rxjs":"^7.8.1","typescript":"^5.5.4","unbuild":"^2.0.0","vitest":"^2.0.5","@assetval/confs":"^1.0.0"},"authors":[{"name":"Antonio B.","email":"Abourassa@AssetVal.com","github":"https://github.com/Abourass"}],"repository":{"type":"git","url":"git+https://github.com/AssetVal/Hub.git"},"browserslist":["last 2 version","> 1%"],"license":"MIT","version":"0.0.2","unbuild":{"declaration":true,"clean":true,"external":["mongoose","@nestjs/mongoose","dayjs"],"rollup":{"inlineDependencies":false,"dts":{"compilerOptions":{"composite":false},"include":["src/**/*.ts"]},"esbuild":{"tsconfigRaw":{"extends":"./tsconfig.json","compilerOptions":{"outDir":"dist","rootDir":"src","declaration":true,"experimentalDecorators":true,"emitDecoratorMetadata":true,"target":"ESNext"},"include":["./src/**/*.ts"]}}}},"nx":{"targets":{"build":{"cache":true,"inputs":["{projectRoot}/src/**/*.ts","{projectRoot}/tsconfig.json","{projectRoot}/package.json"],"outputs":["{projectRoot}/dist"]},"clean":{"cache":false,"inputs":["{projectRoot}/dist"],"outputs":["{projectRoot}/dist"]},"lint":{"cache":true,"inputs":["{projectRoot}/src/**/*.ts","{projectRoot}/tsconfig.json","{projectRoot}/package.json"],"outputs":[]},"test":{"cache":true,"inputs":["{projectRoot}/src/**/*.ts","{projectRoot}/tsconfig.json","{projectRoot}/package.json"],"outputs":[]}}},"scripts":{"build":"nx exec -- unbuild","clean":"nx exec -- rm -rf dist","lint":"nx eslint:lint","test":"nx exec -- vitest run --coverage --config ./vitest.config.ts","iterate":"pnpm version patch && pnpm publish --access public --no-git-checks"},"_id":"@assetval/license@0.0.2","bugs":{"url":"https://github.com/AssetVal/Hub/issues"},"homepage":"https://github.com/AssetVal/Hub#readme","_integrity":"sha512-2aUyxxG6DZfLTy6rNpbG+UGNKuYbkHK6+Rb4muwwnfCJlclqspYodBO9jolpCyKsc1L4z3Kwa9vMdnPN2z0hfQ==","_resolved":"/tmp/4b24e14df0a05669cae079e83e23fa3c/assetval-license-0.0.2.tgz","_from":"file:assetval-license-0.0.2.tgz","_nodeVersion":"22.6.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-2aUyxxG6DZfLTy6rNpbG+UGNKuYbkHK6+Rb4muwwnfCJlclqspYodBO9jolpCyKsc1L4z3Kwa9vMdnPN2z0hfQ==","shasum":"77359d488c4ce3a58ec72ad6fa02edc02942b183","tarball":"https://registry.npmjs.org/@assetval/license/-/license-0.0.2.tgz","fileCount":8,"unpackedSize":18364,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH2segqnoTJjpFI1DA1yhGudcGZNYFKEIXeKq7oq2lXVAiBuyEXf2fuIdU43aMOMQv9LXqTu9Vh/I9VuLfm/wke/Kg=="}]},"_npmUser":{"name":"abaccus","email":"abourassa@assetval.com"},"directories":{},"maintainers":[{"name":"abaccus","email":"abourassa@assetval.com"},{"name":"lekxy_","email":"kyle.hagad@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/license_0.0.2_1724785026228_0.36826305091703726"},"_hasShrinkwrap":false}},"time":{"created":"2024-08-26T17:17:11.218Z","modified":"2024-08-27T18:57:06.586Z","0.0.1":"2024-08-26T17:17:11.495Z","0.0.2":"2024-08-27T18:57:06.399Z"},"bugs":{"url":"https://github.com/AssetVal/Hub/issues"},"license":"MIT","homepage":"https://github.com/AssetVal/Hub#readme","repository":{"type":"git","url":"git+https://github.com/AssetVal/Hub.git"},"description":"AssetVal's license workspace","maintainers":[{"name":"abaccus","email":"abourassa@assetval.com"},{"name":"lekxy_","email":"kyle.hagad@gmail.com"}],"readme":"# License\n\nThis is the Veritas License Schema workspace.\n\n## Installation\n\n```sh\nyarn add @assetval/license\n```\n\n## Usage\n\n### As a Class (Front End)\n\n```ts\nimport { License } from '@assetval/license';\n\nconst license = new License();\n```\n\n### As Schema (Back End)\n\n```ts\nimport { {License}Schema, License } from '@assetval/license';\nimport { Model } from 'mongoose';\n\nexport const {License}Model = model<License>('{license}es', {License}Schema);\n```\n\n### As Validation (Back End)\n\n```ts\nimport { {License}ValidationSchema } from '@assetval/license';\nimport { z } from 'zod';\nimport { MagikRoutes } from '../middleware/RouterManager.js';\n\nconst ProfileRoute = MagikRoutes.getRouter('/profile');\n\nProfileRoute.post('/updateLicense', {\n  auth: 'ensureAuthenticated',\n  validationSchema: z.object({\n    body: {License}ValidationSchema\n  }),\n  route: async (req, res): Promise<void> => {\n    // Do something\n  }\n});\n```\n\n## License\n\nMIT\n\n## Authors\n\n- [Abourass](https://github.com/Abourass)\n\n## Contributing\n\nDownload the Schema repository and make sure you have the following installed:\n\n- asdf\n- NodeJS (ASDF)\n- PNPM (Corepack / Node / ASDF)\n- NX\n\nThen run the following commands:\n\n```sh\npnpm install\n```\n\n","readmeFilename":"README.md"}