Skip to content

Commit

Permalink
feat: support for ExperiencePropertyType Bundle (#727)
Browse files Browse the repository at this point in the history
* feat(adding experiencepropertytype bundle): support for new ExperiencePropertyType Bundle

This change is for new bundle ExperiencePropertyType. The Bundle doesn't have any *meta.xml files.
It is comprised of only JSON files. Structure is very similar to waveTemplate bundle.

* test(fixing the test by adding type to variable): fixing the test by adding type to variable

fixing the test by adding type to variable

* chore: bump sdr

---------

Co-authored-by: Prashanth Josyula <[email protected]>
  • Loading branch information
mshanemc and prashanthjos authored Feb 8, 2023
1 parent 0e3d38d commit 64d7059
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 25 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@salesforce/command": "^5.2.35",
"@salesforce/core": "^3.32.14",
"@salesforce/kit": "^1.8.3",
"@salesforce/source-deploy-retrieve": "^7.8.0",
"@salesforce/source-deploy-retrieve": "^7.9.0",
"@salesforce/source-tracking": "^2.2.21",
"chalk": "^4.1.2",
"got": "^11.8.3",
Expand Down
7 changes: 6 additions & 1 deletion src/formatters/source/pushResultFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,12 @@ export class PushResultFormatter extends ResultFormatter {
return withoutUnchanged;
}
const bundlesDeployed = withoutUnchanged.filter((fileResponse) =>
['LightningComponentBundle', 'AuraDefinitionBundle', 'WaveTemplateBundle'].includes(fileResponse.type)
[
'LightningComponentBundle',
'AuraDefinitionBundle',
'WaveTemplateBundle',
'ExperiencePropertyTypeBundle',
].includes(fileResponse.type)
);
if (bundlesDeployed.length === 0) {
return withoutUnchanged;
Expand Down
4 changes: 3 additions & 1 deletion test/commands/source/testConsts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/

export const exampleSourceComponent = {
import { ComponentProperties } from '@salesforce/source-deploy-retrieve/lib/src/resolve/sourceComponent';

export const exampleSourceComponent: ComponentProperties = {
name: 'GeocodingService',
type: {
id: 'apexclass',
Expand Down
44 changes: 22 additions & 22 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@
"@salesforce/ts-types" "^1.7.1"
chalk "^2.4.2"

"@salesforce/core@^3.23.9", "@salesforce/core@^3.24.0", "@salesforce/core@^3.25.1", "@salesforce/core@^3.31.19", "@salesforce/core@^3.32.11", "@salesforce/core@^3.32.12", "@salesforce/core@^3.32.13", "@salesforce/core@^3.32.14", "@salesforce/core@^3.33.1":
"@salesforce/core@^3.23.9", "@salesforce/core@^3.24.0", "@salesforce/core@^3.25.1", "@salesforce/core@^3.31.19", "@salesforce/core@^3.32.11", "@salesforce/core@^3.32.12", "@salesforce/core@^3.32.14", "@salesforce/core@^3.33.1":
version "3.33.1"
resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-3.33.1.tgz#3dd0a44ba22763e8e0c2c97df03393e5c2c845d9"
integrity sha512-jaed8rK+NhSxB6MjYUN8f/2VkvtbFN/Ce/l6JvgFE+cvOf2g+lPv1pSsnKKlaSiiYcXkOvIRDT9d9ns1RLJzUw==
Expand Down Expand Up @@ -1187,14 +1187,14 @@
typedoc-plugin-missing-exports "0.23.0"
typescript "^4.1.3"

"@salesforce/kit@^1.7.1", "@salesforce/kit@^1.8.0", "@salesforce/kit@^1.8.3":
version "1.8.3"
resolved "https://registry.yarnpkg.com/@salesforce/kit/-/kit-1.8.3.tgz#b590b78a8618494c51534598a7eb0683ba0da3f2"
integrity sha512-p+0tWR2pyCAIjZwDXGhrYFPuLckX9fP3Xa6Jync9POeQBfDGyK9CRd1eaiWj+6BeDS9kwvgm5M6o+OptIEhEjw==
"@salesforce/kit@^1.7.1", "@salesforce/kit@^1.8.0", "@salesforce/kit@^1.8.3", "@salesforce/kit@^1.8.4":
version "1.8.5"
resolved "https://registry.yarnpkg.com/@salesforce/kit/-/kit-1.8.5.tgz#3dcda46e7216363f8703c1c1d3b4dc5d80c1b4d3"
integrity sha512-py5M1PI5tWy/au/1tJ6qQBv7pHX3B4APqsNxg7yx/s2jbERUD6QNwcmWAayuRpZVVnFXBShBYROFZCojuNJwMA==
dependencies:
"@salesforce/ts-types" "^1.7.2"
"@salesforce/ts-types" "^1.7.3"
shx "^0.3.3"
tslib "^2.2.0"
tslib "^2.5.0"

"@salesforce/plugin-command-reference@^1.5.8":
version "1.5.8"
Expand Down Expand Up @@ -1285,13 +1285,13 @@
chalk "^4"
inquirer "^8.2.5"

"@salesforce/source-deploy-retrieve@^7.7.5", "@salesforce/source-deploy-retrieve@^7.8.0":
version "7.8.0"
resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-7.8.0.tgz#fc0195a049282509f9687e49bf0d623e1c5fe89a"
integrity sha512-DpUK4QW8Ee5Mrjv1+43+gLhlFm9GgvMbQ4dRW3IkwMiGwhTIxZ/kyV3gqWK6/YI81P2EY46B3suV6QBnbk97gg==
"@salesforce/source-deploy-retrieve@^7.7.5", "@salesforce/source-deploy-retrieve@^7.8.0", "@salesforce/source-deploy-retrieve@^7.9.0":
version "7.9.0"
resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-7.9.0.tgz#4e9499d908f3877bb5cd9704598b07398976c81f"
integrity sha512-khGd4vBwZWDBnM6ZqddCdPnLMrZ5UXfv/3xZK6MvslPHo/qo9KoagYWZFzCQV0fyMW9XmYgGuJHi0SpG2KjQ8w==
dependencies:
"@salesforce/core" "^3.32.13"
"@salesforce/kit" "^1.8.3"
"@salesforce/core" "^3.33.1"
"@salesforce/kit" "^1.8.4"
"@salesforce/ts-types" "^1.7.2"
archiver "^5.3.1"
fast-xml-parser "^3.21.1"
Expand Down Expand Up @@ -1357,12 +1357,12 @@
sinon "^5.1.1"
tslib "^2.2.0"

"@salesforce/ts-types@^1.7.0", "@salesforce/ts-types@^1.7.1", "@salesforce/ts-types@^1.7.2":
version "1.7.2"
resolved "https://registry.yarnpkg.com/@salesforce/ts-types/-/ts-types-1.7.2.tgz#ab40399d291c7eca57efc9890daf2fa2632197ec"
integrity sha512-eCpWKEb03UCKBJ6Svp0Vwcwt+fG6BQbopO4x5wt6CYeT8Rjt0dbDQicZPmVL59j2qyt3Q4Y4EYsxXUGZmdfvDw==
"@salesforce/ts-types@^1.7.0", "@salesforce/ts-types@^1.7.1", "@salesforce/ts-types@^1.7.2", "@salesforce/ts-types@^1.7.3":
version "1.7.3"
resolved "https://registry.yarnpkg.com/@salesforce/ts-types/-/ts-types-1.7.3.tgz#89b79ff0aaa55fea9f2de0afa8e515be3e17d0d8"
integrity sha512-jpmekGqZ7tpHRJwf1rF0yBJ/IMC5mOrryNi4HZkKuNQn8RF97WpynmL8Om04mLTCESvCiif3y7NWfIcxtID2Gw==
dependencies:
tslib "^2.4.1"
tslib "^2.5.0"

"@sindresorhus/is@^4.0.0":
version "4.6.0"
Expand Down Expand Up @@ -8047,10 +8047,10 @@ tslib@^1, tslib@^1.8.1, tslib@^1.9.0:
resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==

tslib@^2, tslib@^2.0.0, tslib@^2.0.1, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.2.0, tslib@^2.3.1, tslib@^2.4.1:
version "2.4.1"
resolved "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e"
integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==
tslib@^2, tslib@^2.0.0, tslib@^2.0.1, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.2.0, tslib@^2.3.1, tslib@^2.4.1, tslib@^2.5.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf"
integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==

tsutils@^3.21.0:
version "3.21.0"
Expand Down

0 comments on commit 64d7059

Please sign in to comment.