Commit Graph
23 Commits
Author SHA1 Message Date
mohmdsdg 5d4fda6b8e fix(plugins): update enable_automation title, description and preview to periodic sms automation 2026-11-07 12:19:24 +03:30
mohmdsdg a1d2c222bd adde images to plugins 2026-11-05 18:01:08 +03:30
mohmdsdg a98fdb8d9e feat(remittance): add enable_remittance plugin setting to catalog and seeds 2026-10-27 18:07:10 +03:30
mohmdsdg 47d210bd7d added chart plugin in khanegi superadmin 2026-10-21 11:13:24 +03:30
MahdiandCursor 674da4e939 feat: add 'other' product type for miscellaneous sites (tracking only, no remote control)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-07 16:52:23 +03:30
mohmdsdg 6ba6a9cd45 fix some extention bug 2026-09-16 13:44:58 +03:30
mohmdsdgandCursor cf92635c0e Fix plugin purchase 500 when subscription catalog columns are missing.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-10 10:33:48 +03:30
mohmdsdgandCursor 6cc10e3333 Fix plugin store public controller param order so nest build succeeds.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-10 10:24:31 +03:30
mohmdsdg a78636d32e fix super admin 2026-09-10 10:04:55 +03:30
mohmdsdgandCursor bcf4724ac4 fix plugin store remote: find tenant by admin URL and allow purchase
HMAC k.montzar.ir matches the version that uses that admin panel. Remote buy is no longer blocked by plugin_store_enabled.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 22:17:44 +03:30
mohmdsdgandCursor 3f0dfe448c fix remote HMAC: identify tenant by domain, not shared nodeServer
new.gholaktala.ir is the API host of many versions. Prefer subdomain of the product domain and refuse ambiguous nodeServer ties. 403 names the matched tenant.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 21:53:11 +03:30
mohmdsdg bd12337f6e fix pluggin bug 2 2026-09-09 20:19:01 +03:30
mohmdsdg 08f648457f fix pluggin bug 2026-09-09 17:04:33 +03:30
mohmdsdg 58744d0f91 added some feature for plugin 2026-09-08 18:00:56 +03:30
mohmdsdgandCursor 67a03d9593 feat(plugins): catalog images and purchase receipt uploads
Catalog items can store up to three photos; remote tenants attach a receipt on pending requests.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-08 14:56:09 +03:30
mohmdsdgandCursor 18ac137e25 fix(plugins): seed all SuperAdmin khanegi setting keys into the store catalog
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-08 11:00:59 +03:30
mohmdsdgandCursor dd212d01ed fix(plugins): resolve remote tenant from admin and app URLs
HMAC only matched tenant.domain, so k.montzar.ir / new.gholaktala.ir missed the row. Also return an empty store when catalog tables are missing.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 21:54:03 +03:30
mohmdsdgandCursor 0c4f88debf fix(plugins): loosen plugin summary types for partial selects
Allow list/expiring helpers to map rows that omit store columns so nest build passes after prisma generate.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 19:57:18 +03:30
mohmdsdgandCursor b3112cf032 fix(plugins): per-tenant plugin store flag and harden broken schema APIs
Store enablement is now a tenant settings row instead of a global runtime switch, and expiring/requests endpoints degrade to empty lists when store tables are missing.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 19:51:11 +03:30
mohmdsdgandCursor 1f776cf6e2 feat(plugins): sell khanegi plugins as priced subscriptions
Catalog prices, purchase requests, and setting-key activation live on SuperAdmin so module admins can buy add-ons. Also rewrite legacy nerkh logo hosts to the SuperAdmin upload origin.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-07 16:56:51 +03:30
Mahdi 67281710ac fix(billing): compute plan expiry with Jalali months
Server/plugin/support charges used Gregorian Date#setMonth, so 3 months from 1405/06/01 became 1405/09/02. Now add N Jalali months minus one day (1405/08/30).
2026-08-24 18:03:54 +03:30
MahdiandCursor af1e217a68 feat(auth): add module read/write admin RBAC
Introduce permission catalog, PermissionsGuard, JWT/me payload with
role+permissions, and gate all module controllers. Admins CRUD accepts
role/permissions with safety rules; migrate existing users to super_admin.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-10 15:29:04 +03:30
MahdiandCursor a6b3457779 Add production-ready SuperAdmin API features for tenants, SMS, servers, and plugins.
Includes mobile auth, get_user/get_version, SMS wallet parity endpoints, appearance backfill, and related Prisma migrations.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-30 18:19:53 +03:30