@@ -1,13 +1,40 @@
|
||||
/**
|
||||
* کلیدهای can_edit=0 در deploy_settings_const.sql — فقط همینها در قالب سوپرادمین.
|
||||
* کلیدهای مالکیت سوپرادمین — گروه «دسترسی مشتری به قابلیتها».
|
||||
* تولید خودکار: node scripts/sync-superadmin-setting-template.mjs
|
||||
*/
|
||||
export const DEPLOY_SETTING_CATALOG_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",
|
||||
]);
|
||||
|
||||
/**
|
||||
* کلیدهایی که سوپرادمین مالکشان نیست (مالک: دیتابیس هر نصب).
|
||||
* در هر بوت با purgeEditableFromSuperAdmin از قالب و ردیف همهٔ پروژهها حذف میشوند.
|
||||
*/
|
||||
export const DEPLOY_SETTING_EDITABLE_KEYS = new Set<string>([
|
||||
"about_software",
|
||||
"accounting_provider",
|
||||
"admin_url",
|
||||
"apk_download_link",
|
||||
"app_url",
|
||||
"auto_active_customer",
|
||||
"balance_report_exclude_customer_id",
|
||||
"bale_bot_token",
|
||||
"banner_enabled",
|
||||
"buy_fee",
|
||||
"change_mesghal",
|
||||
"charge_notif",
|
||||
"chart_id",
|
||||
"chart_use_local_data",
|
||||
"chat_api",
|
||||
@@ -16,95 +43,6 @@ export const DEPLOY_SETTING_CATALOG_KEYS = new Set<string>([
|
||||
"chat_upload_url",
|
||||
"chat_webhook_base_url",
|
||||
"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",
|
||||
]);
|
||||
|
||||
/** کلیدهای can_edit=1 — نباید در قالب/جدول settings سوپرادمین باشند */
|
||||
export const DEPLOY_SETTING_EDITABLE_KEYS = new Set<string>([
|
||||
"auto_active_customer",
|
||||
"balance_report_exclude_customer_id",
|
||||
"banner_enabled",
|
||||
"buy_fee",
|
||||
"change_mesghal",
|
||||
"charge_notif",
|
||||
"close_price",
|
||||
"deposit_account_holder",
|
||||
"deposit_account_number",
|
||||
@@ -118,21 +56,40 @@ export const DEPLOY_SETTING_EDITABLE_KEYS = new Set<string>([
|
||||
"deposit_support_message_text",
|
||||
"do_send_liman",
|
||||
"down_price",
|
||||
"enamad_url",
|
||||
"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_conditional_order",
|
||||
"fee_deduct_from_gold",
|
||||
"fee_free",
|
||||
"fee_service_charge_percentage",
|
||||
"gift_for_referral",
|
||||
"gift_for_referrer",
|
||||
"has_chat",
|
||||
"invite_link_text",
|
||||
"is_store",
|
||||
"jibit_verification",
|
||||
"logo_login",
|
||||
"logo_register",
|
||||
"main_metal",
|
||||
"main_product",
|
||||
"main_product_price",
|
||||
"main_wallet_products",
|
||||
"metal_type",
|
||||
"min_deposit",
|
||||
"min_first_buy",
|
||||
"min_withdraw",
|
||||
"minimum_sell",
|
||||
"montify_name",
|
||||
"montzar_base_url",
|
||||
"montzar_closed",
|
||||
"montzar_diff",
|
||||
"montzar_last_product_log",
|
||||
@@ -148,7 +105,26 @@ export const DEPLOY_SETTING_EDITABLE_KEYS = new Set<string>([
|
||||
"montzar_truly_buy_mazaneh",
|
||||
"montzar_truly_sell_mazaneh",
|
||||
"name_fa",
|
||||
"node_client_id",
|
||||
"node_shared_secret",
|
||||
"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_enabled",
|
||||
"price_channel_footer_id",
|
||||
@@ -157,10 +133,15 @@ export const DEPLOY_SETTING_EDITABLE_KEYS = new Set<string>([
|
||||
"price_channel_message_text",
|
||||
"price_channel_messengers",
|
||||
"price_channel_min_seconds",
|
||||
"price_channel_rubika_to",
|
||||
"price_channel_telegram_to",
|
||||
"price_extreme_date",
|
||||
"price_provider",
|
||||
"products_site_link_enabled",
|
||||
"products_site_link_text",
|
||||
"products_site_link_url",
|
||||
"profit_gold_api_enabled",
|
||||
"referral_bonus_amount",
|
||||
"referral_bonus_count",
|
||||
"referral_gift_buy_from_montzar",
|
||||
"referral_gift_on_first_order",
|
||||
@@ -171,7 +152,10 @@ export const DEPLOY_SETTING_EDITABLE_KEYS = new Set<string>([
|
||||
"register_referral_bonus_message",
|
||||
"register_referral_sms_to_referrer",
|
||||
"require_zero_main_gold_before_other_buy",
|
||||
"rubika_bot_token",
|
||||
"sell_fee",
|
||||
"send_to_pargar",
|
||||
"send_to_tahesab",
|
||||
"show_gold_ounce_price",
|
||||
"show_home_price_when_closed",
|
||||
"show_last_price",
|
||||
@@ -194,16 +178,37 @@ export const DEPLOY_SETTING_EDITABLE_KEYS = new Set<string>([
|
||||
"sms_notif_wallet_alert",
|
||||
"sms_notif_withdraw_admin",
|
||||
"sms_notif_withdraw_otp",
|
||||
"sms_panel",
|
||||
"sse_path",
|
||||
"startDay",
|
||||
"support_messenger",
|
||||
"support_messenger_id",
|
||||
"support_messenger_text",
|
||||
"support_messengers",
|
||||
"tahesab_bank_account",
|
||||
"tahesab_db",
|
||||
"tahesab_host",
|
||||
"tahesab_port",
|
||||
"tahesab_token",
|
||||
"telegram_bot_token",
|
||||
"text_about",
|
||||
"text_rule",
|
||||
"title_fav",
|
||||
"title_pwa",
|
||||
"tracking_systems",
|
||||
"tracking_systems_enabled",
|
||||
"unit",
|
||||
"up_price",
|
||||
"wallet_payment_provider",
|
||||
"wss_enabled",
|
||||
"zaarbox_api_url",
|
||||
"zaarbox_price_key",
|
||||
"zarin_api",
|
||||
"zarin_gorohe_kar",
|
||||
"zarin_name_g",
|
||||
"zarin_noe_kar",
|
||||
"zarin_noe_kar_tedadi",
|
||||
"zarin_token",
|
||||
"zarin_uid_prefix",
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user