Skip to content

IAV-848/feat(integration): Rename SHOPIFY → SHOPIFY_ACCESS_TOKEN & extract AgentWorkflowService with update support

salaheddine zidani a demandé de fusionner feature/IAV-848 vers develop

Summary

Two related changes:

  • SHOPIFYSHOPIFY_ACCESS_TOKEN: enum rename propagated across all layers to better reflect the credential nature. N8n key updated from "shopifyApi" to "shopifyAccessTokenApi".
  • Workflow service extraction: workflow logic moved out of AgentIntegrationServiceImpl into a dedicated AgentWorkflowService. Adds updateWorkflowForAgent() with automatic create-or-update routing.

Key Changes

  • CredentialType.SHOPIFYSHOPIFY_ACCESS_TOKEN in helper, validator, injector, HTTP client, mapping, and application.yml
  • New AgentWorkflowService interface + AgentWorkflowServiceImpl handling create, update, credential injection, fake credentials, and webhook injection
  • createWorkflowForAgent() auto-routes to updateWorkflowForAgent() when agent already has an n8nWorkflowId
  • AgentIntegrationService now only handles createIntegrationForAgent()
  • @NotBlank@Positive on int fields in ShopifyOAuthConfigs
  • @Builder added to WorkflowRequestDTO

Related Issues

IAV-848

Modification effectuée par salaheddine zidani

Rapports de requête de fusion