{"_id":"@555platform/555-calendar-sdk","_rev":"7-d7acfc179330af35b51a4cd6b3f2b40e","name":"@555platform/555-calendar-sdk","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@555platform/555-calendar-sdk","version":"1.0.0","keywords":["555"],"author":{"name":"Comcast"},"license":"","_id":"@555platform/555-calendar-sdk@1.0.0","maintainers":[{"name":"nadeemgudaganur","email":"nadeem_gudaganur@comcast.com"},{"name":"robjsliwa","email":"robjsliwa@gmail.com"},{"name":"kdriadon","email":"kevindriadon@outlook.com"},{"name":"colinroberts","email":"colinroberts96@gmail.com"},{"name":"nija","email":"nijagunared@gmail.com"}],"dist":{"shasum":"52cd9174c4bebe9eca8d894724555a94234f640c","tarball":"https://registry.npmjs.org/@555platform/555-calendar-sdk/-/555-calendar-sdk-1.0.0.tgz","fileCount":17,"integrity":"sha512-Zc9dIDOiTHIVexJAwFgiAz6XVNFMghalcfn25OC3ulnqQlpCV+wDg9XLETJT23yLSY3MgNT0evaAT82k/bvsrA==","signatures":[{"sig":"MEUCIQDdAI6NTdF6hdJ5Huhjc7iLYF6FF/bwK+RSMmYOxsRLAwIgF0XQj1/VfpSQ7ACsuaQ5t6goE/BukyqFcoUSeSgzvcs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":86896,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgw6ezCRA9TVsSAnZWagAAp0MP/3tiw+YE69Vf0CxeLsZs\nohdtcA2cPuACevgC6be4yatpFTvbiqOOGsnG5Hnrt/JlvjxaDv965rQejPgz\nZjFzvob6BdszLq05aRPZi8bvte/grnDJXZUPNQ4Hwm58LoXcfaq25ebnE+oj\nOFyBOVW4YDiFNGkohOfYviEL3bPk8sZFne5mHWQ5qZ3KWSEufpEZ7GJDa0Fs\nPjyXYbLnBF30g8b7U8R7x+PsNbh/XhHDuNFY2aKaB9AFhn9gKE3rA9Ybu3sc\ntY4KAE/YCMyu60MB+R/i14bgKcQ4Yp8HZXKjh/Bhb0OWFk76jWpD0nViNdDx\n6ySSt/+i/TFrGek2TQ6C3p2sM4iWzpwpW2YJ06Doy1U/TbIwvX2yEN0P963i\nZ53bMwLqomJLKTuYYMssqAOsrilXxLw8fS+s3AxPeJpEXnruUEnTrI7CKWyX\n6pTf+I9CNjZ1jktACmwqUl401DiA5JinPzjNvV8PRMiejt3xGEbJ5PtVjuHm\nqSR35CeNQAFcOtWW93Pbnzk3nY/F2l3p8SbxBb2BsAf9zr9rQ580ns4PQC4y\nalB2uKUeZNAR6DMcYlbQTtaMQnLtFAvmTOYu26rq0sOIFXKLY37HXGSVCSlX\nfIpbofSuDa7LKwXKfYwx+c95Gn9YV/PFSLHw786UGzmG2Cnwn4Y6DIRdtzhn\nYVWe\r\n=nFv5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","module":"dist/index.modern.js","source":"src/index.js","gitHead":"a5ac77fafc6dade6ffd3d7d51da2baa5700d46bb","scripts":{"build":"microbundle-crl --no-compress --format modern,cjs","prepare":"run-s build"},"_npmUser":{"name":"nadeemgudaganur","email":"nadeem_gudaganur@comcast.com"},"repository":{"url":"https://github.comcast.com/555-platform/555-calendar-sdk.git","type":"git"},"_npmVersion":"6.14.11","description":"Calendar SDK for 555 Platform","directories":{},"_nodeVersion":"12.21.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"axios":"^0.19.0","react":"^16.13.1","eslint":"^6.8.0","prettier":"^2.0.4","cross-env":"^7.0.2","react-dom":"^16.13.1","npm-run-all":"^4.1.5","babel-eslint":"^10.0.3","react-native":"^0.41.2","react-scripts":"^3.4.1","microbundle-crl":"^0.13.10","eslint-plugin-node":"^11.0.0","eslint-plugin-react":"^7.17.0","eslint-plugin-import":"^2.18.2","eslint-plugin-promise":"^4.2.1","eslint-config-prettier":"^6.7.0","eslint-config-standard":"^14.1.0","eslint-plugin-prettier":"^3.1.1","eslint-plugin-standard":"^4.0.1","eslint-config-standard-react":"^9.2.0"},"peerDependencies":{"react":"^16.0.0","react-native":"^0.41.2"},"_npmOperationalInternal":{"tmp":"tmp/555-calendar-sdk_1.0.0_1623435187135_0.9333019047264401","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@555platform/555-calendar-sdk","version":"1.0.1","keywords":["555"],"author":{"name":"Comcast"},"license":"","_id":"@555platform/555-calendar-sdk@1.0.1","maintainers":[{"name":"nadeemgudaganur","email":"nadeem_gudaganur@comcast.com"},{"name":"robjsliwa","email":"robjsliwa@gmail.com"},{"name":"kdriadon","email":"kevindriadon@outlook.com"},{"name":"colinroberts","email":"colinroberts96@gmail.com"},{"name":"nija","email":"nijagunared@gmail.com"}],"dist":{"shasum":"58a64d32393723085e30fad3f5274179a7992ba6","tarball":"https://registry.npmjs.org/@555platform/555-calendar-sdk/-/555-calendar-sdk-1.0.1.tgz","fileCount":6,"integrity":"sha512-eGbwaQJ133DkB3QYZ0/s1nYTbfcUPLIBMmoR5tWygsWH4gf8+TQ42xepgawJXHN3iYVd0Sk51ZQwZ6SKWHiL9w==","signatures":[{"sig":"MEQCIHKZ8PmCoRNjsYOkHU3UODG+YFW17qyIUEms8V4tZ0jVAiACcQiO03NlPC9qq0c9N1/hHxcZQEoZMvla3W4WqV7/sA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":64650,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgzz1fCRA9TVsSAnZWagAABbkP/0AKQjc5TzzccFduyj5f\n1i7I1FPT7+VWkEkOCbfEorKJjmA1nncOLOCgEqpDy78HkI71UrxDluxNoa+2\n2HP2IOUzHXZeadnBU0PjHmr1VCqmiZyiHb1MRtnIPhE1wdZFV3ELxu0g4AW5\n28AwoTfY3gZqTDxyvamwOQkT2CXRvRk73VsrwVk3gG/S5e0ipAvGjCyXdzQ8\na/oHtp3gp5+c/ES4NYx7+pnIDp8Z2HUabHFHpsE0vFSo8/WaZn5SKHYcyrhe\nLZoPYaP7BlTszY1kmcCAOCwBNueujwSJIT1FuNuF3VHqRqUoUwRydtBVP+m7\nwDgw2QZOZYp5WvGSWm7DSWEGdxhxbBbR4PH3UW9w/fax9cmYR28PMG5k6ehW\nmibMajHfyd/840CEiwB9fjGr9Gp4W8rWmf8QCw3UPVphuExNh/LlSB0o5apk\ng7Qlp9AVkpTbnRrezkf+2c7j7cOfMMTGJuM5+FAFHI2GjyqkFM/NbvVRlwde\nI6H9YhOIcMIh27TfeAyyHuJtuTmUxtqaLqXXzp+Bu6lGfz8wH1A1OGDfZz+s\nmFyUD9FTodhpjUrOqldOoGY0nDlTXKfj6jYZKjhc1mtrI/el1Kr7W8dh4ROJ\n2VOFPvcJWWfPwMNfQjWxYqHGJf3eTS9aSVBjmO3CnISGe4O1VUjVRWvIff6g\nmRO4\r\n=xATK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","module":"dist/index.modern.js","source":"src/index.js","gitHead":"7b52a4c5de93a49668b7558649e78282cae110f6","scripts":{"build":"microbundle-crl --no-compress --format modern,cjs","prepare":"run-s build"},"_npmUser":{"name":"nadeemgudaganur","email":"nadeem_gudaganur@comcast.com"},"repository":{"url":"https://github.comcast.com/555-platform/555-calendar-sdk.git","type":"git"},"_npmVersion":"6.14.11","description":"Calendar SDK for 555 Platform","directories":{},"_nodeVersion":"12.21.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"axios":"^0.19.0","eslint":"^6.8.0","prettier":"^2.0.4","cross-env":"^7.0.2","npm-run-all":"^4.1.5","babel-eslint":"^10.0.3","microbundle-crl":"^0.13.10","eslint-plugin-node":"^11.0.0","eslint-plugin-react":"^7.17.0","eslint-plugin-import":"^2.18.2","eslint-plugin-promise":"^4.2.1","eslint-config-prettier":"^6.7.0","eslint-config-standard":"^14.1.0","eslint-plugin-prettier":"^3.1.1","eslint-plugin-standard":"^4.0.1","eslint-config-standard-react":"^9.2.0"},"_npmOperationalInternal":{"tmp":"tmp/555-calendar-sdk_1.0.1_1624194399022_0.5199773891000508","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-06-11T18:13:06.751Z","modified":"2024-09-16T22:07:54.558Z","1.0.0":"2021-06-11T18:13:07.326Z","1.0.1":"2021-06-20T13:06:39.137Z"},"author":{"name":"Comcast"},"keywords":["555"],"repository":{"url":"https://github.comcast.com/555-platform/555-calendar-sdk.git","type":"git"},"description":"Calendar SDK for 555 Platform","maintainers":[{"email":"nijagunamurthy_chandrashekarappa@comcast.com","name":"nijacomcast"},{"email":"nijagunared@gmail.com","name":"nija"}],"readme":"# Calendar\n\n## Overview\n\nCalendar Library provides API'S to create calendar,events and reminders. A calendar is a container for events. These events can be single instance or repeating events. Repeating events will have ending time. Multiple calendars can be created per domain, for example, work and personal calendars. Events are associated with calendar type. Events can have reminders set on them.\n\n## Installation\n\n``` javascript\nnpm install @555platform/555-calendar-sdk\n```\n\n## Calendar API's\n\nCalendar Library provides API's to Create,Read,Update and delete calendar for user.\n\n## Init :\n\ninit API is used to initialize server URL. init accepts a config parameter. config is of type object, which should have a property config.URL\n\n```javascript\nimport {Calendar} from '@555platform/555-calendar-sdk';\nCalendar.init(\"config\")\n````\n\n## Create Calendar :\n\ncreateCalendar API is used to create calendar for user. we need to pass username and calendarname as parameters.\n\n```javascript\nimport {Calendar} from '@555platform/555-calendar-sdk';\nCalendar.createCalendar(\"username\", \"calendarname\")\n````\n\n### Handling Response\n\ncreateCalendar API returns a promise. Response will have calendar deatils if call is successful otherwise error JSON with code and reason for error.\n\n```javascript\nCalendar.createCalendar(\"Rahul\",\"home\").then(response => {\n      console.log(\" Calendarlist Data ::\",response)\n    }).catch(error => {\n      console.log(\"get calendarlist failed ::\", error);\n    });\n}\n  \n ```\n\n ## Get Calendar :\n\ngetCalendar API is used to get calendar details for user. we need to pass username as parameter.\n\n```javascript\nimport {Calendar} from '@555platform/555-calendar-sdk';\nCalendar.getCalendar(\"username\")\n````\n\n### Handling Response\n\ngetCalendar API returns a promise. Response will have calendar deatils if call is successful otherwise error JSON with code and reason for error.\n\n```javascript\nCalendar.getCalendar(\"Rahul\").then(response => {\n      console.log(\" Calendarlist Data ::\",response)\n    }).catch(error => {\n      console.log(\"get calendarlist failed ::\", error);\n    });\n}\n  \n ```\n\n### Update Calendar :\n\nupdateCalendar API is used to update calendar details for user. we need to pass calendarId and calendarName as parameters.\n\n```javascript\nimport {Calendar} from '@555platform/555-calendar-sdk';\nCalendar.updateCalendar(\"calendarid\",\"calendarname\")\n````\n\n### Handling Response\n\nupdateCalendar API returns a promise. Response will have calendar deatils if call is successful otherwise error JSON with code and reason for error.\n\n```javascript\nCalendar.updateCalendar(\"1ea1f9d3b4a927b264c83c07\", \"home\").then(response => {\n      console.log(\" Calendarlist updateds ::\",response)\n    }).catch(error => {\n      console.log(\"get calendarlist failed ::\", error);\n    });\n}\n  \n```\n\n\n### Delete Calendar :\n\ndeleteCalendar API is used to delete calendar of user. we need to pass calendarId as parameter.\n\n```javascript\nimport {Calendar} from '@555platform/555-calendar-sdk';\nCalendar.deleteCalendar(\"calendarid\")\n````\n\n### Handling Response\n\ndeleteCalendar API returns a promise. Response will have calendar deatils if call is successful otherwise error JSON with code and reason for error.\n\n```javascript\nCalendar.deleteCalendar(\"1ea1f9d3b4a927b264c83c07\").then(response => {\n      console.log(\" Calendarlist updateds ::\",response)\n    }).catch(error => {\n      console.log(\"get calendarlist failed ::\", error);\n    });\n}\n  \n```\n\n## Event API's\n\nCalendar Library provides API's to create,update,cancel and delete events in calendar for user.\n\n\n## Create Event :\n\ncreateEvent API is used to create event in calendar for user. we need to pass eventData as parameter.\n\nBelow is the eventdata need to be passed as parameter to createEvent API.\n\n\n| Property          | Type   | Description           |\n|-------------------|--------|-----------------------|\n| calendar_id         | string | Unique calendar id|\n| subject | string | title of event\n| body             | json | <ul> <li>contentType - type of content</li><li>content - description of event</li></ul>              |\n| start          | json | start date and time of event <ul> <li>date_time - date and time</li></ul>    |\n| end          | json | end date and time of event <ul> <li>date_time - date and time</li></ul>     |\n participants         | array[Objects] | <ul> <li>Event Organizer</li><li>Required participants</li><li>Optional participants</li></ul>|\n| location         | string | location of event or meeting link|\n| recurrence         | Object | Defines the type of event|\n| allow_new_time_proposals          | bool | allow time to change    |\n| show_as              | string | state of user   |\n\n```javascript\nimport {Calendar} from '@555platform/555-calendar-sdk';\nCalendar.createEvent({eventData})\n````\n\n### Handling Response\n\ncreateCalendar API returns a promise. Response will have event deatils if call is successful otherwise error JSON with code and reason for error.\n\n```javascript\n  let eventData = {\n      \"calendar_id\": \"8fa1f9d3b4a927b264c83c00\",\n      \"subject\": \"Let's chat about chat\",\n      \"body\": {\n          \"contentType\": \"HTML\",\n          \"content\": \"Talk about all things chat...\"\n      },\n      \"start\": {\n          \"date_time\": \"2020-04-28T17:30:00Z\"\n      },\n      \"end\": {\n          \"date_time\": \"2020-04-28T18:00:00Z\"\n      },\n      \"location\": {\n          \"display_name\": \"Rob's desk\"\n      },\n      \"participants\": [\n          {\n              \"user_id\": \"7E163156-7762-4BEB-A1C6-729EA81755A7\",\n              \"type\": \"organizer\"\n          },\n          {\n              \"user_id\": \"7E163156-7762-4BEB-A1C6-729EA81755B8\",\n              \"type\": \"required\"\n          }\n      ],\n      \"recurrence\": {\n          \"pattern\": {\n              \"type\": \"weekly\",\n              \"interval\": 1,\n              \"days_of_week\": [\n                  \"Tuesday\"\n              ]\n          },\n          \"range\": {\n              \"type\": \"endDate\",\n              \"start_date\": \"2020-04-28T00:00:00Z\",\n              \"end_date\": \"2020-06-28T00:00:00Z\"\n          }\n      },\n      \"allow_new_time_proposals\": true,\n      \"show_as\": \"busy\"\n  }\n\n  Calendar.createEvent(eventData).then((response) => {\n      console.log(\"create event response ::\",response)\n\n  })\n  .catch(error => {\n      console.log(error);\n  })\n  \n ```\n\n ## Update Event :\n\nupdateEvent API is used to update event for user. we need to pass userid,eventid and update event info as parameter.\n\n```javascript\nimport {Calendar} from '@555platform/555-calendar-sdk';\nCalendar.updateEvent(userid,eventid,updatedEventInfo)\n````\n\n### Handling Response\n\nupdateEvent API returns a promise. Response will have event deatils if call is successful otherwise error JSON with code and reason for error.\n\n```javascript\n  Calendar.updateEvent(userid,eventid,updatedEventInfo).then((response) => {\n      console.log(\"create event response ::\",response)\n\n  })\n  .catch(error => {\n      console.log(error);\n  })\n  \n ```\n\n ## Cancel Event :\n\ncancelEvent API is used to cancel event for user. we need to pass userid,eventid as parameter.\n\n```javascript\nimport {Calendar} from '@555platform/555-calendar-sdk';\nCalendar.cancelEvent(userid,eventid)\n````\n\n### Handling Response\n\ncancelEvent API returns a promise. Response will have event deatils if call is successful otherwise error JSON with code and reason for error.\n\n```javascript\n  Calendar.cancelEvent(userid,eventid).then((response) => {\n      console.log(\"create event response ::\",response)\n\n  })\n  .catch(error => {\n      console.log(error);\n  })\n  \n ```\n\n  ## Delete Event :\n\ndeleteEvent API is used to delete event for user. we need to pass userid,eventid as parameter.\n\n```javascript\nimport {Calendar} from '@555platform/555-calendar-sdk';\nCalendar.deleteEvent(userid,eventid)\n````\n\n### Handling Response\n\ndeleteEvent API returns a promise. Response will have event deatils if call is successful otherwise error JSON with code and reason for error.\n\n```javascript\n  Calendar.deleteEvent(userid,eventid).then((response) => {\n      console.log(\"create event response ::\",response)\n\n  })\n  .catch(error => {\n      console.log(error);\n  })\n  \n ```\n\n  ## List Events :\n\nlistEvents API is used to list events for user. We need to pass userId, calendarId, startDate and endDate as parameters. startDate and endDate are dates for which user wants to fetch the events.\n\n```javascript\nimport {Calendar} from '@555platform/555-calendar-sdk';\nCalendar.listEvents(userId, calendarId, startDate, endDate)\n````\n\n### Handling Response\n\nlistEvents API returns a promise. Response will have event details if call is successful otherwise error JSON with code and reason for error.\n\n```javascript\n  const userId = '7E163156-7762-4BEB-A1C6-729EA81755A7';\n  const calendarId = '8fa1f9d3b4a927b264c83c00';\n  const startDate = '2021-06-18T00:00:00Z';\n  const endDate = '2021-06-22T00:00:00Z';\n\n  Calendar.listEvents('userId','calendarId','startDate','endDate')\n  .then((response) => {\n      console.log(\"list event response ::\",response)\n  })\n  .catch(error => {\n      console.log(\" error\"+error.message);\n  })\n  \n ```","readmeFilename":"README.md"}