From e6d1af14c49f8faa9dbfe6e3ca0401d9f99cab48 Mon Sep 17 00:00:00 2001 From: Sebastien Colladon Date: Thu, 15 Dec 2022 15:22:52 +0100 Subject: [PATCH 1/2] feat: add flow action and knowledge publish metadata --- src/metadata/a48.json | 16 ++++++++++++++++ src/metadata/v46.json | 16 ++++++++++++++++ src/metadata/v47.json | 16 ++++++++++++++++ src/metadata/v49.json | 16 ++++++++++++++++ src/metadata/v50.json | 16 ++++++++++++++++ src/metadata/v51.json | 16 ++++++++++++++++ src/metadata/v52.json | 16 ++++++++++++++++ src/metadata/v53.json | 16 ++++++++++++++++ src/metadata/v54.json | 16 ++++++++++++++++ src/metadata/v55.json | 16 ++++++++++++++++ src/metadata/v56.json | 16 ++++++++++++++++ 11 files changed, 176 insertions(+) diff --git a/src/metadata/a48.json b/src/metadata/a48.json index f6125855..cb670c06 100644 --- a/src/metadata/a48.json +++ b/src/metadata/a48.json @@ -1290,6 +1290,22 @@ "xmlName": "WorkflowRule", "xmlTag": "rules" }, + { + "directoryName": "workflows.flowActions", + "inFolder": false, + "metaFile": false, + "parentXmlName": "Workflow", + "xmlName": "WorkflowFlowAction", + "xmlTag": "flowActions" + }, + { + "directoryName": "workflows.knowledgePublishes", + "inFolder": false, + "metaFile": false, + "parentXmlName": "Workflow", + "xmlName": "WorkflowKnowledgePublish", + "xmlTag": "knowledgePublishes" + }, { "directoryName": "sharingRules.sharingCriteriaRules", "inFolder": false, diff --git a/src/metadata/v46.json b/src/metadata/v46.json index 4e5b4aa7..6fe95829 100644 --- a/src/metadata/v46.json +++ b/src/metadata/v46.json @@ -1043,6 +1043,22 @@ "xmlName": "WorkflowRule", "xmlTag": "rules" }, + { + "directoryName": "workflows.flowActions", + "inFolder": false, + "metaFile": false, + "parentXmlName": "Workflow", + "xmlName": "WorkflowFlowAction", + "xmlTag": "flowActions" + }, + { + "directoryName": "workflows.knowledgePublishes", + "inFolder": false, + "metaFile": false, + "parentXmlName": "Workflow", + "xmlName": "WorkflowKnowledgePublish", + "xmlTag": "knowledgePublishes" + }, { "directoryName": "sharingRules.sharingCriteriaRules", "inFolder": false, diff --git a/src/metadata/v47.json b/src/metadata/v47.json index e4b1622c..096e64f1 100644 --- a/src/metadata/v47.json +++ b/src/metadata/v47.json @@ -1269,6 +1269,22 @@ "xmlName": "WorkflowRule", "xmlTag": "rules" }, + { + "directoryName": "workflows.flowActions", + "inFolder": false, + "metaFile": false, + "parentXmlName": "Workflow", + "xmlName": "WorkflowFlowAction", + "xmlTag": "flowActions" + }, + { + "directoryName": "workflows.knowledgePublishes", + "inFolder": false, + "metaFile": false, + "parentXmlName": "Workflow", + "xmlName": "WorkflowKnowledgePublish", + "xmlTag": "knowledgePublishes" + }, { "directoryName": "sharingRules.sharingCriteriaRules", "inFolder": false, diff --git a/src/metadata/v49.json b/src/metadata/v49.json index e9fa5cd7..1441cf47 100644 --- a/src/metadata/v49.json +++ b/src/metadata/v49.json @@ -1283,6 +1283,22 @@ "xmlName": "WorkflowRule", "xmlTag": "rules" }, + { + "directoryName": "workflows.flowActions", + "inFolder": false, + "metaFile": false, + "parentXmlName": "Workflow", + "xmlName": "WorkflowFlowAction", + "xmlTag": "flowActions" + }, + { + "directoryName": "workflows.knowledgePublishes", + "inFolder": false, + "metaFile": false, + "parentXmlName": "Workflow", + "xmlName": "WorkflowKnowledgePublish", + "xmlTag": "knowledgePublishes" + }, { "directoryName": "sharingRules.sharingCriteriaRules", "inFolder": false, diff --git a/src/metadata/v50.json b/src/metadata/v50.json index e9fa5cd7..1441cf47 100644 --- a/src/metadata/v50.json +++ b/src/metadata/v50.json @@ -1283,6 +1283,22 @@ "xmlName": "WorkflowRule", "xmlTag": "rules" }, + { + "directoryName": "workflows.flowActions", + "inFolder": false, + "metaFile": false, + "parentXmlName": "Workflow", + "xmlName": "WorkflowFlowAction", + "xmlTag": "flowActions" + }, + { + "directoryName": "workflows.knowledgePublishes", + "inFolder": false, + "metaFile": false, + "parentXmlName": "Workflow", + "xmlName": "WorkflowKnowledgePublish", + "xmlTag": "knowledgePublishes" + }, { "directoryName": "sharingRules.sharingCriteriaRules", "inFolder": false, diff --git a/src/metadata/v51.json b/src/metadata/v51.json index 852c99a1..90af3a51 100644 --- a/src/metadata/v51.json +++ b/src/metadata/v51.json @@ -1339,6 +1339,22 @@ "xmlName": "WorkflowRule", "xmlTag": "rules" }, + { + "directoryName": "workflows.flowActions", + "inFolder": false, + "metaFile": false, + "parentXmlName": "Workflow", + "xmlName": "WorkflowFlowAction", + "xmlTag": "flowActions" + }, + { + "directoryName": "workflows.knowledgePublishes", + "inFolder": false, + "metaFile": false, + "parentXmlName": "Workflow", + "xmlName": "WorkflowKnowledgePublish", + "xmlTag": "knowledgePublishes" + }, { "directoryName": "sharingRules.sharingCriteriaRules", "inFolder": false, diff --git a/src/metadata/v52.json b/src/metadata/v52.json index 934bbb82..4264f03a 100644 --- a/src/metadata/v52.json +++ b/src/metadata/v52.json @@ -1346,6 +1346,22 @@ "xmlName": "WorkflowRule", "xmlTag": "rules" }, + { + "directoryName": "workflows.flowActions", + "inFolder": false, + "metaFile": false, + "parentXmlName": "Workflow", + "xmlName": "WorkflowFlowAction", + "xmlTag": "flowActions" + }, + { + "directoryName": "workflows.knowledgePublishes", + "inFolder": false, + "metaFile": false, + "parentXmlName": "Workflow", + "xmlName": "WorkflowKnowledgePublish", + "xmlTag": "knowledgePublishes" + }, { "directoryName": "sharingRules.sharingCriteriaRules", "inFolder": false, diff --git a/src/metadata/v53.json b/src/metadata/v53.json index 934bbb82..4264f03a 100644 --- a/src/metadata/v53.json +++ b/src/metadata/v53.json @@ -1346,6 +1346,22 @@ "xmlName": "WorkflowRule", "xmlTag": "rules" }, + { + "directoryName": "workflows.flowActions", + "inFolder": false, + "metaFile": false, + "parentXmlName": "Workflow", + "xmlName": "WorkflowFlowAction", + "xmlTag": "flowActions" + }, + { + "directoryName": "workflows.knowledgePublishes", + "inFolder": false, + "metaFile": false, + "parentXmlName": "Workflow", + "xmlName": "WorkflowKnowledgePublish", + "xmlTag": "knowledgePublishes" + }, { "directoryName": "sharingRules.sharingCriteriaRules", "inFolder": false, diff --git a/src/metadata/v54.json b/src/metadata/v54.json index 934bbb82..4264f03a 100644 --- a/src/metadata/v54.json +++ b/src/metadata/v54.json @@ -1346,6 +1346,22 @@ "xmlName": "WorkflowRule", "xmlTag": "rules" }, + { + "directoryName": "workflows.flowActions", + "inFolder": false, + "metaFile": false, + "parentXmlName": "Workflow", + "xmlName": "WorkflowFlowAction", + "xmlTag": "flowActions" + }, + { + "directoryName": "workflows.knowledgePublishes", + "inFolder": false, + "metaFile": false, + "parentXmlName": "Workflow", + "xmlName": "WorkflowKnowledgePublish", + "xmlTag": "knowledgePublishes" + }, { "directoryName": "sharingRules.sharingCriteriaRules", "inFolder": false, diff --git a/src/metadata/v55.json b/src/metadata/v55.json index 6634d7a9..6f6a1584 100644 --- a/src/metadata/v55.json +++ b/src/metadata/v55.json @@ -1360,6 +1360,22 @@ "xmlName": "WorkflowRule", "xmlTag": "rules" }, + { + "directoryName": "workflows.flowActions", + "inFolder": false, + "metaFile": false, + "parentXmlName": "Workflow", + "xmlName": "WorkflowFlowAction", + "xmlTag": "flowActions" + }, + { + "directoryName": "workflows.knowledgePublishes", + "inFolder": false, + "metaFile": false, + "parentXmlName": "Workflow", + "xmlName": "WorkflowKnowledgePublish", + "xmlTag": "knowledgePublishes" + }, { "directoryName": "sharingRules.sharingCriteriaRules", "inFolder": false, diff --git a/src/metadata/v56.json b/src/metadata/v56.json index 11b78561..293c6c8e 100644 --- a/src/metadata/v56.json +++ b/src/metadata/v56.json @@ -1381,6 +1381,22 @@ "xmlName": "WorkflowRule", "xmlTag": "rules" }, + { + "directoryName": "workflows.flowActions", + "inFolder": false, + "metaFile": false, + "parentXmlName": "Workflow", + "xmlName": "WorkflowFlowAction", + "xmlTag": "flowActions" + }, + { + "directoryName": "workflows.knowledgePublishes", + "inFolder": false, + "metaFile": false, + "parentXmlName": "Workflow", + "xmlName": "WorkflowKnowledgePublish", + "xmlTag": "knowledgePublishes" + }, { "directoryName": "sharingRules.sharingCriteriaRules", "inFolder": false, From 6ea0589e1d4a5fb8ef7e8aac9e5013eb3cd2298b Mon Sep 17 00:00:00 2001 From: Sebastien Colladon Date: Thu, 15 Dec 2022 15:47:35 +0100 Subject: [PATCH 2/2] test: add domain test for all workflow inFile metadata --- __tests__/integration/domain.test.js | 31 +++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/__tests__/integration/domain.test.js b/__tests__/integration/domain.test.js index 9c6fe003..09ee2195 100644 --- a/__tests__/integration/domain.test.js +++ b/__tests__/integration/domain.test.js @@ -64,16 +64,37 @@ const testContext = [ [ 'workflows', 'force-app/main/default/workflows/Account.workflow-meta.xml', - new Set(['Account.Alert']), + new Set(['Account.Test']), 'workflows.alerts', - `${EOL}${EOL}${EOL}Alert${EOL}${EOL}`, + `${EOL}${EOL}${EOL}Test${EOL}${EOL}`, ], [ 'workflows', 'force-app/main/default/workflows/Test/Account.workflow-meta.xml', - new Set(['Account.Alert']), - 'workflows.alerts', - `${EOL}${EOL}${EOL}Alert${EOL}${EOL}`, + new Set(['Account.Test']), + 'workflows.fieldUpdates', + `${EOL}${EOL}${EOL}Test${EOL}${EOL}`, + ], + [ + 'workflows', + 'force-app/main/default/workflows/Test/Account.workflow-meta.xml', + new Set(['Account.Test']), + 'workflows.outboundMessages', + `${EOL}${EOL}${EOL}Test${EOL}${EOL}`, + ], + [ + 'workflows', + 'force-app/main/default/workflows/Test/Account.workflow-meta.xml', + new Set(['Account.Test']), + 'workflows.rules', + `${EOL}${EOL}${EOL}Test${EOL}${EOL}`, + ], + [ + 'workflows', + 'force-app/main/default/workflows/Test/Account.workflow-meta.xml', + new Set(['Account.Test']), + 'workflows.flowActions', + `${EOL}${EOL}${EOL}Test${EOL}${EOL}`, ], [ 'labels',