{"id":31802048,"url":"https://github.com/kvandake/onesignal-nest","last_synced_at":"2025-10-11T00:16:27.172Z","repository":{"id":35088686,"uuid":"205247914","full_name":"kvandake/onesignal-nest","owner":"kvandake","description":"OneSignal API wrapper for the Server Rest API made to work with the Nest framework","archived":false,"fork":false,"pushed_at":"2023-04-20T12:42:30.000Z","size":372,"stargazers_count":16,"open_issues_count":4,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-03T17:43:26.080Z","etag":null,"topics":["nest","nestjs","onesignal","onesignal-api","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kvandake.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-29T20:46:40.000Z","updated_at":"2025-04-15T21:29:23.000Z","dependencies_parsed_at":"2024-06-19T03:05:25.649Z","dependency_job_id":"99d9e397-3d61-470e-b8c9-0f39c808c562","html_url":"https://github.com/kvandake/onesignal-nest","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/kvandake/onesignal-nest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvandake%2Fonesignal-nest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvandake%2Fonesignal-nest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvandake%2Fonesignal-nest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvandake%2Fonesignal-nest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kvandake","download_url":"https://codeload.github.com/kvandake/onesignal-nest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvandake%2Fonesignal-nest/sbom","scorecard":{"id":574452,"data":{"date":"2025-08-11","repo":{"name":"github.com/kvandake/onesignal-nest","commit":"befa8657fbca6a9c953baa4e696578e751d66944"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"19 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-cj7v-w2c7-cp7c","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T17:16:26.996Z","repository_id":35088686,"created_at":"2025-08-20T17:16:26.996Z","updated_at":"2025-08-20T17:16:26.996Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002786,"owners_count":26083468,"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-10-10T02:00:06.843Z","response_time":62,"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":["nest","nestjs","onesignal","onesignal-api","typescript"],"created_at":"2025-10-11T00:16:20.579Z","updated_at":"2025-10-11T00:16:27.160Z","avatar_url":"https://github.com/kvandake.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OneSignal API Client for NestJS\n[![npm version](https://badge.fury.io/js/onesignal-api-client-nest.svg)](https://badge.fury.io/js/onesignal-api-client-nest)\n\nOneSignal API wrapper for the Server Rest API made to work with the [Nest]((https://github.com/nestjs/nest)) framework.\n\n## Getting Started\n\nNpm \n```sh\n$ npm install onesignal-api-client-nest\n```\nYarn\n```sh\n$ yarn add onesignal-api-client-nest\n```\n\n## Using the Module\n\n```typescript\n// Inside of your module imports\n@Module({\n  imports: [\n    OneSignalModule.forRoot({\n      appId: 'appId',\n      restApiKey: 'restApiKey',\n    })\n  ]\n})\n\n// Or async\n@Module({\n  imports: [\n    OneSignalModule.forRootAsync({\n      useFactory: async (configService: ConfigService) =\u003e {\n        return {\n          appId: configService.get('ONESIGNAL_APP_ID'),\n          restApiKey: configService.get('ONESIGNAL_REST_API_KEY'),\n        };\n      },\n      inject: [ConfigService],\n    ),\n  ],\n})\n```\n\n## Using in the Service\n\nIn your service class you can inject the service like so and then use it in any function as you would any other service.\n\n```typescript\nimport { NotificationBySegmentBuilder } from 'onesignal-api-client-core';\n\n@Injectable()\nexport class MyService {\n\n  constructor(private readonly oneSignalService: OneSignalService) {}\n\n  async viewNotifications() {\n   return await this.oneSignalService.viewNotifications();\n  }\n  \n  async createNotification(message: string) {\n    const input = new NotificationBySegmentBuilder()\n         .setIncludedSegments(['Active Users', 'Inactive Users'])\n         .notification() // .email()\n         .setContents({ en: message })\n         .build();\n      \n    await this.oneSignalService.createNotification(input);\n  }\n}\n```\n\n## Documentation\nAll documentation for this wrapper comes from the [OneSignal API client](https://github.com/kvandake/onesignal), if there are any typos, please let me know or open a PR to fix it.\n\n## Support\nIf any bugs are found in the API wrapper, please open an issue on GitHub, or a Pull Request if you want to fix it yourself!\nPlease be as explicit as possible and provide a minimum reproducing repository if at all possible, as it helps track down what went wrong.\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkvandake%2Fonesignal-nest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkvandake%2Fonesignal-nest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkvandake%2Fonesignal-nest/lists"}