krsyer-server-monitor-pro 1.0.27 → 1.0.29

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 (57) hide show
  1. package/monitor.js +7 -0
  2. package/package.json +9 -4
  3. package/DEPLOY_GUIDE.md +0 -68
  4. package/bin/cli.js +0 -84
  5. package/guestguru-api/.idea/guestguru-api.iml +0 -9
  6. package/guestguru-api/.idea/misc.xml +0 -6
  7. package/guestguru-api/.idea/modules.xml +0 -8
  8. package/guestguru-api/.idea/vcs.xml +0 -6
  9. package/guestguru-api/API_DESIGN_GUIDE.md +0 -140
  10. package/guestguru-api/API_DOCUMENTATION.md +0 -504
  11. package/guestguru-api/API_REQUIREMENTS_TENANTS.md +0 -110
  12. package/guestguru-api/AVAILABLE_TENANT_ENDPOINTS.md +0 -137
  13. package/guestguru-api/BACKEND_INSTRUCTIONS.md +0 -77
  14. package/guestguru-api/DINING_MODULE_INTEGRATION.md +0 -175
  15. package/guestguru-api/FRONTEND_FINANCE_MODULE.md +0 -151
  16. package/guestguru-api/README.md +0 -93
  17. package/guestguru-api/app.json +0 -12
  18. package/guestguru-api/database.sqlite +0 -0
  19. package/guestguru-api/eas.json +0 -21
  20. package/guestguru-api/ecosystem.config.js +0 -19
  21. package/guestguru-api/fix_db_schema.js +0 -77
  22. package/guestguru-api/list_columns.js +0 -27
  23. package/guestguru-api/package.json +0 -34
  24. package/guestguru-api/postman_backend_v2.json +0 -1745
  25. package/guestguru-api/postman_collection.json +0 -477
  26. package/guestguru-api/postman_environment.json +0 -17
  27. package/guestguru-api/public/icon.png +0 -0
  28. package/guestguru-api/public/icon_b64.txt +0 -1
  29. package/guestguru-api/readd_column.js +0 -27
  30. package/guestguru-api/server.js +0 -263
  31. package/guestguru-api/test_cashfree_connection.js +0 -52
  32. package/lib/controllers/cloudflareController.js +0 -1
  33. package/lib/controllers/dockerController.js +0 -1
  34. package/lib/controllers/networkController.js +0 -1
  35. package/lib/controllers/serverController.js +0 -1
  36. package/lib/ecosystem.config.js +0 -1
  37. package/lib/middleware/saasAuth.js +0 -1
  38. package/lib/public/login.html +0 -99
  39. package/lib/public/payment.html +0 -152
  40. package/lib/public/script.js +0 -1180
  41. package/lib/public/style.css +0 -1045
  42. package/lib/routes/cloudflareRoutes.js +0 -1
  43. package/lib/routes/dockerRoutes.js +0 -1
  44. package/lib/routes/networkRoutes.js +0 -1
  45. package/lib/routes/serverRoutes.js +0 -1
  46. package/lib/server.js +0 -1
  47. package/lib/services/cashfreeService.js +0 -1
  48. package/lib/views/activate.html +0 -109
  49. package/lib/views/index.html +0 -552
  50. package/license-portal/.env.example +0 -15
  51. package/license-portal/README.md +0 -93
  52. package/license-portal/ecosystem.config.js +0 -16
  53. package/license-portal/package.json +0 -22
  54. package/license-portal/server.js +0 -306
  55. package/license-portal/services/emailService.js +0 -126
  56. package/license-portal/views/pricing.html +0 -358
  57. package/temp_cf_method.js +0 -48
