setting pushed

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-23 22:34:25 +03:30
co-authored by Cursor
parent 5f487abea9
commit 547f8c83f4
+91 -89
View File
@@ -1,13 +1,36 @@
/** /**
* کلیدهای تنظیمات سوپرادمین — هم‌تراز deploy_settings_const.sql * کلیدهای تنظیمات سوپرادمین — فقط گروه «دسترسی مشتری به قابلیت‌ها».
* تولید خودکار: controlpanel_server/scripts/sync-superadmin-setting-template.mjs * تولید خودکار: controlpanel_server/scripts/sync-superadmin-setting-template.mjs
*/ */
export const SUPERADMIN_SYSTEM_SETTING_KEYS = new Set<string>([ export const SUPERADMIN_SYSTEM_SETTING_KEYS = new Set<string>([
"customer_direct_sms",
"customer_special_pricing",
"enable_conditional_order",
"enable_customer_level_profit",
"enable_product_funds",
"group_sms",
"has_page_earn_money",
"has_page_gift_card",
"has_page_notification",
"has_page_price_trigger",
"jibit_enabled",
"permision__enabled",
"show_to_users_chat",
]);
export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"about_software",
"accounting_provider", "accounting_provider",
"admin_url", "admin_url",
"apk_download_link", "apk_download_link",
"app_url", "app_url",
"auto_active_customer",
"balance_report_exclude_customer_id",
"bale_bot_token", "bale_bot_token",
"banner_enabled",
"buy_fee",
"change_mesghal",
"charge_notif",
"chart_id", "chart_id",
"chart_use_local_data", "chart_use_local_data",
"chat_api", "chat_api",
@@ -16,94 +39,6 @@ export const SUPERADMIN_SYSTEM_SETTING_KEYS = new Set<string>([
"chat_upload_url", "chat_upload_url",
"chat_webhook_base_url", "chat_webhook_base_url",
"chat_webhook_secret", "chat_webhook_secret",
"customer_direct_sms",
"customer_special_pricing",
"enable_conditional_order",
"enable_customer_level_profit",
"enable_product_funds",
"external_order_api_enabled",
"external_payment_base_url",
"external_payment_client_id",
"external_payment_client_secret",
"external_payment_enabled",
"external_payment_gateway",
"external_payment_return_url",
"external_payment_webhook_url",
"fee_deduct_from_gold",
"group_sms",
"has_page_earn_money",
"has_page_gift_card",
"has_page_notification",
"has_page_price_trigger",
"is_store",
"jibit_enabled",
"logo_login",
"logo_register",
"main_metal",
"main_product",
"main_wallet_products",
"metal_type",
"montify_name",
"montzar_base_url",
"node_client_id",
"node_shared_secret",
"pargar_api_token",
"pargar_item_id_gold",
"pargar_item_id_rial",
"pargar_password",
"pargar_username",
"payping_fin_customer_id",
"payping_fin_sync_enabled",
"payping_fin_token",
"payping_fin_url",
"payping_gateway_items",
"payping_gateway_name",
"payping_round_toman",
"payping_start_url",
"payping_strict_failed_withdraw",
"payping_verify_url",
"permision__enabled",
"price_channel_access",
"price_channel_bale_to",
"price_channel_rubika_to",
"price_channel_telegram_to",
"price_provider",
"profit_gold_api_enabled",
"referral_bonus_amount",
"rubika_bot_token",
"send_to_pargar",
"send_to_tahesab",
"show_to_users_chat",
"sms_panel",
"sse_path",
"tahesab_bank_account",
"tahesab_db",
"tahesab_host",
"tahesab_port",
"tahesab_token",
"telegram_bot_token",
"title_fav",
"title_pwa",
"unit",
"wallet_payment_provider",
"wss_enabled",
"zaarbox_api_url",
"zarin_api",
"zarin_gorohe_kar",
"zarin_name_g",
"zarin_noe_kar",
"zarin_noe_kar_tedadi",
"zarin_token",
"zarin_uid_prefix",
]);
export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"auto_active_customer",
"balance_report_exclude_customer_id",
"banner_enabled",
"buy_fee",
"change_mesghal",
"charge_notif",
"close_price", "close_price",
"deposit_account_holder", "deposit_account_holder",
"deposit_account_number", "deposit_account_number",
@@ -117,21 +52,40 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"deposit_support_message_text", "deposit_support_message_text",
"do_send_liman", "do_send_liman",
"down_price", "down_price",
"enamad_url",
"endDay", "endDay",
"external_order_api_enabled",
"external_payment_base_url",
"external_payment_client_id",
"external_payment_client_secret",
"external_payment_enabled",
"external_payment_gateway",
"external_payment_return_url",
"external_payment_webhook_url",
"fee", "fee",
"fee_conditional_order", "fee_conditional_order",
"fee_deduct_from_gold",
"fee_free", "fee_free",
"fee_service_charge_percentage", "fee_service_charge_percentage",
"gift_for_referral", "gift_for_referral",
"gift_for_referrer", "gift_for_referrer",
"has_chat", "has_chat",
"invite_link_text", "invite_link_text",
"is_store",
"jibit_verification", "jibit_verification",
"logo_login",
"logo_register",
"main_metal",
"main_product",
"main_product_price", "main_product_price",
"main_wallet_products",
"metal_type",
"min_deposit", "min_deposit",
"min_first_buy", "min_first_buy",
"min_withdraw", "min_withdraw",
"minimum_sell", "minimum_sell",
"montify_name",
"montzar_base_url",
"montzar_closed", "montzar_closed",
"montzar_diff", "montzar_diff",
"montzar_last_product_log", "montzar_last_product_log",
@@ -147,7 +101,26 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"montzar_truly_buy_mazaneh", "montzar_truly_buy_mazaneh",
"montzar_truly_sell_mazaneh", "montzar_truly_sell_mazaneh",
"name_fa", "name_fa",
"node_client_id",
"node_shared_secret",
"open_register", "open_register",
"pargar_api_token",
"pargar_item_id_gold",
"pargar_item_id_rial",
"pargar_password",
"pargar_username",
"payping_fin_customer_id",
"payping_fin_sync_enabled",
"payping_fin_token",
"payping_fin_url",
"payping_gateway_items",
"payping_gateway_name",
"payping_round_toman",
"payping_start_url",
"payping_strict_failed_withdraw",
"payping_verify_url",
"price_channel_access",
"price_channel_bale_to",
"price_channel_diff", "price_channel_diff",
"price_channel_enabled", "price_channel_enabled",
"price_channel_footer_id", "price_channel_footer_id",
@@ -156,10 +129,15 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"price_channel_message_text", "price_channel_message_text",
"price_channel_messengers", "price_channel_messengers",
"price_channel_min_seconds", "price_channel_min_seconds",
"price_channel_rubika_to",
"price_channel_telegram_to",
"price_extreme_date", "price_extreme_date",
"price_provider",
"products_site_link_enabled", "products_site_link_enabled",
"products_site_link_text", "products_site_link_text",
"products_site_link_url", "products_site_link_url",
"profit_gold_api_enabled",
"referral_bonus_amount",
"referral_bonus_count", "referral_bonus_count",
"referral_gift_buy_from_montzar", "referral_gift_buy_from_montzar",
"referral_gift_on_first_order", "referral_gift_on_first_order",
@@ -170,7 +148,10 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"register_referral_bonus_message", "register_referral_bonus_message",
"register_referral_sms_to_referrer", "register_referral_sms_to_referrer",
"require_zero_main_gold_before_other_buy", "require_zero_main_gold_before_other_buy",
"rubika_bot_token",
"sell_fee", "sell_fee",
"send_to_pargar",
"send_to_tahesab",
"show_gold_ounce_price", "show_gold_ounce_price",
"show_home_price_when_closed", "show_home_price_when_closed",
"show_last_price", "show_last_price",
@@ -193,17 +174,38 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"sms_notif_wallet_alert", "sms_notif_wallet_alert",
"sms_notif_withdraw_admin", "sms_notif_withdraw_admin",
"sms_notif_withdraw_otp", "sms_notif_withdraw_otp",
"sms_panel",
"sse_path",
"startDay", "startDay",
"support_messenger", "support_messenger",
"support_messenger_id", "support_messenger_id",
"support_messenger_text", "support_messenger_text",
"support_messengers", "support_messengers",
"tahesab_bank_account",
"tahesab_db",
"tahesab_host",
"tahesab_port",
"tahesab_token",
"telegram_bot_token",
"text_about", "text_about",
"text_rule", "text_rule",
"title_fav",
"title_pwa",
"tracking_systems", "tracking_systems",
"tracking_systems_enabled", "tracking_systems_enabled",
"unit",
"up_price", "up_price",
"wallet_payment_provider",
"wss_enabled",
"zaarbox_api_url",
"zaarbox_price_key", "zaarbox_price_key",
"zarin_api",
"zarin_gorohe_kar",
"zarin_name_g",
"zarin_noe_kar",
"zarin_noe_kar_tedadi",
"zarin_token",
"zarin_uid_prefix",
]); ]);
export function isSuperAdminSystemSettingKey(key?: string | null): boolean { export function isSuperAdminSystemSettingKey(key?: string | null): boolean {