@xuda.io/notification_module 1.1.30 → 1.1.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +25 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -655,3 +655,28 @@ exports.get_system_notifications = async function (req) {
655
655
  req.read = false;
656
656
  return await module.exports.get_notifications(req);
657
657
  };
658
+
659
+ setTimeout(async () => {
660
+ const app_id = "vps4d6ec68e01d97ef65a8bd86088b26ca2",
661
+ uid = "341cf2d32991a68e4d8aaba6c16e15cc",
662
+ ip = "192.11.22.333",
663
+ name = "Boaz Avrahami";
664
+
665
+ const aa = await module.exports.submit_notification({
666
+ type: "deploy",
667
+ app_id: app_id,
668
+ uid_arr: [uid],
669
+ topic: "welcome_aboard_vps",
670
+ params: {
671
+ name: name,
672
+ ip: ip,
673
+ dashboard_url: `https://xuda.io/dashboard/project/${app_id}/admin/overview`,
674
+ dashboard_ssh_url: `https://xuda.io/dashboard/project/${app_id}/admin/overview`,
675
+ dashboard_ssh_assign_url: `https://xuda.io/dashboard/settings/ssh_keys`,
676
+ support_url: `https://xuda.io/schedule/sales?topic=Sales&subtopic=General+Inquiries`,
677
+ },
678
+ ref: null,
679
+ email: null,
680
+ });
681
+ console.log(aa);
682
+ }, 1000);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/notification_module",
3
- "version": "1.1.30",
3
+ "version": "1.1.31",
4
4
  "description": "Xuda Notification Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {