From d08cf7ce0a6cddc611d57c415fba9e003c264fc2 Mon Sep 17 00:00:00 2001 From: Alexis Gousseau Date: Wed, 6 Aug 2025 17:20:34 +0200 Subject: [PATCH 1/2] chore: :arrow_up: bump crm client to v4.1.2 --- composer.json | 21 +++++++++++++++------ composer.lock | 14 +++++++------- 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/composer.json b/composer.json index 5e3646fc..7ad0bc43 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,10 @@ { "type": "composer", "url": "https://wpackagist.org", - "only": ["wpackagist-plugin/*", "wpackagist-theme/*"] + "only": [ + "wpackagist-plugin/*", + "wpackagist-theme/*" + ] }, { "type": "composer", @@ -40,7 +43,7 @@ "wpackagist-plugin/wp-crontrol": "^1.16", "wpengine/advanced-custom-fields-pro": "^6.3", "uwil/espri-restauration-theme": "^1.0", - "ldc/ldccrmv4client": "^4.0" + "ldc/ldccrmv4client": "^4.1.1" }, "require-dev": { "squizlabs/php_codesniffer": "^3.11", @@ -64,10 +67,16 @@ "prefer-stable": true, "extra": { "installer-paths": { - "public/app/mu-plugins/{$name}/": ["type:wordpress-muplugin", - "wpengine/advanced-custom-fields-pro"], - "public/app/plugins/{$name}/": ["type:wordpress-plugin"], - "public/app/themes/{$name}/": ["type:wordpress-theme"] + "public/app/mu-plugins/{$name}/": [ + "type:wordpress-muplugin", + "wpengine/advanced-custom-fields-pro" + ], + "public/app/plugins/{$name}/": [ + "type:wordpress-plugin" + ], + "public/app/themes/{$name}/": [ + "type:wordpress-theme" + ] }, "wordpress-install-dir": "public/wp" }, diff --git a/composer.lock b/composer.lock index d56916b4..c1251a54 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "a6516fd4ebebba0934322dbfafb3a1ae", + "content-hash": "756f7102745afe5b7d22267762cb9a0d", "packages": [ { "name": "composer/installers", @@ -632,16 +632,16 @@ }, { "name": "ldc/ldccrmv4client", - "version": "4.0.9", + "version": "4.1.2", "source": { "type": "git", "url": "git@lab.s-web.fr:ldc-web/projets/crm-client.git", - "reference": "b54f61add50e93c68d26cadbe55d29216fcfc666" + "reference": "3cd9a83dd2bff44313462cdc565a348d0f935720" }, "dist": { "type": "zip", - "url": "https://lab.s-web.fr/api/v4/projects/26/packages/composer/archives/ldc/ldccrmv4client.zip?sha=b54f61add50e93c68d26cadbe55d29216fcfc666", - "reference": "b54f61add50e93c68d26cadbe55d29216fcfc666", + "url": "https://lab.s-web.fr/api/v4/projects/26/packages/composer/archives/ldc/ldccrmv4client.zip?sha=3cd9a83dd2bff44313462cdc565a348d0f935720", + "reference": "3cd9a83dd2bff44313462cdc565a348d0f935720", "shasum": "" }, "require": { @@ -3656,6 +3656,6 @@ "platform": { "php": ">=8.0" }, - "platform-dev": [], - "plugin-api-version": "2.3.0" + "platform-dev": {}, + "plugin-api-version": "2.6.0" } From 9c5c100dbe7a847857a6a8eb776b8417609bd024 Mon Sep 17 00:00:00 2001 From: Alexis Gousseau Date: Thu, 7 Aug 2025 10:46:32 +0200 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E2=9C=A8=20add=20crm=20question=20?= =?UTF-8?q?id=20variable=20environnement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 3 ++- config/custom.php | 3 ++- manifest.yaml | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index c9646046..ae4fa1d0 100644 --- a/.env.example +++ b/.env.example @@ -51,4 +51,5 @@ LDCWEB_API_TOKEN= # CRM CRM_ENDPOINT= CRM_TOKEN= -CRM_PASSWORD= \ No newline at end of file +CRM_PASSWORD= +CRM_QUESTION_ID= \ No newline at end of file diff --git a/config/custom.php b/config/custom.php index ca264267..fe5e5033 100644 --- a/config/custom.php +++ b/config/custom.php @@ -53,4 +53,5 @@ Config::define('LDCWEB_API_TOKEN', env('LDCWEB_API_TOKEN')); // CRM Config::define('CRM_ENDPOINT', env('CRM_ENDPOINT')); Config::define('CRM_TOKEN', env('CRM_TOKEN')); -Config::define('CRM_PASSWORD', env('CRM_PASSWORD')); \ No newline at end of file +Config::define('CRM_PASSWORD', env('CRM_PASSWORD')); +Config::define('CRM_QUESTION_ID', env('CRM_QUESTION_ID')); diff --git a/manifest.yaml b/manifest.yaml index 08ca55b9..5aff4ae7 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -37,6 +37,7 @@ data: CRM_ENDPOINT: "${APP_CRM_ENDPOINT}" CRM_TOKEN: "${APP_CRM_TOKEN}" CRM_PASSWORD: "${APP_CRM_PASSWORD}" + CRM_QUESTION_ID: "${APP_CRM_QUESTION_ID}" --- apiVersion: v1