Commit graph

78 commits

Author SHA1 Message Date
Noah Lancien
2b240ed4ca fix: move uploaded claims files to private storage + use .zip for some exports types 2025-11-27 16:19:48 +01:00
Alexis Gousseau
7a2318b6a3
fix: 🐛 use store base64 file method of laravel common to save claim file 2025-09-08 14:59:54 +02:00
Alexis Gousseau
1aaadb88d0
fix: 🚨 resolve phpcs errors 2025-09-08 14:59:53 +02:00
Alexis Gousseau
09414e228f
fix: 🚑 update casting model_id column 2025-09-08 14:25:11 +02:00
Alexis Gousseau
93331aaca1
fix: 🚑 force cast to string for model_id column 2025-09-03 10:39:29 +02:00
Alexis Gousseau
0f008b0db4
fix: 🐛 change the customer's opt-in value if it exists when call api optin route #27 2025-08-27 09:39:17 +02:00
Alexis Gousseau
eeb467d1f0
fix: 🐛 update saving claim file 2025-08-26 09:34:58 +02:00
Alexis Gousseau
351126ebf8
fix: 🐛 update answer cache and cascade delete 2025-08-07 17:41:07 +02:00
Alexis Gousseau
187b96fbaf
feat: ✅ add claims api route and tests for V4 2025-07-28 09:08:01 +02:00
Alexis Gousseau
89609454ad
feat: ✨ segmentation optins with answers #41 2025-07-25 09:44:40 +02:00
Alexis Gousseau
6ca2fe1779 fix: 🎨 improve methods prototype 2025-04-23 10:57:33 +02:00
Noah Lancien
e6135ab857 fix: Replaced sync by detach/attach in answers store/update 2024-08-12 19:04:17 +02:00
Alexis Gousseau
a6639cb87e fix: 🐛 update the saving of answers 2024-08-05 12:43:26 +02:00
Jérémy Munsch
23c9efdb22
phpcs 2023-10-06 16:37:31 +02:00
Alexis Gousseau
303834bbca
Crm V4
- Make all tests pass Client (V4),CRMV2,CRMV4
- Simplify client submodule path
- Move App_url to .env.testing
2023-10-06 16:37:29 +02:00
Alexis Gousseau
764d0b2043
bump laravel 10 - issue Closes #19 2023-10-06 16:33:22 +02:00
Alexis Gousseau
e4b5eed7e4
Remove crm v1 - issue Closes #20 2023-10-06 16:33:21 +02:00
Jérémy Munsch
ac060ba167
Fixes #2 use isoFormat instead of format
(cherry picked from commit ca5419a992d0e1838d1030db9469edbebc20d995)
2023-06-30 15:09:50 +02:00
Jérémy Munsch
78a166af00
Add Api Remove single optin using hashcode 2023-06-30 14:59:48 +02:00
Jérémy Munsch
97f9f49f2e
Evolution Set hashcode as PK on single optins 2023-06-30 14:59:47 +02:00
Jérémy Munsch
5c770eb9d5
phpcs Change object to full class path in docblock comments 2023-06-30 14:59:00 +02:00
Vincent BRIDIER
b31ebdcf79
Add missing backslashes on docblocks 2023-06-30 12:51:21 +02:00
Alexis Gousseau
3feea553dc update dockblocs 2023-06-23 17:18:59 +02:00
Jérémy Munsch
a9e4b7cde3
ArcadiaController V1 fix for game xml not including code_on_pack 2022-08-31 10:26:00 +02:00
81aabdab72
Version 3.0.0
This removes api authentification with token in favor of signature method.
Refactorize code and clean up. It add more unit test plus code coverage
in test/converage.

- Added config.api.timestampTimeout
- Added Helper::signRequest This calculates the request signature
- Added more unit tests and extend code coverage.
- Added rate limiter for web routes
- Added RemoveSpaces Sanitizer on api requests
- Added stress test suite
- Changed AuthServiceProvider api-token to api-hmac
- Changed CustomerSeeder to have at least of customer activated (for unit tests)
- Changed used transation for saveing multiple models
- Changed, in ServiceController generateApiToken to generateServicePassword
- Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC  value
- Composer added brianium/paratest
- Composer update
- Fixed case where removing single optin could be the wrong one (not for the good service)
- Fixed customer delete
- Fixed customer would not be resolved by brand.
- Fixed Really check that request is json checking body content, preventing sending malformed requests
- Remove ApiError::needAuth
- Removed api_token
- Removed ApiController::authenticate
- Removed config.api.tokenTimeout
- Removed Header check or usage because of HAProxy doing weird stuff
- Removed lock files from gitignore
- Removed memcached dependency
- Removed unused questions resources api routes
- Removed workspace file

