ocpi-types
Version:
TypeScript DTOs and enums for OCPI 2.2.1 specification.
167 lines (166 loc) • 4.96 kB
JSON
{
"name": "ocpi-types",
"version": "2.0.1",
"description": "TypeScript DTOs and enums for OCPI 2.2.1 specification.",
"author": "Niklas Lampén <niklas@lampen.fi>",
"keywords": [
"ocpi",
"ocpi-2.2.1",
"typescript",
"dto",
"enum"
],
"license": "MIT",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist/**/*",
"README.md",
"LICENSE"
],
"scripts": {
"preversion": "npm test",
"version": "npm run build",
"postversion": "git push --tags",
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.js"
},
"./decorators": {
"types": "./dist/decorators/index.d.ts",
"import": "./dist/decorators/index.js",
"require": "./dist/decorators/index.js"
},
"./utils": {
"types": "./dist/utils/index.d.ts",
"import": "./dist/utils/index.js",
"require": "./dist/utils/index.js"
},
"./locations": {
"types": "./dist/modules/locations/index.d.ts",
"import": "./dist/modules/locations/index.js",
"require": "./dist/modules/locations/index.js"
},
"./tariffs": {
"types": "./dist/modules/tariffs/index.d.ts",
"import": "./dist/modules/tariffs/index.js",
"require": "./dist/modules/tariffs/index.js"
},
"./sessions": {
"types": "./dist/modules/sessions/index.d.ts",
"import": "./dist/modules/sessions/index.js",
"require": "./dist/modules/sessions/index.js"
},
"./cdrs": {
"types": "./dist/modules/cdrs/index.d.ts",
"import": "./dist/modules/cdrs/index.js",
"require": "./dist/modules/cdrs/index.js"
},
"./tokens": {
"types": "./dist/modules/tokens/index.d.ts",
"import": "./dist/modules/tokens/index.js",
"require": "./dist/modules/tokens/index.js"
},
"./commands": {
"types": "./dist/modules/commands/index.d.ts",
"import": "./dist/modules/commands/index.js",
"require": "./dist/modules/commands/index.js"
},
"./charging-profiles": {
"types": "./dist/modules/chargingprofiles/index.d.ts",
"import": "./dist/modules/chargingprofiles/index.js",
"require": "./dist/modules/chargingprofiles/index.js"
},
"./credentials": {
"types": "./dist/modules/credentials/index.d.ts",
"import": "./dist/modules/credentials/index.js",
"require": "./dist/modules/credentials/index.js"
},
"./versions": {
"types": "./dist/modules/versions/index.d.ts",
"import": "./dist/modules/versions/index.js",
"require": "./dist/modules/versions/index.js"
},
"./hubclientinfo": {
"types": "./dist/modules/hubclientinfo/index.d.ts",
"import": "./dist/modules/hubclientinfo/index.js",
"require": "./dist/modules/hubclientinfo/index.js"
}
},
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@nestjs/common": "^11.0.1",
"@nestjs/core": "^11.0.1",
"@nestjs/platform-express": "^11.0.1",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.2",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.1"
},
"devDependencies": {
"@eslint/js": "^9.18.0",
"@nestjs/cli": "^11.0.0",
"@nestjs/testing": "^11.0.1",
"@swc/cli": "^0.7.7",
"@swc/core": "^1.10.7",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.7",
"@types/supertest": "^6.0.2",
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-prettier": "^5.2.2",
"globals": "^16.0.0",
"jest": "^29.7.0",
"prettier": "^3.4.2",
"supertest": "^7.0.0",
"ts-jest": "^29.3.4",
"ts-node": "^10.9.2",
"typescript": "^5.7.3",
"typescript-eslint": "^8.20.0"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node",
"setupFiles": [
"reflect-metadata/Reflect"
]
},
"homepage": "https://github.com/niklam/ocpi-types/",
"repository": {
"type": "git",
"url": "git+https://github.com/niklam/ocpi-types.git"
},
"bugs": {
"url": "https://github.com/niklam/ocpi-types/issues"
}
}