@@ -1,477 +0,0 @@
1
- {
2
- "info": {
3
- "_postman_id": "pg-backend-collection",
4
- "name": "PG Management API",
5
- "description": "Postman collection for PG Management SaaS Backend",
6
- "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
7
- },
8
- "item": [
9
- {
10
- "name": "Auth",
11
- "item": [
12
- {
13
- "name": "Signup (Customer)",
14
- "request": {
15
- "method": "POST",
16
- "header": [],
17
- "body": {
18
- "mode": "raw",
19
- "raw": "{\n \"name\": \"John Customer\",\n \"email\": \"customer@example.com\",\n \"password\": \"password123\",\n \"phone\": \"9876543210\",\n \"role\": \"customer\"\n}",
20
- "options": {
21
- "raw": {
22
- "language": "json"
23
- }
24
- }
25
- },
26
- "url": {
27
- "raw": "{{url}}/api/auth/signup",
28
- "host": [
29
- "{{url}}"
30
- ],
31
- "path": [
32
- "api",
33
- "auth",
34
- "signup"
35
- ]
36
- }
37
- },
38
- "response": []
39
- },
40
- {
41
- "name": "Signin (Admin)",
42
- "event": [
43
- {
44
- "listen": "test",
45
- "script": {
46
- "exec": [
47
- "var jsonData = pm.response.json();",
48
- "if(jsonData.accessToken) {",
49
- " pm.environment.set(\"token\", jsonData.accessToken);",
50
- " console.log(\"Token set successfully\");",
51
- "}"
52
- ],
53
- "type": "text/javascript"
54
- }
55
- }
56
- ],
57
- "request": {
58
- "method": "POST",
59
- "header": [],
60
- "body": {
61
- "mode": "raw",
62
- "raw": "{\n \"email\": \"admin@pg.com\",\n \"password\": \"admin123\"\n}",
63
- "options": {
64
- "raw": {
65
- "language": "json"
66
- }
67
- }
68
- },
69
- "url": {
70
- "raw": "{{url}}/api/auth/signin",
71
- "host": [
72
- "{{url}}"
73
- ],
74
- "path": [
75
- "api",
76
- "auth",
77
- "signin"
78
- ]
79
- }
80
- },
81
- "response": []
82
- },
83
- {
84
- "name": "Signin (Customer)",
85
- "event": [
86
- {
87
- "listen": "test",
88
- "script": {
89
- "exec": [
90
- "var jsonData = pm.response.json();",
91
- "if(jsonData.accessToken) {",
92
- " pm.environment.set(\"token\", jsonData.accessToken);",
93
- "}"
94
- ],
95
- "type": "text/javascript"
96
- }
97
- }
98
- ],
99
- "request": {
100
- "method": "POST",
101
- "header": [],
102
- "body": {
103
- "mode": "raw",
104
- "raw": "{\n \"email\": \"customer@example.com\",\n \"password\": \"password123\"\n}",
105
- "options": {
106
- "raw": {
107
- "language": "json"
108
- }
109
- }
110
- },
111
- "url": {
112
- "raw": "{{url}}/api/auth/signin",
113
- "host": [
114
- "{{url}}"
115
- ],
116
- "path": [
117
- "api",
118
- "auth",
119
- "signin"
120
- ]
121
- }
122
- },
123
- "response": []
124
- }
125
- ]
126
- },
127
- {
128
- "name": "Rooms",
129
- "item": [
130
- {
131
- "name": "Get All Rooms",
132
- "request": {
133
- "method": "GET",
134
- "header": [
135
- {
136
- "key": "x-access-token",
137
- "value": "{{token}}",
138
- "type": "text"
139
- }
140
- ],
141
- "url": {
142
- "raw": "{{url}}/api/rooms",
143
- "host": [
144
- "{{url}}"
145
- ],
146
- "path": [
147
- "api",
148
- "rooms"
149
- ]
150
- }
151
- },
152
- "response": []
153
- },
154
- {
155
- "name": "Create Room (Admin)",
156
- "request": {
157
- "method": "POST",
158
- "header": [
159
- {
160
- "key": "x-access-token",
161
- "value": "{{token}}",
162
- "type": "text"
163
- }
164
- ],
165
- "body": {
166
- "mode": "raw",
167
- "raw": "{\n \"roomNumber\": \"101\",\n \"floor\": 1,\n \"capacity\": 3,\n \"pricePerMonth\": 6000,\n \"amenities\": \"WiFi, TV\"\n}",
168
- "options": {
169
- "raw": {
170
- "language": "json"
171
- }
172
- }
173
- },
174
- "url": {
175
- "raw": "{{url}}/api/rooms",
176
- "host": [
177
- "{{url}}"
178
- ],
179
- "path": [
180
- "api",
181
- "rooms"
182
- ]
183
- }
184
- },
185
- "response": []
186
- },
187
- {
188
- "name": "Update Room (Admin)",
189
- "request": {
190
- "method": "PUT",
191
- "header": [
192
- {
193
- "key": "x-access-token",
194
- "value": "{{token}}",
195
- "type": "text"
196
- }
197
- ],
198
- "body": {
199
- "mode": "raw",
200
- "raw": "{\n \"pricePerMonth\": 6500,\n \"floor\": 2,\n \"amenities\": \"WiFi, TV, AC\",\n \"isMaintenance\": true\n}",
201
- "options": {
202
- "raw": {
203
- "language": "json"
204
- }
205
- }
206
- },
207
- "url": {
208
- "raw": "{{url}}/api/rooms/:id",
209
- "host": [
210
- "{{url}}"
211
- ],
212
- "path": [
213
- "api",
214
- "rooms",
215
- ":id"
216
- ],
217
- "variable": [
218
- {
219
- "key": "id",
220
- "value": "ENTER_ROOM_ID_HERE"
221
- }
222
- ]
223
- }
224
- },
225
- "response": []
226
- },
227
- {
228
- "name": "Delete Room (Admin)",
229
- "request": {
230
- "method": "DELETE",
231
- "header": [
232
- {
233
- "key": "x-access-token",
234
- "value": "{{token}}",
235
- "type": "text"
236
- }
237
- ],
238
- "url": {
239
- "raw": "{{url}}/api/rooms/:id",
240
- "host": [
241
- "{{url}}"
242
- ],
243
- "path": [
244
- "api",
245
- "rooms",
246
- ":id"
247
- ],
248
- "variable": [
249
- {
250
- "key": "id",
251
- "value": "ENTER_ROOM_ID_HERE"
252
- }
253
- ]
254
- }
255
- },
256
- "response": []
257
- }
258
- ]
259
- },
260
- {
261
- "name": "Payments",
262
- "item": [
263
- {
264
- "name": "Create Payment Intent",
265
- "request": {
266
- "method": "POST",
267
- "header": [
268
- {
269
- "key": "x-access-token",
270
- "value": "{{token}}",
271
- "type": "text"
272
- }
273
- ],
274
- "body": {
275
- "mode": "raw",
276
- "raw": "{\n \"amount\": 6000,\n \"type\": \"monthly_rent\"\n}",
277
- "options": {
278
- "raw": {
279
- "language": "json"
280
- }
281
- }
282
- },
283
- "url": {
284
- "raw": "{{url}}/api/payments/create-intent",
285
- "host": [
286
- "{{url}}"
287
- ],
288
- "path": [
289
- "api",
290
- "payments",
291
- "create-intent"
292
- ]
293
- }
294
- },
295
- "response": []
296
- },
297
- {
298
- "name": "Confirm Payment",
299
- "request": {
300
- "method": "POST",
301
- "header": [
302
- {
303
- "key": "x-access-token",
304
- "value": "{{token}}",
305
- "type": "text"
306
- }
307
- ],
308
- "body": {
309
- "mode": "raw",
310
- "raw": "{\n \"paymentId\": \"PASTE_PAYMENT_ID_HERE\",\n \"transactionId\": \"TXN_99999\",\n \"method\": \"upi\"\n}",
311
- "options": {
312
- "raw": {
313
- "language": "json"
314
- }
315
- }
316
- },
317
- "url": {
318
- "raw": "{{url}}/api/payments/confirm",
319
- "host": [
320
- "{{url}}"
321
- ],
322
- "path": [
323
- "api",
324
- "payments",
325
- "confirm"
326
- ]
327
- }
328
- },
329
- "response": []
330
- },
331
- {
332
- "name": "My History (Customer)",
333
- "request": {
334
- "method": "GET",
335
- "header": [
336
- {
337
- "key": "x-access-token",
338
- "value": "{{token}}",
339
- "type": "text"
340
- }
341
- ],
342
- "url": {
343
- "raw": "{{url}}/api/payments/my-history",
344
- "host": [
345
- "{{url}}"
346
- ],
347
- "path": [
348
- "api",
349
- "payments",
350
- "my-history"
351
- ]
352
- }
353
- },
354
- "response": []
355
- },
356
- {
357
- "name": "All Payments (Admin)",
358
- "request": {
359
- "method": "GET",
360
- "header": [
361
- {
362
- "key": "x-access-token",
363
- "value": "{{token}}",
364
- "type": "text"
365
- }
366
- ],
367
- "url": {
368
- "raw": "{{url}}/api/payments?status=pending",
369
- "host": [
370
- "{{url}}"
371
- ],
372
- "path": [
373
- "api",
374
- "payments"
375
- ],
376
- "query": [
377
- {
378
- "key": "status",
379
- "value": "pending",
380
- "description": "Optional filter: pending, completed, failed"
381
- }
382
- ]
383
- }
384
- },
385
- "response": []
386
- }
387
- ]
388
- },
389
- {
390
- "name": "Dashboard",
391
- "item": [
392
- {
393
- "name": "Admin Stats",
394
- "request": {
395
- "method": "GET",
396
- "header": [
397
- {
398
- "key": "x-access-token",
399
- "value": "{{token}}",
400
- "type": "text"
401
- }
402
- ],
403
- "url": {
404
- "raw": "{{url}}/api/dashboard/admin",
405
- "host": [
406
- "{{url}}"
407
- ],
408
- "path": [
409
- "api",
410
- "dashboard",
411
- "admin"
412
- ]
413
- }
414
- },
415
- "response": []
416
- },
417
- {
418
- "name": "Customer Dashboard",
419
- "request": {
420
- "method": "GET",
421
- "header": [
422
- {
423
- "key": "x-access-token",
424
- "value": "{{token}}",
425
- "type": "text"
426
- }
427
- ],
428
- "url": {
429
- "raw": "{{url}}/api/dashboard/customer",
430
- "host": [
431
- "{{url}}"
432
- ],
433
- "path": [
434
- "api",
435
- "dashboard",
436
- "customer"
437
- ]
438
- }
439
- },
440
- "response": []
441
- },
442
- {
443
- "name": "Announcements",
444
- "request": {
445
- "method": "GET",
446
- "header": [
447
- {
448
- "key": "x-access-token",
449
- "value": "{{token}}",
450
- "type": "text"
451
- }
452
- ],
453
- "url": {
454
- "raw": "{{url}}/api/dashboard/announcements",
455
- "host": [
456
- "{{url}}"
457
- ],
458
- "path": [
459
- "api",
460
- "dashboard",
461
- "announcements"
462
- ]
463
- }
464
- },
465
- "response": []
466
- }
467
- ]
468
- }
469
- ],
470
- "variable": [
471
- {
472
- "key": "url",
473
- "value": "http://localhost:5000",
474
- "type": "string"
475
- }
476
- ]
477
- }
@@ -1,17 +0,0 @@
1
- {
2
- "id": "pg-backend-env",
3
- "name": "PG Backend Environment",
4
- "values": [
5
- {
6
- "key": "url",
7
- "value": "http://localhost:5000",
8
- "enabled": true
9
- },
10
- {
11
- "key": "token",
12
- "value": "",
13
- "enabled": true
14
- }
15
- ],
16
- "_postman_variable_scope": "environment"
17
- }
Binary file