chore(settings): resync superadmin keys after can_edit=1 runtime keys
Update superAdminSettingKeys and khanegiSettingCatalog to match deploy SQL. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -179,6 +179,26 @@ export function supportMessengerIdPlaceholder(messenger?: string): string {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* کلیدهایی که کد tenant مستقیم مینویسد — can_edit=1، فقط تنظیمات پیشرفته tenant.
|
||||
* همتراز SuperAdminProgramSettingsOverlay::RUNTIME_KEYS
|
||||
*/
|
||||
export const SETTING_CODE_MANAGED_KEYS = new Set([
|
||||
'montzar_last_product_log',
|
||||
'montzar_order_response',
|
||||
'montzar_live_price',
|
||||
'montzar_mazaneh',
|
||||
'montzar_diff',
|
||||
'montzar_truly_buy_mazaneh',
|
||||
'montzar_truly_sell_mazaneh',
|
||||
'montzar_token',
|
||||
'montzar_closed',
|
||||
'up_price',
|
||||
'down_price',
|
||||
'price_extreme_date',
|
||||
'do_send_liman',
|
||||
])
|
||||
|
||||
/** کلیدهای legacy — در پنل نمایش داده نمیشوند */
|
||||
export const HIDDEN_LEGACY_SETTING_KEYS = new Set([
|
||||
'main_product_price',
|
||||
@@ -190,7 +210,6 @@ export const HIDDEN_LEGACY_SETTING_KEYS = new Set([
|
||||
'price_method',
|
||||
'montzar_last_product_log',
|
||||
'montzar_order_response',
|
||||
'service_charge_percentage',
|
||||
'support_messenger',
|
||||
'support_messenger_id',
|
||||
// JSON از صفحهٔ اختصاصی «سایتهای ریگیری» مدیریت میشود؛ سوییچ نمایش در تنظیمات میماند
|
||||
@@ -1104,17 +1123,14 @@ export const SETTING_LOCKED_KEYS = new Set([
|
||||
'logo_login', 'logo_register', 'title_pwa', 'title_fav',
|
||||
'main_product', 'main_wallet_products', 'metal_type', 'main_metal',
|
||||
'montify_name',
|
||||
'montzar_base_url', 'montzar_closed',
|
||||
'montzar_diff', 'montzar_last_product_log', 'montzar_live_price', 'montzar_mazaneh',
|
||||
'montzar_order_response', 'montzar_token',
|
||||
'montzar_truly_buy_mazaneh', 'montzar_truly_sell_mazaneh',
|
||||
'montzar_base_url',
|
||||
'node_client_id', 'node_shared_secret',
|
||||
'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_extreme_date', 'price_provider', 'profit_gold_api_enabled',
|
||||
'send_to_tahesab', 'send_to_pargar', 'accounting_provider', 'service_charge_percentage',
|
||||
'price_provider', 'profit_gold_api_enabled',
|
||||
'send_to_tahesab', 'send_to_pargar', 'accounting_provider',
|
||||
'sse_path',
|
||||
'tahesab_bank_account', 'tahesab_db', 'tahesab_host', 'tahesab_port', 'tahesab_token',
|
||||
'zarin_api', 'zarin_token', 'zarin_noe_kar', 'zarin_gorohe_kar', 'zarin_name_g', 'zarin_uid_prefix',
|
||||
@@ -1125,7 +1141,6 @@ export const SETTING_LOCKED_KEYS = new Set([
|
||||
'price_channel_access',
|
||||
'price_channel_bale_to', 'price_channel_telegram_to', 'price_channel_rubika_to',
|
||||
'unit',
|
||||
'up_price', 'down_price',
|
||||
'wss_enabled',
|
||||
'zaarbox_api_url',
|
||||
'show_to_users_chat', 'chat_api', 'chat_api_key', 'chat_upload_url', 'chat_download_url'
|
||||
@@ -1155,6 +1170,9 @@ export const SETTING_EDITABLE_KEYS = new Set([
|
||||
'min_first_buy', 'min_withdraw', 'min_deposit', 'minimum_sell',
|
||||
'montzar_mobile', 'montzar_open_buy', 'montzar_open_sell',
|
||||
'montzar_password', 'montzar_product_id',
|
||||
'montzar_closed', 'montzar_diff', 'montzar_last_product_log', 'montzar_live_price', 'montzar_mazaneh',
|
||||
'montzar_order_response', 'montzar_token',
|
||||
'montzar_truly_buy_mazaneh', 'montzar_truly_sell_mazaneh',
|
||||
'open_register',
|
||||
'referral_id', 'referral_limit', 'referral_gift_on_first_order', 'referral_gift_buy_from_montzar',
|
||||
'register_jibit_verify', 'register_referral_bonus_message', 'register_referral_sms_to_referrer',
|
||||
@@ -1163,6 +1181,7 @@ export const SETTING_EDITABLE_KEYS = new Set([
|
||||
'products_site_link_enabled', 'products_site_link_url', 'products_site_link_text',
|
||||
'startDay',
|
||||
'support_messengers', 'support_messenger_text',
|
||||
'up_price', 'down_price', 'price_extreme_date', 'do_send_liman',
|
||||
'has_chat',
|
||||
'deposit_support_message_text', 'deposit_account_holder', 'deposit_card_number', 'deposit_account_number', 'deposit_sheba',
|
||||
'deposit_method_card_to_card', 'deposit_method_gateway', 'deposit_method_identified', 'deposit_method_shetab',
|
||||
|
||||
@@ -18,7 +18,6 @@ export const SUPERADMIN_SYSTEM_SETTING_KEYS = new Set<string>([
|
||||
"chat_webhook_secret",
|
||||
"customer_direct_sms",
|
||||
"customer_special_pricing",
|
||||
"down_price",
|
||||
"enable_conditional_order",
|
||||
"enable_customer_level_profit",
|
||||
"enable_product_funds",
|
||||
@@ -45,15 +44,6 @@ export const SUPERADMIN_SYSTEM_SETTING_KEYS = new Set<string>([
|
||||
"metal_type",
|
||||
"montify_name",
|
||||
"montzar_base_url",
|
||||
"montzar_closed",
|
||||
"montzar_diff",
|
||||
"montzar_last_product_log",
|
||||
"montzar_live_price",
|
||||
"montzar_mazaneh",
|
||||
"montzar_order_response",
|
||||
"montzar_token",
|
||||
"montzar_truly_buy_mazaneh",
|
||||
"montzar_truly_sell_mazaneh",
|
||||
"node_client_id",
|
||||
"node_shared_secret",
|
||||
"pargar_api_token",
|
||||
@@ -76,7 +66,6 @@ export const SUPERADMIN_SYSTEM_SETTING_KEYS = new Set<string>([
|
||||
"price_channel_bale_to",
|
||||
"price_channel_rubika_to",
|
||||
"price_channel_telegram_to",
|
||||
"price_extreme_date",
|
||||
"referral_bonus_amount",
|
||||
"rubika_bot_token",
|
||||
"send_to_pargar",
|
||||
@@ -91,7 +80,6 @@ export const SUPERADMIN_SYSTEM_SETTING_KEYS = new Set<string>([
|
||||
"tahesab_token",
|
||||
"telegram_bot_token",
|
||||
"unit",
|
||||
"up_price",
|
||||
"wallet_payment_provider",
|
||||
"wss_enabled",
|
||||
"zarin_api",
|
||||
@@ -120,6 +108,7 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
|
||||
"deposit_method_shetab",
|
||||
"deposit_sheba",
|
||||
"deposit_sms_support_number",
|
||||
"down_price",
|
||||
"endDay",
|
||||
"fee_conditional_order",
|
||||
"fee_free",
|
||||
@@ -133,11 +122,20 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
|
||||
"min_first_buy",
|
||||
"min_withdraw",
|
||||
"minimum_sell",
|
||||
"montzar_closed",
|
||||
"montzar_diff",
|
||||
"montzar_last_product_log",
|
||||
"montzar_live_price",
|
||||
"montzar_mazaneh",
|
||||
"montzar_mobile",
|
||||
"montzar_open_buy",
|
||||
"montzar_open_sell",
|
||||
"montzar_order_response",
|
||||
"montzar_password",
|
||||
"montzar_product_id",
|
||||
"montzar_token",
|
||||
"montzar_truly_buy_mazaneh",
|
||||
"montzar_truly_sell_mazaneh",
|
||||
"name_fa",
|
||||
"open_register",
|
||||
"price_channel_diff",
|
||||
@@ -147,6 +145,7 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
|
||||
"price_channel_footer_phone",
|
||||
"price_channel_messengers",
|
||||
"price_channel_min_seconds",
|
||||
"price_extreme_date",
|
||||
"products_site_link_enabled",
|
||||
"products_site_link_text",
|
||||
"products_site_link_url",
|
||||
@@ -188,6 +187,7 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
|
||||
"support_messenger_text",
|
||||
"tracking_systems",
|
||||
"tracking_systems_enabled",
|
||||
"up_price",
|
||||
]);
|
||||
|
||||
export function isSuperAdminSystemSettingKey(key?: string | null): boolean {
|
||||
|
||||
Reference in New Issue
Block a user