feat: Create shipping options workflow (#6962)

**What**

- Create main workflow
- Update create pricing rule types step to be idempotent
- update remote joiner to support granular isList confguration on field aliases
- Add full workflow integration tests
This commit is contained in:
Adrien de Peretti
2024-04-06 11:51:48 +00:00
committed by GitHub
parent 5e30b8cce6
commit 65794f4bb5
20 changed files with 804 additions and 20 deletions
@@ -841,6 +841,7 @@ export class RemoteJoiner {
const alias = fieldAlias[property] as any
const path = isString(alias) ? alias : alias.path
const fieldAliasIsList = isString(alias) ? false : !!alias.isList
const fullPath = [...currentPath.concat(path.split("."))]
if (aliasRealPathMap.has(aliasPath)) {
@@ -868,7 +869,7 @@ export class RemoteJoiner {
location: [...currentPath],
property,
path: fullPath,
isList: !!serviceConfig.relationships?.find(
isList: fieldAliasIsList || !!serviceConfig.relationships?.find(
(relationship) => relationship.alias === parentFieldAlias
)?.isList,
})