Migrations
- Added unique index on services.bearer_token
- Changed customer_id on customer_answer is nullable
- Changed services.bearer_pwd length to 312 (the size of the token)
- Dropped services.api_token and service.api_token_date
2022-01-06 12:11:05 +01:00
Jérémy Munsch
f0a771031c
Arcadia push order id in name 2021-11-15 11:34:57 +01:00
Jérémy Munsch
afa3e06699
Arcadia xml add hint for xml failed 2021-11-10 09:13:45 +01:00
Jérémy Munsch
69ac3abf5e
Stat Api phase 1 CRM side + test 2021-11-05 14:46:53 +01:00
Jérémy Munsch
fd80875410
Change customer status to boolean 2021-10-26 12:01:40 +02:00
Jérémy Munsch
ffaaef4356
Ticket 391 : fix ApiV1 email strtolower 2021-10-25 17:42:10 +02:00
Jérémy Munsch
2ae1d09afc
Correct arcadia Api V2 methods + unit tests 2021-10-19 17:15:34 +02:00
Jérémy Munsch
3f5c0d30e8
ApiController : Fix Wrong api error exception throwed 2021-10-19 17:08:51 +02:00
Jérémy Munsch
923e566ee7
Changed Arcadia mails, add customer parameters for these calls
Updated Client
bump to 2.2.0
2021-10-18 09:03:00 +02:00
Jérémy Munsch
5ae0aa33bd Apiv2 Customer optimize authenticate 2021-08-23 22:47:42 +02:00
Jérémy Munsch
6c28c87781 APiv2 customer lastconnection on a job + refactorize login 2021-08-23 21:56:12 +02:00
Jérémy Munsch
aeaa44e8c6 Set correct prop check $customerInfo->exists on api v2 customer store 2021-08-23 21:41:05 +02:00
Jérémy Munsch
e618e6fb46 Customer::info and Customer::login try to get loaded relations first 2021-08-23 20:50:51 +02:00
Jérémy Munsch
cfa87b7924 phpcs fix AnswersController 2021-08-23 20:50:51 +02:00
Jérémy Munsch
c0578f5d40 Api V2 Fix get questions answers 2021-08-20 16:46:07 +02:00
Jérémy Munsch
77b91a6c09 Fix answer api 2021-08-18 11:56:01 +02:00
Jérémy Munsch
f8a61d0e4c storeCustomerAnswers Mise à jour sans supprimer les anciennes questions 2021-08-18 08:27:09 +02:00
Jérémy Munsch
4527bc01f6 Refactorisation \App\Models\Customer::getAnswers 2021-08-18 08:26:40 +02:00
Jérémy Munsch
443b649604 Handle http auth with bearer token 2021-08-16 18:47:31 +02:00
Jérémy Munsch
6ec8ed1114 Fix Api authenticate missing bearer token 2021-08-16 16:31:15 +02:00
Jérémy Munsch
787ee5a4c5 - tag 2.0.1
- Add Questions segementation
- Fix Customer delete Tests
2021-08-11 17:37:59 +02:00
Jérémy Munsch
642d3cce08 phpcs rmove unused imports 2021-08-10 12:09:49 +02:00
Jérémy Munsch
7d0b86d134 Store hashed tokens (bearer and api) instead of clear 2021-08-09 17:35:28 +02:00
Jérémy Munsch
46a47e822d Some php doc 2021-08-09 08:55:39 +02:00
Jérémy Munsch
260d5fd259 - Arcadia separate routes on v2
- fix optin v2
- customer validation password
- full working v2 tests
2021-08-06 15:57:48 +02:00
Jérémy Munsch
f03ae09e6a - fixes
- customer update prop test
2021-08-05 16:18:09 +02:00