{"_id":"@egorguzenko/lord-sdk-guzenko","name":"@egorguzenko/lord-sdk-guzenko","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@egorguzenko/lord-sdk-guzenko","version":"1.0.0","description":"## Instance example","main":"index.js","scripts":{"build":"vite build","dev":"vite","test":"jest"},"author":{"name":"egor guzenko"},"license":"ISC","dependencies":{"@babel/preset-env":"^7.18.10","axios":"^0.27.2","nock":"^13.2.9","npmrc":"^1.1.1","vite":"^3.0.9"},"devDependencies":{"jest":"^28.1.3"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/egor.guzenko/sdk-task.git"},"keywords":["sdk","js"],"bugs":{"url":"https://gitlab.com/egor.guzenko/sdk-task/issues"},"homepage":"https://gitlab.com/egor.guzenko/sdk-task#readme","gitHead":"d051371c10f6ac697651cdc4eab1ef0ca0113b74","_id":"@egorguzenko/lord-sdk-guzenko@1.0.0","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-8tuYbqgqk2+756Llx3lbwyF3JwRL9Imu7MrMjuhiDZM2Ui/EexBHBp5JxT+5M4mSOLxmsl/+L9zekqQ1pSxHqA==","shasum":"ad8d60797b30684a131a74d25b66e6a03c0730db","tarball":"https://registry.npmjs.org/@egorguzenko/lord-sdk-guzenko/-/lord-sdk-guzenko-1.0.0.tgz","fileCount":11,"unpackedSize":17954,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICvLQRQQ/zsgOzvlFVgOhYdEikkJrtFkkR19+8SBqzxpAiEAypKxLE9TBHvSiQJGgwvk1ksbsICTc2manQiFwE1VD0c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjAiMdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrVLw/+McK7RQq7yUkBhrFvpxQfaQY48WSX+3f4M2q46gu04btl2kn8\r\nKTEVBva5nkqFM6I1WOJ3ppTmlnY3dniu76tbBmW4ivo1gSa4abj5I7j8kIiY\r\niQhqxwH5RvNEpXDsUZ8sUz9s9dcq3p1lzKkvnciMHMC/T85IgonuLMbh85ps\r\nWcYkN+lCCsYLmLl8d4/tI5D6tM9kZsVvETA7YMYPANdR0WFOJs7Qbcokk27u\r\ncUXQysQnRHkxeVf1x+Z7OmcGFEMOkHtWA1mH7nizSl6Irh9iEoUXkldIRIPn\r\n/ehYrIrYUmLcYsDIQHUUCwskiPbHuG9JsHC8KsqvUzISna646Liaohc4CllF\r\nfYq9O0vXV93NXH3al6aWvnVOJUKQE7wcWSKl6uMzBE4atE1wsAWFFRmnVLZw\r\nnMok6petLCTqrYhSkIkEtIeVOhMaJfpgI7LPGFSokvUHWhlfbG5S5GxlJUw+\r\nbj3Kxt4Ld+xAmBYDOyK8xH9NiToUJAatAc0rIOhXfwp1F6fDCDm2HK700Y0A\r\nAY3gNNAku26cyCY6phD9FsuT3Q6Lnel0vPWOpQoj5uJlH00Jyvigr+mPZZZq\r\nkFUkLRudPaQT2RMKYuHBimpUJiwTt+MFOgh6RGwEcbw521TucinUHQYbsj0q\r\nCrYmPAtVBds5tmhazk4VtY5TF/+6CX37CTc=\r\n=4Gbs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"egorguzenko","email":"egor.guzenko@yojji.io"},"directories":{},"maintainers":[{"name":"egorguzenko","email":"egor.guzenko@yojji.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lord-sdk-guzenko_1.0.0_1661084445541_0.8677509705977369"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-21T12:20:45.491Z","1.0.0":"2022-08-21T12:20:45.755Z","modified":"2022-08-21T12:20:45.850Z"},"maintainers":[{"name":"egorguzenko","email":"egor.guzenko@yojji.io"}],"description":"## Instance example","homepage":"https://gitlab.com/egor.guzenko/sdk-task#readme","keywords":["sdk","js"],"repository":{"type":"git","url":"git+ssh://git@gitlab.com/egor.guzenko/sdk-task.git"},"author":{"name":"egor guzenko"},"bugs":{"url":"https://gitlab.com/egor.guzenko/sdk-task/issues"},"license":"ISC","readme":"# The Lord of the Rings SDK\n\n## Instance example\n\n``` js\nimport { createApiClient } from './api/index.js';\n\nconst BASE_URL = 'https://the-one-api.dev/v2';\nconst accessToken = 'V3KHIsNAcokFARi6HxC4';\nconst lordofTheRingsSDK = new LordofTheRingsSDK(BASE_URL, accessToken)\n```\n\n## Example\n``` js\n  lordofTheRingsSDK.getAllBooks();\n\n  lordofTheRingsSDK.charactersPagination({\n    limit: { number: 4 },\n  });\n\n  lordofTheRingsSDK.sortMovies('academyAwardWins', 'asc');\n\n  lordofTheRingsSDK.moviesFilter({\n    typeOfFiltration: 'lessThan', \n    filterName: 'academyAwardWins',\n    values: 10\n  });\n```\n\n\n## Description of the methods\n\nMethods | Args | Description |\n------- | ---- | ----------- |\ngetAllBooks | | returns an array of books |\ngetBookById | id | returns the specific book |\ngetBookByIdWithChapter | id | returns an array of chapters of the specific book |\ngetAllMovies | | returns an array of movies |\ngetMovieById | id | returns the specific movie |\ngetMovieByIdWithQuote | id | returns an array of quotes of the specific movie |\ngetAllCharacters | | returns an array of characters |\ngetCharacterById | id | returns the specific character |\ngetCharacterByIdWithQuote | id | returns an array of quotes of the specific character |\ngetAllQuotes | | returns an array of quotes |\ngetQuoteById | id | returns the specific quote |\ngetAllChapters | | returns an array of chapters |\ngetChapterById | id | returns the specific chapter |\n\n\n## Description of the parination methods\nMethods | Args | Description |\n------- | ---- | ----------- |\nbooksPagination | config | return limit, page or offset for all books\nmoviesPagination | config | return limit, page or offset for all movies\ncharactersPagination | config | return limit, page or offset for all characters\nquotesPagination | config | return limit, page or offset for all quotes\nchaptersPagination | config | return limit, page or offset for all chapters\n\n## Config example for parination methods\n``` js\n{\n  limit: { number: 4 },\n  page: { number: 2},\n  offset: { number: 1}\n}\n```\n\n\n## Description of the sorting methods\nMethods | Args | Description |\n------- | ---- | ----------- |\nsortBooks | sortingFields, condition | return sorted data for all books\nsortMovies | sortingFields, condition | return sorted data for all movies\nsortCharacters | sortingFields, condition | return sorted data for all characters\nsortQuotes | sortingFields, condition | return sorted datafor all quotes\nsortChapters | sortingFields, condition | return sorted data for all chapters\n\n\n## Description of the filtration methods\nMethods | Args | Description |\n------- | ---- | ----------- |\nbooksFilter | config | returns filtered data for all books\nsortMovies | config | returns filtered data for all movies\ncharactersFilter | config | returns filtered data data for all characters\nquotesFilter | config | returns filtered data all quotes\nchapterFilter | config | returns filtered data for all chapters\n\n## Config example for filtration methods\n``` js\nconst TYPES_OF_FILTRATION = {\n  match: '=', \n  negateMatch: '!=',\n  include: '=', \n  exclude: '!=',\n  exists: '',\n  notExist: '!',\n  lessThan: '<',\n  greaterThan: '>',\n  equalTo: '>=',\n  existWithRegexp: '=',\n  notExistWithRegexp: '!='\n};\n\n{\n  typeOfFiltration: 'lessThan', \n  filterName: 'academyAwardWins',\n  values: 10\n}\n```\n\n","readmeFilename":"README.md"}