{"_id":"@aashil/realdebrid-api","name":"@aashil/realdebrid-api","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aashil/realdebrid-api","version":"1.0.0","description":"OpenAPI client for Real-Debrid API","author":{"name":"OpenAPI-Generator Contributors"},"repository":{"type":"git","url":"git+https://github.com/realaashil/realdebrid-api.git"},"keywords":["fetch","typescript","openapi-client","openapi-generator"],"license":"Unlicense","main":"./dist/index.js","type":"commonjs","exports":{".":{"require":"./dist/index.js","types":"./dist/index.d.js"}},"typings":"./dist/index.d.ts","scripts":{"build":"tsc","prepare":"npm run build"},"dependencies":{"whatwg-fetch":"^3.0.0","es6-promise":"^4.2.4","url-parse":"^1.4.3"},"devDependencies":{"typescript":"^4.0","@types/url-parse":"1.4.4"},"_id":"@aashil/realdebrid-api@1.0.0","bugs":{"url":"https://github.com/realaashil/realdebrid-api/issues"},"homepage":"https://github.com/realaashil/realdebrid-api#readme","_nodeVersion":"21.6.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-wFgbfGaytt5oRHOKeVDOuwFocpzgJEU4pxOQFHUah7QK/IeclhfsflamPR5/nZ5aFidoUMJKVw4q+j3lI0kUvA==","shasum":"f7fa01dc24dd77999b5276a045ae5cf1d919080d","tarball":"https://registry.npmjs.org/@aashil/realdebrid-api/-/realdebrid-api-1.0.0.tgz","fileCount":77,"unpackedSize":514331,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF9ItPJ2QZVUdMgPlCLZ95W0UajHKCjA+pvkad/vV9AgAiEAvR+PULycd994volHbAjYgqAKpMnsx/FmAUKBvuYrSn8="}]},"_npmUser":{"name":"aashil","email":"singhalaashil@gmail.com"},"directories":{},"maintainers":[{"name":"aashil","email":"singhalaashil@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/realdebrid-api_1.0.0_1729798425556_0.9163645895607526"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-24T19:33:45.456Z","1.0.0":"2024-10-24T19:33:45.802Z","modified":"2024-10-24T19:33:46.087Z"},"maintainers":[{"name":"aashil","email":"singhalaashil@gmail.com"}],"description":"OpenAPI client for Real-Debrid API","homepage":"https://github.com/realaashil/realdebrid-api#readme","keywords":["fetch","typescript","openapi-client","openapi-generator"],"repository":{"type":"git","url":"git+https://github.com/realaashil/realdebrid-api.git"},"author":{"name":"OpenAPI-Generator Contributors"},"bugs":{"url":"https://github.com/realaashil/realdebrid-api/issues"},"license":"Unlicense","readme":"## @\n\nThis generator creates TypeScript/JavaScript client that utilizes fetch-api.\n\n### Building\n\nTo build and compile the typescript sources to javascript use:\n```\nnpm install\nnpm run build\n```\n\n### Publishing\n\nFirst build the package then run ```npm publish```\n\n### Consuming\n\nNavigate to the folder of your consuming project and run one of the following commands.\n\n_published:_\n\n```\nnpm install @ --save\n```\n\n_unPublished (not recommended):_\n\n```\nnpm install PATH_TO_GENERATED_PACKAGE --save\n```\n\n### Usage\n\nBelow code snippet shows exemplary usage of the configuration and the API based \non the typical `PetStore` example used for OpenAPI. \n\n```\nimport * as your_api from 'your_api_package'\n\n// Covers all auth methods included in your OpenAPI yaml definition\nconst authConfig: your_api.AuthMethodsConfiguration = {\n    \"api_key\": \"YOUR_API_KEY\"\n}\n\n// Implements a simple middleware to modify requests before (`pre`) they are sent\n// and after (`post`) they have been received \nclass Test implements your_api.Middleware {\n    pre(context: your_api.RequestContext): Promise<your_api.RequestContext> {\n        // Modify context here and return\n        return Promise.resolve(context);\n    }\n\n    post(context: your_api.ResponseContext): Promise<your_api.ResponseContext> {\n        return Promise.resolve(context);\n    }\n\n}\n\n// Create configuration parameter object\nconst configurationParameters = {\n    httpApi: new your_api.JQueryHttpLibrary(), // Can also be ignored - default is usually fine\n    baseServer: your_api.servers[0], // First server is default\n    authMethods: authConfig, // No auth is default\n    promiseMiddleware: [new Test()],\n}\n\n// Convert to actual configuration\nconst config = your_api.createConfiguration(configurationParameters);\n\n// Use configuration with your_api\nconst api = new your_api.PetApi(config);\nyour_api.Pet p = new your_api.Pet();\np.name = \"My new pet\";\np.photoUrls = [];\np.tags = [];\np.status = \"available\";\nPromise<your_api.Pet> createdPet = api.addPet(p);\n\n```\n","readmeFilename":"README.md"}