@rglabs/butterfly 1.0.4 → 1.2.0
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.
Potentially problematic release.
This version of @rglabs/butterfly might be problematic. Click here for more details.
- package/.butterfly/config.json +6 -0
- package/.butterfly/cookies.json +26 -0
- package/.butterfly/requests.log +1399 -0
- package/.claude/settings.local.json +5 -1
- package/POC-Generator/README.md +85 -0
- package/POC-Generator/examples/imports/example.xlsx +0 -0
- package/POC-Generator/examples/reports/examples/query_code.twig +225 -0
- package/POC-Generator/examples/reports/examples/script.js +401 -0
- package/POC-Generator/examples/tables/example_group/table_examples/example.json +394 -0
- package/POC-Generator/imports/.gitkeep +0 -0
- package/POC-Generator/mocks/.gitkeep +7 -0
- package/POC-Generator/reports/.gitkeep +0 -0
- package/POC-Generator/tables/.gitkeep +0 -0
- package/README.md +146 -1
- package/butterfly-resources/bfy_ai_tasks/bfy-translations/output_format.json +1 -0
- package/butterfly-resources/bfy_ai_tasks/bfy-translations/prompt.bfy +4 -0
- package/butterfly-resources/bfy_ai_tasks/bfy-translations/task.json +21 -0
- package/butterfly-resources/bfy_ai_tasks/butterfly-business-developer/action_preview_code.bfy +74 -0
- package/butterfly-resources/bfy_ai_tasks/butterfly-business-developer/initial_code.bfy +115 -0
- package/butterfly-resources/bfy_ai_tasks/butterfly-business-developer/output_format.json +8 -0
- package/butterfly-resources/bfy_ai_tasks/butterfly-business-developer/prompt.bfy +8 -0
- package/butterfly-resources/bfy_ai_tasks/butterfly-business-developer/system_message.bfy +10 -0
- package/butterfly-resources/bfy_ai_tasks/butterfly-business-developer/task.json +18 -0
- package/butterfly-resources/bfy_ai_tasks/butterfly-developer/action_preview_code.bfy +114 -0
- package/butterfly-resources/bfy_ai_tasks/butterfly-developer/initial_code.bfy +119 -0
- package/butterfly-resources/bfy_ai_tasks/butterfly-developer/output_format.json +8 -0
- package/butterfly-resources/bfy_ai_tasks/butterfly-developer/prompt.bfy +8 -0
- package/butterfly-resources/bfy_ai_tasks/butterfly-developer/system_message.bfy +15 -0
- package/butterfly-resources/bfy_ai_tasks/butterfly-developer/task.json +18 -0
- package/butterfly-resources/bfy_ai_tasks/create-objects/action_code.bfy +225 -0
- package/butterfly-resources/bfy_ai_tasks/create-objects/action_preview_code.bfy +249 -0
- package/butterfly-resources/bfy_ai_tasks/create-objects/initial_code.bfy +75 -0
- package/butterfly-resources/bfy_ai_tasks/create-objects/output_format.json +11 -0
- package/butterfly-resources/bfy_ai_tasks/create-objects/prompt.bfy +12 -0
- package/butterfly-resources/bfy_ai_tasks/create-objects/system_message.bfy +92 -0
- package/butterfly-resources/bfy_ai_tasks/create-objects/task.json +17 -0
- package/butterfly-resources/bfy_ai_tasks/create-workflows/action_code.bfy +198 -0
- package/butterfly-resources/bfy_ai_tasks/create-workflows/action_preview_code.bfy +261 -0
- package/butterfly-resources/bfy_ai_tasks/create-workflows/initial_code.bfy +117 -0
- package/butterfly-resources/bfy_ai_tasks/create-workflows/output_format.json +25 -0
- package/butterfly-resources/bfy_ai_tasks/create-workflows/prompt.bfy +10 -0
- package/butterfly-resources/bfy_ai_tasks/create-workflows/system_message.bfy +186 -0
- package/butterfly-resources/bfy_ai_tasks/create-workflows/task.json +17 -0
- package/butterfly-resources/bfy_ai_tasks/cronjob-generator/action_code.bfy +9 -0
- package/butterfly-resources/bfy_ai_tasks/cronjob-generator/action_preview_code.bfy +218 -0
- package/butterfly-resources/bfy_ai_tasks/cronjob-generator/output_format.json +8 -0
- package/butterfly-resources/bfy_ai_tasks/cronjob-generator/prompt.bfy +11 -0
- package/butterfly-resources/bfy_ai_tasks/cronjob-generator/system_message.bfy +31 -0
- package/butterfly-resources/bfy_ai_tasks/cronjob-generator/task.json +18 -0
- package/butterfly-resources/bfy_ai_tasks/generate-dashboard-report/action_code.bfy +39 -0
- package/butterfly-resources/bfy_ai_tasks/generate-dashboard-report/action_preview_code.bfy +2 -0
- package/butterfly-resources/bfy_ai_tasks/generate-dashboard-report/output_format.json +4 -0
- package/butterfly-resources/bfy_ai_tasks/generate-dashboard-report/prompt.bfy +1 -0
- package/butterfly-resources/bfy_ai_tasks/generate-dashboard-report/system_message.bfy +6 -0
- package/butterfly-resources/bfy_ai_tasks/generate-dashboard-report/task.json +18 -0
- package/butterfly-resources/bfy_ai_tasks/generate-objects/action_code.bfy +183 -0
- package/butterfly-resources/bfy_ai_tasks/generate-objects/action_preview_code.bfy +286 -0
- package/butterfly-resources/bfy_ai_tasks/generate-objects/output_format.json +5 -0
- package/butterfly-resources/bfy_ai_tasks/generate-objects/prompt.bfy +15 -0
- package/butterfly-resources/bfy_ai_tasks/generate-objects/system_message.bfy +92 -0
- package/butterfly-resources/bfy_ai_tasks/generate-objects/task.json +18 -0
- package/butterfly-resources/bfy_ai_tasks/generate-waiting-quotes/output_format.json +7 -0
- package/butterfly-resources/bfy_ai_tasks/generate-waiting-quotes/prompt.bfy +7 -0
- package/butterfly-resources/bfy_ai_tasks/generate-waiting-quotes/system_message.bfy +4 -0
- package/butterfly-resources/bfy_ai_tasks/generate-waiting-quotes/task.json +20 -0
- package/butterfly-resources/bfy_ai_tasks/generate-workflows/action_code.bfy +83 -0
- package/butterfly-resources/bfy_ai_tasks/generate-workflows/action_preview_code.bfy +445 -0
- package/butterfly-resources/bfy_ai_tasks/generate-workflows/initial_code.bfy +75 -0
- package/butterfly-resources/bfy_ai_tasks/generate-workflows/output_format.json +22 -0
- package/butterfly-resources/bfy_ai_tasks/generate-workflows/prompt.bfy +12 -0
- package/butterfly-resources/bfy_ai_tasks/generate-workflows/system_message.bfy +11 -0
- package/butterfly-resources/bfy_ai_tasks/generate-workflows/task.json +17 -0
- package/butterfly-resources/bfy_ai_tasks/insert-sample-data/action_code.bfy +95 -0
- package/butterfly-resources/bfy_ai_tasks/insert-sample-data/action_preview_code.bfy +168 -0
- package/butterfly-resources/bfy_ai_tasks/insert-sample-data/output_format.json +9 -0
- package/butterfly-resources/bfy_ai_tasks/insert-sample-data/prompt.bfy +14 -0
- package/butterfly-resources/bfy_ai_tasks/insert-sample-data/task.json +19 -0
- package/butterfly-resources/bfy_ai_tasks/report-generator/action_code.bfy +30 -0
- package/butterfly-resources/bfy_ai_tasks/report-generator/action_preview_code.bfy +2 -0
- package/butterfly-resources/bfy_ai_tasks/report-generator/initial_code.bfy +75 -0
- package/butterfly-resources/bfy_ai_tasks/report-generator/output_format.json +6 -0
- package/butterfly-resources/bfy_ai_tasks/report-generator/prompt.bfy +10 -0
- package/butterfly-resources/bfy_ai_tasks/report-generator/system_message.bfy +31 -0
- package/butterfly-resources/bfy_ai_tasks/report-generator/task.json +17 -0
- package/butterfly-resources/bfy_ai_tasks/twig-code-to-diagram/output_format.json +9 -0
- package/butterfly-resources/bfy_ai_tasks/twig-code-to-diagram/prompt.bfy +3 -0
- package/butterfly-resources/bfy_ai_tasks/twig-code-to-diagram/task.json +21 -0
- package/butterfly-resources/bfy_ai_tasks/update-theme-settings/action_code.bfy +208 -0
- package/butterfly-resources/bfy_ai_tasks/update-theme-settings/action_preview_code.bfy +211 -0
- package/butterfly-resources/bfy_ai_tasks/update-theme-settings/initial_code.bfy +101 -0
- package/butterfly-resources/bfy_ai_tasks/update-theme-settings/output_format.json +17 -0
- package/butterfly-resources/bfy_ai_tasks/update-theme-settings/prompt.bfy +13 -0
- package/butterfly-resources/bfy_ai_tasks/update-theme-settings/system_message.bfy +25 -0
- package/butterfly-resources/bfy_ai_tasks/update-theme-settings/task.json +17 -0
- package/butterfly-resources/bfy_ai_tasks/whatsapp-integration/action_code.bfy +20 -0
- package/butterfly-resources/bfy_ai_tasks/whatsapp-integration/action_preview_code.bfy +127 -0
- package/butterfly-resources/bfy_ai_tasks/whatsapp-integration/output_format.json +6 -0
- package/butterfly-resources/bfy_ai_tasks/whatsapp-integration/prompt.bfy +17 -0
- package/butterfly-resources/bfy_ai_tasks/whatsapp-integration/system_message.bfy +84 -0
- package/butterfly-resources/bfy_ai_tasks/whatsapp-integration/task.json +18 -0
- package/butterfly-resources/objects/butterfly/api_collections/api_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/api_collections/created_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/api_collections/description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/api_collections/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/api_collections/object.json +41 -0
- package/butterfly-resources/objects/butterfly/api_collections/updated_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/api_requests/api_collection_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/api_requests/body/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/api_requests/body_type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/api_requests/description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/api_requests/disable_ssl_verification/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/api_requests/follow_redirects/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/api_requests/form_data/configuration.yaml +5 -0
- package/butterfly-resources/objects/butterfly/api_requests/form_data/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/api_requests/headers/configuration.yaml +5 -0
- package/butterfly-resources/objects/butterfly/api_requests/headers/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/api_requests/method/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/api_requests/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/api_requests/object.json +41 -0
- package/butterfly-resources/objects/butterfly/api_requests/url/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/api_requests/url_parameters/configuration.yaml +5 -0
- package/butterfly-resources/objects/butterfly/api_requests/url_parameters/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/api_workspaces/description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/api_workspaces/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/api_workspaces/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_chat_messages/bfy_ai_chat_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_chat_messages/created_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_chat_messages/message/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_chat_messages/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_chat_messages/role/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_chats/bfy_ai_task_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_chats/created_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_chats/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_chats/remote_user_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_chats/title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_chats/user_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_contexts/context/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_contexts/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_contexts/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_contexts/system_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_logs/ai_alias/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_logs/bfy_ai_task_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_logs/created_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_logs/duration_in_ms/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_logs/input_token/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_logs/model/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_logs/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_logs/output_token/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_logs/request/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_logs/response/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_models/api_version/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_models/integration_class_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_models/integration_model/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_models/max_tokens/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_models/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_models/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_models/temperature/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_tasks/action_code/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_tasks/action_preview_code/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_tasks/bfy_ai_log_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_tasks/bfy_ai_model_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_tasks/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_tasks/code_language/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_tasks/has_action/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_tasks/include_chat_history/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_tasks/initial_code/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_tasks/is_bfy/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_tasks/multiple_sub_tasks/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_tasks/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_tasks/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_tasks/output_format/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_tasks/parent_bfy_ai_task_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_tasks/prompt/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_tasks/response_type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_tasks/system_message/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_tasks/system_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_tasks/task_folder_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_tasks/task_structure/code.bfy +77 -0
- package/butterfly-resources/objects/butterfly/bfy_ai_tasks/task_structure/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/bfy_captcha_required_actions/ip_address/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_captcha_required_actions/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_captcha_required_actions/object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_captcha_required_actions/release_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_cronjobs/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_cronjobs/code/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_cronjobs/description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_cronjobs/group_tag/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_cronjobs/last_executed_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_cronjobs/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_cronjobs/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_cronjobs/process_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_cronjobs/running_interval/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_data_import_profiles/code/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_data_import_profiles/error_when_not_found/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_data_import_profiles/example_file/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_data_import_profiles/excel_format_data/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_data_import_profiles/field_mapping/configuration.yaml +4 -0
- package/butterfly-resources/objects/butterfly/bfy_data_import_profiles/field_mapping/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/bfy_data_import_profiles/identifier_fields/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_data_import_profiles/ignore_fields/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_data_import_profiles/ignore_if_exist/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_data_import_profiles/insert_new_rows/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_data_import_profiles/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_data_import_profiles/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_data_import_profiles/object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_data_import_profiles/update_existing_rows/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_embedding_models/dimensions/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_embedding_models/distance/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_embedding_models/input_type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_embedding_models/integration_class_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_embedding_models/integration_model/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_embedding_models/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_embedding_models/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_folders/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_folders/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_folders/parent_bfy_folder_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_languages/iso_code/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_languages/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_languages/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_languages/translations/processing_code.bfy +22 -0
- package/butterfly-resources/objects/butterfly/bfy_languages/translations/spec.json +34 -0
- package/butterfly-resources/objects/butterfly/bfy_languages/translations/template_code.bfy +242 -0
- package/butterfly-resources/objects/butterfly/bfy_module_relations/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_module_relations/cms_module_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_module_relations/created_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_module_relations/item_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_module_relations/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_module_relations/object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_report_config/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_report_config/object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_report_config/status/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_report_config/threshold/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_action_specs/bfy_sm_action_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_action_specs/column_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_action_specs/default_value/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_action_specs/manipulation_type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_action_specs/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_action_specs/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_action_specs/required/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_action_specs/type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_action_specs/val_1/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_action_specs/val_2/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_action_specs/val_3/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_action_specs/val_4/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_action_specs/val_5/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_action_specs/validation_type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_actions/bfy_state_machine_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_actions/code/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_actions/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_actions/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_actions/running_order/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_transition_actions/action_type/code.js +4 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_transition_actions/action_type/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_transition_actions/bfy_sm_action_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_transition_actions/bfy_sm_transition_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_transition_actions/bfy_workflow_id/code.js +3 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_transition_actions/bfy_workflow_id/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_transition_actions/bfy_workflow_node_alias/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_sm_transition_actions/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_roles/bfy_state_machine_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_roles/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_roles/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_roles/validation_code/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_states/bfy_state_machine_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_states/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_states/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_states/system_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transition_specs/bfy_state_machine_transition_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transition_specs/column_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transition_specs/default_value/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transition_specs/manipulation_type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transition_specs/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transition_specs/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transition_specs/required/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transition_specs/type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transition_specs/val_1/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transition_specs/val_2/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transition_specs/val_3/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transition_specs/val_4/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transition_specs/val_5/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transition_specs/validation_type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transitions/action_code/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transitions/bfy_state_machine_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transitions/bfy_state_machine_role_ids/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transitions/button_title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transitions/description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transitions/from_bfy_state_machine_state_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transitions/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transitions/to_bfy_state_machine_state_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transitions/transition_system_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machine_transitions/validation_code/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machines/bfy_state_machine_state_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machines/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machines/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_state_machines/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_templates/bfy_folder_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_templates/code/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_templates/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_templates/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_templates/system_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_templates/updated_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_translation_texts/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_translation_texts/source/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_translations/bfy_language_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_translations/bfy_translation_text_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_translations/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_translations/text/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_user_devices/city/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_user_devices/country/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_user_devices/device_hash/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_user_devices/first_seen/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_user_devices/ip_address/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_user_devices/is_trusted/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_user_devices/last_seen/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_user_devices/location/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_user_devices/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_user_devices/user_agent/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_user_devices/user_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_connections/bfy_workflow_version_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_connections/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_connections/source_bfy_workflow_node_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_connections/source_point/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_connections/target_bfy_workflow_node_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_connections/target_point/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_email_attachments/bfy_workflow_node_context_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_email_attachments/cms_file_upload_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_email_attachments/created_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_email_attachments/file_path/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_email_attachments/file_size/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_email_attachments/filename/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_email_attachments/mime_type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_email_attachments/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_email_attachments/stored_filename/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_execution_branches/bfy_workflow_execution_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_execution_branches/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_execution_branches/parent_bfy_workflow_execution_branch_ids/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_execution_steps/bfy_workflow_execution_branch_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_execution_steps/bfy_workflow_execution_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_execution_steps/context/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_execution_steps/duration_in_ms/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_execution_steps/error_message/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_execution_steps/finished_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_execution_steps/input/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_execution_steps/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_execution_steps/scheduled_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_execution_steps/source_bfy_workflow_node_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_execution_steps/started_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_execution_steps/status/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_execution_steps/target_bfy_workflow_node_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_executions/bfy_workflow_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_executions/bfy_workflow_node_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_executions/bfy_workflow_version_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_executions/executed_node_count/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_executions/finished_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_executions/finished_node_count/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_executions/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_executions/started_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_executions/status/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_node_contexts/bfy_workflow_execution_step_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_node_contexts/bfy_workflow_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_node_contexts/bfy_workflow_node_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_node_contexts/context_data/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_node_contexts/context_type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_node_contexts/created_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_node_contexts/error_message/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_node_contexts/external_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_node_contexts/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_node_contexts/processed_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_node_contexts/status/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_nodes/bfy_workflow_id/code.js +11 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_nodes/bfy_workflow_id/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_nodes/bfy_workflow_version_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_nodes/connections/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_nodes/hash/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_nodes/latest_executions/code.bfy +1 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_nodes/latest_executions/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_nodes/node_group_class_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_nodes/node_identifier_key/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_nodes/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_nodes/params/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_nodes/pinned_data/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_nodes/position_x/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_nodes/position_y/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_nodes/system_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_nodes/title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_versions/bfy_workflow_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_versions/created_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_versions/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_versions/published_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_versions/status/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflow_versions/version_number/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflows/bfy_workflow_node_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflows/bfy_workflow_version_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflows/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workflows/object.json +41 -0
- package/butterfly-resources/objects/butterfly/bfy_workspaces/alias/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workspaces/cms_report_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workspaces/hash/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workspaces/menu_color/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workspaces/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/bfy_workspaces/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_admin_favorites/cms_admin_menu_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_admin_favorites/created_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_admin_favorites/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_admin_favorites/user_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_admin_menus/depth/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_admin_menus/icon/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_admin_menus/link/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_admin_menus/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_admin_menus/object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_admin_menus/parent_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_admin_menus/title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_approve_recipients/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_approve_recipients/conditions/configuration.yaml +10 -0
- package/butterfly-resources/objects/butterfly/cms_approve_recipients/conditions/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/cms_approve_recipients/has_conditions/code.js +4 -0
- package/butterfly-resources/objects/butterfly/cms_approve_recipients/has_conditions/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/cms_approve_recipients/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_approve_recipients/object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_approve_recipients/user_ids/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_approve_recipients/usergroup_ids/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_block_parameters/cms_block_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_block_parameters/column_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_block_parameters/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_block_parameters/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_block_parameters/parameters/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_block_parameters/type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_blocks/alias/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_blocks/class_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_blocks/description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_blocks/module/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_blocks/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_blocks/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_blocks/status/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_cache/cache_key/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_cache/created_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_cache/expire/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_cache/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_cache/value/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_data_import/bfy_data_import_profile_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_data_import/content_count/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_data_import/filename/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_data_import/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_data_import/object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_data_import/status/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_design_segments/cms_design_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_design_segments/customer_segment_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_design_segments/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_design_segments/parent_cms_design_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_design_widgets/cache_duration/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_design_widgets/cms_design_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_design_widgets/cms_layout_place_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_design_widgets/cms_widget_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_design_widgets/cms_widget_profile_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_design_widgets/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_design_widgets/params/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_design_widgets/status/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_design_widgets/title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_design_widgets/use_cache/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_designs/alias/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_designs/background_color/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_designs/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_designs/class/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_designs/cms_layout_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_designs/is_draft/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_designs/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_designs/page_description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_designs/page_keywords/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_designs/page_title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_designs/parent_cms_design_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_designs/release_note/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_designs/schema_type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_designs/segmentation/configuration.yaml +12 -0
- package/butterfly-resources/objects/butterfly/cms_designs/segmentation/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/cms_designs/social_description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_designs/social_image/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_designs/social_title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_designs/title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_designs/updated_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_designs/utag_additional_data/configuration.yaml +6 -0
- package/butterfly-resources/objects/butterfly/cms_designs/utag_additional_data/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/cms_designs/utag_channel/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_designs/utag_page_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_designs/utag_page_type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_devices/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_devices/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_devices/parent_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_devices/status/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_devices/user_agent/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_email_templates/alias/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_email_templates/bfy_state_machine_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_email_templates/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_email_templates/content/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_email_templates/description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_email_templates/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_email_templates/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_email_templates/subject/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/azure_config/configuration.yaml +13 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/azure_config/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/base_folder/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/base_url/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/disable/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/ftp_config/configuration.yaml +15 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/ftp_config/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/google_cloud_config/configuration.yaml +10 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/google_cloud_config/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/integration_type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/medianova_config/configuration.yaml +32 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/medianova_config/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/other_config/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/overwrite_strategy/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/restrict_min/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/s3_config/configuration.yaml +23 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/s3_config/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/sanitize_filename/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/sftp_config/configuration.yaml +20 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/sftp_config/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/cms_file_storages/sub_folder_format/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_file_uploads/alias/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_file_uploads/cms_file_storage_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_file_uploads/extensions/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_file_uploads/max_filesize/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_file_uploads/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_file_uploads/path/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_image_cache/alias/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_image_cache/created_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_image_cache/duration/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_image_cache/file_type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_image_cache/filename/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_image_cache/height/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_image_cache/is_optimized/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_image_cache/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_image_cache/started_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_image_cache/width/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_image_uploads/alias/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_image_uploads/cms_file_storage_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_image_uploads/detect_faces/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_image_uploads/fill_color/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_image_uploads/has_archive/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_image_uploads/height/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_image_uploads/image_quality/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_image_uploads/image_size_limit/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_image_uploads/is_webp_enabled/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_image_uploads/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_image_uploads/operation/code.js +1 -0
- package/butterfly-resources/objects/butterfly/cms_image_uploads/operation/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/cms_image_uploads/others/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_image_uploads/path/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_image_uploads/title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_image_uploads/width/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_layout_places/alias/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_layout_places/cms_layout_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_layout_places/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_layout_places/title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_layout_places/width/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_layouts/code/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_layouts/filename/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_layouts/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_layouts/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_logs/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_logs/context/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_logs/created_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_logs/level_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_logs/message/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_logs/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_modules/author/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_modules/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_modules/current_version/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_modules/description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_modules/marketplace_module_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_modules/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_modules/namespace/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_modules/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_object_generator/database_alias/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_object_generator/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_object_generator/table_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_object_indexes/is_unique/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_object_indexes/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_object_indexes/object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_object_indexes/object_specs/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_object_locks/created_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_object_locks/entity_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_object_locks/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_object_locks/object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_object_locks/session_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_object_locks/user_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_object_page_tabs/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_object_page_tabs/object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_object_page_tabs/title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_object_pivots/column_grouping/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_object_pivots/column_object_spec_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_object_pivots/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_object_pivots/object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_object_pivots/row_grouping/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_object_pivots/row_object_spec_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_object_pivots/value_object_spec_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_object_pivots/value_type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_object_subpages/cms_design_item_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_object_subpages/link_format/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_object_subpages/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_object_subpages/object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_permission_exceptions/condition_value/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_permission_exceptions/default_value/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_permission_exceptions/description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_permission_exceptions/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_permission_exceptions/object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_permission_exceptions/object_spec_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_permission_exceptions/object_specs/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_permission_exceptions/permission_type/code.js +5 -0
- package/butterfly-resources/objects/butterfly/cms_permission_exceptions/permission_type/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/cms_permission_exceptions/restriction_condition/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_permission_exceptions/restriction_type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_permission_exceptions/usergroup_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_permission_groups/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_permission_groups/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_permission_groups/system_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_permissions/cms_permission_group_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_permissions/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_permissions/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_permissions/system_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_report_categories/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_report_categories/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_report_queries/cms_report_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_report_queries/column_size/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_report_queries/js_code/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_report_queries/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_report_queries/query/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_report_queries/show_title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_report_queries/system_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_report_queries/title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_report_specs/cms_report_id/code.js +3 -0
- package/butterfly-resources/objects/butterfly/cms_report_specs/cms_report_id/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/cms_report_specs/column_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_report_specs/default_value/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_report_specs/description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_report_specs/height/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_report_specs/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_report_specs/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_report_specs/required/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_report_specs/type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_report_specs/val_1/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_report_specs/val_2/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_report_specs/val_3/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_report_specs/val_4/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_report_specs/val_5/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_report_specs/width/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_reports/alias/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_reports/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_reports/cache_duration/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_reports/cms_report_category_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_reports/description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_reports/detail_query/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_reports/hide_in_list/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_reports/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_reports/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_reports/object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_reports/others/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_reports/permission_level/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_reports/query/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_reports/report_permission/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_reports/title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_reports/type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_search_synonyms/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_search_synonyms/source_phrases/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_search_synonyms/status/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_search_synonyms/target_phrase/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_setting_groups/alias/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_setting_groups/allow_api_access/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_setting_groups/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_setting_groups/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_setting_groups/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_settings/alias/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_settings/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_settings/cms_setting_group_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_settings/css_code/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_settings/description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_settings/js_code/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_settings/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_settings/title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_settings/type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_settings/val_1/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_settings/val_2/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_settings/val_3/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_settings/val_4/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_settings/val_5/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_settings/value/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_sms_templates/alias/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_sms_templates/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_sms_templates/content/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_sms_templates/integration/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_sms_templates/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_sms_templates/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_user_auth_keys/attestation_format/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_user_auth_keys/auth_key/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_user_auth_keys/auth_type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_user_auth_keys/created_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_user_auth_keys/credential_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_user_auth_keys/last_used_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_user_auth_keys/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_user_auth_keys/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_user_auth_keys/origin_hostname/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_user_auth_keys/public_key/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_user_auth_keys/sign_count/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_user_auth_keys/transports/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_user_auth_keys/user_email/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_user_auth_keys/user_handle/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_user_auth_keys/user_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_videos/notes/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_videos/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_videos/title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_videos/video/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widget_categories/class_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widget_categories/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widget_categories/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_widget_categories/owner_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widget_profiles/cms_widget_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widget_profiles/custom_code/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widget_profiles/has_custom_code/code.js +4 -0
- package/butterfly-resources/objects/butterfly/cms_widget_profiles/has_custom_code/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/cms_widget_profiles/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widget_profiles/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_widget_profiles/params/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widget_specs/cms_widget_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widget_specs/column_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widget_specs/default_value/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widget_specs/description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widget_specs/manipulation_type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widget_specs/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widget_specs/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_widget_specs/type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widget_specs/val_1/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widget_specs/val_2/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widget_specs/val_3/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widget_specs/val_4/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widget_specs/val_5/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widget_specs/validation_type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widgets/Description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widgets/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widgets/class_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widgets/cms_widget_category_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widgets/content_pool_count/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widgets/image/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widgets/is_online/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widgets/is_system/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widgets/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/cms_widgets/object.json +41 -0
- package/butterfly-resources/objects/butterfly/cms_widgets/system_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/content_pools/aggregations/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/content_pools/alias/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/content_pools/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/content_pools/date_interval/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/content_pools/fields/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/content_pools/get_by_info_item_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/content_pools/has_rss/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/content_pools/image/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/content_pools/is_prior/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/content_pools/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/content_pools/object.json +41 -0
- package/butterfly-resources/objects/butterfly/content_pools/object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/content_pools/offset/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/content_pools/order_by/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/content_pools/page_size/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/content_pools/pin_items/code.js +4 -0
- package/butterfly-resources/objects/butterfly/content_pools/pin_items/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/content_pools/pinned_items/configuration.yaml +9 -0
- package/butterfly-resources/objects/butterfly/content_pools/pinned_items/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/content_pools/query_string/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/content_pools/rss_title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/content_pools/search_phrase/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/content_pools/size/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/content_pools/sort_by_field/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/content_pools/sort_by_field_order/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/content_pools/title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/content_pools/type/code.js +5 -0
- package/butterfly-resources/objects/butterfly/content_pools/type/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/customer_segments/conditions/configuration.yaml +14 -0
- package/butterfly-resources/objects/butterfly/customer_segments/conditions/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/customer_segments/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/customer_segments/object.json +41 -0
- package/butterfly-resources/objects/butterfly/customer_segments/slug/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/draft_items/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/draft_items/changes/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/draft_items/column_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/draft_items/created_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/draft_items/entity_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/draft_items/object.json +41 -0
- package/butterfly-resources/objects/butterfly/draft_items/object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/draft_items/published/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/draft_items/published_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/draft_items/published_by/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/draft_items/reason/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/draft_items/reverted_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/draft_items/reverted_by/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/draft_items/status/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/draft_items/user_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/item_relations/description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/item_relations/item_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/item_relations/object.json +41 -0
- package/butterfly-resources/objects/butterfly/item_relations/related_item_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/item_relations/weight/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/item_stats/comment_count/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/item_stats/hit/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/item_stats/hit_2_days/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/item_stats/hit_today/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/item_stats/item_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/item_stats/like_count/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/item_stats/object.json +41 -0
- package/butterfly-resources/objects/butterfly/item_stats/rating/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/item_stats/rating_count/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/item_stats_daily/comment_count/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/item_stats_daily/date/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/item_stats_daily/hit/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/item_stats_daily/item_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/item_stats_daily/like_count/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/item_stats_daily/object.json +41 -0
- package/butterfly-resources/objects/butterfly/item_subpages/cms_design_item_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/item_subpages/cms_object_subpage_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/item_subpages/main_item_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/item_subpages/object.json +41 -0
- package/butterfly-resources/objects/butterfly/item_subpages/sub_seo/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/item_subpages/update_status/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/items/created_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/items/entity_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/items/expiry_date/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/items/image/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/items/label/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/items/object.json +41 -0
- package/butterfly-resources/objects/butterfly/items/release_date/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/items/seo/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/items/status/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/items/title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/items/type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/items/updated_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/language_settings/image/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/language_settings/lang_key/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/language_settings/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/language_settings/object.json +41 -0
- package/butterfly-resources/objects/butterfly/media_library/alias/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/media_library/dimensions/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/media_library/filename/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/media_library/object.json +41 -0
- package/butterfly-resources/objects/butterfly/media_library/tags/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/notifications/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/notifications/created_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/notifications/is_notified/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/notifications/message/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/notifications/object.json +41 -0
- package/butterfly-resources/objects/butterfly/notifications/read_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/notifications/sender_email/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/notifications/sender_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/notifications/sender_user_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/notifications/title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/notifications/user_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_logs/action_type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_logs/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_logs/changed_data/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_logs/created_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_logs/device_hash/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_logs/entity_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_logs/ip_address/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_logs/item_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_logs/location/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_logs/notes/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_logs/object.json +41 -0
- package/butterfly-resources/objects/butterfly/object_logs/object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_logs/user_agent/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_logs/user_email/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_logs/user_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_permissions/add_permission/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_permissions/approve_permission/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_permissions/delete_permission/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_permissions/description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_permissions/edit_permission/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_permissions/object.json +41 -0
- package/butterfly-resources/objects/butterfly/object_permissions/object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_permissions/object_spec_ids/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_permissions/usergroup_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_permissions/view_permission/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_relations/child_object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_relations/description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_relations/display_after/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_relations/display_column/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_relations/has_ordering/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_relations/item_count/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_relations/multiple_image_upload_spec_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_relations/object.json +41 -0
- package/butterfly-resources/objects/butterfly/object_relations/parent_object_id/code.js +4 -0
- package/butterfly-resources/objects/butterfly/object_relations/parent_object_id/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/object_relations/relation_type/code.js +4 -0
- package/butterfly-resources/objects/butterfly/object_relations/relation_type/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/object_relations/table_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_sections/object.json +41 -0
- package/butterfly-resources/objects/butterfly/object_sections/object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_sections/slug/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_sections/title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_spec_permissions/object.json +41 -0
- package/butterfly-resources/objects/butterfly/object_spec_permissions/object_permission_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_spec_permissions/object_spec_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/column_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/column_size/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/css_code/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/default_value/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/edit_order_no/code.js +3 -0
- package/butterfly-resources/objects/butterfly/object_specs/edit_order_no/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/object_specs/edit_place_no/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/edit_position/code.js +3 -0
- package/butterfly-resources/objects/butterfly/object_specs/edit_position/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/object_specs/explicit_column/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/height/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/index_detailed/code.js +3 -0
- package/butterfly-resources/objects/butterfly/object_specs/index_detailed/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/object_specs/index_detailed_fields/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/is_displayed_in_filter/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/is_readonly/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/is_sensitive/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/js_code/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/list_column/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/list_order_no/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/manipulation_type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/object.json +41 -0
- package/butterfly-resources/objects/butterfly/object_specs/object_id/code.js +3 -0
- package/butterfly-resources/objects/butterfly/object_specs/object_id/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/object_specs/required/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/search_column/code.js +3 -0
- package/butterfly-resources/objects/butterfly/object_specs/search_column/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/object_specs/section_title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/val_1/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/val_2/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/val_3/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/val_4/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/val_5/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/validation_type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_specs/width/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_tabs/object.json +41 -0
- package/butterfly-resources/objects/butterfly/object_tabs/object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_tabs/object_section_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_tabs/position/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_tabs/title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_views/displayed_column_names/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_views/filters/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_views/group_by_column_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_views/listing_query/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_views/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_views/object.json +41 -0
- package/butterfly-resources/objects/butterfly/object_views/object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_views/system_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/object_views/view_type/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/add_last_order/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/auto_increment_column_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/bfy_embedding_model_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/cms_design_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/cms_design_rule/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/database_alias/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/explicit_columns/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/has_change_notes/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/has_draft/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/has_item/code.js +4 -0
- package/butterfly-resources/objects/butterfly/objects/has_item/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/objects/has_order/code.js +4 -0
- package/butterfly-resources/objects/butterfly/objects/has_order/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/objects/has_trash/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/hide_object_section_relations/code.js +7 -0
- package/butterfly-resources/objects/butterfly/objects/hide_object_section_relations/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/objects/hierarchy_object_spec_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/include_in_sitemap/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/is_cms_object/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/is_workspace_specific/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/label/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/left_column_size/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/listing_query/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/main_menu_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/main_object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/menu_id/code.js +3 -0
- package/butterfly-resources/objects/butterfly/objects/menu_id/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/objects/meta_description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/meta_title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/object.json +41 -0
- package/butterfly-resources/objects/butterfly/objects/object_section_relation_tables/code.js +3 -0
- package/butterfly-resources/objects/butterfly/objects/object_section_relation_tables/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/objects/ordering_column_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/protect_schema/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/remove_database_alias_from_url/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/section_title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/seo/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/sub_menu_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/table_name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/objects/title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/pages/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/pages/content_pool_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/pages/create_design/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/pages/dont_autorefresh/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/pages/link/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/pages/meta_description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/pages/meta_title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/pages/object.json +41 -0
- package/butterfly-resources/objects/butterfly/pages/page_code/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/pages/status/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/redirect_map/created_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/redirect_map/is_fixed/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/redirect_map/is_tracked/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/redirect_map/object.json +41 -0
- package/butterfly-resources/objects/butterfly/redirect_map/redirect_item_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/redirect_map/redirect_to/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/redirect_map/response_code/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/redirect_map/seo_request/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/redirect_map/url/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/trash/created_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/trash/object.json +41 -0
- package/butterfly-resources/objects/butterfly/trash/object_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/trash/parameters/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/trash/user_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/user_auth/api_key/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/user_auth/description/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/user_auth/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/user_auth/object.json +41 -0
- package/butterfly-resources/objects/butterfly/user_auth/password/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/user_auth/user_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/user_auth_sessions/expires_at/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/user_auth_sessions/object.json +41 -0
- package/butterfly-resources/objects/butterfly/user_auth_sessions/session_key/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/user_auth_sessions/user_auth_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/usergroups/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/usergroups/cms_permissions/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/usergroups/cms_report_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/usergroups/object.json +41 -0
- package/butterfly-resources/objects/butterfly/usergroups/title/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/about/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/additional_dashboard_ids/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/api_access/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/bfy_language_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/bfy_workspace_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/cms_report_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/email/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/enable_ip_whitelist/code.js +4 -0
- package/butterfly-resources/objects/butterfly/users/enable_ip_whitelist/spec.json +35 -0
- package/butterfly-resources/objects/butterfly/users/id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/ip_whitelist/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/is_developer/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/last_login_date/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/last_login_ip/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/name/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/object.json +41 -0
- package/butterfly-resources/objects/butterfly/users/password/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/phone_number/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/reset_password_email_code/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/reset_password_expiry_date/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/reset_password_request_count/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/reset_password_sms_code/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/role_id/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/seo/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/status/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/usergroup_ids/spec.json +36 -0
- package/butterfly-resources/objects/butterfly/users/username/spec.json +36 -0
- package/butterfly-resources/objects/default/customer_communications/communication_date/spec.json +36 -0
- package/butterfly-resources/objects/default/customer_communications/communication_type/spec.json +36 -0
- package/butterfly-resources/objects/default/customer_communications/customer_id/spec.json +36 -0
- package/butterfly-resources/objects/default/customer_communications/notes/spec.json +36 -0
- package/butterfly-resources/objects/default/customer_communications/object.json +41 -0
- package/butterfly-resources/objects/default/customer_communications/subject/spec.json +36 -0
- package/butterfly-resources/objects/default/customer_communications/user_id/spec.json +36 -0
- package/butterfly-resources/objects/default/customers/address/spec.json +36 -0
- package/butterfly-resources/objects/default/customers/company/spec.json +36 -0
- package/butterfly-resources/objects/default/customers/created_at/spec.json +36 -0
- package/butterfly-resources/objects/default/customers/email/spec.json +36 -0
- package/butterfly-resources/objects/default/customers/first_name/spec.json +36 -0
- package/butterfly-resources/objects/default/customers/last_name/spec.json +36 -0
- package/butterfly-resources/objects/default/customers/object.json +41 -0
- package/butterfly-resources/objects/default/customers/phone/spec.json +36 -0
- package/butterfly-resources/objects/default/customers/project_count/code.bfy +1 -0
- package/butterfly-resources/objects/default/customers/project_count/spec.json +35 -0
- package/butterfly-resources/objects/default/customers/status/spec.json +36 -0
- package/butterfly-resources/objects/default/customers/tax_number/spec.json +36 -0
- package/butterfly-resources/objects/default/customers/tax_office/spec.json +36 -0
- package/butterfly-resources/objects/default/project_payments/amount/spec.json +36 -0
- package/butterfly-resources/objects/default/project_payments/description/spec.json +36 -0
- package/butterfly-resources/objects/default/project_payments/object.json +41 -0
- package/butterfly-resources/objects/default/project_payments/payment_date/spec.json +36 -0
- package/butterfly-resources/objects/default/project_payments/payment_method/spec.json +36 -0
- package/butterfly-resources/objects/default/project_payments/project_id/spec.json +36 -0
- package/butterfly-resources/objects/default/project_payments/status/spec.json +36 -0
- package/butterfly-resources/objects/default/project_tasks/completion_percentage/spec.json +36 -0
- package/butterfly-resources/objects/default/project_tasks/description/spec.json +36 -0
- package/butterfly-resources/objects/default/project_tasks/end_date/spec.json +36 -0
- package/butterfly-resources/objects/default/project_tasks/object.json +41 -0
- package/butterfly-resources/objects/default/project_tasks/project_id/spec.json +36 -0
- package/butterfly-resources/objects/default/project_tasks/responsible_user/spec.json +36 -0
- package/butterfly-resources/objects/default/project_tasks/start_date/spec.json +36 -0
- package/butterfly-resources/objects/default/project_tasks/status/spec.json +36 -0
- package/butterfly-resources/objects/default/project_tasks/task_name/spec.json +36 -0
- package/butterfly-resources/objects/default/projects/actual_cost/spec.json +36 -0
- package/butterfly-resources/objects/default/projects/customer_id/spec.json +36 -0
- package/butterfly-resources/objects/default/projects/description/spec.json +36 -0
- package/butterfly-resources/objects/default/projects/end_date/spec.json +36 -0
- package/butterfly-resources/objects/default/projects/estimated_budget/spec.json +36 -0
- package/butterfly-resources/objects/default/projects/object.json +41 -0
- package/butterfly-resources/objects/default/projects/priority/spec.json +36 -0
- package/butterfly-resources/objects/default/projects/project_name/spec.json +36 -0
- package/butterfly-resources/objects/default/projects/start_date/spec.json +36 -0
- package/butterfly-resources/objects/default/projects/status/spec.json +36 -0
- package/butterfly-resources/objects/default/projects/task_summary/code.bfy +1 -0
- package/butterfly-resources/objects/default/projects/task_summary/spec.json +35 -0
- package/butterfly-resources/objects/default/ticket_attachments/file_name/spec.json +36 -0
- package/butterfly-resources/objects/default/ticket_attachments/file_path/spec.json +36 -0
- package/butterfly-resources/objects/default/ticket_attachments/object.json +41 -0
- package/butterfly-resources/objects/default/ticket_attachments/ticket_id/spec.json +36 -0
- package/butterfly-resources/objects/default/ticket_attachments/uploaded_at/spec.json +36 -0
- package/butterfly-resources/objects/default/ticket_categories/category_name/spec.json +36 -0
- package/butterfly-resources/objects/default/ticket_categories/description/spec.json +36 -0
- package/butterfly-resources/objects/default/ticket_categories/object.json +41 -0
- package/butterfly-resources/objects/default/ticket_comments/comment/spec.json +36 -0
- package/butterfly-resources/objects/default/ticket_comments/created_at/spec.json +36 -0
- package/butterfly-resources/objects/default/ticket_comments/object.json +41 -0
- package/butterfly-resources/objects/default/ticket_comments/ticket_id/spec.json +36 -0
- package/butterfly-resources/objects/default/ticket_comments/user_id/spec.json +36 -0
- package/butterfly-resources/objects/default/tickets/assigned_user_id/spec.json +36 -0
- package/butterfly-resources/objects/default/tickets/category_id/spec.json +36 -0
- package/butterfly-resources/objects/default/tickets/closed_at/spec.json +36 -0
- package/butterfly-resources/objects/default/tickets/created_at/spec.json +36 -0
- package/butterfly-resources/objects/default/tickets/created_user_id/spec.json +36 -0
- package/butterfly-resources/objects/default/tickets/description/spec.json +36 -0
- package/butterfly-resources/objects/default/tickets/note/spec.json +36 -0
- package/butterfly-resources/objects/default/tickets/object.json +41 -0
- package/butterfly-resources/objects/default/tickets/priority/spec.json +36 -0
- package/butterfly-resources/objects/default/tickets/state/spec.json +36 -0
- package/butterfly-resources/objects/default/tickets/status/spec.json +36 -0
- package/butterfly-resources/objects/default/tickets/title/spec.json +36 -0
- package/butterfly-resources/objects/default/tickets/updated_at/spec.json +36 -0
- package/butterfly-resources/objects/default/user_devices/created_at/spec.json +36 -0
- package/butterfly-resources/objects/default/user_devices/device_token/spec.json +36 -0
- package/butterfly-resources/objects/default/user_devices/device_type/spec.json +36 -0
- package/butterfly-resources/objects/default/user_devices/object.json +41 -0
- package/butterfly-resources/objects/default/user_devices/user_id/spec.json +36 -0
- package/butterfly-resources/objects/default/webservices/custom_seo/spec.json +36 -0
- package/butterfly-resources/objects/default/webservices/method/spec.json +36 -0
- package/butterfly-resources/objects/default/webservices/object.json +41 -0
- package/butterfly-resources/objects/default/webservices/page_code/spec.json +36 -0
- package/butterfly-resources/reports/bogazici-yonetim-as-yonetim-kontrol-paneli/queries/bogazici-yonetim-as-yonetim-kontrol-paneli/query.json +10 -0
- package/butterfly-resources/reports/bogazici-yonetim-as-yonetim-kontrol-paneli/queries/bogazici-yonetim-as-yonetim-kontrol-paneli/query_code.bfy +487 -0
- package/butterfly-resources/reports/bogazici-yonetim-as-yonetim-kontrol-paneli/report.json +18 -0
- package/dist/commands/code.d.ts +11 -0
- package/dist/commands/code.d.ts.map +1 -0
- package/dist/commands/code.js +70 -0
- package/dist/commands/code.js.map +1 -0
- package/dist/commands/create-object.d.ts +6 -0
- package/dist/commands/create-object.d.ts.map +1 -0
- package/dist/commands/create-object.js +293 -0
- package/dist/commands/create-object.js.map +1 -0
- package/dist/commands/create-report.d.ts +6 -0
- package/dist/commands/create-report.d.ts.map +1 -0
- package/dist/commands/create-report.js +154 -0
- package/dist/commands/create-report.js.map +1 -0
- package/dist/commands/diff.d.ts +4 -0
- package/dist/commands/diff.d.ts.map +1 -0
- package/dist/commands/diff.js +237 -0
- package/dist/commands/diff.js.map +1 -0
- package/dist/commands/download.d.ts.map +1 -1
- package/dist/commands/download.js +65 -3
- package/dist/commands/download.js.map +1 -1
- package/dist/commands/layout.d.ts +10 -0
- package/dist/commands/layout.d.ts.map +1 -0
- package/dist/commands/layout.js +81 -0
- package/dist/commands/layout.js.map +1 -0
- package/dist/commands/record.d.ts +19 -0
- package/dist/commands/record.d.ts.map +1 -0
- package/dist/commands/record.js +485 -0
- package/dist/commands/record.js.map +1 -0
- package/dist/commands/run-poc.d.ts +3 -0
- package/dist/commands/run-poc.d.ts.map +1 -0
- package/dist/commands/run-poc.js +18 -0
- package/dist/commands/run-poc.js.map +1 -0
- package/dist/commands/setup.js +1 -1
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/start-poc.d.ts +3 -0
- package/dist/commands/start-poc.d.ts.map +1 -0
- package/dist/commands/start-poc.js +55 -0
- package/dist/commands/start-poc.js.map +1 -0
- package/dist/commands/sync-docs.d.ts +3 -0
- package/dist/commands/sync-docs.d.ts.map +1 -0
- package/dist/commands/sync-docs.js +27 -0
- package/dist/commands/sync-docs.js.map +1 -0
- package/dist/commands/translate.d.ts +13 -0
- package/dist/commands/translate.d.ts.map +1 -0
- package/dist/commands/translate.js +399 -0
- package/dist/commands/translate.js.map +1 -0
- package/dist/commands/upload.d.ts.map +1 -1
- package/dist/commands/upload.js +52 -20
- package/dist/commands/upload.js.map +1 -1
- package/dist/components/ConflictResolver.d.ts +12 -0
- package/dist/components/ConflictResolver.d.ts.map +1 -0
- package/dist/components/ConflictResolver.js +77 -0
- package/dist/components/ConflictResolver.js.map +1 -0
- package/dist/components/DiffView.d.ts +11 -0
- package/dist/components/DiffView.d.ts.map +1 -0
- package/dist/components/DiffView.js +101 -0
- package/dist/components/DiffView.js.map +1 -0
- package/dist/components/RecordPreview.d.ts +11 -0
- package/dist/components/RecordPreview.d.ts.map +1 -0
- package/dist/components/RecordPreview.js +91 -0
- package/dist/components/RecordPreview.js.map +1 -0
- package/dist/components/UploadProgress.d.ts +2 -0
- package/dist/components/UploadProgress.d.ts.map +1 -1
- package/dist/components/UploadProgress.js +35 -22
- package/dist/components/UploadProgress.js.map +1 -1
- package/dist/diff/adapters/index.d.ts +8 -0
- package/dist/diff/adapters/index.d.ts.map +1 -0
- package/dist/diff/adapters/index.js +18 -0
- package/dist/diff/adapters/index.js.map +1 -0
- package/dist/diff/adapters/objectsAdapter.d.ts +13 -0
- package/dist/diff/adapters/objectsAdapter.d.ts.map +1 -0
- package/dist/diff/adapters/objectsAdapter.js +177 -0
- package/dist/diff/adapters/objectsAdapter.js.map +1 -0
- package/dist/diff/adapters/reportsAdapter.d.ts +14 -0
- package/dist/diff/adapters/reportsAdapter.d.ts.map +1 -0
- package/dist/diff/adapters/reportsAdapter.js +212 -0
- package/dist/diff/adapters/reportsAdapter.js.map +1 -0
- package/dist/diff/adapters/types.d.ts +19 -0
- package/dist/diff/adapters/types.d.ts.map +1 -0
- package/dist/diff/adapters/types.js +2 -0
- package/dist/diff/adapters/types.js.map +1 -0
- package/dist/diff/engine.d.ts +19 -0
- package/dist/diff/engine.d.ts.map +1 -0
- package/dist/diff/engine.js +57 -0
- package/dist/diff/engine.js.map +1 -0
- package/dist/diff/types.d.ts +34 -0
- package/dist/diff/types.d.ts.map +1 -0
- package/dist/diff/types.js +110 -0
- package/dist/diff/types.js.map +1 -0
- package/dist/index.js +61 -7
- package/dist/index.js.map +1 -1
- package/dist/utils/api.d.ts +33 -0
- package/dist/utils/api.d.ts.map +1 -1
- package/dist/utils/api.js +253 -0
- package/dist/utils/api.js.map +1 -1
- package/dist/utils/bfySplitter.d.ts +12 -0
- package/dist/utils/bfySplitter.d.ts.map +1 -0
- package/dist/utils/bfySplitter.js +151 -0
- package/dist/utils/bfySplitter.js.map +1 -0
- package/dist/utils/docs.d.ts +14 -0
- package/dist/utils/docs.d.ts.map +1 -1
- package/dist/utils/docs.js +154 -9
- package/dist/utils/docs.js.map +1 -1
- package/dist/utils/files.d.ts.map +1 -1
- package/dist/utils/files.js +68 -28
- package/dist/utils/files.js.map +1 -1
- package/dist/utils/resourceHandlers.d.ts +50 -0
- package/dist/utils/resourceHandlers.d.ts.map +1 -0
- package/dist/utils/resourceHandlers.js +684 -0
- package/dist/utils/resourceHandlers.js.map +1 -0
- package/dist/utils/resourceMapping.d.ts +32 -0
- package/dist/utils/resourceMapping.d.ts.map +1 -0
- package/dist/utils/resourceMapping.js +210 -0
- package/dist/utils/resourceMapping.js.map +1 -0
- package/dist/utils/singleResourceDownload.d.ts +14 -0
- package/dist/utils/singleResourceDownload.d.ts.map +1 -0
- package/dist/utils/singleResourceDownload.js +261 -0
- package/dist/utils/singleResourceDownload.js.map +1 -0
- package/dist/utils/uploadHandler.d.ts +10 -14
- package/dist/utils/uploadHandler.d.ts.map +1 -1
- package/dist/utils/uploadHandler.js +186 -629
- package/dist/utils/uploadHandler.js.map +1 -1
- package/docs/examples/README.md +95 -0
- package/docs/field-types/README.md +29 -0
- package/docs/forge/README.md +199 -0
- package/docs/forge/commands/database/add-database.sh +61 -0
- package/docs/forge/commands/history/provision-150842870.output +1 -0
- package/docs/forge/commands/history/provision-150842870.sh +1 -0
- package/docs/forge/commands/history/provision-150842877.output +4 -0
- package/docs/forge/commands/history/provision-150842877.sh +17 -0
- package/docs/forge/commands/history/provision-150842878.output +4 -0
- package/docs/forge/commands/history/provision-150842878.sh +17 -0
- package/docs/forge/commands/history/provision-150843050.output +1 -0
- package/docs/forge/commands/history/provision-150843050.sh +41 -0
- package/docs/forge/commands/history/provision-150843051.output +0 -0
- package/docs/forge/commands/history/provision-150843051.sh +9 -0
- package/docs/forge/commands/history/provision-150843052.output +0 -0
- package/docs/forge/commands/history/provision-150843052.sh +14 -0
- package/docs/forge/commands/history/provision-150843053.output +1 -0
- package/docs/forge/commands/history/provision-150843053.sh +28 -0
- package/docs/forge/commands/history/provision-150843054.output +1 -0
- package/docs/forge/commands/history/provision-150843054.sh +28 -0
- package/docs/forge/commands/history/provision-150843462.output +0 -0
- package/docs/forge/commands/history/provision-150843462.sh +6 -0
- package/docs/forge/commands/history/provision-150843606.output +0 -0
- package/docs/forge/commands/history/provision-150843606.sh +4 -0
- package/docs/forge/commands/history/provision-150843679.output +1 -0
- package/docs/forge/commands/history/provision-150843679.sh +4 -0
- package/docs/forge/commands/history/provision-150843691.output +0 -0
- package/docs/forge/commands/history/provision-150843691.sh +6 -0
- package/docs/forge/commands/history/provision-150843757.output +1 -0
- package/docs/forge/commands/history/provision-150843757.sh +41 -0
- package/docs/forge/commands/history/provision-150843764.output +309 -0
- package/docs/forge/commands/history/provision-150843764.sh +140 -0
- package/docs/forge/commands/history/provision-150843848.output +1 -0
- package/docs/forge/commands/history/provision-150843848.sh +45 -0
- package/docs/forge/commands/history/provision-150843853.output +0 -0
- package/docs/forge/commands/history/provision-150843853.sh +17 -0
- package/docs/forge/commands/history/provision-150843854.output +1 -0
- package/docs/forge/commands/history/provision-150843854.sh +28 -0
- package/docs/forge/commands/history/provision-150843859.output +0 -0
- package/docs/forge/commands/history/provision-150843859.sh +16 -0
- package/docs/forge/commands/history/provision-150843860.output +1 -0
- package/docs/forge/commands/history/provision-150843860.sh +28 -0
- package/docs/forge/commands/history/provision-150843897.output +303 -0
- package/docs/forge/commands/history/provision-150843897.sh +147 -0
- package/docs/forge/commands/history/provision-150843999.output +100 -0
- package/docs/forge/commands/history/provision-150843999.sh +147 -0
- package/docs/forge/commands/history/provision-150844036.output +1 -0
- package/docs/forge/commands/history/provision-150844036.sh +49 -0
- package/docs/forge/commands/history/provision-150844044.output +0 -0
- package/docs/forge/commands/history/provision-150844044.sh +20 -0
- package/docs/forge/commands/history/provision-150844045.output +1 -0
- package/docs/forge/commands/history/provision-150844045.sh +28 -0
- package/docs/forge/commands/history/provision-150844057.output +0 -0
- package/docs/forge/commands/history/provision-150844057.sh +23 -0
- package/docs/forge/commands/history/provision-150844058.output +1 -0
- package/docs/forge/commands/history/provision-150844058.sh +28 -0
- package/docs/forge/commands/history/provision-150844146.output +3 -0
- package/docs/forge/commands/history/provision-150844146.sh +59 -0
- package/docs/forge/commands/history/provision-150844155.output +5 -0
- package/docs/forge/commands/history/provision-150844155.sh +84 -0
- package/docs/forge/commands/history/provision-150844156.output +4 -0
- package/docs/forge/commands/history/provision-150844156.sh +29 -0
- package/docs/forge/commands/history/provision-150844157.output +2 -0
- package/docs/forge/commands/history/provision-150844157.sh +14 -0
- package/docs/forge/commands/history/provision-150844158.output +1 -0
- package/docs/forge/commands/history/provision-150844158.sh +28 -0
- package/docs/forge/commands/history/provision-150844162.output +5 -0
- package/docs/forge/commands/history/provision-150844162.sh +84 -0
- package/docs/forge/commands/history/provision-150844163.output +3 -0
- package/docs/forge/commands/history/provision-150844163.sh +11 -0
- package/docs/forge/commands/history/provision-150844164.output +1 -0
- package/docs/forge/commands/history/provision-150844164.sh +28 -0
- package/docs/forge/commands/history/provision-150846994.output +2 -0
- package/docs/forge/commands/history/provision-150847463.output +1 -0
- package/docs/forge/commands/history/provision-150847463.sh +28 -0
- package/docs/forge/commands/history/provision-150847513.output +3 -0
- package/docs/forge/commands/history/provision-150847513.sh +11 -0
- package/docs/forge/commands/history/provision-150847514.output +2 -0
- package/docs/forge/commands/history/provision-150847514.sh +9 -0
- package/docs/forge/commands/history/provision-150847515.output +1 -0
- package/docs/forge/commands/history/provision-150847515.sh +28 -0
- package/docs/forge/commands/history/provision-150847541.output +2 -0
- package/docs/forge/commands/history/provision-150847562.output +6 -0
- package/docs/forge/commands/history/provision-150847562.sh +71 -0
- package/docs/forge/commands/history/provision-150847574.output +4 -0
- package/docs/forge/commands/history/provision-150847574.sh +23 -0
- package/docs/forge/commands/history/provision-150847659.output +277 -0
- package/docs/forge/commands/history/provision-150847659.sh +195 -0
- package/docs/forge/commands/history/provision-150847735.output +1 -0
- package/docs/forge/commands/history/provision-150847735.sh +4 -0
- package/docs/forge/commands/history/provision-150847736.output +9 -0
- package/docs/forge/commands/history/provision-150847736.sh +16 -0
- package/docs/forge/commands/history/provision-150848165.output +2 -0
- package/docs/forge/commands/history/provision-150848165.sh +31 -0
- package/docs/forge/commands/history/provision-150848166.output +9 -0
- package/docs/forge/commands/history/provision-150848166.sh +1 -0
- package/docs/forge/commands/history/provision-150848170.output +67 -0
- package/docs/forge/commands/history/provision-150848170.sh +1 -0
- package/docs/forge/commands/history/provision-150848264.output +3 -0
- package/docs/forge/commands/history/provision-150848264.sh +11 -0
- package/docs/forge/commands/history/provision-150848265.output +67 -0
- package/docs/forge/commands/history/provision-150848265.sh +1 -0
- package/docs/forge/commands/history/provision-150848340.output +3 -0
- package/docs/forge/commands/history/provision-150848340.sh +9 -0
- package/docs/forge/commands/history/provision-150848374.output +3 -0
- package/docs/forge/commands/history/provision-150848374.sh +1 -0
- package/docs/forge/commands/history/provision-150848519.output +4 -0
- package/docs/forge/commands/history/provision-150848519.sh +17 -0
- package/docs/forge/commands/history/provision-150848619.output +0 -0
- package/docs/forge/commands/history/provision-150848619.sh +2 -0
- package/docs/forge/commands/nginx/configure-timeout.sh +58 -0
- package/docs/forge/commands/nginx/configure-uploads.sh +60 -0
- package/docs/forge/commands/nginx/restart-services.sh +40 -0
- package/docs/forge/commands/php/add-php.sh +34 -0
- package/docs/forge/commands/php/switch-php.sh +42 -0
- package/docs/forge/commands/scheduler/add-cron.sh +53 -0
- package/docs/forge/commands/system/set-hostname.sh +38 -0
- package/docs/forge/commands/system/set-timezone.sh +63 -0
- package/docs/forge/example-setup-page/setup.html +29 -0
- package/docs/forge/legacy/php82-psql17.sh +814 -0
- package/docs/forge/legacy/php83-mariadb10.sh +853 -0
- package/docs/forge/legacy/php83-mariadb11.sh +853 -0
- package/docs/forge/legacy/php83-mysql.sh +987 -0
- package/docs/forge/legacy/php83.sh +790 -0
- package/docs/forge/legacy/php84-psql16.sh +807 -0
- package/docs/forge/legacy/php84-psql18.sh +807 -0
- package/docs/forge/provision/base/00-init.sh +122 -0
- package/docs/forge/provision/base/01-ssh.sh +140 -0
- package/docs/forge/provision/base/02-swap.sh +59 -0
- package/docs/forge/provision/base/03-packages.sh +193 -0
- package/docs/forge/provision/base/04-sudoers.sh +101 -0
- package/docs/forge/provision/base/05-firewall.sh +53 -0
- package/docs/forge/provision/base/install.sh +34 -0
- package/docs/forge/provision/cache/install-memcached.sh +63 -0
- package/docs/forge/provision/cache/install-redis.sh +91 -0
- package/docs/forge/provision/database/mariadb/install.sh +206 -0
- package/docs/forge/provision/database/mysql/install.sh +224 -0
- package/docs/forge/provision/database/postgresql/install.sh +154 -0
- package/docs/forge/provision/php/install-php82.sh +6 -0
- package/docs/forge/provision/php/install-php83.sh +6 -0
- package/docs/forge/provision/php/install-php84.sh +6 -0
- package/docs/forge/provision/php/install.sh +254 -0
- package/docs/forge/provision/tools/install-nodejs.sh +99 -0
- package/docs/forge/provision/webserver/nginx/install.sh +333 -0
- package/docs/forge/templates/nginx/laravel-site-ssl.conf.template +79 -0
- package/docs/forge/templates/nginx/laravel-site.conf.template +57 -0
- package/docs/forge/templates/php/pool.conf.template +44 -0
- package/docs/object-specs/README.md +136 -0
- package/docs/objects/README.md +89 -0
- package/package.json +1 -1
- package/object_response.png +0 -0
- package/object_specs_response.png +0 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { promises as fs } from 'fs';
|
|
2
|
+
import { join } from 'path';
|
|
3
|
+
import { restoreFieldsFromFiles } from '../../utils/files.js';
|
|
4
|
+
import { compareFields } from '../types.js';
|
|
5
|
+
export class ObjectsAdapter {
|
|
6
|
+
resourceType = 'objects';
|
|
7
|
+
async loadLocal(basePath) {
|
|
8
|
+
const objects = new Map();
|
|
9
|
+
const objectsPath = join(basePath, 'objects');
|
|
10
|
+
let subfolders = [];
|
|
11
|
+
try {
|
|
12
|
+
subfolders = await fs.readdir(objectsPath);
|
|
13
|
+
}
|
|
14
|
+
catch {
|
|
15
|
+
return objects;
|
|
16
|
+
}
|
|
17
|
+
for (const subfolder of subfolders) {
|
|
18
|
+
const subPath = join(objectsPath, subfolder);
|
|
19
|
+
let stat;
|
|
20
|
+
try {
|
|
21
|
+
stat = await fs.stat(subPath);
|
|
22
|
+
}
|
|
23
|
+
catch {
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
if (!stat.isDirectory())
|
|
27
|
+
continue;
|
|
28
|
+
let tables = [];
|
|
29
|
+
try {
|
|
30
|
+
tables = await fs.readdir(subPath);
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
for (const tableName of tables) {
|
|
36
|
+
const tablePath = join(subPath, tableName);
|
|
37
|
+
const objectJsonPath = join(tablePath, 'object.json');
|
|
38
|
+
try {
|
|
39
|
+
const objectContent = await fs.readFile(objectJsonPath, 'utf-8');
|
|
40
|
+
const objectData = JSON.parse(objectContent);
|
|
41
|
+
const restored = await restoreFieldsFromFiles(tablePath, objectData);
|
|
42
|
+
const specs = await this.loadLocalSpecs(tablePath);
|
|
43
|
+
objects.set(restored.id, {
|
|
44
|
+
main: restored,
|
|
45
|
+
children: { specs },
|
|
46
|
+
path: tablePath
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
catch {
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return objects;
|
|
54
|
+
}
|
|
55
|
+
async loadLocalSpecs(tablePath) {
|
|
56
|
+
const specs = [];
|
|
57
|
+
let entries = [];
|
|
58
|
+
try {
|
|
59
|
+
entries = await fs.readdir(tablePath);
|
|
60
|
+
}
|
|
61
|
+
catch {
|
|
62
|
+
return specs;
|
|
63
|
+
}
|
|
64
|
+
for (const entry of entries) {
|
|
65
|
+
if (entry === 'object.json' || entry === 'listing_query.bfy')
|
|
66
|
+
continue;
|
|
67
|
+
const entryPath = join(tablePath, entry);
|
|
68
|
+
let stat;
|
|
69
|
+
try {
|
|
70
|
+
stat = await fs.stat(entryPath);
|
|
71
|
+
}
|
|
72
|
+
catch {
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
if (!stat.isDirectory())
|
|
76
|
+
continue;
|
|
77
|
+
const specJsonPath = join(entryPath, 'spec.json');
|
|
78
|
+
try {
|
|
79
|
+
const specContent = await fs.readFile(specJsonPath, 'utf-8');
|
|
80
|
+
const specData = JSON.parse(specContent);
|
|
81
|
+
const restored = await restoreFieldsFromFiles(entryPath, specData);
|
|
82
|
+
specs.push(restored);
|
|
83
|
+
}
|
|
84
|
+
catch {
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return specs;
|
|
88
|
+
}
|
|
89
|
+
async fetchRemote(api) {
|
|
90
|
+
const objects = new Map();
|
|
91
|
+
const allObjects = await api.fetchTable('objects');
|
|
92
|
+
const allSpecs = await api.fetchTable('object_specs');
|
|
93
|
+
const specsByObjectId = new Map();
|
|
94
|
+
for (const spec of allSpecs) {
|
|
95
|
+
const list = specsByObjectId.get(spec.object_id) || [];
|
|
96
|
+
list.push(spec);
|
|
97
|
+
specsByObjectId.set(spec.object_id, list);
|
|
98
|
+
}
|
|
99
|
+
for (const obj of allObjects) {
|
|
100
|
+
objects.set(obj.id, {
|
|
101
|
+
main: obj,
|
|
102
|
+
children: {
|
|
103
|
+
specs: specsByObjectId.get(obj.id) || []
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
return objects;
|
|
108
|
+
}
|
|
109
|
+
compare(local, remote, localPath) {
|
|
110
|
+
const resourceId = local?.main?.id || remote?.main?.id || 0;
|
|
111
|
+
const resourceName = this.getDisplayName(local?.main || remote?.main || {});
|
|
112
|
+
let status;
|
|
113
|
+
if (!local && remote) {
|
|
114
|
+
status = 'remote_only';
|
|
115
|
+
}
|
|
116
|
+
else if (local && !remote) {
|
|
117
|
+
status = 'local_only';
|
|
118
|
+
}
|
|
119
|
+
else if (local && remote) {
|
|
120
|
+
const fieldDiffs = compareFields(local.main, remote.main);
|
|
121
|
+
status = fieldDiffs.length > 0 ? 'modified' : 'unchanged';
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
status = 'unchanged';
|
|
125
|
+
}
|
|
126
|
+
const fieldDiffs = compareFields(local?.main || null, remote?.main || null);
|
|
127
|
+
const childDiffs = this.compareSpecs(local?.children?.specs || [], remote?.children?.specs || []);
|
|
128
|
+
if (childDiffs.length > 0 && status === 'unchanged') {
|
|
129
|
+
status = 'modified';
|
|
130
|
+
}
|
|
131
|
+
return {
|
|
132
|
+
resourceType: this.resourceType,
|
|
133
|
+
resourceName,
|
|
134
|
+
resourceId,
|
|
135
|
+
localPath: localPath || local?.path,
|
|
136
|
+
status,
|
|
137
|
+
fieldDiffs,
|
|
138
|
+
children: childDiffs
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
compareSpecs(localSpecs, remoteSpecs) {
|
|
142
|
+
const diffs = [];
|
|
143
|
+
const localById = new Map(localSpecs.map(s => [s.id, s]));
|
|
144
|
+
const remoteById = new Map(remoteSpecs.map(s => [s.id, s]));
|
|
145
|
+
const allIds = new Set([...localById.keys(), ...remoteById.keys()]);
|
|
146
|
+
for (const specId of allIds) {
|
|
147
|
+
const localSpec = localById.get(specId);
|
|
148
|
+
const remoteSpec = remoteById.get(specId);
|
|
149
|
+
let status;
|
|
150
|
+
if (!localSpec && remoteSpec) {
|
|
151
|
+
status = 'remote_only';
|
|
152
|
+
}
|
|
153
|
+
else if (localSpec && !remoteSpec) {
|
|
154
|
+
status = 'local_only';
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
const fieldDiffs = compareFields(localSpec, remoteSpec);
|
|
158
|
+
status = fieldDiffs.length > 0 ? 'modified' : 'unchanged';
|
|
159
|
+
}
|
|
160
|
+
if (status !== 'unchanged') {
|
|
161
|
+
const specName = localSpec?.column_name || remoteSpec?.column_name || `spec_${specId}`;
|
|
162
|
+
diffs.push({
|
|
163
|
+
resourceType: 'object_specs',
|
|
164
|
+
resourceName: specName,
|
|
165
|
+
resourceId: specId,
|
|
166
|
+
status,
|
|
167
|
+
fieldDiffs: compareFields(localSpec || null, remoteSpec || null)
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
return diffs;
|
|
172
|
+
}
|
|
173
|
+
getDisplayName(data) {
|
|
174
|
+
return data.table_name || data.name || `object_${data.id}`;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
//# sourceMappingURL=objectsAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objectsAdapter.js","sourceRoot":"","sources":["../../../src/diff/adapters/objectsAdapter.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAgB,aAAa,EAAc,MAAM,aAAa,CAAC;AAEtE,MAAM,OAAO,cAAc;IAChB,YAAY,GAAG,SAAS,CAAC;IAKlC,KAAK,CAAC,SAAS,CAAC,QAAgB;QAC9B,MAAM,OAAO,GAAG,IAAI,GAAG,EAAyB,CAAC;QACjD,MAAM,WAAW,GAAG,IAAI,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;QAG9C,IAAI,UAAU,GAAa,EAAE,CAAC;QAC9B,IAAI,CAAC;YACH,UAAU,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAC7C,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,OAAO,CAAC;QACjB,CAAC;QAED,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;YACnC,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;YAC7C,IAAI,IAAI,CAAC;YACT,IAAI,CAAC;gBACH,IAAI,GAAG,MAAM,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAChC,CAAC;YAAC,MAAM,CAAC;gBACP,SAAS;YACX,CAAC;YACD,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;gBAAE,SAAS;YAGlC,IAAI,MAAM,GAAa,EAAE,CA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AC,MAAM,CAAC,CAAC;YAG1C,IAAI,MAAkB,CAAC;YACvB,IAAI,CAAC,SAAS,IAAI,UAAU,EAAE,CAAC;gBAC7B,MAAM,GAAG,aAAa,CAAC;YACzB,CAAC;iBAAM,IAAI,SAAS,IAAI,CAAC,UAAU,EAAE,CAAC;gBACpC,MAAM,GAAG,YAAY,CAAC;YACxB,CAAC;iBAAM,CAAC;gBACN,MAAM,UAAU,GAAG,aAAa,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;gBACxD,MAAM,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC;YAC5D,CAAC;YAGD,IAAI,MAAM,KAAK,WAAW,EAAE,CAAC;gBAC3B,MAAM,QAAQ,GAAG,SAAS,EAAE,WAAW,IAAI,UAAU,EAAE,WAAW,IAAI,QAAQ,MAAM,EAAE,CAAC;gBACvF,KAAK,CAAC,IAAI,CAAC;oBACT,YAAY,EAAE,cAAc;oBAC5B,YAAY,EAAE,QAAQ;oBACtB,UAAU,EAAE,MAAM;oBAClB,MAAM;oBACN,UAAU,EAAE,aAAa,CAAC,SAAS,IAAI,IAAI,EAAE,UAAU,IAAI,IAAI,CAAC;iBACjE,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAKD,cAAc,CAAC,IAAyB;QACtC,OAAO,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,IAAI,IAAI,UAAU,IAAI,CAAC,EAAE,EAAE,CAAC;IAC7D,CAAC;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ButterflyAPI } from '../../utils/api.js';
|
|
2
|
+
import { ResourceAdapter, LocalResource, RemoteResource } from './types.js';
|
|
3
|
+
import { ResourceDiff } from '../types.js';
|
|
4
|
+
export declare class ReportsAdapter implements ResourceAdapter {
|
|
5
|
+
readonly resourceType = "reports";
|
|
6
|
+
loadLocal(basePath: string): Promise<Map<number, LocalResource>>;
|
|
7
|
+
private loadLocalQueries;
|
|
8
|
+
private loadLocalSpecs;
|
|
9
|
+
fetchRemote(api: ButterflyAPI): Promise<Map<number, RemoteResource>>;
|
|
10
|
+
compare(local: LocalResource | null, remote: RemoteResource | null, localPath?: string): ResourceDiff;
|
|
11
|
+
private compareChildren;
|
|
12
|
+
getDisplayName(data: Record<string, any>): string;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=reportsAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reportsAdapter.d.ts","sourceRoot":"","sources":["../../../src/diff/adapters/reportsAdapter.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5E,OAAO,EAAE,YAAY,EAA6B,MAAM,aAAa,CAAC;AAEtE,qBAAa,cAAe,YAAW,eAAe;IACpD,QAAQ,CAAC,YAAY,aAAa;IAK5B,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;YAuDxD,gBAAgB;YAwChB,cAAc;IAwCtB,WAAW,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAyC1E,OAAO,CACL,KAAK,EAAE,aAAa,GAAG,IAAI,EAC3B,MAAM,EAAE,cAAc,GAAG,IAAI,EAC7B,SAAS,CAAC,EAAE,MAAM,GACjB,YAAY;IAwDf,OAAO,CAAC,eAAe;IA+CvB,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM;CAGlD"}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { promises as fs } from 'fs';
|
|
2
|
+
import { join } from 'path';
|
|
3
|
+
import { restoreFieldsFromFiles } from '../../utils/files.js';
|
|
4
|
+
import { compareFields } from '../types.js';
|
|
5
|
+
export class ReportsAdapter {
|
|
6
|
+
resourceType = 'reports';
|
|
7
|
+
async loadLocal(basePath) {
|
|
8
|
+
const reports = new Map();
|
|
9
|
+
const reportsPath = join(basePath, 'reports');
|
|
10
|
+
let reportFolders = [];
|
|
11
|
+
try {
|
|
12
|
+
reportFolders = await fs.readdir(reportsPath);
|
|
13
|
+
}
|
|
14
|
+
catch {
|
|
15
|
+
return reports;
|
|
16
|
+
}
|
|
17
|
+
for (const folder of reportFolders) {
|
|
18
|
+
if (folder === 'categories.json')
|
|
19
|
+
continue;
|
|
20
|
+
const reportPath = join(reportsPath, folder);
|
|
21
|
+
let stat;
|
|
22
|
+
try {
|
|
23
|
+
stat = await fs.stat(reportPath);
|
|
24
|
+
}
|
|
25
|
+
catch {
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
if (!stat.isDirectory())
|
|
29
|
+
continue;
|
|
30
|
+
const reportJsonPath = join(reportPath, 'report.json');
|
|
31
|
+
try {
|
|
32
|
+
const reportContent = await fs.readFile(reportJsonPath, 'utf-8');
|
|
33
|
+
const reportData = JSON.parse(reportContent);
|
|
34
|
+
const restored = await restoreFieldsFromFiles(reportPath, reportData);
|
|
35
|
+
const queries = await this.loadLocalQueries(reportPath);
|
|
36
|
+
const specs = await this.loadLocalSpecs(reportPath);
|
|
37
|
+
reports.set(restored.id, {
|
|
38
|
+
main: restored,
|
|
39
|
+
children: { queries, specs },
|
|
40
|
+
path: reportPath
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
catch {
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return reports;
|
|
47
|
+
}
|
|
48
|
+
async loadLocalQueries(reportPath) {
|
|
49
|
+
const queries = [];
|
|
50
|
+
const queriesPath = join(reportPath, 'queries');
|
|
51
|
+
let queryFolders = [];
|
|
52
|
+
try {
|
|
53
|
+
queryFolders = await fs.readdir(queriesPath);
|
|
54
|
+
}
|
|
55
|
+
catch {
|
|
56
|
+
return queries;
|
|
57
|
+
}
|
|
58
|
+
for (const folder of queryFolders) {
|
|
59
|
+
const queryPath = join(queriesPath, folder);
|
|
60
|
+
let stat;
|
|
61
|
+
try {
|
|
62
|
+
stat = await fs.stat(queryPath);
|
|
63
|
+
}
|
|
64
|
+
catch {
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
if (!stat.isDirectory())
|
|
68
|
+
continue;
|
|
69
|
+
const queryJsonPath = join(queryPath, 'query.json');
|
|
70
|
+
try {
|
|
71
|
+
const queryContent = await fs.readFile(queryJsonPath, 'utf-8');
|
|
72
|
+
const queryData = JSON.parse(queryContent);
|
|
73
|
+
const restored = await restoreFieldsFromFiles(queryPath, queryData);
|
|
74
|
+
queries.push(restored);
|
|
75
|
+
}
|
|
76
|
+
catch {
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return queries;
|
|
80
|
+
}
|
|
81
|
+
async loadLocalSpecs(reportPath) {
|
|
82
|
+
const specs = [];
|
|
83
|
+
const specsPath = join(reportPath, 'specs');
|
|
84
|
+
let specFolders = [];
|
|
85
|
+
try {
|
|
86
|
+
specFolders = await fs.readdir(specsPath);
|
|
87
|
+
}
|
|
88
|
+
catch {
|
|
89
|
+
return specs;
|
|
90
|
+
}
|
|
91
|
+
for (const folder of specFolders) {
|
|
92
|
+
const specPath = join(specsPath, folder);
|
|
93
|
+
let stat;
|
|
94
|
+
try {
|
|
95
|
+
stat = await fs.stat(specPath);
|
|
96
|
+
}
|
|
97
|
+
catch {
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
if (!stat.isDirectory())
|
|
101
|
+
continue;
|
|
102
|
+
const specJsonPath = join(specPath, 'spec.json');
|
|
103
|
+
try {
|
|
104
|
+
const specContent = await fs.readFile(specJsonPath, 'utf-8');
|
|
105
|
+
const specData = JSON.parse(specContent);
|
|
106
|
+
const restored = await restoreFieldsFromFiles(specPath, specData);
|
|
107
|
+
specs.push(restored);
|
|
108
|
+
}
|
|
109
|
+
catch {
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return specs;
|
|
113
|
+
}
|
|
114
|
+
async fetchRemote(api) {
|
|
115
|
+
const reports = new Map();
|
|
116
|
+
const allReports = await api.fetchTable('cms_reports');
|
|
117
|
+
const allSpecs = await api.fetchTable('cms_report_specs');
|
|
118
|
+
const allQueries = await api.fetchTable('cms_report_queries');
|
|
119
|
+
const specsByReportId = new Map();
|
|
120
|
+
for (const spec of allSpecs) {
|
|
121
|
+
const list = specsByReportId.get(spec.cms_report_id) || [];
|
|
122
|
+
list.push(spec);
|
|
123
|
+
specsByReportId.set(spec.cms_report_id, list);
|
|
124
|
+
}
|
|
125
|
+
const queriesByReportId = new Map();
|
|
126
|
+
for (const query of allQueries) {
|
|
127
|
+
const list = queriesByReportId.get(query.cms_report_id) || [];
|
|
128
|
+
list.push(query);
|
|
129
|
+
queriesByReportId.set(query.cms_report_id, list);
|
|
130
|
+
}
|
|
131
|
+
for (const report of allReports) {
|
|
132
|
+
reports.set(report.id, {
|
|
133
|
+
main: report,
|
|
134
|
+
children: {
|
|
135
|
+
specs: specsByReportId.get(report.id) || [],
|
|
136
|
+
queries: queriesByReportId.get(report.id) || []
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
return reports;
|
|
141
|
+
}
|
|
142
|
+
compare(local, remote, localPath) {
|
|
143
|
+
const resourceId = local?.main?.id || remote?.main?.id || 0;
|
|
144
|
+
const resourceName = this.getDisplayName(local?.main || remote?.main || {});
|
|
145
|
+
let status;
|
|
146
|
+
if (!local && remote) {
|
|
147
|
+
status = 'remote_only';
|
|
148
|
+
}
|
|
149
|
+
else if (local && !remote) {
|
|
150
|
+
status = 'local_only';
|
|
151
|
+
}
|
|
152
|
+
else if (local && remote) {
|
|
153
|
+
const fieldDiffs = compareFields(local.main, remote.main);
|
|
154
|
+
status = fieldDiffs.length > 0 ? 'modified' : 'unchanged';
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
status = 'unchanged';
|
|
158
|
+
}
|
|
159
|
+
const fieldDiffs = compareFields(local?.main || null, remote?.main || null);
|
|
160
|
+
const queryDiffs = this.compareChildren(local?.children?.queries || [], remote?.children?.queries || [], 'cms_report_queries', (q) => q.name || q.system_name || `query_${q.id}`);
|
|
161
|
+
const specDiffs = this.compareChildren(local?.children?.specs || [], remote?.children?.specs || [], 'cms_report_specs', (s) => s.field_name || `spec_${s.id}`);
|
|
162
|
+
const children = [...queryDiffs, ...specDiffs];
|
|
163
|
+
if (children.length > 0 && status === 'unchanged') {
|
|
164
|
+
status = 'modified';
|
|
165
|
+
}
|
|
166
|
+
return {
|
|
167
|
+
resourceType: this.resourceType,
|
|
168
|
+
resourceName,
|
|
169
|
+
resourceId,
|
|
170
|
+
localPath: localPath || local?.path,
|
|
171
|
+
status,
|
|
172
|
+
fieldDiffs,
|
|
173
|
+
children
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
compareChildren(localItems, remoteItems, childType, getDisplayName) {
|
|
177
|
+
const diffs = [];
|
|
178
|
+
const localById = new Map(localItems.map(s => [s.id, s]));
|
|
179
|
+
const remoteById = new Map(remoteItems.map(s => [s.id, s]));
|
|
180
|
+
const allIds = new Set([...localById.keys(), ...remoteById.keys()]);
|
|
181
|
+
for (const itemId of allIds) {
|
|
182
|
+
const localItem = localById.get(itemId);
|
|
183
|
+
const remoteItem = remoteById.get(itemId);
|
|
184
|
+
let status;
|
|
185
|
+
if (!localItem && remoteItem) {
|
|
186
|
+
status = 'remote_only';
|
|
187
|
+
}
|
|
188
|
+
else if (localItem && !remoteItem) {
|
|
189
|
+
status = 'local_only';
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
const fieldDiffs = compareFields(localItem, remoteItem);
|
|
193
|
+
status = fieldDiffs.length > 0 ? 'modified' : 'unchanged';
|
|
194
|
+
}
|
|
195
|
+
if (status !== 'unchanged') {
|
|
196
|
+
const itemName = getDisplayName(localItem || remoteItem);
|
|
197
|
+
diffs.push({
|
|
198
|
+
resourceType: childType,
|
|
199
|
+
resourceName: itemName,
|
|
200
|
+
resourceId: itemId,
|
|
201
|
+
status,
|
|
202
|
+
fieldDiffs: compareFields(localItem || null, remoteItem || null)
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
return diffs;
|
|
207
|
+
}
|
|
208
|
+
getDisplayName(data) {
|
|
209
|
+
return data.alias || data.title || `report_${data.id}`;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
//# sourceMappingURL=reportsAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reportsAdapter.js","sourceRoot":"","sources":["../../../src/diff/adapters/reportsAdapter.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAgB,aAAa,EAAc,MAAM,aAAa,CAAC;AAEtE,MAAM,OAAO,cAAc;IAChB,YAAY,GAAG,SAAS,CAAC;IAKlC,KAAK,CAAC,SAAS,CAAC,QAAgB;QAC9B,MAAM,OAAO,GAAG,IAAI,GAAG,EAAyB,CAAC;QACjD,MAAM,WAAW,GAAG,IAAI,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;QAG9C,IAAI,aAAa,GAAa,EAAE,CAAC;QACjC,IAAI,CAAC;YACH,aAAa,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAChD,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,OAAO,CAAC;QACjB,CAAC;QAED,KAAK,MAAM,MAAM,IAAI,aAAa,EAAE,CAAC;YAEnC,IAAI,MAAM,KAAK,iBAAiB;gBAAE,SAAS;YAE3C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EAAE,UAAU,CAAC,CAAC;gBACxD,MAAM,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC;YAC5D,CAAC;YAGD,IAAI,MAAM,KAAK,WAAW,EAAE,CAAC;gBAC3B,MAAM,QAAQ,GAAG,cAAc,CAAC,SAAS,IAAI,UAAU,CAAC,CAAC;gBACzD,KAAK,CAAC,IAAI,CAAC;oBACT,YAAY,EAAE,SAAS;oBACvB,YAAY,EAAE,QAAQ;oBACtB,UAAU,EAAE,MAAM;oBAClB,MAAM;oBACN,UAAU,EAAE,aAAa,CAAC,SAAS,IAAI,IAAI,EAAE,UAAU,IAAI,IAAI,CAAC;iBACjE,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAKD,cAAc,CAAC,IAAyB;QACtC,OAAO,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,IAAI,UAAU,IAAI,CAAC,EAAE,EAAE,CAAC;IACzD,CAAC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ButterflyAPI } from '../../utils/api.js';
|
|
2
|
+
import { ResourceDiff } from '../types.js';
|
|
3
|
+
export interface LocalResource {
|
|
4
|
+
main: Record<string, any>;
|
|
5
|
+
children: Record<string, any[]>;
|
|
6
|
+
path: string;
|
|
7
|
+
}
|
|
8
|
+
export interface RemoteResource {
|
|
9
|
+
main: Record<string, any>;
|
|
10
|
+
children: Record<string, any[]>;
|
|
11
|
+
}
|
|
12
|
+
export interface ResourceAdapter {
|
|
13
|
+
readonly resourceType: string;
|
|
14
|
+
loadLocal(basePath: string): Promise<Map<number, LocalResource>>;
|
|
15
|
+
fetchRemote(api: ButterflyAPI): Promise<Map<number, RemoteResource>>;
|
|
16
|
+
compare(local: LocalResource | null, remote: RemoteResource | null, localPath?: string): ResourceDiff;
|
|
17
|
+
getDisplayName(data: Record<string, any>): string;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/diff/adapters/types.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;CACjC;AAMD,MAAM,WAAW,eAAe;IAE9B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAO9B,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;IAOjE,WAAW,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC;IASrE,OAAO,CACL,KAAK,EAAE,aAAa,GAAG,IAAI,EAC3B,MAAM,EAAE,cAAc,GAAG,IAAI,EAC7B,SAAS,CAAC,EAAE,MAAM,GACjB,YAAY,CAAC;IAOhB,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC;CACnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/diff/adapters/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ButterflyAPI } from '../utils/api.js';
|
|
2
|
+
import { ResourceDiff, DiffOptions, DiffSummary } from './types.js';
|
|
3
|
+
import { ResourceAdapter } from './adapters/index.js';
|
|
4
|
+
export interface DiffEngineCallbacks {
|
|
5
|
+
onProgress?: (message: string) => void;
|
|
6
|
+
onLoadingLocal?: (type: string) => void;
|
|
7
|
+
onFetchingRemote?: (type: string) => void;
|
|
8
|
+
onComparing?: (type: string) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare class DiffEngine {
|
|
11
|
+
private adapters;
|
|
12
|
+
constructor();
|
|
13
|
+
getAdapters(): Map<string, ResourceAdapter>;
|
|
14
|
+
getSupportedTypes(): string[];
|
|
15
|
+
diff(api: ButterflyAPI, basePath: string, options?: DiffOptions, callbacks?: DiffEngineCallbacks): Promise<ResourceDiff[]>;
|
|
16
|
+
getSummary(diffs: ResourceDiff[]): DiffSummary;
|
|
17
|
+
groupByType(diffs: ResourceDiff[]): Map<string, ResourceDiff[]>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=engine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../src/diff/engine.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAoB,MAAM,YAAY,CAAC;AACtF,OAAO,EAAe,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEnE,MAAM,WAAW,mBAAmB;IAClC,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAED,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAA+B;;IAS/C,WAAW,IAAI,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC;IAO3C,iBAAiB,IAAI,MAAM,EAAE;IAOvB,IAAI,CACR,GAAG,EAAE,YAAY,EACjB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,WAAgB,EACzB,SAAS,GAAE,mBAAwB,GAClC,OAAO,CAAC,YAAY,EAAE,CAAC;IAkD1B,UAAU,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,WAAW;IAO9C,WAAW,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,GAAG,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC;CAWhE"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { calculateSummary } from './types.js';
|
|
2
|
+
import { getAdapters } from './adapters/index.js';
|
|
3
|
+
export class DiffEngine {
|
|
4
|
+
adapters;
|
|
5
|
+
constructor() {
|
|
6
|
+
this.adapters = getAdapters();
|
|
7
|
+
}
|
|
8
|
+
getAdapters() {
|
|
9
|
+
return this.adapters;
|
|
10
|
+
}
|
|
11
|
+
getSupportedTypes() {
|
|
12
|
+
return Array.from(this.adapters.keys());
|
|
13
|
+
}
|
|
14
|
+
async diff(api, basePath, options = {}, callbacks = {}) {
|
|
15
|
+
const results = [];
|
|
16
|
+
const typesToDiff = options.type
|
|
17
|
+
? [options.type]
|
|
18
|
+
: Array.from(this.adapters.keys());
|
|
19
|
+
for (const type of typesToDiff) {
|
|
20
|
+
const adapter = this.adapters.get(type);
|
|
21
|
+
if (!adapter) {
|
|
22
|
+
continue;
|
|
23
|
+
}
|
|
24
|
+
callbacks.onLoadingLocal?.(type);
|
|
25
|
+
const local = await adapter.loadLocal(basePath);
|
|
26
|
+
callbacks.onFetchingRemote?.(type);
|
|
27
|
+
const remote = await adapter.fetchRemote(api);
|
|
28
|
+
callbacks.onComparing?.(type);
|
|
29
|
+
const allIds = new Set([...local.keys(), ...remote.keys()]);
|
|
30
|
+
for (const id of allIds) {
|
|
31
|
+
const localResource = local.get(id) || null;
|
|
32
|
+
const remoteResource = remote.get(id) || null;
|
|
33
|
+
const diff = adapter.compare(localResource, remoteResource);
|
|
34
|
+
if (options.name && diff.resourceName !== options.name) {
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
if (diff.status !== 'unchanged') {
|
|
38
|
+
results.push(diff);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return results;
|
|
43
|
+
}
|
|
44
|
+
getSummary(diffs) {
|
|
45
|
+
return calculateSummary(diffs);
|
|
46
|
+
}
|
|
47
|
+
groupByType(diffs) {
|
|
48
|
+
const grouped = new Map();
|
|
49
|
+
for (const diff of diffs) {
|
|
50
|
+
const existing = grouped.get(diff.resourceType) || [];
|
|
51
|
+
existing.push(diff);
|
|
52
|
+
grouped.set(diff.resourceType, existing);
|
|
53
|
+
}
|
|
54
|
+
return grouped;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=engine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine.js","sourceRoot":"","sources":["../../src/diff/engine.ts"],"names":[],"mappings":"AAOA,OAAO,EAA0C,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACtF,OAAO,EAAE,WAAW,EAAmB,MAAM,qBAAqB,CAAC;AASnE,MAAM,OAAO,UAAU;IACb,QAAQ,CAA+B;IAE/C;QACE,IAAI,CAAC,QAAQ,GAAG,WAAW,EAAE,CAAC;IAChC,CAAC;IAKD,WAAW;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAKD,iBAAiB;QACf,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;IAKD,KAAK,CAAC,IAAI,CACR,GAAiB,EACjB,QAAgB,EACh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YAAY,KAAK,OAAO,CAAC,IAAI,EAAE,CAAC;oBACvD,SAAS;gBACX,CAAC;gBAGD,IAAI,IAAI,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;oBAChC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACrB,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;IAKD,UAAU,CAAC,KAAqB;QAC9B,OAAO,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IAKD,WAAW,CAAC,KAAqB;QAC/B,MAAM,OAAO,GAAG,IAAI,GAAG,EAA0B,CAAC;QAElD,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;YACtD,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACpB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;QAC3C,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;CACF"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type DiffStatus = 'unchanged' | 'local_only' | 'remote_only' | 'modified';
|
|
2
|
+
export interface FieldDiff {
|
|
3
|
+
field: string;
|
|
4
|
+
localValue: any;
|
|
5
|
+
remoteValue: any;
|
|
6
|
+
status: DiffStatus;
|
|
7
|
+
}
|
|
8
|
+
export interface ResourceDiff {
|
|
9
|
+
resourceType: string;
|
|
10
|
+
resourceName: string;
|
|
11
|
+
resourceId: number;
|
|
12
|
+
localPath?: string;
|
|
13
|
+
status: DiffStatus;
|
|
14
|
+
fieldDiffs: FieldDiff[];
|
|
15
|
+
children?: ResourceDiff[];
|
|
16
|
+
}
|
|
17
|
+
export interface DiffSummary {
|
|
18
|
+
totalResources: number;
|
|
19
|
+
unchanged: number;
|
|
20
|
+
modified: number;
|
|
21
|
+
localOnly: number;
|
|
22
|
+
remoteOnly: number;
|
|
23
|
+
}
|
|
24
|
+
export interface DiffOptions {
|
|
25
|
+
type?: string;
|
|
26
|
+
name?: string;
|
|
27
|
+
output?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const IGNORE_FIELDS: string[];
|
|
30
|
+
export declare function valuesEqual(a: any, b: any): boolean;
|
|
31
|
+
export declare function compareFields(local: Record<string, any> | null, remote: Record<string, any> | null, ignoreFields?: string[]): FieldDiff[];
|
|
32
|
+
export declare function formatValue(value: any, maxLength?: number): string;
|
|
33
|
+
export declare function calculateSummary(diffs: ResourceDiff[]): DiffSummary;
|
|
34
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/diff/types.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,YAAY,GAAG,aAAa,GAAG,UAAU,CAAC;AAEjF,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,GAAG,CAAC;IAChB,WAAW,EAAE,GAAG,CAAC;IACjB,MAAM,EAAE,UAAU,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,UAAU,CAAC;IACnB,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,WAAW;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,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