{"id":22514650,"url":"https://github.com/cityssm/node-avanti-api","last_synced_at":"2025-08-02T02:12:00.905Z","repository":{"id":150855571,"uuid":"623005952","full_name":"cityssm/node-avanti-api","owner":"cityssm","description":"A wrapper around the Avanti API.","archived":false,"fork":false,"pushed_at":"2025-06-24T13:16:24.000Z","size":306,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-24T13:17:35.327Z","etag":null,"topics":["api","avanti","payroll"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@cityssm/avanti-api","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cityssm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-03T14:00:30.000Z","updated_at":"2025-06-24T13:13:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"70940ddf-1325-479e-897c-8b043b0d2be6","html_url":"https://github.com/cityssm/node-avanti-api","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/cityssm/node-avanti-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-avanti-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-avanti-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-avanti-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-avanti-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cityssm","download_url":"https://codeload.github.com/cityssm/node-avanti-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-avanti-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268326739,"owners_count":24232496,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","avanti","payroll"],"created_at":"2024-12-07T03:20:04.761Z","updated_at":"2025-08-02T02:12:00.895Z","avatar_url":"https://github.com/cityssm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Avanti API for Node\n\n[![npm (scoped)](https://img.shields.io/npm/v/@cityssm/avanti-api)](https://www.npmjs.com/package/@cityssm/avanti-api)\n[![DeepSource](https://app.deepsource.com/gh/cityssm/node-avanti-api.svg/?label=active+issues\u0026show_trend=true\u0026token=HZ0BFvBA6JYP4qZAI5MNS6JL)](https://app.deepsource.com/gh/cityssm/node-avanti-api/)\n\nAn unofficial wrapper around the [Avanti API](https://avanti.stoplight.io/docs/avanti-api).\n\n**Note:**\nAt this time, this project focuses only on read-only endpoints, primarily on the\n[`api/v1/Reporter` endpoint](https://avanti.stoplight.io/docs/avanti-api/ed0485a9c98bb-get-report-data),\nand employee data related endpoints.\n\n## Installation\n\n```sh\nnpm install @cityssm/avanti-api\n```\n\n## Usage\n\n⭐ See the Avanti API documentation on\n[Authentication and Authorization](https://avanti.stoplight.io/docs/avanti-api/014f7884ba799-authentication-and-authorization)\nfor instructions on creating the needed credentials.\n\nNote that each endpoint needs to be properly initialized in Avanti as well.\n\n⭐ If your company is on the\n[latest Avanti Self Service Portal (ASSP)](https://help.avanti.ca/support/solutions/articles/36000498186-faq#FAQ-Q:HowdoIknowifmycompanyalreadyhasthelatestASSP?),\nbe sure to set `latestASSP` to `true`.\nThe current default is `false`, which will likely change in the `v1.0.0` release.\n\n```javascript\nimport { AvantiApi } from '@cityssm/avanti-api'\n\n// Initialize the API\nconst avanti = new AvantiApi({\n  tenant: 'avtesting',\n  // latestASSP: false,\n  client_id: '',\n  client_secret: '',\n  username: '',\n  password: '',\n  company: ''\n})\n\n// Export report data\nconst report = await avanti.getReport('CUSTOM_REPORT_ID')\n\n// Output the data\nconsole.log(report)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcityssm%2Fnode-avanti-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcityssm%2Fnode-avanti-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcityssm%2Fnode-avanti-api/lists"}