{"id":15862685,"url":"https://github.com/danutsss/ucrm-notification-plugin","last_synced_at":"2025-04-01T20:45:02.736Z","repository":{"id":166140194,"uuid":"560449845","full_name":"danutsss/ucrm-notification-plugin","owner":"danutsss","description":"UCRM plugin that notifies you when client’s signed contract is expiring.","archived":false,"fork":false,"pushed_at":"2023-10-19T13:20:39.000Z","size":1055,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T13:37:22.523Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/danutsss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-11-01T14:27:38.000Z","updated_at":"2022-11-01T20:05:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"bd508b46-c31f-4906-bff4-ec6264523b99","html_url":"https://github.com/danutsss/ucrm-notification-plugin","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"1f7fbdac6229e42366a67b2be9511bcbdd12c680"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danutsss%2Fucrm-notification-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danutsss%2Fucrm-notification-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danutsss%2Fucrm-notification-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danutsss%2Fucrm-notification-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danutsss","download_url":"https://codeload.github.com/danutsss/ucrm-notification-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246709918,"owners_count":20821298,"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","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":[],"created_at":"2024-10-05T22:41:51.293Z","updated_at":"2025-04-01T20:45:02.717Z","avatar_url":"https://github.com/danutsss.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UCRM Contract Expire Notification\n\nUCRM plugin that notifies you when client’s signed contract is expiring.\n\n## How can we notify the clients?\n\nWe can use the `expiration period` option from the plugin settings and set it to 24 hours to execute the script.\n\n## What the script should do?\n\nThe script should check the date when the contract had been signed. The date when the contract had been signed will be saved into a special custom attribute named `signedDate`.\n\n## How the notifications will be send?\n\nI. Send the first notification to the client when the expiration date is in one month.\n\nII. Send the second notification to the client when the expiration date is in 2 weeks.\n\nIII. Send the next notification to the client every day when the expiration date is in 1 week.\n\n## What we use for plugin development?\n\n- UCRM API:\n  - Email enqueue [API doc for UISP CRM · Apiary](https://unmscrm.docs.apiary.io/#reference/email/emailidenqueue);\n  - `GET` /clients/`{id}`/attributes [API doc for UISP CRM · Apiary](https://unmscrm.docs.apiary.io/#reference/clients/clientsid/get).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanutsss%2Fucrm-notification-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanutsss%2Fucrm-notification-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanutsss%2Fucrm-notification-plugin/lists"}