decidim-chatbot 0.0.1
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.
- checksums.yaml +7 -0
- data/.erb_lint.yml +2134 -0
- data/.github/workflows/website.yml +57 -0
- data/.gitignore +13 -0
- data/.gitlab-ci.yml +204 -0
- data/.node-version +1 -0
- data/.nvmrc +1 -0
- data/.rspec +2 -0
- data/.rubocop.yml +17 -0
- data/.ruby-version +1 -0
- data/.simplecov +36 -0
- data/CONTRIBUTING.md +54 -0
- data/Gemfile +50 -0
- data/Gemfile.lock +1013 -0
- data/LICENSE.md +661 -0
- data/README.md +62 -0
- data/Rakefile +54 -0
- data/app/commands/decidim/chatbot/admin/destroy_item.rb +25 -0
- data/app/commands/decidim/chatbot/admin/menu_items/update_exit.rb +12 -0
- data/app/commands/decidim/chatbot/admin/menu_items/update_login.rb +12 -0
- data/app/commands/decidim/chatbot/admin/menu_items/update_propose_proposals.rb +12 -0
- data/app/commands/decidim/chatbot/admin/menu_items/update_read_blogs.rb +12 -0
- data/app/commands/decidim/chatbot/admin/menu_items/update_read_proposals.rb +12 -0
- data/app/commands/decidim/chatbot/admin/menu_items/update_vote_on_proposal.rb +12 -0
- data/app/commands/decidim/chatbot/admin/notifications/update_manual.rb +12 -0
- data/app/commands/decidim/chatbot/admin/notifications/update_phase.rb +12 -0
- data/app/commands/decidim/chatbot/admin/persist_item.rb +47 -0
- data/app/commands/decidim/chatbot/admin/reorder_items.rb +51 -0
- data/app/commands/decidim/chatbot/admin/send_test_notification.rb +74 -0
- data/app/commands/decidim/chatbot/admin/unsubscribe_user.rb +35 -0
- data/app/commands/decidim/chatbot/admin/update_chatbot.rb +17 -0
- data/app/commands/decidim/chatbot/notifications/deliver.rb +30 -0
- data/app/commands/decidim/chatbot/notifications/enqueue_phase.rb +67 -0
- data/app/commands/decidim/chatbot/notifications/send.rb +115 -0
- data/app/commands/decidim/chatbot/whatsapp/create_from_phone.rb +95 -0
- data/app/commands/decidim/chatbot/whatsapp/sync_phone.rb +56 -0
- data/app/controllers/decidim/api/rest_full/chatbot/base_controller.rb +52 -0
- data/app/controllers/decidim/api/rest_full/chatbot/chatbot_menu_items_controller.rb +49 -0
- data/app/controllers/decidim/api/rest_full/chatbot/chatbot_users_controller.rb +46 -0
- data/app/controllers/decidim/api/rest_full/chatbot/chatbots_controller.rb +40 -0
- data/app/controllers/decidim/chatbot/admin/chatbot_edit.rb +85 -0
- data/app/controllers/decidim/chatbot/admin/chatbots/generals_controller.rb +43 -0
- data/app/controllers/decidim/chatbot/admin/chatbots/menu_items_controller.rb +32 -0
- data/app/controllers/decidim/chatbot/admin/chatbots/notifications_controller.rb +92 -0
- data/app/controllers/decidim/chatbot/admin/chatbots/users/filterable.rb +33 -0
- data/app/controllers/decidim/chatbot/admin/chatbots/users_controller.rb +53 -0
- data/app/controllers/decidim/chatbot/admin/chatbots/whatsapps_controller.rb +59 -0
- data/app/controllers/decidim/chatbot/admin/chatbots_controller.rb +20 -0
- data/app/controllers/decidim/chatbot/admin/items_crud.rb +183 -0
- data/app/forms/decidim/chatbot/admin/chatbot_form.rb +20 -0
- data/app/forms/decidim/chatbot/admin/config_form.rb +20 -0
- data/app/forms/decidim/chatbot/admin/menu_item_form.rb +80 -0
- data/app/forms/decidim/chatbot/admin/menu_items/component_id_form.rb +60 -0
- data/app/forms/decidim/chatbot/admin/menu_items/exit_form.rb +24 -0
- data/app/forms/decidim/chatbot/admin/menu_items/login_form.rb +35 -0
- data/app/forms/decidim/chatbot/admin/menu_items/propose_proposals_form.rb +23 -0
- data/app/forms/decidim/chatbot/admin/menu_items/propose_proposals_labels.rb +53 -0
- data/app/forms/decidim/chatbot/admin/menu_items/read_blogs_form.rb +23 -0
- data/app/forms/decidim/chatbot/admin/menu_items/read_content_labels.rb +51 -0
- data/app/forms/decidim/chatbot/admin/menu_items/read_proposals_form.rb +23 -0
- data/app/forms/decidim/chatbot/admin/menu_items/vote_on_proposal_form.rb +123 -0
- data/app/forms/decidim/chatbot/admin/notification_item_form.rb +111 -0
- data/app/forms/decidim/chatbot/admin/notifications/manual_form.rb +13 -0
- data/app/forms/decidim/chatbot/admin/notifications/phase_form.rb +79 -0
- data/app/forms/decidim/chatbot/admin/notifications/template_fields.rb +60 -0
- data/app/forms/decidim/chatbot/admin/notifications/test_form.rb +179 -0
- data/app/helpers/decidim/chatbot/admin/items_helper.rb +44 -0
- data/app/jobs/decidim/chatbot/chatbot_webhook_job.rb +59 -0
- data/app/jobs/decidim/chatbot/send_notification_job.rb +33 -0
- data/app/models/decidim/chatbot/chatbot.rb +47 -0
- data/app/models/decidim/chatbot/item.rb +99 -0
- data/app/packs/.keep +0 -0
- data/app/presenters/decidim/chatbot/admin_log/chatbot_presenter.rb +42 -0
- data/app/presenters/decidim/chatbot/admin_log/item_presenter.rb +32 -0
- data/app/queries/decidim/chatbot/admin/proposal_vote_mode.rb +41 -0
- data/app/queries/decidim/chatbot/whatsapp_users.rb +58 -0
- data/app/serializers/decidim/api/rest_full/chatbot/chatbot_menu_item_serializer.rb +113 -0
- data/app/serializers/decidim/api/rest_full/chatbot/chatbot_notification_serializer.rb +19 -0
- data/app/serializers/decidim/api/rest_full/chatbot/chatbot_serializer.rb +66 -0
- data/app/serializers/decidim/api/rest_full/chatbot/chatbot_user_identity_serializer.rb +23 -0
- data/app/serializers/decidim/api/rest_full/chatbot/chatbot_user_serializer.rb +28 -0
- data/app/serializers/decidim/api/rest_full/chatbot/chatbot_webhook_serializer.rb +21 -0
- data/app/services/decidim/chatbot/chatbot_webhook_handler.rb +40 -0
- data/app/services/decidim/chatbot/notifications/bindings.rb +87 -0
- data/app/services/decidim/chatbot/whatsapp/body_parameters.rb +29 -0
- data/app/services/decidim/chatbot/whatsapp/graph_client.rb +136 -0
- data/app/services/decidim/chatbot/whatsapp/status_mapper.rb +93 -0
- data/app/services/decidim/chatbot/whatsapp/template_manager_url.rb +35 -0
- data/app/views/decidim/chatbot/admin/chatbots/generals/_menu_preview.html.erb +49 -0
- data/app/views/decidim/chatbot/admin/chatbots/generals/edit.html.erb +79 -0
- data/app/views/decidim/chatbot/admin/chatbots/index.html.erb +50 -0
- data/app/views/decidim/chatbot/admin/chatbots/menu_items/_form.html.erb +2 -0
- data/app/views/decidim/chatbot/admin/chatbots/menu_items/edit.html.erb +2 -0
- data/app/views/decidim/chatbot/admin/chatbots/menu_items/index.html.erb +43 -0
- data/app/views/decidim/chatbot/admin/chatbots/menu_items/new.html.erb +12 -0
- data/app/views/decidim/chatbot/admin/chatbots/notifications/_form.html.erb +4 -0
- data/app/views/decidim/chatbot/admin/chatbots/notifications/_manual_fields.html.erb +8 -0
- data/app/views/decidim/chatbot/admin/chatbots/notifications/_phase_fields.html.erb +6 -0
- data/app/views/decidim/chatbot/admin/chatbots/notifications/edit.html.erb +3 -0
- data/app/views/decidim/chatbot/admin/chatbots/notifications/index.html.erb +40 -0
- data/app/views/decidim/chatbot/admin/chatbots/notifications/new.html.erb +11 -0
- data/app/views/decidim/chatbot/admin/chatbots/notifications/test.html.erb +35 -0
- data/app/views/decidim/chatbot/admin/chatbots/tabs/_whatsapp.html.erb +47 -0
- data/app/views/decidim/chatbot/admin/chatbots/users/_filters.html.erb +23 -0
- data/app/views/decidim/chatbot/admin/chatbots/users/index.html.erb +56 -0
- data/app/views/decidim/chatbot/admin/chatbots/whatsapps/show.html.erb +5 -0
- data/app/views/decidim/chatbot/admin/shared/_item_form.html.erb +64 -0
- data/app/views/decidim/chatbot/admin/shared/_row_actions.html.erb +28 -0
- data/app/views/decidim/chatbot/admin/shared/_tabs_menu.html.erb +13 -0
- data/app/views/decidim/chatbot/admin/shared/_type_fields.html.erb +2 -0
- data/app/views/decidim/chatbot/admin/shared/_type_picker.html.erb +15 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/_component_id.html.erb +9 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/_exit.html.erb +5 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/_login.html.erb +8 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/_manual.html.erb +16 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/_phase.html.erb +46 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/_propose_proposals.html.erb +10 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/_read_blogs.html.erb +16 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/_read_proposals.html.erb +16 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/_vote_on_proposal.html.erb +26 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/vote/_shows_abstention_label.html.erb +7 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/vote/_shows_vote_label.html.erb +7 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/vote/_shows_votes_closed_warning.html.erb +6 -0
- data/app/views/decidim/chatbot/admin/shared/type_fields/vote/_shows_weight_labels.html.erb +15 -0
- data/bin/check +13 -0
- data/bin/ci-setup +38 -0
- data/bin/gen-node-client +112 -0
- data/bin/gen-openapi +248 -0
- data/bin/i18n-tasks +27 -0
- data/bin/postversion +17 -0
- data/config/i18n-tasks.yml +38 -0
- data/config/locales/decidim_chatbot.en.yml +323 -0
- data/config/locales/decidim_chatbot.fr.yml +29 -0
- data/contrib/decidim-node-client/.gitignore +4 -0
- data/contrib/decidim-node-client/.npmignore +1 -0
- data/contrib/decidim-node-client/.openapi-generator/FILES +8 -0
- data/contrib/decidim-node-client/.openapi-generator/VERSION +1 -0
- data/contrib/decidim-node-client/.openapi-generator-ignore +13 -0
- data/contrib/decidim-node-client/.yarnrc.yml +5 -0
- data/contrib/decidim-node-client/README.md +37 -0
- data/contrib/decidim-node-client/api.ts +14193 -0
- data/contrib/decidim-node-client/base.ts +70 -0
- data/contrib/decidim-node-client/common.ts +185 -0
- data/contrib/decidim-node-client/configuration.ts +138 -0
- data/contrib/decidim-node-client/git_push.sh +57 -0
- data/contrib/decidim-node-client/index.ts +16 -0
- data/contrib/decidim-node-client/package.json +49 -0
- data/contrib/decidim-node-client/packup.config.ts +7 -0
- data/contrib/decidim-node-client/tsconfig.json +25 -0
- data/contrib/decidim-node-client/yarn.lock +2367 -0
- data/crowdin.yml +15 -0
- data/db/migrate/20260725120000_create_decidim_chatbot_chatbots.rb +20 -0
- data/db/migrate/20260822120000_create_decidim_chatbot_items.rb +20 -0
- data/db/migrate/20260824120000_add_menu_and_error_copy_to_decidim_chatbot_chatbots.rb +13 -0
- data/db/migrate/20260824140000_add_enabled_to_decidim_chatbot_items.rb +7 -0
- data/decidim-chatbot.gemspec +40 -0
- data/docker-compose.ci.yml +59 -0
- data/docker-compose.yml +47 -0
- data/lib/decidim/chatbot/admin_engine.rb +67 -0
- data/lib/decidim/chatbot/admin_menu.rb +41 -0
- data/lib/decidim/chatbot/default_manifests.rb +91 -0
- data/lib/decidim/chatbot/engine.rb +107 -0
- data/lib/decidim/chatbot/manifest.rb +31 -0
- data/lib/decidim/chatbot/menu_item_label_keys.rb +26 -0
- data/lib/decidim/chatbot/registry.rb +42 -0
- data/lib/decidim/chatbot/rest_full_ability.rb +24 -0
- data/lib/decidim/chatbot/settings_tab.rb +18 -0
- data/lib/decidim/chatbot/test_definitions.rb +352 -0
- data/lib/decidim/chatbot/variable_interpolator.rb +30 -0
- data/lib/decidim/chatbot/version.rb +21 -0
- data/lib/decidim/chatbot/webhook_publisher.rb +29 -0
- data/lib/decidim/chatbot.rb +41 -0
- data/lib/decidim-chatbot.rb +3 -0
- data/lib/tasks/chatbot.rake +64 -0
- data/openapi/openapi.json +37801 -0
- data/openapitools.json +7 -0
- data/package.json +22 -0
- data/prettier.config.js +15 -0
- data/spec/commands/decidim/chatbot/admin/destroy_item_spec.rb +24 -0
- data/spec/commands/decidim/chatbot/admin/persist_item_spec.rb +80 -0
- data/spec/commands/decidim/chatbot/admin/reorder_items_spec.rb +53 -0
- data/spec/commands/decidim/chatbot/admin/send_test_notification_spec.rb +105 -0
- data/spec/commands/decidim/chatbot/admin/unsubscribe_user_spec.rb +46 -0
- data/spec/commands/decidim/chatbot/admin/update_chatbot_spec.rb +56 -0
- data/spec/commands/decidim/chatbot/notifications/enqueue_phase_spec.rb +59 -0
- data/spec/commands/decidim/chatbot/notifications/send_spec.rb +101 -0
- data/spec/commands/decidim/chatbot/whatsapp/create_from_phone_spec.rb +122 -0
- data/spec/commands/decidim/chatbot/whatsapp/sync_phone_spec.rb +110 -0
- data/spec/controllers/decidim/chatbot/admin/chatbots_controller_spec.rb +25 -0
- data/spec/factories/chatbot.rb +44 -0
- data/spec/forms/decidim/chatbot/admin/chatbot_form_spec.rb +41 -0
- data/spec/forms/decidim/chatbot/admin/config_form_spec.rb +30 -0
- data/spec/forms/decidim/chatbot/admin/menu_item_form_spec.rb +49 -0
- data/spec/forms/decidim/chatbot/admin/menu_items/component_id_form_spec.rb +54 -0
- data/spec/forms/decidim/chatbot/admin/menu_items/component_id_forms_spec.rb +512 -0
- data/spec/forms/decidim/chatbot/admin/menu_items/exit_form_spec.rb +39 -0
- data/spec/forms/decidim/chatbot/admin/menu_items/login_form_spec.rb +101 -0
- data/spec/forms/decidim/chatbot/admin/menu_items/propose_proposals_form_prefill_spec.rb +26 -0
- data/spec/forms/decidim/chatbot/admin/menu_items/read_blogs_form_prefill_spec.rb +22 -0
- data/spec/forms/decidim/chatbot/admin/notifications/manual_form_spec.rb +130 -0
- data/spec/forms/decidim/chatbot/admin/notifications/phase_form_spec.rb +79 -0
- data/spec/forms/decidim/chatbot/admin/notifications/test_form_spec.rb +172 -0
- data/spec/jobs/decidim/chatbot/chatbot_webhook_job_spec.rb +47 -0
- data/spec/jobs/decidim/chatbot/send_notification_job_spec.rb +53 -0
- data/spec/lib/decidim/chatbot/engine_spec.rb +44 -0
- data/spec/lib/decidim/chatbot/registry_spec.rb +30 -0
- data/spec/lib/decidim/chatbot/settings_tab_spec.rb +21 -0
- data/spec/lib/decidim/chatbot/variable_interpolator_spec.rb +34 -0
- data/spec/lib/decidim/chatbot/whatsapp/status_mapper_spec.rb +64 -0
- data/spec/lib/decidim/chatbot_spec.rb +59 -0
- data/spec/models/decidim/chatbot/chatbot_spec.rb +23 -0
- data/spec/models/decidim/chatbot/item_spec.rb +88 -0
- data/spec/presenters/decidim/chatbot/admin_log/chatbot_presenter_spec.rb +64 -0
- data/spec/queries/decidim/chatbot/admin/proposal_vote_mode_spec.rb +74 -0
- data/spec/queries/decidim/chatbot/whatsapp_users_spec.rb +57 -0
- data/spec/requests/decidim/api/rest_full/chatbot/chatbot_menu_items_controller_spec.rb +344 -0
- data/spec/requests/decidim/api/rest_full/chatbot/chatbot_users_controller_spec.rb +140 -0
- data/spec/requests/decidim/api/rest_full/chatbot/chatbots_controller_spec.rb +195 -0
- data/spec/requests/decidim/chatbot/admin/chatbots/notifications_controller_spec.rb +44 -0
- data/spec/requests/decidim/chatbot/admin/tenant_isolation_spec.rb +133 -0
- data/spec/requests/decidim/chatbot/admin/unsubscribe_user_spec.rb +28 -0
- data/spec/serializers/decidim/api/rest_full/chatbot/chatbot_menu_item_serializer_spec.rb +321 -0
- data/spec/serializers/decidim/api/rest_full/chatbot/chatbot_serializer_spec.rb +49 -0
- data/spec/serializers/decidim/api/rest_full/chatbot/chatbot_user_serializer_spec.rb +40 -0
- data/spec/services/decidim/chatbot/chatbot_webhook_handler_spec.rb +43 -0
- data/spec/services/decidim/chatbot/notifications/bindings_spec.rb +86 -0
- data/spec/services/decidim/chatbot/whatsapp/body_parameters_spec.rb +22 -0
- data/spec/services/decidim/chatbot/whatsapp/graph_client_spec.rb +205 -0
- data/spec/services/decidim/chatbot/whatsapp/template_manager_url_spec.rb +33 -0
- data/spec/spec_helper.rb +33 -0
- data/spec/support/allow_all_hosts.rb +9 -0
- data/spec/support/chatbot_admin.rb +16 -0
- data/spec/support/decidim_factories.rb +7 -0
- data/spec/support/decidim_system_factories.rb +3 -0
- data/spec/support/devise.rb +5 -0
- data/spec/support/rack_test_system_driver.rb +43 -0
- data/spec/support/whatsapp_graph.rb +15 -0
- data/spec/swagger_helper.rb +47 -0
- data/spec/system/decidim/chatbot/admin/admin_can_send_manual_when_ready_spec.rb +35 -0
- data/spec/system/decidim/chatbot/admin/admin_configures_vote_on_proposal_menu_item_spec.rb +84 -0
- data/spec/system/decidim/chatbot/admin/admin_confirms_send_now_recipient_count_spec.rb +40 -0
- data/spec/system/decidim/chatbot/admin/admin_creates_menu_item_with_demo_field_spec.rb +65 -0
- data/spec/system/decidim/chatbot/admin/admin_creates_phase_and_manual_notifications_spec.rb +52 -0
- data/spec/system/decidim/chatbot/admin/admin_does_not_see_other_org_processes_in_phase_select_spec.rb +27 -0
- data/spec/system/decidim/chatbot/admin/admin_does_not_see_other_organization_chatbots_spec.rb +25 -0
- data/spec/system/decidim/chatbot/admin/admin_is_redirected_when_chatbot_is_disabled_spec.rb +28 -0
- data/spec/system/decidim/chatbot/admin/admin_lists_organization_chatbots_spec.rb +36 -0
- data/spec/system/decidim/chatbot/admin/admin_manual_notification_sends_with_nickname_spec.rb +68 -0
- data/spec/system/decidim/chatbot/admin/admin_navigates_chatbot_main_tabs_spec.rb +52 -0
- data/spec/system/decidim/chatbot/admin/admin_phase_notification_sends_on_step_change_spec.rb +79 -0
- data/spec/system/decidim/chatbot/admin/admin_picks_published_blog_component_spec.rb +205 -0
- data/spec/system/decidim/chatbot/admin/admin_picks_published_participatory_space_spec.rb +45 -0
- data/spec/system/decidim/chatbot/admin/admin_reorders_chatbot_menu_items_spec.rb +29 -0
- data/spec/system/decidim/chatbot/admin/admin_sees_disabled_menu_item_faded_on_the_table_spec.rb +23 -0
- data/spec/system/decidim/chatbot/admin/admin_sees_disabled_notification_item_faded_on_the_table_spec.rb +40 -0
- data/spec/system/decidim/chatbot/admin/admin_sees_notification_facts_and_frozen_template_name_spec.rb +71 -0
- data/spec/system/decidim/chatbot/admin/admin_sees_propose_proposals_defaults_prefilled_spec.rb +119 -0
- data/spec/system/decidim/chatbot/admin/admin_sees_type_specific_fields_spec.rb +89 -0
- data/spec/system/decidim/chatbot/admin/admin_sees_whatsapp_facts_and_can_sync_spec.rb +48 -0
- data/spec/system/decidim/chatbot/admin/admin_sees_whatsapp_template_edit_link_spec.rb +37 -0
- data/spec/system/decidim/chatbot/admin/admin_tests_notification_spec.rb +125 -0
- data/spec/system/decidim/chatbot/admin/admin_unchecks_enabled_on_a_menu_item_spec.rb +30 -0
- data/spec/system/decidim/chatbot/admin/admin_unsubscribes_whatsapp_user_from_chatbot_spec.rb +35 -0
- data/spec/system/decidim/chatbot/admin/admin_updates_welcome_message_from_general_tab_spec.rb +84 -0
- data/spec/system/decidim/chatbot/system/admin_updates_organization_chatbot_settings_spec.rb +33 -0
- data/spec/tasks/chatbot_create_spec.rb +99 -0
- data/spec/tasks/chatbot_sync_spec.rb +90 -0
- data/website/.node-version +1 -0
- data/website/.nvmrc +1 -0
- data/website/docs/developer/_category_.json +4 -0
- data/website/docs/developer/contribute.md +87 -0
- data/website/docs/index.md +42 -0
- data/website/docs/integrate/_category_.json +4 -0
- data/website/docs/integrate/index.md +214 -0
- data/website/docusaurus.config.ts +93 -0
- data/website/package.json +37 -0
- data/website/sidebars.ts +7 -0
- data/website/src/css/custom.css +37 -0
- data/website/static/api-docs.html +2218 -0
- data/website/static/img/logo.svg +1 -0
- data/website/static/openapi.json +37801 -0
- data/website/tsconfig.json +6 -0
- data/website/yarn.lock +9782 -0
- data/yarn.lock +1003 -0
- metadata +424 -0
data/bin/gen-node-client
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
set -e
|
|
3
|
+
# ponytail: generated client only; Activepieces-specific wrappers live in activepieces/, not here
|
|
4
|
+
# Default values for options
|
|
5
|
+
QUIET=0
|
|
6
|
+
VALIDATE=0
|
|
7
|
+
INPUT_FILE="./openapi/openapi.json"
|
|
8
|
+
AXIOS_VERSION="1.7.7"
|
|
9
|
+
|
|
10
|
+
# Print messages unless quiet mode is active
|
|
11
|
+
log() {
|
|
12
|
+
if [[ $QUIET -eq 0 ]]; then
|
|
13
|
+
echo "$@"
|
|
14
|
+
fi
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
# Help menu
|
|
18
|
+
show_help() {
|
|
19
|
+
cat <<EOF
|
|
20
|
+
Usage: $0 --input FILE [options]
|
|
21
|
+
|
|
22
|
+
Options:
|
|
23
|
+
--quiet, -q Suppress output messages.
|
|
24
|
+
--validate, -v Run OpenAPI JSON validation.
|
|
25
|
+
--out, -o FILE Specify the output file (default: $INPUT_FILE).
|
|
26
|
+
--axios VERSION Specify Axios version (default: $AXIOS_VERSION).
|
|
27
|
+
--input FILE Specify an existing OpenAPI JSON file (default: generate a new one).
|
|
28
|
+
--help, -h Display this help menu.
|
|
29
|
+
EOF
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
# Parse arguments
|
|
33
|
+
while [[ $# -gt 0 ]]; do
|
|
34
|
+
case $1 in
|
|
35
|
+
--quiet|-q)
|
|
36
|
+
QUIET=1
|
|
37
|
+
shift
|
|
38
|
+
;;
|
|
39
|
+
--validate|-v)
|
|
40
|
+
VALIDATE=1
|
|
41
|
+
shift
|
|
42
|
+
;;
|
|
43
|
+
--axios)
|
|
44
|
+
AXIOS_VERSION="$2"
|
|
45
|
+
shift 2
|
|
46
|
+
;;
|
|
47
|
+
--input)
|
|
48
|
+
INPUT_FILE="$2"
|
|
49
|
+
shift 2
|
|
50
|
+
;;
|
|
51
|
+
--help|-h)
|
|
52
|
+
show_help
|
|
53
|
+
exit 0
|
|
54
|
+
;;
|
|
55
|
+
*)
|
|
56
|
+
echo "Unknown option: $1"
|
|
57
|
+
show_help
|
|
58
|
+
exit 1
|
|
59
|
+
;;
|
|
60
|
+
esac
|
|
61
|
+
done
|
|
62
|
+
|
|
63
|
+
log "OpenAPI Processing"
|
|
64
|
+
log "~~~~~~~~~~~~~~~~~~~~~~~"
|
|
65
|
+
log "quiet: $QUIET"
|
|
66
|
+
log "validate: $VALIDATE"
|
|
67
|
+
log "input file: $INPUT_FILE"
|
|
68
|
+
log "axios version: $AXIOS_VERSION"
|
|
69
|
+
log "~~~~~~~~~~~~~~~~~~~~~~~"
|
|
70
|
+
|
|
71
|
+
# Fail fast if host Node does not match repo .nvmrc.
|
|
72
|
+
# Chatbot pins a major (e.g. "22"); restfull pins a full version.
|
|
73
|
+
expected="$(tr -d '[:space:]' < .nvmrc)"
|
|
74
|
+
if ! command -v node >/dev/null 2>&1; then
|
|
75
|
+
echo "node is missing or not on PATH" >&2
|
|
76
|
+
exit 1
|
|
77
|
+
fi
|
|
78
|
+
got="$(node -v)"
|
|
79
|
+
got="${got#v}"
|
|
80
|
+
if [[ "$expected" == *.* ]]; then
|
|
81
|
+
if [[ "$got" != "$expected" ]]; then
|
|
82
|
+
echo "Node version mismatch: expected ${expected} (from .nvmrc), got ${got}. Hint: nvm use" >&2
|
|
83
|
+
exit 1
|
|
84
|
+
fi
|
|
85
|
+
else
|
|
86
|
+
got_major="${got%%.*}"
|
|
87
|
+
if [[ "$got_major" != "$expected" ]]; then
|
|
88
|
+
echo "Node version mismatch: expected ${expected} (from .nvmrc), got ${got}. Hint: nvm use" >&2
|
|
89
|
+
exit 1
|
|
90
|
+
fi
|
|
91
|
+
fi
|
|
92
|
+
|
|
93
|
+
# Validate OpenAPI spec if requested
|
|
94
|
+
if [[ $VALIDATE -eq 1 ]]; then
|
|
95
|
+
log "Validating OpenAPI spec"
|
|
96
|
+
yarn openapi-generator-cli validate -i "$INPUT_FILE" || exit 1
|
|
97
|
+
fi
|
|
98
|
+
|
|
99
|
+
# Generate the TypeScript Axios client
|
|
100
|
+
log "Generating TypeScript Axios client"
|
|
101
|
+
yarn openapi-generator-cli generate -i "$INPUT_FILE" \
|
|
102
|
+
-o ./contrib/decidim-node-client \
|
|
103
|
+
-g typescript-axios \
|
|
104
|
+
--additional-properties=useSingleRequestParameter=true,paramNaming=camelCase,axiosVersion=$AXIOS_VERSION
|
|
105
|
+
|
|
106
|
+
# Build the client
|
|
107
|
+
cd contrib/decidim-node-client || exit 1
|
|
108
|
+
rm -rf ./dist
|
|
109
|
+
yarn format
|
|
110
|
+
yarn build
|
|
111
|
+
|
|
112
|
+
log "Node client successfully built."
|
data/bin/gen-openapi
ADDED
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# ponytail: merge RestFull openapi.json + chatbot RSwag; don't hand-write paths.
|
|
3
|
+
# Usage:
|
|
4
|
+
# bin/gen-openapi # write openapi/openapi.json + website/static/openapi.json
|
|
5
|
+
# bin/gen-openapi --check # exit 1 if artifacts missing/mismatch/stale (no full regen)
|
|
6
|
+
#
|
|
7
|
+
# Base RestFull contract: product of decidim-restfull `bin/swaggerize`.
|
|
8
|
+
# Set FORCE_RESTFULL_SWAGGERIZE=1 to regenerate base via that binary first (slow).
|
|
9
|
+
set -euo pipefail
|
|
10
|
+
|
|
11
|
+
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
12
|
+
CHECK=0
|
|
13
|
+
QUIET=0
|
|
14
|
+
|
|
15
|
+
log() { [[ $QUIET -eq 1 ]] || echo "$@"; }
|
|
16
|
+
|
|
17
|
+
usage() {
|
|
18
|
+
cat <<EOF
|
|
19
|
+
Usage: bin/gen-openapi [--check] [--quiet]
|
|
20
|
+
|
|
21
|
+
Writes RestFull OpenAPI + chatbot extension paths to:
|
|
22
|
+
openapi/openapi.json
|
|
23
|
+
website/static/openapi.json
|
|
24
|
+
|
|
25
|
+
Env:
|
|
26
|
+
DECIDIM_RESTFULL_PATH RestFull monorepo root (default: /home/decidim-restfull or sibling)
|
|
27
|
+
FORCE_RESTFULL_SWAGGERIZE=1 run RestFull bin/swaggerize before merge
|
|
28
|
+
EOF
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
while [[ $# -gt 0 ]]; do
|
|
32
|
+
case "$1" in
|
|
33
|
+
--check) CHECK=1; shift ;;
|
|
34
|
+
--quiet|-q) QUIET=1; shift ;;
|
|
35
|
+
-h|--help) usage; exit 0 ;;
|
|
36
|
+
*) echo "Unknown option: $1" >&2; usage; exit 1 ;;
|
|
37
|
+
esac
|
|
38
|
+
done
|
|
39
|
+
|
|
40
|
+
resolve_restfull_root() {
|
|
41
|
+
if [[ -n "${DECIDIM_RESTFULL_PATH:-}" ]]; then
|
|
42
|
+
echo "$DECIDIM_RESTFULL_PATH"
|
|
43
|
+
return
|
|
44
|
+
fi
|
|
45
|
+
if [[ -d /home/decidim-restfull ]]; then
|
|
46
|
+
echo /home/decidim-restfull
|
|
47
|
+
return
|
|
48
|
+
fi
|
|
49
|
+
if [[ -d "$ROOT/../decidim-restfull" ]]; then
|
|
50
|
+
echo "$(cd "$ROOT/../decidim-restfull" && pwd)"
|
|
51
|
+
return
|
|
52
|
+
fi
|
|
53
|
+
return 1
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
OUT_GEM="$ROOT/openapi/openapi.json"
|
|
57
|
+
OUT_WEB="$ROOT/website/static/openapi.json"
|
|
58
|
+
CHATBOT_SPECS="$ROOT/spec/requests/decidim/api/rest_full/chatbot"
|
|
59
|
+
|
|
60
|
+
check_artifacts() {
|
|
61
|
+
local missing=0
|
|
62
|
+
for f in "$OUT_GEM" "$OUT_WEB"; do
|
|
63
|
+
if [[ ! -f "$f" ]]; then
|
|
64
|
+
echo "$(realpath --relative-to="$ROOT" "$f" 2>/dev/null || echo "$f") missing — run bin/gen-openapi" >&2
|
|
65
|
+
missing=1
|
|
66
|
+
fi
|
|
67
|
+
done
|
|
68
|
+
[[ $missing -eq 0 ]] || exit 1
|
|
69
|
+
|
|
70
|
+
if ! cmp -s "$OUT_GEM" "$OUT_WEB"; then
|
|
71
|
+
echo "openapi/openapi.json and website/static/openapi.json differ — run bin/gen-openapi" >&2
|
|
72
|
+
exit 1
|
|
73
|
+
fi
|
|
74
|
+
|
|
75
|
+
if ! grep -q '"/chatbots"' "$OUT_GEM" || ! grep -q '"/chatbot_menu_items"' "$OUT_GEM" || ! grep -q '"/chatbot_users"' "$OUT_GEM"; then
|
|
76
|
+
echo "OpenAPI missing chatbot paths (/chatbots, /chatbot_menu_items, /chatbot_users) — run bin/gen-openapi" >&2
|
|
77
|
+
exit 1
|
|
78
|
+
fi
|
|
79
|
+
|
|
80
|
+
if ! grep -q 'whatsapp' "$OUT_GEM"; then
|
|
81
|
+
echo "OpenAPI missing whatsapp scope references — run bin/gen-openapi" >&2
|
|
82
|
+
exit 1
|
|
83
|
+
fi
|
|
84
|
+
|
|
85
|
+
# Stamp set by merge step; avoids flaky filesystem mtime on reused CI workspaces.
|
|
86
|
+
local expected actual
|
|
87
|
+
expected="$(chatbot_openapi_source_rev)"
|
|
88
|
+
actual="$(ruby -rjson -e 'puts JSON.parse(File.read(ARGV[0], encoding: "UTF-8")).dig("info", "x-decidim-chatbot-source-rev").to_s' "$OUT_GEM" 2>/dev/null || true)"
|
|
89
|
+
if [[ -z "$expected" ]]; then
|
|
90
|
+
log "OpenAPI artifacts are up to date (no git rev to compare)"
|
|
91
|
+
exit 0
|
|
92
|
+
fi
|
|
93
|
+
if [[ "$actual" != "$expected" ]]; then
|
|
94
|
+
echo "OpenAPI is stale vs chatbot sources (stamp $actual != $expected) — run bin/gen-openapi" >&2
|
|
95
|
+
exit 1
|
|
96
|
+
fi
|
|
97
|
+
|
|
98
|
+
log "OpenAPI artifacts are up to date"
|
|
99
|
+
exit 0
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
chatbot_openapi_source_rev() {
|
|
103
|
+
if ! git -C "$ROOT" rev-parse --is-inside-work-tree >/dev/null 2>&1; then
|
|
104
|
+
echo ""
|
|
105
|
+
return 0
|
|
106
|
+
fi
|
|
107
|
+
git -C "$ROOT" log -1 --format=%H -- \
|
|
108
|
+
"$CHATBOT_SPECS" \
|
|
109
|
+
"$ROOT/lib/decidim/chatbot/test_definitions.rb" \
|
|
110
|
+
"$ROOT/lib/decidim/chatbot"/*tag*.rb 2>/dev/null || echo ""
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
[[ $CHECK -eq 1 ]] && check_artifacts
|
|
114
|
+
|
|
115
|
+
RESTFULL_ROOT="$(resolve_restfull_root)" || {
|
|
116
|
+
echo "Cannot resolve RestFull root. Set DECIDIM_RESTFULL_PATH." >&2
|
|
117
|
+
exit 1
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
BASE_OPENAPI="$RESTFULL_ROOT/openapi.json"
|
|
121
|
+
SWAGGERIZE="$RESTFULL_ROOT/bin/swaggerize"
|
|
122
|
+
|
|
123
|
+
if [[ "${FORCE_RESTFULL_SWAGGERIZE:-}" == "1" ]] || [[ ! -f "$BASE_OPENAPI" ]]; then
|
|
124
|
+
if [[ ! -x "$SWAGGERIZE" ]]; then
|
|
125
|
+
echo "Missing RestFull openapi.json and bin/swaggerize at $RESTFULL_ROOT" >&2
|
|
126
|
+
exit 1
|
|
127
|
+
fi
|
|
128
|
+
log "Running RestFull bin/swaggerize -> $BASE_OPENAPI"
|
|
129
|
+
(cd "$RESTFULL_ROOT" && "$SWAGGERIZE" --out openapi.json)
|
|
130
|
+
fi
|
|
131
|
+
|
|
132
|
+
if [[ ! -f "$BASE_OPENAPI" ]]; then
|
|
133
|
+
echo "Missing $BASE_OPENAPI — run RestFull bin/swaggerize first" >&2
|
|
134
|
+
exit 1
|
|
135
|
+
fi
|
|
136
|
+
|
|
137
|
+
if [[ ! -d "$ROOT/spec/decidim_dummy_app" ]]; then
|
|
138
|
+
echo "Dummy app missing — run: bundle exec rake test_app" >&2
|
|
139
|
+
exit 1
|
|
140
|
+
fi
|
|
141
|
+
|
|
142
|
+
SWAGGER_DIR="$ROOT/spec/decidim_dummy_app/swagger/v1"
|
|
143
|
+
FRAGMENT="$SWAGGER_DIR/swagger.json"
|
|
144
|
+
mkdir -p "$SWAGGER_DIR"
|
|
145
|
+
rm -f "$FRAGMENT"
|
|
146
|
+
|
|
147
|
+
log "Generating chatbot OpenAPI fragment via RSwag"
|
|
148
|
+
cd "$ROOT"
|
|
149
|
+
unset SIMPLECOV
|
|
150
|
+
export RAILS_ENV=test
|
|
151
|
+
export DISABLE_SPRING=1
|
|
152
|
+
SWAGGER_DRY_RUN=0 bundle exec rspec \
|
|
153
|
+
"$CHATBOT_SPECS" \
|
|
154
|
+
--format Rswag::Specs::SwaggerFormatter
|
|
155
|
+
|
|
156
|
+
if [[ ! -f "$FRAGMENT" ]]; then
|
|
157
|
+
echo "RSwag did not write $FRAGMENT" >&2
|
|
158
|
+
exit 1
|
|
159
|
+
fi
|
|
160
|
+
|
|
161
|
+
log "Merging RestFull base + chatbot fragment"
|
|
162
|
+
CHATBOT_OPENAPI_SOURCE_REV="$(chatbot_openapi_source_rev)" \
|
|
163
|
+
bundle exec ruby - "$BASE_OPENAPI" "$FRAGMENT" "$OUT_GEM" "$OUT_WEB" <<'RUBY'
|
|
164
|
+
# frozen_string_literal: true
|
|
165
|
+
|
|
166
|
+
require "json"
|
|
167
|
+
require "fileutils"
|
|
168
|
+
|
|
169
|
+
base_path, fragment_path, *outs = ARGV
|
|
170
|
+
base = JSON.parse(File.read(base_path, encoding: "UTF-8"))
|
|
171
|
+
frag = JSON.parse(File.read(fragment_path, encoding: "UTF-8"))
|
|
172
|
+
|
|
173
|
+
base["info"] ||= {}
|
|
174
|
+
source_rev = ENV.fetch("CHATBOT_OPENAPI_SOURCE_REV", "")
|
|
175
|
+
base["info"]["x-decidim-chatbot-source-rev"] = source_rev unless source_rev.empty?
|
|
176
|
+
|
|
177
|
+
base["paths"] ||= {}
|
|
178
|
+
base["paths"].merge!(frag.fetch("paths", {}))
|
|
179
|
+
|
|
180
|
+
# RSwag registers Authorization once per security_type context → duplicates.
|
|
181
|
+
# Keep first occurrence of each (name, in) pair on merged operations.
|
|
182
|
+
base["paths"].each_value do |path_item|
|
|
183
|
+
path_item.each_value do |operation|
|
|
184
|
+
next unless operation.is_a?(Hash) && operation["parameters"].is_a?(Array)
|
|
185
|
+
|
|
186
|
+
seen = {}
|
|
187
|
+
operation["parameters"] = operation["parameters"].select do |param|
|
|
188
|
+
key = [param["name"], param["in"]]
|
|
189
|
+
next false if seen[key]
|
|
190
|
+
|
|
191
|
+
seen[key] = true
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
base["components"] ||= {}
|
|
197
|
+
# Prefer RestFull base schemas over RSwag dump (bundled gem may lag sibling openapi.json).
|
|
198
|
+
frag_schemas = frag.dig("components", "schemas") || {}
|
|
199
|
+
base["components"]["schemas"] = frag_schemas.merge(base["components"]["schemas"] || {})
|
|
200
|
+
|
|
201
|
+
# Extension webhook events live in WebhookEventCatalog at boot, but RestFull base
|
|
202
|
+
# openapi.json is swaggerized without the chatbot gem. Inject chatbot envelopes here.
|
|
203
|
+
chatbot_webhook_events = [
|
|
204
|
+
["chatbot.settings_updated.succeeded", "wh_chatbot_settings_updated"],
|
|
205
|
+
["chatbot.menu_updated.succeeded", "wh_chatbot_menu_updated"]
|
|
206
|
+
]
|
|
207
|
+
chatbot_webhook_events.each do |event_name, schema_key|
|
|
208
|
+
base["components"]["schemas"][schema_key] = {
|
|
209
|
+
"title" => "Webhook #{event_name}",
|
|
210
|
+
"type" => "object",
|
|
211
|
+
"properties" => {
|
|
212
|
+
"type" => { "type" => "string", "enum" => [event_name] },
|
|
213
|
+
"data" => { "$ref" => "#/components/schemas/chatbot" }
|
|
214
|
+
},
|
|
215
|
+
"required" => %w(type data),
|
|
216
|
+
"additionalProperties" => false
|
|
217
|
+
}
|
|
218
|
+
end
|
|
219
|
+
envelope = base.dig("components", "schemas", "webhook_delivery_envelope")
|
|
220
|
+
if envelope.is_a?(Hash)
|
|
221
|
+
envelope["oneOf"] ||= []
|
|
222
|
+
envelope["discriminator"] ||= { "propertyName" => "type", "mapping" => {} }
|
|
223
|
+
envelope["discriminator"]["mapping"] ||= {}
|
|
224
|
+
chatbot_webhook_events.each do |event_name, schema_key|
|
|
225
|
+
ref = { "$ref" => "#/components/schemas/#{schema_key}" }
|
|
226
|
+
envelope["oneOf"] << ref unless envelope["oneOf"].any? { |item| item["$ref"] == ref["$ref"] }
|
|
227
|
+
envelope["discriminator"]["mapping"][event_name] = "#/components/schemas/#{schema_key}"
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
base["components"]["securitySchemes"] ||= {}
|
|
232
|
+
base["components"]["securitySchemes"].merge!(frag.dig("components", "securitySchemes") || {})
|
|
233
|
+
|
|
234
|
+
base_tags = Array(base["tags"])
|
|
235
|
+
frag_tags = Array(frag["tags"])
|
|
236
|
+
by_name = base_tags.each_with_object({}) { |t, h| h[t["name"]] = t }
|
|
237
|
+
frag_tags.each { |t| by_name[t["name"]] = t }
|
|
238
|
+
base["tags"] = by_name.values
|
|
239
|
+
|
|
240
|
+
json = "#{JSON.pretty_generate(base)}\n"
|
|
241
|
+
outs.each do |out|
|
|
242
|
+
FileUtils.mkdir_p(File.dirname(out))
|
|
243
|
+
File.write(out, json)
|
|
244
|
+
puts "Wrote #{out}"
|
|
245
|
+
end
|
|
246
|
+
RUBY
|
|
247
|
+
|
|
248
|
+
log "done."
|
data/bin/i18n-tasks
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
#
|
|
5
|
+
# This file was generated by Bundler.
|
|
6
|
+
#
|
|
7
|
+
# The application 'i18n-tasks' is installed as part of a gem, and
|
|
8
|
+
# this file is here to facilitate running it.
|
|
9
|
+
#
|
|
10
|
+
|
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
|
12
|
+
|
|
13
|
+
bundle_binstub = File.expand_path("bundle", __dir__)
|
|
14
|
+
|
|
15
|
+
if File.file?(bundle_binstub)
|
|
16
|
+
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
|
|
17
|
+
load(bundle_binstub)
|
|
18
|
+
else
|
|
19
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
|
20
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
require "rubygems"
|
|
25
|
+
require "bundler/setup"
|
|
26
|
+
|
|
27
|
+
load Gem.bin_path("i18n-tasks", "i18n-tasks")
|
data/bin/postversion
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#! /bin/bash
|
|
2
|
+
#
|
|
3
|
+
# This script will sync the version of the different packaged software
|
|
4
|
+
# to the same main version, governed by the ./package.json version attribute.
|
|
5
|
+
#
|
|
6
|
+
# This allow us to have a versionned client api, ruby gem, and api documentation
|
|
7
|
+
# aligned with the same version, making things simpler.
|
|
8
|
+
#
|
|
9
|
+
PACKAGE_VERSION=$(jq -r '.version' package.json);
|
|
10
|
+
|
|
11
|
+
# Update version.rb
|
|
12
|
+
file=lib/decidim/chatbot/version.rb
|
|
13
|
+
if [ -f "$file" ]; then
|
|
14
|
+
sed -i "/# DO NOT UPDATE MANUALLY/s/\".*\"/\"$PACKAGE_VERSION\"/" $file;
|
|
15
|
+
fi
|
|
16
|
+
|
|
17
|
+
echo $PACKAGE_VERSION
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# i18n-tasks for decidim-chatbot locales.
|
|
2
|
+
# Run: bundle exec i18n-tasks missing --config config/i18n-tasks.yml
|
|
3
|
+
base_locale: en
|
|
4
|
+
locales: [en]
|
|
5
|
+
|
|
6
|
+
data:
|
|
7
|
+
read:
|
|
8
|
+
- "config/locales/decidim_chatbot.en.yml"
|
|
9
|
+
write:
|
|
10
|
+
- "config/locales/decidim_chatbot.en.yml"
|
|
11
|
+
|
|
12
|
+
search:
|
|
13
|
+
paths:
|
|
14
|
+
- "app/"
|
|
15
|
+
- "lib/"
|
|
16
|
+
relative_roots:
|
|
17
|
+
- "app/views"
|
|
18
|
+
- "lib"
|
|
19
|
+
|
|
20
|
+
# Core admin chrome (provided by decidim-admin / decidim-core at runtime).
|
|
21
|
+
ignore_missing:
|
|
22
|
+
- "decidim.admin.actions.actions_label"
|
|
23
|
+
- "decidim.admin.filters.search_placeholder.*"
|
|
24
|
+
- "decidim.search.term_input_placeholder"
|
|
25
|
+
|
|
26
|
+
# Keys resolved dynamically by RestFull / Toggle (not static string literals in this gem).
|
|
27
|
+
ignore_unused:
|
|
28
|
+
- "decidim.rest_full.*"
|
|
29
|
+
- "decidim_toggle.system.decidim_chatbot.*"
|
|
30
|
+
- "activemodel.attributes.chatbot.*"
|
|
31
|
+
- "activemodel.attributes.item.*"
|
|
32
|
+
- "activemodel.attributes.test.*"
|
|
33
|
+
- "decidim.chatbot.admin.chatbots.statuses.*"
|
|
34
|
+
- "decidim.chatbot.admin.manifests.*"
|
|
35
|
+
- "decidim.chatbot.admin.manifests.*"
|
|
36
|
+
- "decidim.chatbot.admin.users.subscribed.*"
|
|
37
|
+
- "decidim.admin_log.chatbot.*"
|
|
38
|
+
- "decidim.chatbot.api.errors.*"
|