{"_id":"@allocloud/js-sdk","_rev":"2-86df544459b76f845e7d29bab450e522","name":"@allocloud/js-sdk","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@allocloud/js-sdk","version":"1.0.0","description":"An isomorphic/universal promise based interface to the ALLOcloud API","license":"MIT","repository":{"type":"git","url":"git+https://github.com/allocloud/allocloud-js-sdk.git"},"main":"lib/index.js","typings":"typings/index.d.ts","scripts":{"dev":"tsc -w","build":"tsc","lint":"eslint src","prepublish":"npm run build","test":"jest","test:format":"prettier --list-different --single-quote --trailing-comma none --write src/**/*.js","format":"prettier --single-quote --trailing-comma none --write src/**/*.js","ci":"npm run lint && npm run test && npm run build","docs:generate":"typedoc --disableOutputCheck --out docs src/index.ts","docs:deploy":"gh-pages -d docs"},"devDependencies":{"@types/node":"^10.11.3","babel-cli":"^6.26.0","babel-eslint":"^8.0.1","babel-preset-env":"^1.7.0","babel-preset-es2015":"^6.24.1","babel-preset-es2017":"^6.24.1","babel-preset-stage-0":"^6.24.1","babel-preset-stage-2":"^6.24.1","babel-preset-stage-3":"^6.24.1","benchmark":"^2.1.4","bluebird":"^3.5.4","eslint":"^4.7.2","eslint-config-prettier":"^2.6.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-jest":"^22.5.1","eslint-plugin-prettier":"^2.3.1","jest":"^21.2.0","prettier":"^1.16.4","save":"^2.3.3","typescript":"^3.4.5"},"dependencies":{"cross-fetch":"^3.0.2","gh-pages":"^2.0.1","query-string":"^6.5.0","semantic-release":"^15.13.12","typedoc":"^0.14.2","universal-url":"^2.0.0"},"jest":{"testEnvironment":"node","testPathIgnorePatterns":["<rootDir>/build/","<rootDir>/node_modules/","(<rootDir>/__tests__/.*|(\\.|/)utils)\\.jsx?$"]},"gitHead":"604a82603dc8161736e3961db44a28db75ab987a","bugs":{"url":"https://github.com/allocloud/allocloud-js-sdk/issues"},"homepage":"https://github.com/allocloud/allocloud-js-sdk#readme","_id":"@allocloud/js-sdk@1.0.0","_nodeVersion":"11.14.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-mJUu0qWco3iLYS13GXR/sfJlbh07YTfHHv3/yTwkmhGwVe3y7MTLqLo/10W1Ys7aoDEKvtC5E1OZInb8ypgPEA==","shasum":"3bb872fd674ecb3215bb115e2a9fd9358098951f","tarball":"https://registry.npmjs.org/@allocloud/js-sdk/-/js-sdk-1.0.0.tgz","fileCount":21,"unpackedSize":61018,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc1DLaCRA9TVsSAnZWagAA8ekQAJSjmUEe2XKP8DgS6n9U\nwd+um8G5dtAVWsdl5d0fDT7KyRHqbhsJM2hK14q+7E2ZYiRQ9JEMLTatBrjK\ngMncHk82Khh3q0o8XllmCrSArJBlifuPjzUvi9ie7Llfgs1GbOdZCTdndOW2\nD93PCZB0yPaFxOy1qYmvEmDGSnBT9yC5+2ZBM8wXV0AuLV/wr1zTaVvsOtqu\npu0yc9SLGYo6Pc6V5tRulHn7A93iSgB4bOb/JMUSbGzXhVPncHZ29FVcM50K\nZX0pTWVmJ52xA3DXCUr2E+slLEa4AkMnZQ+SYqhl47t61eod75TxCIfdlA92\novpmiNrSlaXq1L7Xki0B3BkvxeCV+fQX+48r56Tr1j613V5wBy4+M2oteimE\npEX9iZ9OTZE2/HJtB/YYhqX/kw2pILf+uU5JvnaroIhEIUBgWMIqtmuaO28Y\neRYi1c6wPP2F+yYPqh1Kk4v2zqrOMOBuHPusIHGXIIb2I8OA6R/LTp+4Eu8w\nulx5M80PU9XulJ0r6viLBfH+PvongqSjX0Udo2N++9oNArYcj5aFQx49bu2x\n99avCVje+T90bvc+u/kWy4CGVvnOIWiZDmgnPHv8VHfDwcTdZNCLsZbgMeOE\nwHrtL/jjRyYCNPD42A9A8Sd/Q+6qZqPqbEQGVZ8LKarpkl7fn1tkujVAZcT1\nayDD\r\n=4qwb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAdCLWNXHiJNR8L9tWaAZYgocgBUL1c9BERJVUhmGLwhAiEAvzgqCcmLnvNLnoViUhbtNagpSKKvcig6JJMOK/m7rM4="}]},"maintainers":[{"name":"william.nemencha","email":"william.nemencha@allocloud.com"}],"_npmUser":{"name":"william.nemencha","email":"william.nemencha@allocloud.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-sdk_1.0.0_1557410522119_0.8131490714386738"},"_hasShrinkwrap":false},"1.0.1":{"name":"@allocloud/js-sdk","version":"1.0.1","description":"An isomorphic/universal promise based interface to the ALLOcloud API","license":"MIT","repository":{"type":"git","url":"git+https://github.com/allocloud/allocloud-js-sdk.git"},"main":"lib/index.js","typings":"typings/index.d.ts","scripts":{"dev":"tsc -w","build":"tsc","lint":"eslint src","prepublish":"npm run build","test":"jest","test:format":"prettier --list-different --single-quote --trailing-comma none --write src/**/*.js","format":"prettier --single-quote --trailing-comma none --write src/**/*.js","ci":"npm run lint && npm run test && npm run build","docs:generate":"typedoc --disableOutputCheck --out docs src/index.ts","docs:deploy":"gh-pages -d docs"},"devDependencies":{"@types/node":"^10.11.3","babel-cli":"^6.26.0","babel-eslint":"^8.0.1","babel-preset-env":"^1.7.0","babel-preset-es2015":"^6.24.1","babel-preset-es2017":"^6.24.1","babel-preset-stage-0":"^6.24.1","babel-preset-stage-2":"^6.24.1","babel-preset-stage-3":"^6.24.1","benchmark":"^2.1.4","bluebird":"^3.5.4","eslint":"^4.7.2","eslint-config-prettier":"^2.6.0","eslint-config-standard":"^12.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-jest":"^22.5.1","eslint-plugin-prettier":"^2.3.1","jest":"^21.2.0","prettier":"^1.16.4","save":"^2.3.3","typescript":"^3.4.5"},"dependencies":{"cross-fetch":"^3.0.2","gh-pages":"^2.0.1","query-string":"^6.5.0","semantic-release":"^15.13.12","typedoc":"^0.14.2","universal-url":"^2.0.0"},"jest":{"testEnvironment":"node","testPathIgnorePatterns":["<rootDir>/build/","<rootDir>/node_modules/","(<rootDir>/__tests__/.*|(\\.|/)utils)\\.jsx?$"]},"gitHead":"9000b02b521900c4756d015e5606e8ca6db74c65","bugs":{"url":"https://github.com/allocloud/allocloud-js-sdk/issues"},"homepage":"https://github.com/allocloud/allocloud-js-sdk#readme","_id":"@allocloud/js-sdk@1.0.1","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-ILvcB4ICyhVJE3Q5BpIyLDg7v0Yo/4rnvJRcq8vRrKB/XZEXr/EC+TILnxQY/9a738bv2BGdXFp6mYzqZiXdJg==","shasum":"06e4ee5460743d63e6f553d84df62379871fe0af","tarball":"https://registry.npmjs.org/@allocloud/js-sdk/-/js-sdk-1.0.1.tgz","fileCount":21,"unpackedSize":61233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc1DYcCRA9TVsSAnZWagAAZh0P/jMOEFdR05tlTibial3J\n521/6enG4y3ep+oHtynxB+0w3eiAB+U8u5hcocmRirEyrtXGNPWnqSwm1ycK\nQg5blWwH4ADiR52YHdtnaHcXEAVFd9aHo3UTlg/aeZqL+ThwuLmhC3tSRDkI\nl5vykNb1LnDe6LaPCeYH+Y5OP9LC6zEx2xwOvMI7+gagzQrEkyvRvq+mHcZK\nXykbetCJ9N7ipHM0FWiY42clPwgMJkAQyHKx8q8DJizCsqZtqOJMMSuT8gzs\nkXYRnggicJizRQnDJ/aidS0UFVa+WA0+GJmKS/3kcqjj2uzIcrdAbxht12V1\nXwW2BJM3soZ0N9e0sPEViTfEnJsP1YKk1R17C13xDmefTHdlup6cYkl2ymMQ\nLXvU1tFZVJD9Va/W8HqCNEr4zVm6zpCzqzR9QiSzZvOB6gQykXOBir/dlLIu\nNIyLvQGa6zBDSVNdUesN/9pPC6QnabXpix1jVlO96tPEM76Vi98Y2yuQIDDg\ngpNWuZlv8qRVbjfF3IEy4RMX9ABry7Fofd8N53qrRBo7W7NUAMqqV6LRPEjM\nlkkpCy3Zb88HKuWonyuz0fdLuJ6ivhjUlWtLd3btrXXAHyCM0lmimq9FEske\nk+LZx4qIzqZ9C9Lx+eVZu/QWjzJlF4nDcHBnnZqp8CV8KScooWNaal0o6HEj\nmV/j\r\n=av9N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKO1Ltp1LZjAzbsWh0R8NoFRLEcObiDuonGENiIjetVAIgD0X7xH2wQdHcNhhdxfP4p+MKCmB1Cj/t8ldleg3BSR4="}]},"maintainers":[{"name":"william.nemencha","email":"william.nemencha@allocloud.com"}],"_npmUser":{"name":"william.nemencha","email":"william.nemencha@allocloud.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-sdk_1.0.1_1557411356108_0.32045362823238577"},"_hasShrinkwrap":false}},"time":{"created":"2019-05-09T14:02:01.900Z","1.0.0":"2019-05-09T14:02:02.319Z","modified":"2022-04-04T13:34:03.070Z","1.0.1":"2019-05-09T14:15:56.239Z"},"maintainers":[{"name":"william.nemencha","email":"william.nemencha@allocloud.com"}],"description":"An isomorphic/universal promise based interface to the ALLOcloud API","homepage":"https://github.com/allocloud/allocloud-js-sdk#readme","repository":{"type":"git","url":"git+https://github.com/allocloud/allocloud-js-sdk.git"},"bugs":{"url":"https://github.com/allocloud/allocloud-js-sdk/issues"},"license":"MIT","readme":"# ALLOcloud JavaScript SDK\n\nAn isomorphic/universal promise based interface to the ALLOcloud API.\n\n[![CircleCI](https://img.shields.io/circleci/project/github/ALLOcloud/allocloud-js-sdk.svg?style=for-the-badge&logo=circleci)](https://circleci.com/gh/ALLOcloud/allocloud-js-sdk) [![npm](https://img.shields.io/npm/v/@allocloud/js-sdk.svg?style=for-the-badge&logo=npm)](https://www.npmjs.com/package/@allocloud/js-sdk)\n\n[Documentation](https://allocloud.github.io/allocloud-js-sdk/)\n\n## Install\n\n```shell\n$ yarn add @allocloud/js-sdk\n# or with NPM\n$ npm install --save @allocloud/js-sdk\n```\n\n## Usage\n\n```js\nimport ALLOcloud from \"@allocloud/js-sdk\";\n\nconst API_KEY = process.env.ALLOCLOUD_API_KEY;\n\nconst main = async () => {\n  const client = await ALLOcloud.create(API_KEY);\n\n  const devices = await client.listDevices();\n  const deviceThree = await client.getDevice(3);\n  const contacts = await client.listContacts();\n\n  console.log(\"Devices count:\", devices.length);\n  console.log(\"Contacts count:\", contacts.length);\n  console.log(\"Device (id: 3) name:\", deviceThree.name);\n\n  const newCalendar = {\n    name: \"My super new calendar\",\n    is_external_calendar: false,\n    ics: \"BEGIN:VCALENDAR\\nVERSION:2.0\\n{ICS_DATA_HERE}\\nEND:VCALENDAR\",\n    url: \"\",\n    time_zone: \"Europe/Brussels\"\n  };\n\n  const calendar = await client.createCalendar(newCalendar);\n  console.log(\"New calendar created. id:\", calendar.id);\n};\n\nmain();\n```\n","readmeFilename":"ReadMe.md"}