Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add flow action and knowledge publish inFile Workflow metadata #401

Merged
merged 2 commits into from
Dec 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 26 additions & 5 deletions __tests__/integration/domain.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${EOL}<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">${EOL}<alerts>${EOL}<fullName>Alert</fullName>${EOL}</alerts>${EOL}</Workflow>`,
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${EOL}<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">${EOL}<alerts>${EOL}<fullName>Test</fullName>${EOL}</alerts>${EOL}</Workflow>`,
],
[
'workflows',
'force-app/main/default/workflows/Test/Account.workflow-meta.xml',
new Set(['Account.Alert']),
'workflows.alerts',
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${EOL}<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">${EOL}<alerts>${EOL}<fullName>Alert</fullName>${EOL}</alerts>${EOL}</Workflow>`,
new Set(['Account.Test']),
'workflows.fieldUpdates',
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${EOL}<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">${EOL}<fieldUpdates>${EOL}<fullName>Test</fullName>${EOL}</fieldUpdates>${EOL}</Workflow>`,
],
[
'workflows',
'force-app/main/default/workflows/Test/Account.workflow-meta.xml',
new Set(['Account.Test']),
'workflows.outboundMessages',
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${EOL}<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">${EOL}<outboundMessages>${EOL}<fullName>Test</fullName>${EOL}</outboundMessages>${EOL}</Workflow>`,
],
[
'workflows',
'force-app/main/default/workflows/Test/Account.workflow-meta.xml',
new Set(['Account.Test']),
'workflows.rules',
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${EOL}<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">${EOL}<rules>${EOL}<fullName>Test</fullName>${EOL}</rules>${EOL}</Workflow>`,
],
[
'workflows',
'force-app/main/default/workflows/Test/Account.workflow-meta.xml',
new Set(['Account.Test']),
'workflows.flowActions',
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${EOL}<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">${EOL}<flowActions>${EOL}<fullName>Test</fullName>${EOL}</flowActions>${EOL}</Workflow>`,
],
[
'labels',
Expand Down
16 changes: 16 additions & 0 deletions src/metadata/a48.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
16 changes: 16 additions & 0 deletions src/metadata/v46.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
16 changes: 16 additions & 0 deletions src/metadata/v47.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
16 changes: 16 additions & 0 deletions src/metadata/v49.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
16 changes: 16 additions & 0 deletions src/metadata/v50.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
16 changes: 16 additions & 0 deletions src/metadata/v51.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
16 changes: 16 additions & 0 deletions src/metadata/v52.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
16 changes: 16 additions & 0 deletions src/metadata/v53.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
16 changes: 16 additions & 0 deletions src/metadata/v54.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
16 changes: 16 additions & 0 deletions src/metadata/v55.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
16 changes: 16 additions & 0 deletions src/metadata/v56.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down