diff --git a/.gitignore b/.gitignore index 283716e..0519127 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,9 @@ robot/CCI-Food-Bank/results/ # Misc .DS_Store + +# Omnistudio Files +vlocity-temp +VlocityBuildErrors.log +VlocityBuildLog.yaml +.sf diff --git a/cumulusci.yml b/cumulusci.yml index 2a11e7c..3e9b87b 100644 --- a/cumulusci.yml +++ b/cumulusci.yml @@ -1,35 +1,30 @@ -minimum_cumulusci_version: "3.1.0" +minimum_cumulusci_version: 3.1.0 project: name: CCI-Food-Bank package: name: CumulusCI Food Bank Demo namespace: ccifb1 - api_version: "47.0" + api_version: '47.0' source_format: sfdx git: - repo_url: "https://github.com/SFDO-Tooling/CCI-Food-Bank" - + repo_url: https://github.com/SFDO-Tooling/CCI-Food-Bank sources: omni: github: https://github.com/SalesforceFoundation/omni-cci - tasks: robot: options: suites: robot/CCI-Food-Bank/tests options: outputdir: robot/CCI-Food-Bank/results - robot_testdoc: options: path: robot/CCI-Food-Bank/tests output: robot/CCI-Food-Bank/doc/CCI-Food-Bank_tests.html - deploy_qa: class_path: cumulusci.tasks.salesforce.Deploy options: path: unpackaged/config/qa - flows: config_qa: steps: @@ -43,7 +38,14 @@ flows: flow: dev_org 4: flow: omni:install_omnistudio - + test_omni: + steps: + 1: + flow: omni_org + 2: + task: vlocity_pack_deploy + options: + job_file: job.yaml orgs: scratch: trial: @@ -52,13 +54,16 @@ orgs: config_file: orgs/omni.json setup_flow: omni_org days: 7 - + test_omni: + config_file: orgs/omni.json + setup_flow: test_omni + days: 7 plans: install: slug: install title: Install CCI Food Bank tier: primary - is_listed: True + is_listed: true steps: 1: flow: install_prod diff --git a/force-app/main/default/sharingRules/Account.sharingRules-meta.xml b/force-app/main/default/sharingRules/Account.sharingRules-meta.xml new file mode 100644 index 0000000..4c77354 --- /dev/null +++ b/force-app/main/default/sharingRules/Account.sharingRules-meta.xml @@ -0,0 +1,3 @@ + + + diff --git a/force-app/main/default/sharingRules/Case.sharingRules-meta.xml b/force-app/main/default/sharingRules/Case.sharingRules-meta.xml new file mode 100644 index 0000000..4c77354 --- /dev/null +++ b/force-app/main/default/sharingRules/Case.sharingRules-meta.xml @@ -0,0 +1,3 @@ + + + diff --git a/job.yaml b/job.yaml new file mode 100644 index 0000000..b7e76e9 --- /dev/null +++ b/job.yaml @@ -0,0 +1,3 @@ +projectPath: vlocity +queries: + - FlexCard diff --git a/vlocity/FlexCard/test/test.json b/vlocity/FlexCard/test/test.json new file mode 100644 index 0000000..17659f5 --- /dev/null +++ b/vlocity/FlexCard/test/test.json @@ -0,0 +1,52 @@ +{ + "dataSource": { + "contextVariables": [], + "orderBy": {}, + "type": null, + "value": {} + }, + "enableLwc": true, + "isFlex": true, + "selectableMode": "Multi", + "states": [ + { + "conditions": { + "group": [], + "id": "state-condition-object", + "isParent": true + }, + "definedActions": { + "actions": [] + }, + "fields": [], + "isSmartAction": false, + "name": "Active", + "smartAction": {}, + "styleObject": { + "class": "slds-card slds-p-around_x-small slds-m-bottom_x-small", + "container": { + "class": "slds-card" + }, + "margin": [ + { + "size": "x-small", + "type": "bottom" + } + ], + "padding": [ + { + "size": "x-small", + "type": "around" + } + ], + "size": { + "default": "12", + "isResponsive": false + }, + "sizeClass": "slds-size_12-of-12" + } + } + ], + "theme": "slds", + "title": "test" +} diff --git a/vlocity/FlexCard/test/test_DataPack.json b/vlocity/FlexCard/test/test_DataPack.json new file mode 100644 index 0000000..e3c34b2 --- /dev/null +++ b/vlocity/FlexCard/test/test_DataPack.json @@ -0,0 +1,25 @@ +{ + "AuthorName": "test", + "ClonedFromOmniUiCardKey": "", + "DataSourceConfig": { + "contextVariables": [], + "orderBy": {}, + "type": null, + "value": {} + }, + "Description": "", + "IsTrackingEnabled": false, + "Name": "test", + "Namespace": "", + "OmniUiCardKey": "test/test/1.0", + "OmniUiCardType": "Parent", + "OverrideKey": "", + "PropertySetConfig": "test.json", + "SampleDataSourceResponse": "", + "StylingConfiguration": "", + "UniqueName": "", + "VersionNumber": 1, + "VlocityDataPackType": "SObject", + "VlocityRecordSObjectType": "OmniUiCard", + "VlocityRecordSourceKey": "OmniUiCard/test" +}