{"_id":"@aditya2337/drive-ride-matching-types","_rev":"2-33a10f6ae2cfa3ee8d09ad8a0c4577ad","name":"@aditya2337/drive-ride-matching-types","dist-tags":{"latest":"0.3.0"},"versions":{"0.2.0":{"name":"@aditya2337/drive-ride-matching-types","version":"0.2.0","keywords":["api","types","typescript","openapi","ride-matching"],"author":{"name":"AI Drive Team"},"license":"MIT","_id":"@aditya2337/drive-ride-matching-types@0.2.0","maintainers":[{"name":"androiditya","email":"androiditya@gmail.com"}],"homepage":"https://github.com/adityagv/ride-matching-service#readme","bugs":{"url":"https://github.com/adityagv/ride-matching-service/issues"},"dist":{"shasum":"e7eb218751d0868914914311dec2481ea306bdad","tarball":"https://registry.npmjs.org/@aditya2337/drive-ride-matching-types/-/drive-ride-matching-types-0.2.0.tgz","fileCount":6,"integrity":"sha512-0jMnYbO7LWqfC5nU9WdCWTXsCh5gTow+ZGWBc32w73IlrsDUfyimG2Z31NFw7kXO19Rc674UvuZR9sVYZFz09Q==","signatures":[{"sig":"MEYCIQDqQm07Vp3Ari8O3L+XnqESadPpBN+fvloIFVHwpF3xFQIhAPDCtXUZPg6jI8XsdZ/8NjvfPXdHuRLvW3zTYtuX9YFA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17611},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"0d3d860240c01117fbddbb4686efcbb6085a748e","scripts":{"build":"tsc","prepare":"npm run build","generate":"../scripts/generate-ts-types.sh","prebuild":"rimraf dist"},"_npmUser":{"name":"androiditya","email":"androiditya@gmail.com"},"repository":{"url":"git+https://github.com/adityagv/ride-matching-service.git","type":"git"},"_npmVersion":"10.9.2","description":"TypeScript types generated from Ride Matching Service OpenAPI specification","directories":{},"_nodeVersion":"23.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^5.0.5","typescript":"^5.3.3","swagger2openapi":"^7.0.8","openapi-typescript":"^6.7.6"},"_npmOperationalInternal":{"tmp":"tmp/drive-ride-matching-types_0.2.0_1742754799330_0.06851726612730524","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@aditya2337/drive-ride-matching-types","version":"0.3.0","description":"TypeScript types generated from Ride Matching Service OpenAPI specification","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","prebuild":"rimraf dist","prepare":"npm run build","generate":"../scripts/generate-ts-types.sh"},"keywords":["api","types","typescript","openapi","ride-matching"],"author":{"name":"AI Drive Team"},"license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/adityagv/ride-matching-service.git"},"devDependencies":{"openapi-typescript":"^6.7.6","openapi-typescript-codegen":"^0.27.0","rimraf":"^5.0.5","swagger2openapi":"^7.0.8","typescript":"^5.3.3"},"_id":"@aditya2337/drive-ride-matching-types@0.3.0","gitHead":"0d3d860240c01117fbddbb4686efcbb6085a748e","bugs":{"url":"https://github.com/adityagv/ride-matching-service/issues"},"homepage":"https://github.com/adityagv/ride-matching-service#readme","_nodeVersion":"23.8.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-5uZt4MI6j4+lVNbIkQbvINDADUsoxtdTJo8rS8k80V1U6PTyFAgCNx/PP4FNb9IAHxKZCa0Y6yr/ig1SWew1tg==","shasum":"ce85f494e1901a9689df9862781f08bf8bf96852","tarball":"https://registry.npmjs.org/@aditya2337/drive-ride-matching-types/-/drive-ride-matching-types-0.3.0.tgz","fileCount":22,"unpackedSize":20830,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIH6go98RVwGYf08ZCUArl2JJo05X6kl3NA9QeH48gNjFAiAv1HsI7j6WnPRiyqBZfLRGQ0vTewTKbvkMTgY5mQYr9g=="}]},"_npmUser":{"name":"androiditya","email":"androiditya@gmail.com"},"directories":{},"maintainers":[{"name":"androiditya","email":"androiditya@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/drive-ride-matching-types_0.3.0_1742756693561_0.4337618417168525"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-23T18:33:19.207Z","modified":"2025-03-23T19:04:53.943Z","0.2.0":"2025-03-23T18:33:19.507Z","0.3.0":"2025-03-23T19:04:53.758Z"},"bugs":{"url":"https://github.com/adityagv/ride-matching-service/issues"},"author":{"name":"AI Drive Team"},"license":"MIT","homepage":"https://github.com/adityagv/ride-matching-service#readme","keywords":["api","types","typescript","openapi","ride-matching"],"repository":{"type":"git","url":"git+https://github.com/adityagv/ride-matching-service.git"},"description":"TypeScript types generated from Ride Matching Service OpenAPI specification","maintainers":[{"name":"androiditya","email":"androiditya@gmail.com"}],"readme":"# Ride Matching Service API Types\n\nThis package contains TypeScript types generated from the Ride Matching Service API specification.\n\n## Installation\n\n```bash\nnpm install @aditya2337/drive-ride-matching-types\n```\n\n## Usage\n\n```typescript\nimport { \n  dto_CreateRideInput, \n  dto_RideOutput, \n  dto_DriverOutput, \n  dto_UpdateDriverLocationInput\n} from '@aditya2337/drive-ride-matching-types';\n\n// Using the model types\nconst createRideRequest: dto_CreateRideInput = {\n  customer_id: 123,\n  pickup_lat: 37.7749,\n  pickup_lng: -122.4194,\n  drop_lat: 37.3382,\n  drop_lng: -121.8863,\n  vehicle_type: 'sedan'\n};\n\n// Working with response types\nfunction handleRideResponse(response: dto_RideOutput) {\n  console.log(response.id, response.status);\n}\n\n// Using request and response types for specific endpoints\nimport {\n  GetRidesIdRequest,\n  GetRidesIdResponse,\n  PostRidesRequest,\n  PostRidesResponse\n} from '@aditya2337/drive-ride-matching-types';\n\n// Example of creating a request for a specific endpoint\nconst rideRequest: PostRidesRequest = {\n  body: createRideRequest\n};\n\n// Handling typed responses\nfunction processRideResponse(response: PostRidesResponse) {\n  // Response is properly typed\n  if (response.status === 201) {\n    console.log(response.body.id);\n  }\n}\n```\n\n## Publishing\n\n### Automatic Publishing\n\nThis package is automatically published to npm when changes are made to the OpenAPI specification in the main repository.\n\n### Manual Publishing\n\nTo manually publish a new version:\n\n1. Make sure you're logged in to npm with proper access:\n   ```bash\n   npm login\n   ```\n\n2. Run the publish script:\n   ```bash\n   ./scripts/publish-types.sh\n   ```\n\n3. Follow the prompts to select version increment and confirm publishing.\n","readmeFilename":"README.md"}