diff --git a/CHANGELOG.md b/CHANGELOG.md index 217e28342..cdec1f87e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,1133 +1,738 @@ ## [2.3.14](https://github.com/salesforcecli/plugin-source/compare/2.3.13...2.3.14) (2023-01-14) - ### Bug Fixes -* **deps:** bump @salesforce/source-deploy-retrieve from 7.5.22 to 7.7.0 ([#696](https://github.com/salesforcecli/plugin-source/issues/696)) ([998425c](https://github.com/salesforcecli/plugin-source/commit/998425c8ea3cfcfc0b91b7b6c217948bcc75336a)) - - +- **deps:** bump @salesforce/source-deploy-retrieve from 7.5.22 to 7.7.0 ([#696](https://github.com/salesforcecli/plugin-source/issues/696)) ([998425c](https://github.com/salesforcecli/plugin-source/commit/998425c8ea3cfcfc0b91b7b6c217948bcc75336a)) ## [2.3.13](https://github.com/salesforcecli/plugin-source/compare/2.3.12...2.3.13) (2023-01-14) - ### Bug Fixes -* **deps:** bump @salesforce/apex-node from 1.4.0 to 1.6.0 ([#695](https://github.com/salesforcecli/plugin-source/issues/695)) ([bcc0cd1](https://github.com/salesforcecli/plugin-source/commit/bcc0cd192ee27c23bbbca6f044927b435474d75a)) - - +- **deps:** bump @salesforce/apex-node from 1.4.0 to 1.6.0 ([#695](https://github.com/salesforcecli/plugin-source/issues/695)) ([bcc0cd1](https://github.com/salesforcecli/plugin-source/commit/bcc0cd192ee27c23bbbca6f044927b435474d75a)) ## [2.3.12](https://github.com/salesforcecli/plugin-source/compare/2.3.11...2.3.12) (2023-01-05) - ### Bug Fixes -* **deps:** bump json5 from 1.0.1 to 1.0.2 ([#688](https://github.com/salesforcecli/plugin-source/issues/688)) ([d6ae9f5](https://github.com/salesforcecli/plugin-source/commit/d6ae9f5594b19fe8b6f23e8d7c3e0d801b06ff48)) - - +- **deps:** bump json5 from 1.0.1 to 1.0.2 ([#688](https://github.com/salesforcecli/plugin-source/issues/688)) ([d6ae9f5](https://github.com/salesforcecli/plugin-source/commit/d6ae9f5594b19fe8b6f23e8d7c3e0d801b06ff48)) ## [2.3.11](https://github.com/salesforcecli/plugin-source/compare/2.3.10...2.3.11) (2022-12-31) - ### Bug Fixes -* **deps:** bump @oclif/core from 1.22.0 to 1.23.0 ([#684](https://github.com/salesforcecli/plugin-source/issues/684)) ([f27da0f](https://github.com/salesforcecli/plugin-source/commit/f27da0f5d61fa6b766840a40ebe0b747e1d14f1a)) - - +- **deps:** bump @oclif/core from 1.22.0 to 1.23.0 ([#684](https://github.com/salesforcecli/plugin-source/issues/684)) ([f27da0f](https://github.com/salesforcecli/plugin-source/commit/f27da0f5d61fa6b766840a40ebe0b747e1d14f1a)) ## [2.3.10](https://github.com/salesforcecli/plugin-source/compare/2.3.9...2.3.10) (2022-12-31) - ### Bug Fixes -* **deps:** bump @salesforce/command from 5.2.33 to 5.2.35 ([#686](https://github.com/salesforcecli/plugin-source/issues/686)) ([a994c59](https://github.com/salesforcecli/plugin-source/commit/a994c595162e10b8f8d570d64bdd72d9e14d24f9)) - - +- **deps:** bump @salesforce/command from 5.2.33 to 5.2.35 ([#686](https://github.com/salesforcecli/plugin-source/issues/686)) ([a994c59](https://github.com/salesforcecli/plugin-source/commit/a994c595162e10b8f8d570d64bdd72d9e14d24f9)) ## [2.3.9](https://github.com/salesforcecli/plugin-source/compare/2.3.8...2.3.9) (2022-12-17) - ### Bug Fixes -* **deps:** bump @oclif/core from 1.20.4 to 1.22.0 ([#676](https://github.com/salesforcecli/plugin-source/issues/676)) ([f82266f](https://github.com/salesforcecli/plugin-source/commit/f82266f4e805f55912bd8a75717109fa878ee39e)) - - +- **deps:** bump @oclif/core from 1.20.4 to 1.22.0 ([#676](https://github.com/salesforcecli/plugin-source/issues/676)) ([f82266f](https://github.com/salesforcecli/plugin-source/commit/f82266f4e805f55912bd8a75717109fa878ee39e)) ## [2.3.8](https://github.com/salesforcecli/plugin-source/compare/2.3.7...2.3.8) (2022-12-16) - - ## [2.3.7](https://github.com/salesforcecli/plugin-source/compare/2.3.6...2.3.7) (2022-12-01) - ### Bug Fixes -* **deps:** bump @salesforce/core from 3.32.4 to 3.32.5 ([#660](https://github.com/salesforcecli/plugin-source/issues/660)) ([b83a2ed](https://github.com/salesforcecli/plugin-source/commit/b83a2edc39f216a0eec9b42b028b1f42f07ea48a)) - - +- **deps:** bump @salesforce/core from 3.32.4 to 3.32.5 ([#660](https://github.com/salesforcecli/plugin-source/issues/660)) ([b83a2ed](https://github.com/salesforcecli/plugin-source/commit/b83a2edc39f216a0eec9b42b028b1f42f07ea48a)) ## [2.3.6](https://github.com/salesforcecli/plugin-source/compare/2.3.5...2.3.6) (2022-12-01) - ### Bug Fixes -* guard against undefined file path in results ([#659](https://github.com/salesforcecli/plugin-source/issues/659)) ([0262ea0](https://github.com/salesforcecli/plugin-source/commit/0262ea043c2aa141ffe194d9d45eeaab93e394a9)) - - +- guard against undefined file path in results ([#659](https://github.com/salesforcecli/plugin-source/issues/659)) ([0262ea0](https://github.com/salesforcecli/plugin-source/commit/0262ea043c2aa141ffe194d9d45eeaab93e394a9)) ## [2.3.5](https://github.com/salesforcecli/plugin-source/compare/2.3.4...2.3.5) (2022-11-18) - ### Bug Fixes -* bump SDR and regen lock file ([#650](https://github.com/salesforcecli/plugin-source/issues/650)) ([db9ecb4](https://github.com/salesforcecli/plugin-source/commit/db9ecb432e13c13e7c655c30bc1e5aa69c291237)) - - +- bump SDR and regen lock file ([#650](https://github.com/salesforcecli/plugin-source/issues/650)) ([db9ecb4](https://github.com/salesforcecli/plugin-source/commit/db9ecb432e13c13e7c655c30bc1e5aa69c291237)) ## [2.3.4](https://github.com/salesforcecli/plugin-source/compare/2.3.3...2.3.4) (2022-11-12) - ### Bug Fixes -* bump sdr and core for fixes ([63f8b0c](https://github.com/salesforcecli/plugin-source/commit/63f8b0c371e849dd414b47c9515f9a517f786bf4)) - - +- bump sdr and core for fixes ([63f8b0c](https://github.com/salesforcecli/plugin-source/commit/63f8b0c371e849dd414b47c9515f9a517f786bf4)) ## [2.3.3](https://github.com/salesforcecli/plugin-source/compare/2.3.2...2.3.3) (2022-11-12) - ### Bug Fixes -* bump sdr and core for fixes ([5a91d6e](https://github.com/salesforcecli/plugin-source/commit/5a91d6e0b2277348139b239b956dbc4fdb92bde2)) - - +- bump sdr and core for fixes ([5a91d6e](https://github.com/salesforcecli/plugin-source/commit/5a91d6e0b2277348139b239b956dbc4fdb92bde2)) ## [2.3.2](https://github.com/salesforcecli/plugin-source/compare/2.3.1...2.3.2) (2022-11-09) - ### Bug Fixes -* **deps:** bump @salesforce/source-deploy-retrieve from 7.5.0 to 7.5.2 ([#641](https://github.com/salesforcecli/plugin-source/issues/641)) ([4220b78](https://github.com/salesforcecli/plugin-source/commit/4220b786f1ea1f62ac112a4389fec816844ebe41)) - - +- **deps:** bump @salesforce/source-deploy-retrieve from 7.5.0 to 7.5.2 ([#641](https://github.com/salesforcecli/plugin-source/issues/641)) ([4220b78](https://github.com/salesforcecli/plugin-source/commit/4220b786f1ea1f62ac112a4389fec816844ebe41)) ## [2.3.1](https://github.com/salesforcecli/plugin-source/compare/2.3.0...2.3.1) (2022-11-05) - ### Bug Fixes -* **deps:** bump tslib from 2.4.0 to 2.4.1 ([#638](https://github.com/salesforcecli/plugin-source/issues/638)) ([f9424f4](https://github.com/salesforcecli/plugin-source/commit/f9424f490b5d0d10e3d8780ac4cedcdd0229f77a)) - - +- **deps:** bump tslib from 2.4.0 to 2.4.1 ([#638](https://github.com/salesforcecli/plugin-source/issues/638)) ([f9424f4](https://github.com/salesforcecli/plugin-source/commit/f9424f490b5d0d10e3d8780ac4cedcdd0229f77a)) # [2.3.0](https://github.com/salesforcecli/plugin-source/compare/2.2.0...2.3.0) (2022-11-01) - ### Features -* display replacements on push/deploy ([#628](https://github.com/salesforcecli/plugin-source/issues/628)) ([6fd2045](https://github.com/salesforcecli/plugin-source/commit/6fd20457dc3885d91fdfffba66a1077b100f1de0)) - - +- display replacements on push/deploy ([#628](https://github.com/salesforcecli/plugin-source/issues/628)) ([6fd2045](https://github.com/salesforcecli/plugin-source/commit/6fd20457dc3885d91fdfffba66a1077b100f1de0)) # [2.2.0](https://github.com/salesforcecli/plugin-source/compare/2.1.3...2.2.0) (2022-11-01) - ### Features -* add retrievetargetdir to source:retrieve ([#624](https://github.com/salesforcecli/plugin-source/issues/624)) ([7c0a013](https://github.com/salesforcecli/plugin-source/commit/7c0a0130e563652fdc11dabf65a00c77c88db5d6)) - - +- add retrievetargetdir to source:retrieve ([#624](https://github.com/salesforcecli/plugin-source/issues/624)) ([7c0a013](https://github.com/salesforcecli/plugin-source/commit/7c0a0130e563652fdc11dabf65a00c77c88db5d6)) ## [2.1.3](https://github.com/salesforcecli/plugin-source/compare/2.1.2...2.1.3) (2022-10-31) - ### Bug Fixes -* add hook and doctor diagnostic tests ([#629](https://github.com/salesforcecli/plugin-source/issues/629)) ([f41cb57](https://github.com/salesforcecli/plugin-source/commit/f41cb57c186226d03e55947f15f7820549dcb10e)) - - +- add hook and doctor diagnostic tests ([#629](https://github.com/salesforcecli/plugin-source/issues/629)) ([f41cb57](https://github.com/salesforcecli/plugin-source/commit/f41cb57c186226d03e55947f15f7820549dcb10e)) ## [2.1.2](https://github.com/salesforcecli/plugin-source/compare/2.1.1...2.1.2) (2022-10-29) - ### Bug Fixes -* **deps:** bump @salesforce/source-deploy-retrieve from 7.0.1 to 7.4.0 ([#633](https://github.com/salesforcecli/plugin-source/issues/633)) ([8d7ae01](https://github.com/salesforcecli/plugin-source/commit/8d7ae01d2b8d3d8d8180388d83ccc45a6ab77bfd)) - - +- **deps:** bump @salesforce/source-deploy-retrieve from 7.0.1 to 7.4.0 ([#633](https://github.com/salesforcecli/plugin-source/issues/633)) ([8d7ae01](https://github.com/salesforcecli/plugin-source/commit/8d7ae01d2b8d3d8d8180388d83ccc45a6ab77bfd)) ## [2.1.1](https://github.com/salesforcecli/plugin-source/compare/2.1.0...2.1.1) (2022-10-29) - ### Bug Fixes -* **deps:** bump @salesforce/kit from 1.7.0 to 1.7.1 ([#635](https://github.com/salesforcecli/plugin-source/issues/635)) ([37cb1fa](https://github.com/salesforcecli/plugin-source/commit/37cb1fab6535dba3d274ba1bde337f1ea010dd3d)) - - +- **deps:** bump @salesforce/kit from 1.7.0 to 1.7.1 ([#635](https://github.com/salesforcecli/plugin-source/issues/635)) ([37cb1fa](https://github.com/salesforcecli/plugin-source/commit/37cb1fab6535dba3d274ba1bde337f1ea010dd3d)) # [2.1.0](https://github.com/salesforcecli/plugin-source/compare/2.0.26...2.1.0) (2022-10-28) - ### Features -* use swc in bin/dev ([66debb4](https://github.com/salesforcecli/plugin-source/commit/66debb4a4fc2743c8f51510065381d95eb454756)) - - +- use swc in bin/dev ([66debb4](https://github.com/salesforcecli/plugin-source/commit/66debb4a4fc2743c8f51510065381d95eb454756)) ## [2.0.26](https://github.com/salesforcecli/plugin-source/compare/2.0.25...2.0.26) (2022-10-22) - ### Bug Fixes -* **deps:** bump @salesforce/command from 5.2.8 to 5.2.13 ([#620](https://github.com/salesforcecli/plugin-source/issues/620)) ([8c6d514](https://github.com/salesforcecli/plugin-source/commit/8c6d514cc0d561f485fd6148899e22baa8ea95ae)) - - +- **deps:** bump @salesforce/command from 5.2.8 to 5.2.13 ([#620](https://github.com/salesforcecli/plugin-source/issues/620)) ([8c6d514](https://github.com/salesforcecli/plugin-source/commit/8c6d514cc0d561f485fd6148899e22baa8ea95ae)) ## [2.0.25](https://github.com/salesforcecli/plugin-source/compare/2.0.24...2.0.25) (2022-10-18) - ### Bug Fixes -* **deps:** major bump sdr ([c243af7](https://github.com/salesforcecli/plugin-source/commit/c243af746fe872030eb32ad6f3942f847d6f6944)) - - +- **deps:** major bump sdr ([c243af7](https://github.com/salesforcecli/plugin-source/commit/c243af746fe872030eb32ad6f3942f847d6f6944)) ## [2.0.24](https://github.com/salesforcecli/plugin-source/compare/2.0.23...2.0.24) (2022-10-17) - ### Bug Fixes -* display error message from response ([#608](https://github.com/salesforcecli/plugin-source/issues/608)) ([6ba254e](https://github.com/salesforcecli/plugin-source/commit/6ba254e731e48d4b8787fad7d231c075401c4eaf)) - - +- display error message from response ([#608](https://github.com/salesforcecli/plugin-source/issues/608)) ([6ba254e](https://github.com/salesforcecli/plugin-source/commit/6ba254e731e48d4b8787fad7d231c075401c4eaf)) ## [2.0.23](https://github.com/salesforcecli/plugin-source/compare/2.0.22...2.0.23) (2022-10-16) - ### Bug Fixes -* **deps:** bump @salesforce/source-tracking from 2.2.8 to 2.2.9 ([#613](https://github.com/salesforcecli/plugin-source/issues/613)) ([77e2504](https://github.com/salesforcecli/plugin-source/commit/77e25044ae450a04a41da5dec89fbec6a8cc4495)) - - +- **deps:** bump @salesforce/source-tracking from 2.2.8 to 2.2.9 ([#613](https://github.com/salesforcecli/plugin-source/issues/613)) ([77e2504](https://github.com/salesforcecli/plugin-source/commit/77e25044ae450a04a41da5dec89fbec6a8cc4495)) ## [2.0.22](https://github.com/salesforcecli/plugin-source/compare/2.0.21...2.0.22) (2022-10-16) - ### Bug Fixes -* **deps:** bump @salesforce/source-deploy-retrieve from 6.8.6 to 6.9.1 ([#614](https://github.com/salesforcecli/plugin-source/issues/614)) ([ea639b5](https://github.com/salesforcecli/plugin-source/commit/ea639b512d991c249dc7082f5afb3a5481abbce9)) - - +- **deps:** bump @salesforce/source-deploy-retrieve from 6.8.6 to 6.9.1 ([#614](https://github.com/salesforcecli/plugin-source/issues/614)) ([ea639b5](https://github.com/salesforcecli/plugin-source/commit/ea639b512d991c249dc7082f5afb3a5481abbce9)) ## [2.0.21](https://github.com/salesforcecli/plugin-source/compare/2.0.20...2.0.21) (2022-10-15) - ### Bug Fixes -* **deps:** bump vm2 from 3.9.9 to 3.9.11 ([#591](https://github.com/salesforcecli/plugin-source/issues/591)) ([4e5d67b](https://github.com/salesforcecli/plugin-source/commit/4e5d67bd507f0c20199aa0519fc3723a165c7928)) - - +- **deps:** bump vm2 from 3.9.9 to 3.9.11 ([#591](https://github.com/salesforcecli/plugin-source/issues/591)) ([4e5d67b](https://github.com/salesforcecli/plugin-source/commit/4e5d67bd507f0c20199aa0519fc3723a165c7928)) ## [2.0.20](https://github.com/salesforcecli/plugin-source/compare/2.0.19...2.0.20) (2022-10-15) - ### Bug Fixes -* **deps:** bump @oclif/core from 1.16.3 to 1.18.0 ([#612](https://github.com/salesforcecli/plugin-source/issues/612)) ([f3b69ac](https://github.com/salesforcecli/plugin-source/commit/f3b69ac0e24b6a7d7fd6a388da9dc2909ee2e73b)) - - +- **deps:** bump @oclif/core from 1.16.3 to 1.18.0 ([#612](https://github.com/salesforcecli/plugin-source/issues/612)) ([f3b69ac](https://github.com/salesforcecli/plugin-source/commit/f3b69ac0e24b6a7d7fd6a388da9dc2909ee2e73b)) ## [2.0.19](https://github.com/salesforcecli/plugin-source/compare/2.0.18...2.0.19) (2022-10-13) - ### Bug Fixes -* bump apex-node ([#604](https://github.com/salesforcecli/plugin-source/issues/604)) ([e71b0d5](https://github.com/salesforcecli/plugin-source/commit/e71b0d5fb8beb9af04473b6ce65194b48646784e)) - - +- bump apex-node ([#604](https://github.com/salesforcecli/plugin-source/issues/604)) ([e71b0d5](https://github.com/salesforcecli/plugin-source/commit/e71b0d5fb8beb9af04473b6ce65194b48646784e)) ## [2.0.18](https://github.com/salesforcecli/plugin-source/compare/2.0.17...2.0.18) (2022-10-07) - ### Bug Fixes -* **deps:** bump jsforce from 2.0.0-beta.18 to 2.0.0-beta.19 ([#601](https://github.com/salesforcecli/plugin-source/issues/601)) ([33a3a39](https://github.com/salesforcecli/plugin-source/commit/33a3a39873695d2106abcbef61737dbf6970bac0)) - - +- **deps:** bump jsforce from 2.0.0-beta.18 to 2.0.0-beta.19 ([#601](https://github.com/salesforcecli/plugin-source/issues/601)) ([33a3a39](https://github.com/salesforcecli/plugin-source/commit/33a3a39873695d2106abcbef61737dbf6970bac0)) ## [2.0.17](https://github.com/salesforcecli/plugin-source/compare/2.0.16...2.0.17) (2022-10-06) - ### Bug Fixes -* **deps:** bump @salesforce/source-deploy-retrieve from 6.8.5 to 6.8.6 ([#599](https://github.com/salesforcecli/plugin-source/issues/599)) ([c940e5b](https://github.com/salesforcecli/plugin-source/commit/c940e5b908fce259930dbb914c09ecbac89d5e5e)) - - +- **deps:** bump @salesforce/source-deploy-retrieve from 6.8.5 to 6.8.6 ([#599](https://github.com/salesforcecli/plugin-source/issues/599)) ([c940e5b](https://github.com/salesforcecli/plugin-source/commit/c940e5b908fce259930dbb914c09ecbac89d5e5e)) ## [2.0.16](https://github.com/salesforcecli/plugin-source/compare/2.0.15...2.0.16) (2022-09-23) - ### Bug Fixes -* **deps:** bump @salesforce/source-tracking from 2.2.1 to 2.2.3 ([#584](https://github.com/salesforcecli/plugin-source/issues/584)) ([b1e6f72](https://github.com/salesforcecli/plugin-source/commit/b1e6f724bf4c5458ea3466db9173d51a1e496915)) - - +- **deps:** bump @salesforce/source-tracking from 2.2.1 to 2.2.3 ([#584](https://github.com/salesforcecli/plugin-source/issues/584)) ([b1e6f72](https://github.com/salesforcecli/plugin-source/commit/b1e6f724bf4c5458ea3466db9173d51a1e496915)) ## [2.0.15](https://github.com/salesforcecli/plugin-source/compare/2.0.14...2.0.15) (2022-09-21) - ### Bug Fixes -* **deps:** bump @salesforce/source-deploy-retrieve from 6.8.0 to 6.8.1 ([#580](https://github.com/salesforcecli/plugin-source/issues/580)) ([a2a792c](https://github.com/salesforcecli/plugin-source/commit/a2a792ce013c6851d9eaeec163256b7cfca8741c)) - - +- **deps:** bump @salesforce/source-deploy-retrieve from 6.8.0 to 6.8.1 ([#580](https://github.com/salesforcecli/plugin-source/issues/580)) ([a2a792c](https://github.com/salesforcecli/plugin-source/commit/a2a792ce013c6851d9eaeec163256b7cfca8741c)) ## [2.0.14](https://github.com/salesforcecli/plugin-source/compare/v2.0.13...2.0.14) (2022-09-21) - ### Bug Fixes -* **deps:** bump @salesforce/source-deploy-retrieve from 6.2.6 to 6.8.0 ([#576](https://github.com/salesforcecli/plugin-source/issues/576)) ([42c2654](https://github.com/salesforcecli/plugin-source/commit/42c2654ce9ddb2dbc3c82d1fecbc7aaa91791ae6)) - - +- **deps:** bump @salesforce/source-deploy-retrieve from 6.2.6 to 6.8.0 ([#576](https://github.com/salesforcecli/plugin-source/issues/576)) ([42c2654](https://github.com/salesforcecli/plugin-source/commit/42c2654ce9ddb2dbc3c82d1fecbc7aaa91791ae6)) ## [2.0.13](https://github.com/salesforcecli/plugin-source/compare/v2.0.12...v2.0.13) (2022-08-20) - - ## [2.0.12](https://github.com/salesforcecli/plugin-source/compare/v2.0.11...v2.0.12) (2022-08-15) - ### Bug Fixes -* exclude sourcepath from component set builder ([#553](https://github.com/salesforcecli/plugin-source/issues/553)) ([b678d0c](https://github.com/salesforcecli/plugin-source/commit/b678d0c9023fc6a0f5c816b40d22ab4803356834)) - - +- exclude sourcepath from component set builder ([#553](https://github.com/salesforcecli/plugin-source/issues/553)) ([b678d0c](https://github.com/salesforcecli/plugin-source/commit/b678d0c9023fc6a0f5c816b40d22ab4803356834)) ## [2.0.11](https://github.com/salesforcecli/plugin-source/compare/v2.0.10...v2.0.11) (2022-07-26) - ### Bug Fixes -* bump SDR ([#541](https://github.com/salesforcecli/plugin-source/issues/541)) ([dcb10ab](https://github.com/salesforcecli/plugin-source/commit/dcb10ab8daa414fecf9d8d3115ebd8ab8aebcdd7)) - - +- bump SDR ([#541](https://github.com/salesforcecli/plugin-source/issues/541)) ([dcb10ab](https://github.com/salesforcecli/plugin-source/commit/dcb10ab8daa414fecf9d8d3115ebd8ab8aebcdd7)) ## [2.0.10](https://github.com/salesforcecli/plugin-source/compare/v2.0.9...v2.0.10) (2022-07-25) - ### Bug Fixes -* caret for jsforce ([#540](https://github.com/salesforcecli/plugin-source/issues/540)) ([2142e70](https://github.com/salesforcecli/plugin-source/commit/2142e701b503d84bb38b6557283c3a49b1ee0b92)) - - +- caret for jsforce ([#540](https://github.com/salesforcecli/plugin-source/issues/540)) ([2142e70](https://github.com/salesforcecli/plugin-source/commit/2142e701b503d84bb38b6557283c3a49b1ee0b92)) ## [2.0.9](https://github.com/salesforcecli/plugin-source/compare/v2.0.8...v2.0.9) (2022-07-20) - ### Bug Fixes -* fixes exclusive flags for mdapi/source:deploy when using quickdeploy ([#521](https://github.com/salesforcecli/plugin-source/issues/521)) ([7c52a05](https://github.com/salesforcecli/plugin-source/commit/7c52a05c91484dd1135b6b7498c4e89718092256)) - - +- fixes exclusive flags for mdapi/source:deploy when using quickdeploy ([#521](https://github.com/salesforcecli/plugin-source/issues/521)) ([7c52a05](https://github.com/salesforcecli/plugin-source/commit/7c52a05c91484dd1135b6b7498c4e89718092256)) ## [2.0.8](https://github.com/salesforcecli/plugin-source/compare/v2.0.7...v2.0.8) (2022-07-18) - ### Bug Fixes -* try/finally on pollStatus to handle throws from timeout ([#538](https://github.com/salesforcecli/plugin-source/issues/538)) ([68ff738](https://github.com/salesforcecli/plugin-source/commit/68ff73850f853d5951be8667a8fc807ecf78f91f)) - - +- try/finally on pollStatus to handle throws from timeout ([#538](https://github.com/salesforcecli/plugin-source/issues/538)) ([68ff738](https://github.com/salesforcecli/plugin-source/commit/68ff73850f853d5951be8667a8fc807ecf78f91f)) ## [2.0.7](https://github.com/salesforcecli/plugin-source/compare/v2.0.6...v2.0.7) (2022-07-07) - ### Bug Fixes -* bump SDR ([#537](https://github.com/salesforcecli/plugin-source/issues/537)) ([fa405e4](https://github.com/salesforcecli/plugin-source/commit/fa405e4e9cdaee40d75b1c05cebb449a68533f30)) - - +- bump SDR ([#537](https://github.com/salesforcecli/plugin-source/issues/537)) ([fa405e4](https://github.com/salesforcecli/plugin-source/commit/fa405e4e9cdaee40d75b1c05cebb449a68533f30)) ## [2.0.6](https://github.com/salesforcecli/plugin-source/compare/v2.0.5...v2.0.6) (2022-07-07) - ### Bug Fixes -* isRestDeploy correctly handles org-metadata-rest-deploy config conversion ([#535](https://github.com/salesforcecli/plugin-source/issues/535)) ([dd7e776](https://github.com/salesforcecli/plugin-source/commit/dd7e7763ade1244fdc66a34892a52d0a779f9b58)) - - +- isRestDeploy correctly handles org-metadata-rest-deploy config conversion ([#535](https://github.com/salesforcecli/plugin-source/issues/535)) ([dd7e776](https://github.com/salesforcecli/plugin-source/commit/dd7e7763ade1244fdc66a34892a52d0a779f9b58)) ## [2.0.5](https://github.com/salesforcecli/plugin-source/compare/v2.0.4...v2.0.5) (2022-07-06) - ### Bug Fixes -* apex-node from parking-orbit ([#533](https://github.com/salesforcecli/plugin-source/issues/533)) ([ebaf5ed](https://github.com/salesforcecli/plugin-source/commit/ebaf5edef0ec15ba2c2e2cf541701e7db08f10bf)) - - +- apex-node from parking-orbit ([#533](https://github.com/salesforcecli/plugin-source/issues/533)) ([ebaf5ed](https://github.com/salesforcecli/plugin-source/commit/ebaf5edef0ec15ba2c2e2cf541701e7db08f10bf)) ## [2.0.4](https://github.com/salesforcecli/plugin-source/compare/v2.0.3...v2.0.4) (2022-07-05) - ### Bug Fixes -* ebikes nuts fix ([#522](https://github.com/salesforcecli/plugin-source/issues/522)) ([990a2e1](https://github.com/salesforcecli/plugin-source/commit/990a2e1e6ba34fbf0c855358a433a3503faf708d)) - - +- ebikes nuts fix ([#522](https://github.com/salesforcecli/plugin-source/issues/522)) ([990a2e1](https://github.com/salesforcecli/plugin-source/commit/990a2e1e6ba34fbf0c855358a433a3503faf708d)) ## [2.0.3](https://github.com/salesforcecli/plugin-source/compare/v2.0.2...v2.0.3) (2022-06-23) - - ## [2.0.2](https://github.com/salesforcecli/plugin-source/compare/v2.0.1...v2.0.2) (2022-06-23) - - ## [2.0.1](https://github.com/salesforcecli/plugin-source/compare/v2.0.0...v2.0.1) (2022-06-16) - ### Bug Fixes -* let server determine testlevel when deploying to a prod org by passing `undefined` ([#509](https://github.com/salesforcecli/plugin-source/issues/509)) ([6d5a995](https://github.com/salesforcecli/plugin-source/commit/6d5a99515939eb9a356bd039d872e4ffad8158b7)) - - +- let server determine testlevel when deploying to a prod org by passing `undefined` ([#509](https://github.com/salesforcecli/plugin-source/issues/509)) ([6d5a995](https://github.com/salesforcecli/plugin-source/commit/6d5a99515939eb9a356bd039d872e4ffad8158b7)) # [2.0.0](https://github.com/salesforcecli/plugin-source/compare/v1.10.2...v2.0.0) (2022-06-15) - - ## [1.10.2](https://github.com/salesforcecli/plugin-source/compare/v1.10.1...v1.10.2) (2022-05-31) - ### Bug Fixes -* default min line number to 1 when 100 pct coverage ([#494](https://github.com/salesforcecli/plugin-source/issues/494)) ([c974010](https://github.com/salesforcecli/plugin-source/commit/c974010b9e6ec54e9b4092e9918cdf4e5cbc5b46)) - - +- default min line number to 1 when 100 pct coverage ([#494](https://github.com/salesforcecli/plugin-source/issues/494)) ([c974010](https://github.com/salesforcecli/plugin-source/commit/c974010b9e6ec54e9b4092e9918cdf4e5cbc5b46)) ## [1.10.1](https://github.com/salesforcecli/plugin-source/compare/v1.10.0...v1.10.1) (2022-05-27) - ### Bug Fixes -* import coverageUtils from parent folder ([#493](https://github.com/salesforcecli/plugin-source/issues/493)) ([c4f471e](https://github.com/salesforcecli/plugin-source/commit/c4f471e97b50a43c1809518432f7ec4dddc05041)) - - +- import coverageUtils from parent folder ([#493](https://github.com/salesforcecli/plugin-source/issues/493)) ([c4f471e](https://github.com/salesforcecli/plugin-source/commit/c4f471e97b50a43c1809518432f7ec4dddc05041)) # [1.10.0](https://github.com/salesforcecli/plugin-source/compare/v1.9.9...v1.10.0) (2022-05-26) - ### Features -* add code coverage and junit reporting ([#491](https://github.com/salesforcecli/plugin-source/issues/491)) ([3e6ff90](https://github.com/salesforcecli/plugin-source/commit/3e6ff908d937c526abe219831f67e749a828c640)) - - +- add code coverage and junit reporting ([#491](https://github.com/salesforcecli/plugin-source/issues/491)) ([3e6ff90](https://github.com/salesforcecli/plugin-source/commit/3e6ff908d937c526abe219831f67e749a828c640)) ## [1.9.9](https://github.com/salesforcecli/plugin-source/compare/v1.9.8...v1.9.9) (2022-05-18) - - ## [1.9.8](https://github.com/salesforcecli/plugin-source/compare/v1.9.7...v1.9.8) (2022-05-17) - ### Bug Fixes -* mdapi deploy negative one ([#487](https://github.com/salesforcecli/plugin-source/issues/487)) ([c7e2494](https://github.com/salesforcecli/plugin-source/commit/c7e24941f770336ea31e067067c12942ec01bf49)) - - +- mdapi deploy negative one ([#487](https://github.com/salesforcecli/plugin-source/issues/487)) ([c7e2494](https://github.com/salesforcecli/plugin-source/commit/c7e24941f770336ea31e067067c12942ec01bf49)) ## [1.9.7](https://github.com/salesforcecli/plugin-source/compare/v1.9.6...v1.9.7) (2022-05-04) - - ## [1.9.6](https://github.com/salesforcecli/plugin-source/compare/v1.9.5...v1.9.6) (2022-04-29) - ### Bug Fixes -* use fixed stl, bump other deps for maintenance ([#477](https://github.com/salesforcecli/plugin-source/issues/477)) ([7c7f411](https://github.com/salesforcecli/plugin-source/commit/7c7f411d6f9e55141ac077cafc1e0f1e1efe5120)) - - +- use fixed stl, bump other deps for maintenance ([#477](https://github.com/salesforcecli/plugin-source/issues/477)) ([7c7f411](https://github.com/salesforcecli/plugin-source/commit/7c7f411d6f9e55141ac077cafc1e0f1e1efe5120)) ## [1.9.5](https://github.com/salesforcecli/plugin-source/compare/v1.9.4...v1.9.5) (2022-04-28) - ### Bug Fixes -* pull non-default directory in default project ([#471](https://github.com/salesforcecli/plugin-source/issues/471)) ([02d91ca](https://github.com/salesforcecli/plugin-source/commit/02d91caf1e39c00a32d53012f6916a86dea2b2f8)) - - +- pull non-default directory in default project ([#471](https://github.com/salesforcecli/plugin-source/issues/471)) ([02d91ca](https://github.com/salesforcecli/plugin-source/commit/02d91caf1e39c00a32d53012f6916a86dea2b2f8)) ## [1.9.4](https://github.com/salesforcecli/plugin-source/compare/v1.9.3...v1.9.4) (2022-04-26) - ### Reverts -* Revert "test: nuts for nested LWC" ([13cd75b](https://github.com/salesforcecli/plugin-source/commit/13cd75b47608af55be5e45842bc14edb866c93ec)) - - +- Revert "test: nuts for nested LWC" ([13cd75b](https://github.com/salesforcecli/plugin-source/commit/13cd75b47608af55be5e45842bc14edb866c93ec)) ## [1.9.3](https://github.com/salesforcecli/plugin-source/compare/v1.9.2...v1.9.3) (2022-04-07) - ### Bug Fixes -* bump to latest sdr ([#467](https://github.com/salesforcecli/plugin-source/issues/467)) ([a71881c](https://github.com/salesforcecli/plugin-source/commit/a71881c276f160b0c50cd4d7bee2bad2096eef1e)) - - +- bump to latest sdr ([#467](https://github.com/salesforcecli/plugin-source/issues/467)) ([a71881c](https://github.com/salesforcecli/plugin-source/commit/a71881c276f160b0c50cd4d7bee2bad2096eef1e)) ## [1.9.2](https://github.com/salesforcecli/plugin-source/compare/v1.9.1...v1.9.2) (2022-03-25) - ### Bug Fixes -* fix from stl ([#460](https://github.com/salesforcecli/plugin-source/issues/460)) ([1ac35ac](https://github.com/salesforcecli/plugin-source/commit/1ac35aca178c21fdae9100064fafaccf3d66cf02)) - - +- fix from stl ([#460](https://github.com/salesforcecli/plugin-source/issues/460)) ([1ac35ac](https://github.com/salesforcecli/plugin-source/commit/1ac35aca178c21fdae9100064fafaccf3d66cf02)) ## [1.9.1](https://github.com/salesforcecli/plugin-source/compare/v1.9.0...v1.9.1) (2022-03-25) - ### Bug Fixes -* bump stl for graceful ([#459](https://github.com/salesforcecli/plugin-source/issues/459)) ([b611415](https://github.com/salesforcecli/plugin-source/commit/b611415d32f29ac5f8bc091652031d635d7338fe)) - - +- bump stl for graceful ([#459](https://github.com/salesforcecli/plugin-source/issues/459)) ([b611415](https://github.com/salesforcecli/plugin-source/commit/b611415d32f29ac5f8bc091652031d635d7338fe)) # [1.9.0](https://github.com/salesforcecli/plugin-source/compare/v1.8.20...v1.9.0) (2022-03-23) - ### Features -* GA new tracking commands ([#457](https://github.com/salesforcecli/plugin-source/issues/457)) ([eb54c09](https://github.com/salesforcecli/plugin-source/commit/eb54c097d0a714c3c42f0a435941d2f30d609eea)) - - +- GA new tracking commands ([#457](https://github.com/salesforcecli/plugin-source/issues/457)) ([eb54c09](https://github.com/salesforcecli/plugin-source/commit/eb54c097d0a714c3c42f0a435941d2f30d609eea)) ## [1.8.20](https://github.com/salesforcecli/plugin-source/compare/v1.8.19...v1.8.20) (2022-03-17) - ### Bug Fixes -* error structure for json on push/pull ([5f36a37](https://github.com/salesforcecli/plugin-source/commit/5f36a3720c08cd909e567249b597fdbae2e35dd1)) - - +- error structure for json on push/pull ([5f36a37](https://github.com/salesforcecli/plugin-source/commit/5f36a3720c08cd909e567249b597fdbae2e35dd1)) ## [1.8.19](https://github.com/salesforcecli/plugin-source/compare/v1.8.18...v1.8.19) (2022-03-16) - ### Bug Fixes -* move command force to plugin-source ([#451](https://github.com/salesforcecli/plugin-source/issues/451)) ([5da7884](https://github.com/salesforcecli/plugin-source/commit/5da7884953c068bcf37f3434193cae309fef8573)) - - +- move command force to plugin-source ([#451](https://github.com/salesforcecli/plugin-source/issues/451)) ([5da7884](https://github.com/salesforcecli/plugin-source/commit/5da7884953c068bcf37f3434193cae309fef8573)) ## [1.8.18](https://github.com/salesforcecli/plugin-source/compare/v1.8.17...v1.8.18) (2022-03-07) - ### Bug Fixes -* revert beta GA ([#446](https://github.com/salesforcecli/plugin-source/issues/446)) ([0efcaa1](https://github.com/salesforcecli/plugin-source/commit/0efcaa11c7c3d3eaed9787486c52295adc5aa4b7)) - - +- revert beta GA ([#446](https://github.com/salesforcecli/plugin-source/issues/446)) ([0efcaa1](https://github.com/salesforcecli/plugin-source/commit/0efcaa11c7c3d3eaed9787486c52295adc5aa4b7)) ## [1.8.17](https://github.com/salesforcecli/plugin-source/compare/v1.8.16...v1.8.17) (2022-03-01) - ### Bug Fixes -* use CSB from SDR ([#430](https://github.com/salesforcecli/plugin-source/issues/430)) ([80e4bdd](https://github.com/salesforcecli/plugin-source/commit/80e4bdd313b55f4b9d37a7a792885d7503e1fbfc)) - - +- use CSB from SDR ([#430](https://github.com/salesforcecli/plugin-source/issues/430)) ([80e4bdd](https://github.com/salesforcecli/plugin-source/commit/80e4bdd313b55f4b9d37a7a792885d7503e1fbfc)) ## [1.8.16](https://github.com/salesforcecli/plugin-source/compare/v1.8.15...v1.8.16) (2022-02-27) - ### Bug Fixes -* run mdapi NUTs in CI ([#431](https://github.com/salesforcecli/plugin-source/issues/431)) ([e33fd1e](https://github.com/salesforcecli/plugin-source/commit/e33fd1e93a92cd95586d29d8fb0ff6cb6e038fbb)) - - +- run mdapi NUTs in CI ([#431](https://github.com/salesforcecli/plugin-source/issues/431)) ([e33fd1e](https://github.com/salesforcecli/plugin-source/commit/e33fd1e93a92cd95586d29d8fb0ff6cb6e038fbb)) ## [1.8.15](https://github.com/salesforcecli/plugin-source/compare/v1.8.14...v1.8.15) (2022-02-24) - - ## [1.8.14](https://github.com/salesforcecli/plugin-source/compare/v1.8.13...v1.8.14) (2022-02-23) - - ## [1.8.13](https://github.com/salesforcecli/plugin-source/compare/v1.8.12...v1.8.13) (2022-02-23) - - ## [1.8.12](https://github.com/salesforcecli/plugin-source/compare/v1.8.11...v1.8.12) (2022-02-14) - - ## [1.8.11](https://github.com/salesforcecli/plugin-source/compare/v1.8.10...v1.8.11) (2022-02-03) - ### Bug Fixes -* temporarily disable async deploy NUTs ([#420](https://github.com/salesforcecli/plugin-source/issues/420)) ([e4e2d76](https://github.com/salesforcecli/plugin-source/commit/e4e2d7615272cb45fda5a4ee2694aaaae92fbf65)) - - +- temporarily disable async deploy NUTs ([#420](https://github.com/salesforcecli/plugin-source/issues/420)) ([e4e2d76](https://github.com/salesforcecli/plugin-source/commit/e4e2d7615272cb45fda5a4ee2694aaaae92fbf65)) ## [1.8.10](https://github.com/salesforcecli/plugin-source/compare/v1.8.9...v1.8.10) (2022-02-02) - - ## [1.8.9](https://github.com/salesforcecli/plugin-source/compare/v1.8.8...v1.8.9) (2022-02-01) - ### Bug Fixes -* bump lots of dependencies ([#416](https://github.com/salesforcecli/plugin-source/issues/416)) ([d242a59](https://github.com/salesforcecli/plugin-source/commit/d242a595011b8da74f2b1da3afac56f6801214bb)) - - +- bump lots of dependencies ([#416](https://github.com/salesforcecli/plugin-source/issues/416)) ([d242a59](https://github.com/salesforcecli/plugin-source/commit/d242a595011b8da74f2b1da3afac56f6801214bb)) ## [1.8.8](https://github.com/salesforcecli/plugin-source/compare/v1.8.7...v1.8.8) (2022-01-31) - ### Bug Fixes -* Add CFT/COT NUTs ([#415](https://github.com/salesforcecli/plugin-source/issues/415)) ([720e6ef](https://github.com/salesforcecli/plugin-source/commit/720e6efdddc396913c08b8e517edc66a2c804213)) - - +- Add CFT/COT NUTs ([#415](https://github.com/salesforcecli/plugin-source/issues/415)) ([720e6ef](https://github.com/salesforcecli/plugin-source/commit/720e6efdddc396913c08b8e517edc66a2c804213)) ## [1.8.7](https://github.com/salesforcecli/plugin-source/compare/v1.8.6...v1.8.7) (2022-01-30) - ### Bug Fixes -* make retrieve param consistent and fix tests ([#410](https://github.com/salesforcecli/plugin-source/issues/410)) ([79108d8](https://github.com/salesforcecli/plugin-source/commit/79108d87ceb65c49c5e17955c42733c6f0d8a2e6)) - - +- make retrieve param consistent and fix tests ([#410](https://github.com/salesforcecli/plugin-source/issues/410)) ([79108d8](https://github.com/salesforcecli/plugin-source/commit/79108d87ceb65c49c5e17955c42733c6f0d8a2e6)) ## [1.8.6](https://github.com/salesforcecli/plugin-source/compare/v1.8.5...v1.8.6) (2022-01-27) - ### Bug Fixes -* add purgeondelete flag to deploy ([#394](https://github.com/salesforcecli/plugin-source/issues/394)) ([6b99f44](https://github.com/salesforcecli/plugin-source/commit/6b99f44c0fdbe9f3d398a7e98dff29d00fc02c46)) - - +- add purgeondelete flag to deploy ([#394](https://github.com/salesforcecli/plugin-source/issues/394)) ([6b99f44](https://github.com/salesforcecli/plugin-source/commit/6b99f44c0fdbe9f3d398a7e98dff29d00fc02c46)) ## [1.8.5](https://github.com/salesforcecli/plugin-source/compare/v1.8.4...v1.8.5) (2022-01-25) - - ## [1.8.4](https://github.com/salesforcecli/plugin-source/compare/v1.8.3...v1.8.4) (2022-01-20) - - ## [1.8.3](https://github.com/salesforcecli/plugin-source/compare/v1.8.2...v1.8.3) (2022-01-20) - - ## [1.8.2](https://github.com/salesforcecli/plugin-source/compare/v1.8.1...v1.8.2) (2022-01-20) - ### Bug Fixes -* include correct username for deploy:report in async deploy ([#392](https://github.com/salesforcecli/plugin-source/issues/392)) ([f58ff25](https://github.com/salesforcecli/plugin-source/commit/f58ff251c60b18391374de7a16f732540515d524)) - - +- include correct username for deploy:report in async deploy ([#392](https://github.com/salesforcecli/plugin-source/issues/392)) ([f58ff25](https://github.com/salesforcecli/plugin-source/commit/f58ff251c60b18391374de7a16f732540515d524)) ## [1.8.1](https://github.com/salesforcecli/plugin-source/compare/v1.8.0...v1.8.1) (2022-01-19) - ### Bug Fixes -* missing quotes in --help for source:retrieve ([#393](https://github.com/salesforcecli/plugin-source/issues/393)) ([2c1e5c6](https://github.com/salesforcecli/plugin-source/commit/2c1e5c6157aed2c1d855af8f2c0a1ebf4478dc23)) - - +- missing quotes in --help for source:retrieve ([#393](https://github.com/salesforcecli/plugin-source/issues/393)) ([2c1e5c6](https://github.com/salesforcecli/plugin-source/commit/2c1e5c6157aed2c1d855af8f2c0a1ebf4478dc23)) # [1.8.0](https://github.com/salesforcecli/plugin-source/compare/v1.6.2...v1.8.0) (2022-01-13) - ### Bug Fixes -* add variable polling times based on comp. set ([#360](https://github.com/salesforcecli/plugin-source/issues/360)) ([4a839ff](https://github.com/salesforcecli/plugin-source/commit/4a839ff7f9f429a723c54baf6c9cb65139eadf43)) -* update --testlevel RunLocalTests --help to say that unlocked packages are also excluded ([#384](https://github.com/salesforcecli/plugin-source/issues/384)) ([5f0ad44](https://github.com/salesforcecli/plugin-source/commit/5f0ad449a6880d761a233c3191e3759a6c0b72cc)) - +- add variable polling times based on comp. set ([#360](https://github.com/salesforcecli/plugin-source/issues/360)) ([4a839ff](https://github.com/salesforcecli/plugin-source/commit/4a839ff7f9f429a723c54baf6c9cb65139eadf43)) +- update --testlevel RunLocalTests --help to say that unlocked packages are also excluded ([#384](https://github.com/salesforcecli/plugin-source/issues/384)) ([5f0ad44](https://github.com/salesforcecli/plugin-source/commit/5f0ad449a6880d761a233c3191e3759a6c0b72cc)) ### Features -* concise flag on status to omit ignored files ([#382](https://github.com/salesforcecli/plugin-source/issues/382)) ([2dcbac8](https://github.com/salesforcecli/plugin-source/commit/2dcbac81e57d056e82835c785bc5a5dc98a255a4)) -* mdapi deploy/report commands ([8068ff0](https://github.com/salesforcecli/plugin-source/commit/8068ff07213541a5823d5908bc831f92e89aa122)) - +- concise flag on status to omit ignored files ([#382](https://github.com/salesforcecli/plugin-source/issues/382)) ([2dcbac8](https://github.com/salesforcecli/plugin-source/commit/2dcbac81e57d056e82835c785bc5a5dc98a255a4)) +- mdapi deploy/report commands ([8068ff0](https://github.com/salesforcecli/plugin-source/commit/8068ff07213541a5823d5908bc831f92e89aa122)) ### Reverts -* Revert "chore: sync .gitignore [skip-validate-pr] (#352)" (#359) ([3d88a10](https://github.com/salesforcecli/plugin-source/commit/3d88a1058bd8bf365dbb9903a912b01c0bfaea39)), closes [#352](https://github.com/salesforcecli/plugin-source/issues/352) [#359](https://github.com/salesforcecli/plugin-source/issues/359) - - +- Revert "chore: sync .gitignore [skip-validate-pr] (#352)" (#359) ([3d88a10](https://github.com/salesforcecli/plugin-source/commit/3d88a1058bd8bf365dbb9903a912b01c0bfaea39)), closes [#352](https://github.com/salesforcecli/plugin-source/issues/352) [#359](https://github.com/salesforcecli/plugin-source/issues/359) ## [1.6.2](https://github.com/salesforcecli/plugin-source/compare/v1.6.1...v1.6.2) (2021-12-03) - ### Bug Fixes -* bump stl for customField status and pull ([#346](https://github.com/salesforcecli/plugin-source/issues/346)) ([7a657dd](https://github.com/salesforcecli/plugin-source/commit/7a657dde6dc8ffb1222034be11bd239b294b074f)) - - +- bump stl for customField status and pull ([#346](https://github.com/salesforcecli/plugin-source/issues/346)) ([7a657dd](https://github.com/salesforcecli/plugin-source/commit/7a657dde6dc8ffb1222034be11bd239b294b074f)) ## [1.6.1](https://github.com/salesforcecli/plugin-source/compare/v1.6.0...v1.6.1) (2021-12-02) - - # [1.6.0](https://github.com/salesforcecli/plugin-source/compare/v1.5.5...v1.6.0) (2021-12-02) - ### Features -* bump deps ([#339](https://github.com/salesforcecli/plugin-source/issues/339)) ([ef58621](https://github.com/salesforcecli/plugin-source/commit/ef5862195a3e5c777ab8df0d2fc5782b1d692ff0)) - - +- bump deps ([#339](https://github.com/salesforcecli/plugin-source/issues/339)) ([ef58621](https://github.com/salesforcecli/plugin-source/commit/ef5862195a3e5c777ab8df0d2fc5782b1d692ff0)) ## [1.5.5](https://github.com/salesforcecli/plugin-source/compare/v1.5.4...v1.5.5) (2021-12-01) - ### Bug Fixes -* delete bundle component and deploy 'new' bundle ([6af9705](https://github.com/salesforcecli/plugin-source/commit/6af9705f61df6743641565eb7bfbe7d20a08c495)) - - +- delete bundle component and deploy 'new' bundle ([6af9705](https://github.com/salesforcecli/plugin-source/commit/6af9705f61df6743641565eb7bfbe7d20a08c495)) ## [1.5.4](https://github.com/salesforcecli/plugin-source/compare/v1.5.3...v1.5.4) (2021-11-23) - ### Bug Fixes -* conditionally include folder ([#309](https://github.com/salesforcecli/plugin-source/issues/309)) ([6a7c936](https://github.com/salesforcecli/plugin-source/commit/6a7c9366a88dc7ea332ba3db1a5658a3b0387d6e)) - - +- conditionally include folder ([#309](https://github.com/salesforcecli/plugin-source/issues/309)) ([6a7c936](https://github.com/salesforcecli/plugin-source/commit/6a7c9366a88dc7ea332ba3db1a5658a3b0387d6e)) ## [1.5.3](https://github.com/salesforcecli/plugin-source/compare/v1.5.2...v1.5.3) (2021-11-18) - - ## [1.5.2](https://github.com/salesforcecli/plugin-source/compare/v1.5.1...v1.5.2) (2021-11-18) - - ## [1.5.1](https://github.com/salesforcecli/plugin-source/compare/v1.5.0...v1.5.1) (2021-11-18) - - # [1.5.0](https://github.com/salesforcecli/plugin-source/compare/v1.4.3...v1.5.0) (2021-11-16) - ### Features -* add mdapi:deploy:cancel command, refactor base classes to support MDAPI and SOURCE stash keys ([#301](https://github.com/salesforcecli/plugin-source/issues/301)) ([9dcc3e7](https://github.com/salesforcecli/plugin-source/commit/9dcc3e7bc1be13d1dcb0df13b3f7710407f9e977)) - - +- add mdapi:deploy:cancel command, refactor base classes to support MDAPI and SOURCE stash keys ([#301](https://github.com/salesforcecli/plugin-source/issues/301)) ([9dcc3e7](https://github.com/salesforcecli/plugin-source/commit/9dcc3e7bc1be13d1dcb0df13b3f7710407f9e977)) ## [1.4.3](https://github.com/salesforcecli/plugin-source/compare/v1.4.2...v1.4.3) (2021-11-15) - ### Bug Fixes -* add back missing help for listmetadata/describemetadata ([#295](https://github.com/salesforcecli/plugin-source/issues/295)) ([f641d83](https://github.com/salesforcecli/plugin-source/commit/f641d8311905d4aa68bcba4679674e4afa8868c1)) - - +- add back missing help for listmetadata/describemetadata ([#295](https://github.com/salesforcecli/plugin-source/issues/295)) ([f641d83](https://github.com/salesforcecli/plugin-source/commit/f641d8311905d4aa68bcba4679674e4afa8868c1)) ## [1.4.2](https://github.com/salesforcecli/plugin-source/compare/v1.4.1...v1.4.2) (2021-11-11) - ### Bug Fixes -* handle a corrupt stash.json file ([#291](https://github.com/salesforcecli/plugin-source/issues/291)) ([ac15a24](https://github.com/salesforcecli/plugin-source/commit/ac15a2433977bbd801fe54e70568bcf176ec0f1b)) - - +- handle a corrupt stash.json file ([#291](https://github.com/salesforcecli/plugin-source/issues/291)) ([ac15a24](https://github.com/salesforcecli/plugin-source/commit/ac15a2433977bbd801fe54e70568bcf176ec0f1b)) ## [1.4.1](https://github.com/salesforcecli/plugin-source/compare/v1.4.0...v1.4.1) (2021-11-11) - - # [1.4.0](https://github.com/salesforcecli/plugin-source/compare/v1.3.1...v1.4.0) (2021-11-09) - ### Features -* listmetadata and describemetadata ([b00a59a](https://github.com/salesforcecli/plugin-source/commit/b00a59a3c06cd81b121c306b6b9af3ee581a61ad)) - - +- listmetadata and describemetadata ([b00a59a](https://github.com/salesforcecli/plugin-source/commit/b00a59a3c06cd81b121c306b6b9af3ee581a61ad)) ## [1.3.1](https://github.com/salesforcecli/plugin-source/compare/v1.3.0...v1.3.1) (2021-10-28) - ### Bug Fixes -* bump SDR to 5.1.1 ([#266](https://github.com/salesforcecli/plugin-source/issues/266)) ([ff6a4f7](https://github.com/salesforcecli/plugin-source/commit/ff6a4f74401668faec6404f941ce5cf73da426ff)) - - +- bump SDR to 5.1.1 ([#266](https://github.com/salesforcecli/plugin-source/issues/266)) ([ff6a4f7](https://github.com/salesforcecli/plugin-source/commit/ff6a4f74401668faec6404f941ce5cf73da426ff)) # [1.3.0](https://github.com/salesforcecli/plugin-source/compare/v1.2.6...v1.3.0) (2021-10-28) - ### Features -* source tracking beta commands ([b871774](https://github.com/salesforcecli/plugin-source/commit/b87177498c184580db7e3bd81f164ddc77e6de0b)), closes [#253](https://github.com/salesforcecli/plugin-source/issues/253) [#251](https://github.com/salesforcecli/plugin-source/issues/251) [#230](https://github.com/salesforcecli/plugin-source/issues/230) [#260](https://github.com/salesforcecli/plugin-source/issues/260) [#259](https://github.com/salesforcecli/plugin-source/issues/259) - - +- source tracking beta commands ([b871774](https://github.com/salesforcecli/plugin-source/commit/b87177498c184580db7e3bd81f164ddc77e6de0b)), closes [#253](https://github.com/salesforcecli/plugin-source/issues/253) [#251](https://github.com/salesforcecli/plugin-source/issues/251) [#230](https://github.com/salesforcecli/plugin-source/issues/230) [#260](https://github.com/salesforcecli/plugin-source/issues/260) [#259](https://github.com/salesforcecli/plugin-source/issues/259) ## [1.2.6](https://github.com/salesforcecli/plugin-source/compare/v1.2.5...v1.2.6) (2021-10-21) - ### Bug Fixes -* use cross-env for test:nuts script ([#260](https://github.com/salesforcecli/plugin-source/issues/260)) ([76627fb](https://github.com/salesforcecli/plugin-source/commit/76627fb21c62a4fb140c87ccfc266accd79af3fd)) - - +- use cross-env for test:nuts script ([#260](https://github.com/salesforcecli/plugin-source/issues/260)) ([76627fb](https://github.com/salesforcecli/plugin-source/commit/76627fb21c62a4fb140c87ccfc266accd79af3fd)) ## [1.2.5](https://github.com/salesforcecli/plugin-source/compare/v1.2.4...v1.2.5) (2021-10-21) - - ## [1.2.4](https://github.com/salesforcecli/plugin-source/compare/v1.2.3...v1.2.4) (2021-10-12) - - ## [1.2.3](https://github.com/salesforcecli/plugin-source/compare/v1.2.1...v1.2.3) (2021-10-11) - ### Bug Fixes -* add back missing long parameter descriptions for some force:source commands ([#241](https://github.com/salesforcecli/plugin-source/issues/241)) ([d87671b](https://github.com/salesforcecli/plugin-source/commit/d87671b4987317d395873d6ef382e6a3ca2080e5)) -* remote-only deletes now supported ([#220](https://github.com/salesforcecli/plugin-source/issues/220)) ([fed3ff4](https://github.com/salesforcecli/plugin-source/commit/fed3ff496e732c6b960ae5838ea302e6b51e9029)) - - +- add back missing long parameter descriptions for some force:source commands ([#241](https://github.com/salesforcecli/plugin-source/issues/241)) ([d87671b](https://github.com/salesforcecli/plugin-source/commit/d87671b4987317d395873d6ef382e6a3ca2080e5)) +- remote-only deletes now supported ([#220](https://github.com/salesforcecli/plugin-source/issues/220)) ([fed3ff4](https://github.com/salesforcecli/plugin-source/commit/fed3ff496e732c6b960ae5838ea302e6b51e9029)) ## [1.2.1](https://github.com/salesforcecli/plugin-source/compare/v1.2.0...v1.2.1) (2021-10-05) - ### Bug Fixes -* bump deps and use internal fs ([#242](https://github.com/salesforcecli/plugin-source/issues/242)) ([6e81996](https://github.com/salesforcecli/plugin-source/commit/6e81996187f32a9ade92a48e7400601ff41602ce)) - - +- bump deps and use internal fs ([#242](https://github.com/salesforcecli/plugin-source/issues/242)) ([6e81996](https://github.com/salesforcecli/plugin-source/commit/6e81996187f32a9ade92a48e7400601ff41602ce)) # [1.2.0](https://github.com/salesforcecli/plugin-source/compare/v1.1.1...v1.2.0) (2021-09-29) - ### Features -* warning label for source:open ([#231](https://github.com/salesforcecli/plugin-source/issues/231)) ([62c7161](https://github.com/salesforcecli/plugin-source/commit/62c71614e2d0d4add9e29fda9c55dc7b639b56ea)) - - +- warning label for source:open ([#231](https://github.com/salesforcecli/plugin-source/issues/231)) ([62c7161](https://github.com/salesforcecli/plugin-source/commit/62c71614e2d0d4add9e29fda9c55dc7b639b56ea)) ## [1.1.1](https://github.com/salesforcecli/plugin-source/compare/v1.1.0...v1.1.1) (2021-09-27) - - # [1.1.0](https://github.com/salesforcecli/plugin-source/compare/v1.0.16...v1.1.0) (2021-09-24) - ### Bug Fixes -* find server errors and display them with FileResponse errors ([#210](https://github.com/salesforcecli/plugin-source/issues/210)) ([99df1ca](https://github.com/salesforcecli/plugin-source/commit/99df1ca41e83eba15646545f94c1e2ff713a6da9)) - +- find server errors and display them with FileResponse errors ([#210](https://github.com/salesforcecli/plugin-source/issues/210)) ([99df1ca](https://github.com/salesforcecli/plugin-source/commit/99df1ca41e83eba15646545f94c1e2ff713a6da9)) ### Features -* source:delete ([#199](https://github.com/salesforcecli/plugin-source/issues/199)) ([4c443c8](https://github.com/salesforcecli/plugin-source/commit/4c443c818c64829e0043932fb6fc4c0823207ebd)) - - +- source:delete ([#199](https://github.com/salesforcecli/plugin-source/issues/199)) ([4c443c8](https://github.com/salesforcecli/plugin-source/commit/4c443c818c64829e0043932fb6fc4c0823207ebd)) ## [1.0.16](https://github.com/salesforcecli/plugin-source/compare/v1.0.15...v1.0.16) (2021-09-10) - - ## [1.0.15](https://github.com/salesforcecli/plugin-source/compare/v1.0.14...v1.0.15) (2021-09-09) - ### Bug Fixes -* bump SDR to 4.4.1 ([#207](https://github.com/salesforcecli/plugin-source/issues/207)) ([d80ddf3](https://github.com/salesforcecli/plugin-source/commit/d80ddf30b7aa63129ffcbb40785c3873bc8c8f6d)) - - +- bump SDR to 4.4.1 ([#207](https://github.com/salesforcecli/plugin-source/issues/207)) ([d80ddf3](https://github.com/salesforcecli/plugin-source/commit/d80ddf30b7aa63129ffcbb40785c3873bc8c8f6d)) ## [1.0.14](https://github.com/salesforcecli/plugin-source/compare/v1.0.13...v1.0.14) (2021-09-09) - ### Bug Fixes -* release with new SDR version ([e803bc8](https://github.com/salesforcecli/plugin-source/commit/e803bc84f8a498bd6cea1f7c363fb5482b45e034)) - - +- release with new SDR version ([e803bc8](https://github.com/salesforcecli/plugin-source/commit/e803bc84f8a498bd6cea1f7c363fb5482b45e034)) ## [1.0.13](https://github.com/salesforcecli/plugin-source/compare/v1.0.12...v1.0.13) (2021-09-08) - - ## [1.0.12](https://github.com/salesforcecli/plugin-source/compare/v1.0.11...v1.0.12) (2021-08-26) - ### Bug Fixes -* force a release that updates SDR dependency ([b08ef1f](https://github.com/salesforcecli/plugin-source/commit/b08ef1f21d673353d483921a907d945f74584340)) - - +- force a release that updates SDR dependency ([b08ef1f](https://github.com/salesforcecli/plugin-source/commit/b08ef1f21d673353d483921a907d945f74584340)) ## [1.0.11](https://github.com/salesforcecli/plugin-source/compare/v1.0.10...v1.0.11) (2021-08-26) - ### Bug Fixes -* trim metadata type, and name to prevent unnecessary errors ([#179](https://github.com/salesforcecli/plugin-source/issues/179)) ([2011caa](https://github.com/salesforcecli/plugin-source/commit/2011caae414c9c4ac6e51e9d3a1da50513d3dc77)) - - +- trim metadata type, and name to prevent unnecessary errors ([#179](https://github.com/salesforcecli/plugin-source/issues/179)) ([2011caa](https://github.com/salesforcecli/plugin-source/commit/2011caae414c9c4ac6e51e9d3a1da50513d3dc77)) ## [1.0.10](https://github.com/salesforcecli/plugin-source/compare/v1.0.9...v1.0.10) (2021-08-20) - ### Bug Fixes -* wildcard metadata retrieves will now fetch source not in the project ([#177](https://github.com/salesforcecli/plugin-source/issues/177)) ([3e542c3](https://github.com/salesforcecli/plugin-source/commit/3e542c39bf9b6591c6afd4696809ea28e4b98678)) - - +- wildcard metadata retrieves will now fetch source not in the project ([#177](https://github.com/salesforcecli/plugin-source/issues/177)) ([3e542c3](https://github.com/salesforcecli/plugin-source/commit/3e542c39bf9b6591c6afd4696809ea28e4b98678)) ## [1.0.9](https://github.com/salesforcecli/plugin-source/compare/v1.0.7...v1.0.9) (2021-08-12) - ### Bug Fixes -* update command long descriptions ([#174](https://github.com/salesforcecli/plugin-source/issues/174)) ([12f1301](https://github.com/salesforcecli/plugin-source/commit/12f1301bc387f3d7ddcb5f6393bbcf20d038eb1c)) - - +- update command long descriptions ([#174](https://github.com/salesforcecli/plugin-source/issues/174)) ([12f1301](https://github.com/salesforcecli/plugin-source/commit/12f1301bc387f3d7ddcb5f6393bbcf20d038eb1c)) ## [1.0.7](https://github.com/salesforcecli/plugin-source/compare/v1.0.6...v1.0.7) (2021-08-05) - ### Bug Fixes -* bump SDR to 4.0.2 ([#169](https://github.com/salesforcecli/plugin-source/issues/169)) ([f750a3b](https://github.com/salesforcecli/plugin-source/commit/f750a3b9e841a9f6fe22e65093cb58886db69d93)) - - +- bump SDR to 4.0.2 ([#169](https://github.com/salesforcecli/plugin-source/issues/169)) ([f750a3b](https://github.com/salesforcecli/plugin-source/commit/f750a3b9e841a9f6fe22e65093cb58886db69d93)) ## [1.0.6](https://github.com/salesforcecli/plugin-source/compare/v1.0.5...v1.0.6) (2021-07-30) - - ## [1.0.5](https://github.com/salesforcecli/plugin-source/compare/v1.0.3...v1.0.5) (2021-07-29) - ### Bug Fixes -* add verbose test detail when deploying with tests ([#151](https://github.com/salesforcecli/plugin-source/issues/151)) ([1485c0e](https://github.com/salesforcecli/plugin-source/commit/1485c0e47cba4faf22f0420a561f8986e229ada0)) -* bump to 1.0.5 ([#160](https://github.com/salesforcecli/plugin-source/issues/160)) ([b0716cf](https://github.com/salesforcecli/plugin-source/commit/b0716cf0096727137ecfaa1e9e687278d0a046fd)) -* missing metadata type error matches toolbelt ([#155](https://github.com/salesforcecli/plugin-source/issues/155)) ([45ec6d0](https://github.com/salesforcecli/plugin-source/commit/45ec6d069b7d50642daccb3214e6ae8d0bdb6db1)) - - +- add verbose test detail when deploying with tests ([#151](https://github.com/salesforcecli/plugin-source/issues/151)) ([1485c0e](https://github.com/salesforcecli/plugin-source/commit/1485c0e47cba4faf22f0420a561f8986e229ada0)) +- bump to 1.0.5 ([#160](https://github.com/salesforcecli/plugin-source/issues/160)) ([b0716cf](https://github.com/salesforcecli/plugin-source/commit/b0716cf0096727137ecfaa1e9e687278d0a046fd)) +- missing metadata type error matches toolbelt ([#155](https://github.com/salesforcecli/plugin-source/issues/155)) ([45ec6d0](https://github.com/salesforcecli/plugin-source/commit/45ec6d069b7d50642daccb3214e6ae8d0bdb6db1)) ## [1.0.3](https://github.com/salesforcecli/plugin-source/compare/v1.0.2...v1.0.3) (2021-07-28) - ### Bug Fixes -* deploy:report now respects the wait flag ([#153](https://github.com/salesforcecli/plugin-source/issues/153)) ([c194f7c](https://github.com/salesforcecli/plugin-source/commit/c194f7c6907074fef8ac2b4e450c511966b83f5f)) - - +- deploy:report now respects the wait flag ([#153](https://github.com/salesforcecli/plugin-source/issues/153)) ([c194f7c](https://github.com/salesforcecli/plugin-source/commit/c194f7c6907074fef8ac2b4e450c511966b83f5f)) ## [1.0.2](https://github.com/salesforcecli/plugin-source/compare/v1.0.1...v1.0.2) (2021-07-26) - ### Bug Fixes -* throw deploy error when missing required params ([#150](https://github.com/salesforcecli/plugin-source/issues/150)) ([234c596](https://github.com/salesforcecli/plugin-source/commit/234c5968b31dc620dcdb318dccbcc1dcc1e11fde)) - - +- throw deploy error when missing required params ([#150](https://github.com/salesforcecli/plugin-source/issues/150)) ([234c596](https://github.com/salesforcecli/plugin-source/commit/234c5968b31dc620dcdb318dccbcc1dcc1e11fde)) ## [1.0.1](https://github.com/salesforcecli/plugin-source/compare/v1.0.0...v1.0.1) (2021-07-26) - ### Bug Fixes -* minor package fixes ([#152](https://github.com/salesforcecli/plugin-source/issues/152)) ([5aa593d](https://github.com/salesforcecli/plugin-source/commit/5aa593d2e20297c1b928b828679de9c3ea4809e6)) - - +- minor package fixes ([#152](https://github.com/salesforcecli/plugin-source/issues/152)) ([5aa593d](https://github.com/salesforcecli/plugin-source/commit/5aa593d2e20297c1b928b828679de9c3ea4809e6)) # [1.0.0](https://github.com/salesforcecli/plugin-source/compare/v0.1.22...v1.0.0) (2021-07-22) - ### Bug Fixes -* deploy errors are reported properly ([#146](https://github.com/salesforcecli/plugin-source/issues/146)) ([08fbbdd](https://github.com/salesforcecli/plugin-source/commit/08fbbdd2c919b1000fcdb253d9d63babf643ded1)) -* retrieve package names output ([#149](https://github.com/salesforcecli/plugin-source/issues/149)) ([7350488](https://github.com/salesforcecli/plugin-source/commit/7350488f2ac7e7d0fa1c0ffef58c7b60d74fb423)) -* set sourceApiVersion on the ComponentSet ([#147](https://github.com/salesforcecli/plugin-source/issues/147)) ([46c15ba](https://github.com/salesforcecli/plugin-source/commit/46c15ba5d5f783a09002c81870a155d0691fd162)) - - +- deploy errors are reported properly ([#146](https://github.com/salesforcecli/plugin-source/issues/146)) ([08fbbdd](https://github.com/salesforcecli/plugin-source/commit/08fbbdd2c919b1000fcdb253d9d63babf643ded1)) +- retrieve package names output ([#149](https://github.com/salesforcecli/plugin-source/issues/149)) ([7350488](https://github.com/salesforcecli/plugin-source/commit/7350488f2ac7e7d0fa1c0ffef58c7b60d74fb423)) +- set sourceApiVersion on the ComponentSet ([#147](https://github.com/salesforcecli/plugin-source/issues/147)) ([46c15ba](https://github.com/salesforcecli/plugin-source/commit/46c15ba5d5f783a09002c81870a155d0691fd162)) ## [0.1.22](https://github.com/salesforcecli/plugin-source/compare/v0.1.21...v0.1.22) (2021-06-28) - ### Bug Fixes -* display retrieve warnings ([#121](https://github.com/salesforcecli/plugin-source/issues/121)) ([a2330ed](https://github.com/salesforcecli/plugin-source/commit/a2330edb51408a91169608a5d518423dd919231b)) - - +- display retrieve warnings ([#121](https://github.com/salesforcecli/plugin-source/issues/121)) ([a2330ed](https://github.com/salesforcecli/plugin-source/commit/a2330edb51408a91169608a5d518423dd919231b)) ## [0.1.21](https://github.com/salesforcecli/plugin-source/compare/v0.1.20...v0.1.21) (2021-06-24) - ### Bug Fixes -* postretrieve hook payload is now the file responses ([#120](https://github.com/salesforcecli/plugin-source/issues/120)) ([a505389](https://github.com/salesforcecli/plugin-source/commit/a50538905a9bb02192c9803fec49000baf6a588f)) - - +- postretrieve hook payload is now the file responses ([#120](https://github.com/salesforcecli/plugin-source/issues/120)) ([a505389](https://github.com/salesforcecli/plugin-source/commit/a50538905a9bb02192c9803fec49000baf6a588f)) ## [0.1.20](https://github.com/salesforcecli/plugin-source/compare/v0.1.19...v0.1.20) (2021-06-17) - ### Bug Fixes -* temporary polling fix ([#114](https://github.com/salesforcecli/plugin-source/issues/114)) ([6c6a3ab](https://github.com/salesforcecli/plugin-source/commit/6c6a3ab6b1a4e36efa974627bc944e37e875c3d6)) - - +- temporary polling fix ([#114](https://github.com/salesforcecli/plugin-source/issues/114)) ([6c6a3ab](https://github.com/salesforcecli/plugin-source/commit/6c6a3ab6b1a4e36efa974627bc944e37e875c3d6)) ## [0.1.19](https://github.com/salesforcecli/plugin-source/compare/v0.0.19...v0.1.19) (2021-06-12) - ### Features -* add support for async deploys ([#89](https://github.com/salesforcecli/plugin-source/issues/89)) ([e7d7215](https://github.com/salesforcecli/plugin-source/commit/e7d721561542baab8abcf6a8d482e7bb9653176a)), closes [#108](https://github.com/salesforcecli/plugin-source/issues/108) [#84](https://github.com/salesforcecli/plugin-source/issues/84) [#85](https://github.com/salesforcecli/plugin-source/issues/85) [#88](https://github.com/salesforcecli/plugin-source/issues/88) [#80](https://github.com/salesforcecli/plugin-source/issues/80) [#90](https://github.com/salesforcecli/plugin-source/issues/90) [#105](https://github.com/salesforcecli/plugin-source/issues/105) [#106](https://github.com/salesforcecli/plugin-source/issues/106) - - +- add support for async deploys ([#89](https://github.com/salesforcecli/plugin-source/issues/89)) ([e7d7215](https://github.com/salesforcecli/plugin-source/commit/e7d721561542baab8abcf6a8d482e7bb9653176a)), closes [#108](https://github.com/salesforcecli/plugin-source/issues/108) [#84](https://github.com/salesforcecli/plugin-source/issues/84) [#85](https://github.com/salesforcecli/plugin-source/issues/85) [#88](https://github.com/salesforcecli/plugin-source/issues/88) [#80](https://github.com/salesforcecli/plugin-source/issues/80) [#90](https://github.com/salesforcecli/plugin-source/issues/90) [#105](https://github.com/salesforcecli/plugin-source/issues/105) [#106](https://github.com/salesforcecli/plugin-source/issues/106) ## [0.0.19](https://github.com/salesforcecli/plugin-source/compare/v0.0.18...v0.0.19) (2021-06-10) - - ## [0.0.18](https://github.com/salesforcecli/plugin-source/compare/v0.0.17...v0.0.18) (2021-06-09) - - ## [0.0.17](https://github.com/salesforcecli/plugin-source/compare/v0.0.16...v0.0.17) (2021-06-03) - - ## [0.0.16](https://github.com/salesforcecli/plugin-source/compare/v0.0.15...v0.0.16) (2021-05-20) - - ## [0.0.15](https://github.com/salesforcecli/plugin-source/compare/v0.0.14...v0.0.15) (2021-05-07) - - ## [0.0.14](https://github.com/salesforcecli/plugin-source/compare/v0.0.13...v0.0.14) (2021-05-04) - ### Bug Fixes -* support hooks for deployRecentValidation and async deploys ([#75](https://github.com/salesforcecli/plugin-source/issues/75)) ([ac787f9](https://github.com/salesforcecli/plugin-source/commit/ac787f9f8238bd09d44878a6c9994384a5c567c7)) - - +- support hooks for deployRecentValidation and async deploys ([#75](https://github.com/salesforcecli/plugin-source/issues/75)) ([ac787f9](https://github.com/salesforcecli/plugin-source/commit/ac787f9f8238bd09d44878a6c9994384a5c567c7)) ## [0.0.13](https://github.com/salesforcecli/plugin-source/compare/v0.0.12...v0.0.13) (2021-05-04) - ### Bug Fixes -* deploy output fixes ([#74](https://github.com/salesforcecli/plugin-source/issues/74)) ([d1bb8be](https://github.com/salesforcecli/plugin-source/commit/d1bb8be605458aea81503c1e5bc6974fe03c0ec6)) - - +- deploy output fixes ([#74](https://github.com/salesforcecli/plugin-source/issues/74)) ([d1bb8be](https://github.com/salesforcecli/plugin-source/commit/d1bb8be605458aea81503c1e5bc6974fe03c0ec6)) ## [0.0.12](https://github.com/salesforcecli/plugin-source/compare/v0.0.11...v0.0.12) (2021-05-01) - - ## [0.0.11](https://github.com/salesforcecli/plugin-source/compare/v0.0.10...v0.0.11) (2021-04-29) - ### Bug Fixes -* add NUT testing LWC bug ([#70](https://github.com/salesforcecli/plugin-source/issues/70)) ([d6cb456](https://github.com/salesforcecli/plugin-source/commit/d6cb456cdf127e7e896511b8af7606fce25973cb)) - - +- add NUT testing LWC bug ([#70](https://github.com/salesforcecli/plugin-source/issues/70)) ([d6cb456](https://github.com/salesforcecli/plugin-source/commit/d6cb456cdf127e7e896511b8af7606fce25973cb)) ## [0.0.10](https://github.com/salesforcecli/plugin-source/compare/v0.0.9...v0.0.10) (2021-04-23) - ### Bug Fixes -* new hooks, updated tests ([#69](https://github.com/salesforcecli/plugin-source/issues/69)) ([81e1058](https://github.com/salesforcecli/plugin-source/commit/81e10581456ceccb4b3e07f3d1310bb18bef25ff)) - - +- new hooks, updated tests ([#69](https://github.com/salesforcecli/plugin-source/issues/69)) ([81e1058](https://github.com/salesforcecli/plugin-source/commit/81e10581456ceccb4b3e07f3d1310bb18bef25ff)) ## [0.0.9](https://github.com/salesforcecli/plugin-source/compare/v0.0.8...v0.0.9) (2021-04-13) - - ## [0.0.8](https://github.com/salesforcecli/plugin-source/compare/v0.0.7...v0.0.8) (2021-04-13) - ### Features -* support split custom labels ([#62](https://github.com/salesforcecli/plugin-source/issues/62)) ([ab290a7](https://github.com/salesforcecli/plugin-source/commit/ab290a78fcdb5e4d8da2fbdcfc3e49e783e848ac)) - - +- support split custom labels ([#62](https://github.com/salesforcecli/plugin-source/issues/62)) ([ab290a7](https://github.com/salesforcecli/plugin-source/commit/ab290a78fcdb5e4d8da2fbdcfc3e49e783e848ac)) ## [0.0.7](https://github.com/salesforcecli/plugin-source/compare/v0.0.6...v0.0.7) (2021-04-09) - ### Bug Fixes -* add deploy:cancel ([#66](https://github.com/salesforcecli/plugin-source/issues/66)) ([1e673a2](https://github.com/salesforcecli/plugin-source/commit/1e673a28943d306f85baa1728e9f438b570cc0e3)) - - +- add deploy:cancel ([#66](https://github.com/salesforcecli/plugin-source/issues/66)) ([1e673a2](https://github.com/salesforcecli/plugin-source/commit/1e673a28943d306f85baa1728e9f438b570cc0e3)) ## [0.0.6](https://github.com/salesforcecli/plugin-source/compare/v0.0.5...v0.0.6) (2021-04-09) - ### Bug Fixes -* add progress bar to deploy ([#65](https://github.com/salesforcecli/plugin-source/issues/65)) ([df2f5e0](https://github.com/salesforcecli/plugin-source/commit/df2f5e0de2dea2d509d4b0a3c0ceae8cc75411b9)) - - +- add progress bar to deploy ([#65](https://github.com/salesforcecli/plugin-source/issues/65)) ([df2f5e0](https://github.com/salesforcecli/plugin-source/commit/df2f5e0de2dea2d509d4b0a3c0ceae8cc75411b9)) ## [0.0.5](https://github.com/salesforcecli/plugin-source/compare/v0.0.4...v0.0.5) (2021-04-07) - ### Bug Fixes -* add convert command ([#64](https://github.com/salesforcecli/plugin-source/issues/64)) ([26e36b2](https://github.com/salesforcecli/plugin-source/commit/26e36b22f0402b9927834ecda63f24dc65f66d96)) - - +- add convert command ([#64](https://github.com/salesforcecli/plugin-source/issues/64)) ([26e36b2](https://github.com/salesforcecli/plugin-source/commit/26e36b22f0402b9927834ecda63f24dc65f66d96)) ## [0.0.4](https://github.com/salesforcecli/plugin-source/compare/v0.0.3...v0.0.4) (2021-04-05) - - ## [0.0.3](https://github.com/salesforcecli/plugin-source/compare/v0.0.2...v0.0.3) (2021-04-02) - - ## [0.0.2](https://github.com/salesforcecli/plugin-source/compare/v0.0.1...v0.0.2) (2021-03-03) - ### Bug Fixes -* add initial NUTs, u-tests ([ca2076c](https://github.com/salesforcecli/plugin-source/commit/ca2076ca7ee1c9b0dcd23e096569006e33ecd149)) -* add retrieve via packageNames param ([2fb3217](https://github.com/salesforcecli/plugin-source/commit/2fb32170044d3d39295f2006ab6ab73a09260b43)) -* add wait to retrieve, move min wait and default wait to static members ([74a3cdd](https://github.com/salesforcecli/plugin-source/commit/74a3cddcb3d2688068f856d767e08b59d83d8adf)) -* deploy first pass ([c6665ab](https://github.com/salesforcecli/plugin-source/commit/c6665abc3fcbf381ccbdc87f40bc97b959a0d2f0)) -* fix sorting logic ([70876e3](https://github.com/salesforcecli/plugin-source/commit/70876e3edb2f2a5169a29e2ede011608fac81bc0)) -* fixed some of Steve's comments ([4596da6](https://github.com/salesforcecli/plugin-source/commit/4596da6863866236c890a993fd111ff58a092aa9)) -* match library changes for deploy ([abba216](https://github.com/salesforcecli/plugin-source/commit/abba216ffb323111837e1621a7e4ef92525eb404)) -* remove packagename, change some types ([b1d8b82](https://github.com/salesforcecli/plugin-source/commit/b1d8b82533e0df0b8b9d13306bbc1c0c7cbbfbd1)) -* source:retrieve working as a user, json and hook info wrong, missing tests ([7828c3f](https://github.com/salesforcecli/plugin-source/commit/7828c3fa64515b71c1ec6641efd79cdfe10b40da)) - - +- add initial NUTs, u-tests ([ca2076c](https://github.com/salesforcecli/plugin-source/commit/ca2076ca7ee1c9b0dcd23e096569006e33ecd149)) +- add retrieve via packageNames param ([2fb3217](https://github.com/salesforcecli/plugin-source/commit/2fb32170044d3d39295f2006ab6ab73a09260b43)) +- add wait to retrieve, move min wait and default wait to static members ([74a3cdd](https://github.com/salesforcecli/plugin-source/commit/74a3cddcb3d2688068f856d767e08b59d83d8adf)) +- deploy first pass ([c6665ab](https://github.com/salesforcecli/plugin-source/commit/c6665abc3fcbf381ccbdc87f40bc97b959a0d2f0)) +- fix sorting logic ([70876e3](https://github.com/salesforcecli/plugin-source/commit/70876e3edb2f2a5169a29e2ede011608fac81bc0)) +- fixed some of Steve's comments ([4596da6](https://github.com/salesforcecli/plugin-source/commit/4596da6863866236c890a993fd111ff58a092aa9)) +- match library changes for deploy ([abba216](https://github.com/salesforcecli/plugin-source/commit/abba216ffb323111837e1621a7e4ef92525eb404)) +- remove packagename, change some types ([b1d8b82](https://github.com/salesforcecli/plugin-source/commit/b1d8b82533e0df0b8b9d13306bbc1c0c7cbbfbd1)) +- source:retrieve working as a user, json and hook info wrong, missing tests ([7828c3f](https://github.com/salesforcecli/plugin-source/commit/7828c3fa64515b71c1ec6641efd79cdfe10b40da)) ## [0.0.1](https://github.com/salesforcecli/plugin-source/compare/598ff29125185b1644fc5c009bcb4cf56115fb31...v0.0.1) (2021-02-08) - ### Bug Fixes -* add command files, test files, message files, remove template ([598ff29](https://github.com/salesforcecli/plugin-source/commit/598ff29125185b1644fc5c009bcb4cf56115fb31)) - - - +- add command files, test files, message files, remove template ([598ff29](https://github.com/salesforcecli/plugin-source/commit/598ff29125185b1644fc5c009bcb4cf56115fb31)) diff --git a/package.json b/package.json index 6e693e71c..403c75b3e 100644 --- a/package.json +++ b/package.json @@ -10,10 +10,10 @@ "@oclif/plugin-help": "^3.3.1", "@salesforce/apex-node": "^1.6.0", "@salesforce/command": "^5.2.35", - "@salesforce/core": "^3.32.8", - "@salesforce/kit": "^1.8.0", - "@salesforce/source-deploy-retrieve": "^7.7.0", - "@salesforce/source-tracking": "^2.2.16", + "@salesforce/core": "^3.32.14", + "@salesforce/kit": "^1.8.3", + "@salesforce/source-deploy-retrieve": "^7.7.3", + "@salesforce/source-tracking": "^2.2.18", "chalk": "^4.1.2", "got": "^11.8.3", "jsforce": "^2.0.0-beta.19", @@ -188,4 +188,4 @@ "publishConfig": { "access": "public" } -} \ No newline at end of file +} diff --git a/src/trackingFunctions.ts b/src/trackingFunctions.ts index 40f7d7ef9..10332fa8b 100644 --- a/src/trackingFunctions.ts +++ b/src/trackingFunctions.ts @@ -125,18 +125,14 @@ export const updateTracking = async ({ tracking, result, ux, fileResponses }: Tr } await Promise.all([ - tracking.updateLocalTracking( - result instanceof RetrieveResult - ? { files: successes.map((fileResponse) => fileResponse.filePath).filter(Boolean) } - : { - files: successes - .filter((fileResponse) => fileResponse.state !== ComponentStatus.Deleted) - .map((fileResponse) => fileResponse.filePath), - deletedFiles: successes - .filter((fileResponse) => fileResponse.state === ComponentStatus.Deleted) - .map((fileResponse) => fileResponse.filePath), - } - ), + tracking.updateLocalTracking({ + files: successes + .filter((fileResponse) => fileResponse.state !== ComponentStatus.Deleted) + .map((fileResponse) => fileResponse.filePath), + deletedFiles: successes + .filter((fileResponse) => fileResponse.state === ComponentStatus.Deleted) + .map((fileResponse) => fileResponse.filePath), + }), tracking.updateRemoteTracking( successes.map(({ state, fullName, type, filePath }) => ({ state, fullName, type, filePath })), result instanceof RetrieveResult diff --git a/test/nuts/REST/deploy.nut.ts b/test/nuts/REST/deploy.nut.ts index d1592780c..a36d6d549 100644 --- a/test/nuts/REST/deploy.nut.ts +++ b/test/nuts/REST/deploy.nut.ts @@ -52,6 +52,7 @@ context(`REST Deploy NUTs [name: ${repo.name}]`, () => { repository: repo.gitUrl, nut: __filename, }); + await testkit.deploy({ args: '-p force-app' }); }); after(async () => { diff --git a/test/nuts/partialBundleDelete.nut.ts b/test/nuts/partialBundleDelete.nut.ts new file mode 100644 index 000000000..65b6f9676 --- /dev/null +++ b/test/nuts/partialBundleDelete.nut.ts @@ -0,0 +1,330 @@ +/* + * Copyright (c) 2020, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ +import * as path from 'path'; +import * as fs from 'fs'; +import { expect } from 'chai'; +import * as sinon from 'sinon'; +import * as oclif from '@oclif/core'; +import { TestSession, genUniqueString, TestProject, execCmd } from '@salesforce/cli-plugins-testkit'; +import { AuthInfo, Connection } from '@salesforce/core'; +import { UX } from '@salesforce/command'; +import { + ComponentSet, + ComponentSetBuilder, + ComponentSetOptions, + MetadataApiRetrieve, + RetrieveSetOptions, +} from '@salesforce/source-deploy-retrieve'; +import { RetrieveCommandResult } from 'src/formatters/retrieveResultFormatter'; + +describe('Partial Bundle Delete Retrieves', () => { + let session: TestSession; + let projectPath: string; + const sandbox = sinon.createSandbox(); + const scratchOrgUsername = genUniqueString('pbdr-test-%s@nut.org'); + + before(async () => { + session = await TestSession.create({ + project: { + sourceDir: path.join(process.cwd(), 'test', 'nuts', 'partialBundleDeleteProject'), + }, + devhubAuthStrategy: 'AUTO', + scratchOrgs: [ + { + executable: 'sfdx', + duration: 1, + setDefault: true, + wait: 10, + config: path.join('config', 'project-scratch-def.json'), + username: scratchOrgUsername, + }, + ], + }); + projectPath = path.join(session.project.dir, 'force-app', 'main', 'default'); + }); + + after(async () => { + await session?.clean(); + }); + + afterEach(() => { + sandbox.restore(); + }); + + // + // NOTE: This test uses stubbed server responses since we can't recreate this scenario + // using an API or deploy/retrieve. + // Test Scenario: This test uses a local project called, "partialBundleDeleteProject" that + // has a DigitalBundleExperience. The test retrieves a changed DigitalExperience (forgotPassword) + // that doesn't contain a translation file (es.json). This should cause the local translation file + // to be deleted and reported as deleted by SDR and the source:retrieve command. + it('should replace and report local DEB content that was deleted for retrieve', async () => { + const forgotPasswordTranslationFile = path.join( + projectPath, + 'digitalExperiences', + 'site', + 'source_plugin_nut1', + 'sfdc_cms__view', + 'forgotPassword', + 'es.json' + ); + expect(fs.existsSync(forgotPasswordTranslationFile)).to.be.true; + + // Create an actual connection to the org we created for the TestSession, then stub + // retrieve() and checkRetrieveStatus() and others to simulate retrieving a partial bundle delete. + const connection = await Connection.create({ + authInfo: await AuthInfo.create(session.orgs.get(scratchOrgUsername)), + }); + sandbox.stub(connection.metadata, 'retrieve').resolves(retrieveResponse); + sandbox.stub(connection.metadata, 'checkRetrieveStatus').resolves(checkRetrieveStatusResponse); + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment + const csbBuild: (options: ComponentSetOptions) => Promise = ComponentSetBuilder.build.bind({}); + sandbox.stub(ComponentSetBuilder, 'build').callsFake(async (opts) => { + const compSet = await csbBuild(opts); + // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment + const compSetRetrieveClone: (options: RetrieveSetOptions) => Promise = + compSet.retrieve.bind(compSet); + sandbox.stub(compSet, 'retrieve').callsFake(() => + compSetRetrieveClone({ + usernameOrConnection: connection, + merge: true, + output: path.join(session.project.dir, 'force-app'), + }) + ); + return compSet; + }); + const logJsonStub = sandbox.stub(UX.prototype, 'logJson'); + + await oclif.run([ + 'force:source:retrieve', + '-m', + 'DigitalExperience:site/source_plugin_nut1.sfdc_cms__view/forgotPassword', + '--json', + ]); + + expect(fs.existsSync(forgotPasswordTranslationFile)).to.be.false; + expect(logJsonStub.args[0][0]).to.deep.equal(getExpectedCmdJSON(projectPath)); + }); + + describe('Aura and LWC', () => { + let dreamhouseProj: TestProject; + let auraSrcDir: string; + let lwcSrcDir: string; + + before(() => { + dreamhouseProj = new TestProject({ + gitClone: 'https://github.com/trailheadapps/dreamhouse-lwc.git', + destinationDir: session.dir, + }); + dreamhouseProj.dir = path.join(session.dir, 'dreamhouse-lwc'); + session.stubCwd(dreamhouseProj.dir); + auraSrcDir = path.join(dreamhouseProj.dir, 'force-app', 'main', 'default', 'aura'); + lwcSrcDir = path.join(dreamhouseProj.dir, 'force-app', 'main', 'default', 'lwc'); + + execCmd(`force:source:deploy -p force-app -u ${scratchOrgUsername}`, { ensureExitCode: 0 }); + }); + + // This test uses the dreamhouse-lwc repo to add a CSS file to an aura + // component locally, then retrieve the component from the org which should + // delete the CSS file added to match the component in the org. + it('should replace and report local Aura content that was deleted for retrieve', () => { + const auraPropertyListMapPath = path.join(auraSrcDir, 'auraPropertyListMap'); + + // Add another CSS file to the auraPropertyListMap component. This file + // should be deleted after a retrieve of the component from the org. + const testCssFile = path.join(auraPropertyListMapPath, 'testFile.css'); + fs.writeFileSync(testCssFile, '.THIS header { display: none; }'); + expect(fs.existsSync(testCssFile)).to.be.true; + + const result = execCmd( + `force:source:retrieve -p ${auraPropertyListMapPath} -u ${scratchOrgUsername} --json`, + { ensureExitCode: 0 } + ); + + expect(fs.existsSync(testCssFile)).to.be.false; + const inboundFiles = result.jsonOutput?.result?.inboundFiles; + expect(inboundFiles).to.be.an('array').and.not.empty; + + // find the deleted entry for testFile.css + const deletedFileResponse = inboundFiles.find((fr) => fr.state === 'Deleted'); + expect(deletedFileResponse).to.deep.equal({ + fullName: 'auraPropertyListMap', + type: 'AuraDefinitionBundle', + state: 'Deleted', + filePath: testCssFile, + }); + }); + + // This test uses the dreamhouse-lwc repo to add a CSS file to a LWC + // component locally, then retrieve the component from the org which should + // delete the CSS file added to match the component in the org. + it('should replace and report local LWC content that was deleted for retrieve', () => { + const propertyTilePath = path.join(lwcSrcDir, 'propertyTile'); + + // Add another CSS file to the propertyTile component. This file + // should be deleted after a retrieve of the component from the org. + const testCssFile = path.join(propertyTilePath, 'testFile.css'); + fs.writeFileSync(testCssFile, '.THIS header { display: none; }'); + expect(fs.existsSync(testCssFile)).to.be.true; + + const result = execCmd( + `force:source:retrieve -p ${propertyTilePath} -u ${scratchOrgUsername} --json`, + { ensureExitCode: 0 } + ); + + expect(fs.existsSync(testCssFile)).to.be.false; + const inboundFiles = result.jsonOutput?.result?.inboundFiles; + expect(inboundFiles).to.be.an('array').and.not.empty; + + // find the deleted entry for testFile.css + const deletedFileResponse = inboundFiles.find((fr) => fr.state === 'Deleted'); + expect(deletedFileResponse).to.deep.equal({ + fullName: 'propertyTile', + type: 'LightningComponentBundle', + state: 'Deleted', + filePath: testCssFile, + }); + }); + }); +}); + +// connection.metadata.retrieve stubbed response +const retrieveResponse = { + done: false, + id: '09S9A000000YsZxUAK', + state: 'Queued', + fileProperties: [], + messages: [], + status: '', + success: false, + zipFile: '', +}; + +// connection.metadata.checkRetrieveStatus stubbed response +const checkRetrieveStatusResponse = { + done: true, + fileProperties: [ + { + createdById: '0059A000005ekRSQAY', + createdByName: 'User User', + createdDate: '2023-01-06T21:06:57.000Z', + fileName: 'unpackaged/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/forgotPassword/_meta.json', + fullName: 'site/source_plugin_nut1/sfdc_cms__view/forgotPassword/_meta', + id: '0jd9A000000000BQAQ', + lastModifiedById: '0059A000005ekRSQAY', + lastModifiedByName: 'User User', + lastModifiedDate: '2023-01-06T21:06:57.000Z', + type: 'DigitalExperienceBundle', + }, + { + createdById: '0059A000005ekRSQAY', + createdByName: 'User User', + createdDate: '2023-01-06T21:06:57.000Z', + fileName: 'unpackaged/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/forgotPassword/content.json', + fullName: 'site/source_plugin_nut1/sfdc_cms__view/forgotPassword/content', + id: '0jd9A000000000BQAQ', + lastModifiedById: '0059A000005ekRSQAY', + lastModifiedByName: 'User User', + lastModifiedDate: '2023-01-06T21:06:57.000Z', + type: 'DigitalExperienceBundle', + }, + { + createdById: '0059A000005ekRSQAY', + createdByName: 'User User', + createdDate: '2023-01-07T18:58:58.034Z', + fileName: 'unpackaged/package.xml', + fullName: 'unpackaged/package.xml', + id: '', + lastModifiedById: '0059A000005ekRSQAY', + lastModifiedByName: 'User User', + lastModifiedDate: '2023-01-07T18:58:58.034Z', + manageableState: 'unmanaged', + type: 'Package', + }, + ], + id: '09S9A000000Ysa2UAC', + status: 'Succeeded', + success: true, + zipFile: + 'UEsDBBQACAgIAF2XJ1YAAAAAAAAAAAAAAABeAAAAdW5wYWNrYWdlZC9kaWdpdGFsRXhwZXJpZW5jZXMvc2l0ZS9zb3VyY2VfcGx1Z2luX251dDEvc2ZkY19jbXNfX3ZpZXcvZm9yZ290UGFzc3dvcmQvX21ldGEuanNvbqvmUlBQSizI9EvMTVVSsFJQSssvSs8vCUgsLi7PL0pR0gHJl1QWQCSL01KS45Nzi+PjyzJTyyGSBYklGWBJkFCxElctAFBLBwi8xKLdRQAAAFMAAABQSwMEFAAICAgAXZcnVgAAAAAAAAAAAAAAAGAAAAB1bnBhY2thZ2VkL2RpZ2l0YWxFeHBlcmllbmNlcy9zaXRlL3NvdXJjZV9wbHVnaW5fbnV0MS9zZmRjX2Ntc19fdmlldy9mb3Jnb3RQYXNzd29yZC9jb250ZW50Lmpzb26lVltv2zYUfu+v4PSyDTAzXahbXobVW9FgxTYUCfpQFwYvRzYRiTJEqmkQ+L+PoiRbdmyny6AnnnO+c/14qKc3CHnmcQMeukaeLgRf8kovl18lPHgzp5Sm7LXv6mZVG/QP1fqhbkSv5rUyoMzbWjx2Rk9W5qTVplZWvpd10rUsRQOqE37eiS8orIoa00jWGtBTV4OSUX6/aupWiZuKrmBeq0KuXK4uufOWf3+FpqQuY69ZMfqTP3Pfz8c4DdzIWk08Py28u7ub3xfe9cKLSZykLCI4yIMUEyoinPOI4VykIVACRAR84c0Wth9lWyltQZ+neJ9nFh4lOPSjCJMozjADnuOYgoggj/MwKSb4v2gFDjd3RxRMdH/Co1PZ01T8SQqzdoogdGINIObjdLqEVFuW2y9bb1L3dtqEC8N5QfnC9JyB7KZxo4r61NScRVmvaldFZxHG/pHF9hjiCSikkt3UnE/xbbMcSLq0I69bc62lgQ/W7bNwnhQOU0SEx2EW2bkygkkRhzgPCMe5L9IijDIqePYcvLtGe/YfmGxnr2gQp4pD+bY1plYfKIPSRZg76al28TXw+z8qKsu7pre9+mXeycZr+xE0GGdwCi6VNk3rOK/34W5r1HQwZNvXoM3gaYZsidD0wlZDoyw/r9An+LEskQYlEO1heESgUqp7ZGpk1oCgywFRYemjNbIWNZfUgEAP0qx7p5Rze2XN1alMdcsqaY4b46o7Ze7W2N5u2GUH9fx6CjfWtYfeDRLvvzLR0qJq7flxaTkt1XXhcjhYp4ez6MmYhWFa5ImPKUvtkonDBGeCZbgIWcxSnmYpj19BRvTlaNUN4b5nJx1vSdeOPlgZHCv3D8i4tp5ZjLk2sOqaNV1Fh2leaOlwtft9fRBhrOx7tvUh8FITDzIbQ0RBGmRJkOOEQ4ZJFqfYOmY4oYTmoYh4nE1nNW2c21BT3bRvz5WnW3awYl79rPJWm7p6D1Tc0pU++Z4K0LyRm90gjvUbu9ZvL/45TIwb4FZ607fw6YfxeOFNOksD1tqSobE8qH/TWmpDlTlJBpHGPoSpnRTYC0Xs3DDNaIzjIM0iWjCW+8X/JEOY5VkiigALEsaYMMuDnHCCeR74gkbAyBkydL9h76UQoD720z3JiotWZ+ixT/Plm1QK/a6Eb5J1e7MT7QLsCix4HvopxSwUOSZhQXGWRDEOwrxIOCURxPu7frZ/w2Q9+yZUQ6Tb0fRGKWgGF173T7rT9Mtz97J0rrZvtv8CUEsHCG5onRivAwAAzwoAAFBLAwQUAAgICABdlydWAAAAAAAAAAAAAAAAFgAAAHVucGFja2FnZWQvcGFja2FnZS54bWxNT7luwzAM3f0VhvaYSpAERSErS9s5QzoLqswqQq0DJp3j7yvkQMuJj+C71O4Sx/aEE4WcerHspGgxuTyE5HvxefhYvIidbtTeuh/rsa3fiXpxZC6vAJRt6eg7Tw47lyOspNyCXENEtoNlK3TT1lF8LUj3/YYjxq9qqSkwVpG58k0ZZx+SSTMvq+TgjItkzCngGaqBz7y3ROc8DQqe9D/BZCPqt+AD2/H9UnAKtQQquN3vGeBfCPUorDfbTip4okbBo6dufgFQSwcItpxi9cYAAAAZAQAAUEsBAhQAFAAICAgAXZcnVrzEot1FAAAAUwAAAF4AAAAAAAAAAAAAAAAAAAAAAHVucGFja2FnZWQvZGlnaXRhbEV4cGVyaWVuY2VzL3NpdGUvc291cmNlX3BsdWdpbl9udXQxL3NmZGNfY21zX192aWV3L2ZvcmdvdFBhc3N3b3JkL19tZXRhLmpzb25QSwECFAAUAAgICABdlydWbmidGK8DAADPCgAAYAAAAAAAAAAAAAAAAADRAAAAdW5wYWNrYWdlZC9kaWdpdGFsRXhwZXJpZW5jZXMvc2l0ZS9zb3VyY2VfcGx1Z2luX251dDEvc2ZkY19jbXNfX3ZpZXcvZm9yZ290UGFzc3dvcmQvY29udGVudC5qc29uUEsBAhQAFAAICAgAXZcnVracYvXGAAAAGQEAABYAAAAAAAAAAAAAAAAADgUAAHVucGFja2FnZWQvcGFja2FnZS54bWxQSwUGAAAAAAMAAwBeAQAAGAYAAAAA', + messages: [], +}; + +// Expected JSON from Retrieve command +const getExpectedCmdJSON = (projectPath: string) => ({ + status: 0, + result: { + inboundFiles: [ + { + fullName: 'site/source_plugin_nut1.sfdc_cms__view/forgotPassword', + type: 'DigitalExperience', + state: 'Changed', + filePath: `${projectPath}/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/forgotPassword/_meta.json`, + }, + { + fullName: 'site/source_plugin_nut1.sfdc_cms__view/forgotPassword', + type: 'DigitalExperience', + state: 'Changed', + filePath: `${projectPath}/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/forgotPassword/content.json`, + }, + { + fullName: 'site/source_plugin_nut1.sfdc_cms__view/forgotPassword', + type: 'DigitalExperience', + state: 'Deleted', + filePath: `${projectPath}/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/forgotPassword/es.json`, + }, + ], + packages: [], + warnings: [], + response: { + done: true, + fileProperties: [ + { + createdById: '0059A000005ekRSQAY', + createdByName: 'User User', + createdDate: '2023-01-06T21:06:57.000Z', + fileName: 'unpackaged/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/forgotPassword/_meta.json', + fullName: 'site/source_plugin_nut1/sfdc_cms__view/forgotPassword/_meta', + id: '0jd9A000000000BQAQ', + lastModifiedById: '0059A000005ekRSQAY', + lastModifiedByName: 'User User', + lastModifiedDate: '2023-01-06T21:06:57.000Z', + type: 'DigitalExperienceBundle', + }, + { + createdById: '0059A000005ekRSQAY', + createdByName: 'User User', + createdDate: '2023-01-06T21:06:57.000Z', + fileName: 'unpackaged/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/forgotPassword/content.json', + fullName: 'site/source_plugin_nut1/sfdc_cms__view/forgotPassword/content', + id: '0jd9A000000000BQAQ', + lastModifiedById: '0059A000005ekRSQAY', + lastModifiedByName: 'User User', + lastModifiedDate: '2023-01-06T21:06:57.000Z', + type: 'DigitalExperienceBundle', + }, + { + createdById: '0059A000005ekRSQAY', + createdByName: 'User User', + createdDate: '2023-01-07T18:58:58.034Z', + fileName: 'unpackaged/package.xml', + fullName: 'unpackaged/package.xml', + id: '', + lastModifiedById: '0059A000005ekRSQAY', + lastModifiedByName: 'User User', + lastModifiedDate: '2023-01-07T18:58:58.034Z', + manageableState: 'unmanaged', + type: 'Package', + }, + ], + id: '09S9A000000Ysa2UAC', + status: 'Succeeded', + success: true, + messages: [], + }, + }, +}); diff --git a/test/nuts/partialBundleDeleteProject/.eslintignore b/test/nuts/partialBundleDeleteProject/.eslintignore new file mode 100644 index 000000000..5f7b681a3 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/.eslintignore @@ -0,0 +1,16 @@ +**/lwc/**/*.css +**/lwc/**/*.html +**/lwc/**/*.json +**/lwc/**/*.svg +**/lwc/**/*.xml +**/aura/**/*.auradoc +**/aura/**/*.cmp +**/aura/**/*.css +**/aura/**/*.design +**/aura/**/*.evt +**/aura/**/*.json +**/aura/**/*.svg +**/aura/**/*.tokens +**/aura/**/*.xml +**/aura/**/*.app +.sfdx diff --git a/test/nuts/partialBundleDeleteProject/.forceignore b/test/nuts/partialBundleDeleteProject/.forceignore new file mode 100755 index 000000000..7b5b5a71f --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/.forceignore @@ -0,0 +1,12 @@ +# List files or directories below to ignore them when running force:source:push, force:source:pull, and force:source:status +# More information: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm +# + +package.xml + +# LWC configuration files +**/jsconfig.json +**/.eslintrc.json + +# LWC Jest +**/__tests__/** \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/.gitignore b/test/nuts/partialBundleDeleteProject/.gitignore new file mode 100644 index 000000000..f89133908 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/.gitignore @@ -0,0 +1,40 @@ +# This file is used for Git repositories to specify intentionally untracked files that Git should ignore. +# If you are not using git, you can delete this file. For more information see: https://git-scm.com/docs/gitignore +# For useful gitignore templates see: https://github.com/github/gitignore + +# Salesforce cache +.sf/ +.sfdx/ +.localdevserver/ +deploy-options.json + +# LWC VSCode autocomplete +**/lwc/jsconfig.json + +# LWC Jest coverage reports +coverage/ + +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Dependency directories +node_modules/ + +# Eslint cache +.eslintcache + +# MacOS system files +.DS_Store + +# Windows system files +Thumbs.db +ehthumbs.db +[Dd]esktop.ini +$RECYCLE.BIN/ + +# Local environment variables +.env \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/.prettierignore b/test/nuts/partialBundleDeleteProject/.prettierignore new file mode 100755 index 000000000..f3720b237 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/.prettierignore @@ -0,0 +1,10 @@ +# List files or directories below to ignore them when running prettier +# More information: https://prettier.io/docs/en/ignore.html +# + +**/staticresources/** +.localdevserver +.sfdx +.vscode + +coverage/ \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/.prettierrc b/test/nuts/partialBundleDeleteProject/.prettierrc new file mode 100755 index 000000000..15683b692 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/.prettierrc @@ -0,0 +1,13 @@ +{ + "trailingComma": "none", + "overrides": [ + { + "files": "**/lwc/**/*.html", + "options": { "parser": "lwc" } + }, + { + "files": "*.{cmp,page,component}", + "options": { "parser": "html" } + } + ] +} diff --git a/test/nuts/partialBundleDeleteProject/config/project-scratch-def.json b/test/nuts/partialBundleDeleteProject/config/project-scratch-def.json new file mode 100644 index 000000000..0614eb92b --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/config/project-scratch-def.json @@ -0,0 +1,19 @@ +{ + "orgName": "plugin-source NUTs", + "edition": "Developer", + "features": ["EnableSetPasswordInApi", "Communities"], + "settings": { + "lightningExperienceSettings": { + "enableS1DesktopEnabled": true + }, + "mobileSettings": { + "enableS1EncryptedStoragePref2": false + }, + "experienceBundleSettings": { + "enableExperienceBundleMetadata": true + }, + "communitiesSettings": { + "enableNetworksEnabled": true + } + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/appMenus/AppSwitcher.appMenu-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/appMenus/AppSwitcher.appMenu-meta.xml new file mode 100644 index 000000000..03a478dee --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/appMenus/AppSwitcher.appMenu-meta.xml @@ -0,0 +1,67 @@ + + + + standard__Platform + CustomApplication + + + standard__Sales + CustomApplication + + + standard__Service + CustomApplication + + + standard__Marketing + CustomApplication + + + standard__ServiceConsole + CustomApplication + + + standard__AppLauncher + CustomApplication + + + standard__Community + CustomApplication + + + standard__Sites + CustomApplication + + + standard__Chatter + CustomApplication + + + standard__Content + CustomApplication + + + standard__LightningSales + CustomApplication + + + standard__AllTabSet + CustomApplication + + + CPQIntegrationUserApp + ConnectedApp + + + standard__LightningBolt + CustomApplication + + + standard__SalesforceCMS + CustomApplication + + + source-plugin-nut + Network + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/audience/Default_source-plugin-nut.audience-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/audience/Default_source-plugin-nut.audience-meta.xml new file mode 100644 index 000000000..88af0fd72 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/audience/Default_source-plugin-nut.audience-meta.xml @@ -0,0 +1,8 @@ + + + Default + source-plugin-nut + + AllCriteriaMatch + true + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/forgotPassword/forgotPassword.cmp b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/forgotPassword/forgotPassword.cmp new file mode 100644 index 000000000..2e29b2a23 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/forgotPassword/forgotPassword.cmp @@ -0,0 +1,67 @@ + + + + + + + + + + + + +
+ +
+ +
+
+
+ + +
+ +
+ +
+
+
diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/forgotPassword/forgotPassword.cmp-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/forgotPassword/forgotPassword.cmp-meta.xml new file mode 100644 index 000000000..539dda2d7 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/forgotPassword/forgotPassword.cmp-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Sample Component for forgotPassword + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/forgotPassword/forgotPassword.css b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/forgotPassword/forgotPassword.css new file mode 100644 index 000000000..e799036ed --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/forgotPassword/forgotPassword.css @@ -0,0 +1,76 @@ +.THIS #sfdc_username_container { + margin-bottom: 10px; + padding: 12px; + background-color: white; + border: 1px solid #ccc; + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px; +} + +.THIS #sfdc_user { + float: left; + width: 23px; + height: 25px; + padding-top: 1px; + padding-left: 2px; + margin: 0px; +} + +.THIS .login-icon { + color: #ccc; + font-size: 22px; +} + +.THIS button.sfdc_button { + width: 100%; + margin-top: 15px; + margin-bottom: 5px; + color: #fff; + background-color: #0070d2; + border-color: #357ebd; + display: inline-block; + text-align: center; + vertical-align: middle; + background-image: none; + border: 1px solid transparent; + white-space: nowrap; + padding: 10px 12px; + font-size: 16px; + font-family: "Open Sans", sans-serif; + font-weight: 300; + line-height: 1.42857143; + border-radius: 2px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; +} + +.THIS button:hover { + background-color: #3276b1; + border-color: #285e8e; + cursor: pointer; +} + +.THIS input { + margin-left: 10px; + margin-top: 3px; + border: 0px solid transparent; + width: 70%; + -webkit-appearance: none; + font-size: 14px; +} + +.THIS #error { + text-align: center; + color: #ff0000; +} + +.THIS a { + color: white; + text-decoration: none; +} +.THIS a:hover { + color: white; + text-decoration: none; +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/forgotPassword/forgotPassword.design b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/forgotPassword/forgotPassword.design new file mode 100644 index 000000000..38ebfe84c --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/forgotPassword/forgotPassword.design @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/forgotPassword/forgotPasswordController.js b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/forgotPassword/forgotPasswordController.js new file mode 100644 index 000000000..4627b20f1 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/forgotPassword/forgotPasswordController.js @@ -0,0 +1,25 @@ +({ + handleForgotPassword: function (component, event, helpler) { + helpler.handleForgotPassword(component, event, helpler); + }, + onKeyUp: function (component, event, helpler) { + //checks for "enter" key + if (event.getParam("keyCode") === 13) { + helpler.handleForgotPassword(component, event, helpler); + } + }, + + setExpId: function (component, event, helper) { + var expId = event.getParam("expid"); + if (expId) { + component.set("v.expid", expId); + } + helper.setBrandingCookie(component, event, helper); + }, + + initialize: function (component, event, helper) { + $A.get("e.siteforce:registerQueryEventMap") + .setParams({ qsToEvent: helper.qsToEventMap }) + .fire(); + } +}); diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/forgotPassword/forgotPasswordHelper.js b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/forgotPassword/forgotPasswordHelper.js new file mode 100644 index 000000000..1b9aa8930 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/forgotPassword/forgotPasswordHelper.js @@ -0,0 +1,30 @@ +({ + qsToEventMap: { + expid: "e.c:setExpId" + }, + + handleForgotPassword: function (component, event, helpler) { + var username = component.find("username").get("v.value"); + var checkEmailUrl = component.get("v.checkEmailUrl"); + var action = component.get("c.forgotPassword"); + action.setParams({ username: username, checkEmailUrl: checkEmailUrl }); + action.setCallback(this, function (a) { + var rtnValue = a.getReturnValue(); + if (rtnValue != null) { + component.set("v.errorMessage", rtnValue); + component.set("v.showError", true); + } + }); + $A.enqueueAction(action); + }, + + setBrandingCookie: function (component, event, helpler) { + var expId = component.get("v.expid"); + if (expId) { + var action = component.get("c.setExperienceId"); + action.setParams({ expId: expId }); + action.setCallback(this, function (a) {}); + $A.enqueueAction(action); + } + } +}); diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/loginForm/loginForm.cmp b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/loginForm/loginForm.cmp new file mode 100644 index 000000000..baf03ea0c --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/loginForm/loginForm.cmp @@ -0,0 +1,167 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ +
+
+
+
+ + +
+ +
+ + +
+ +
+ +
+ + +
+
+
diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/loginForm/loginForm.cmp-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/loginForm/loginForm.cmp-meta.xml new file mode 100644 index 000000000..b699e113f --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/loginForm/loginForm.cmp-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Sample Component for loginForm + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/loginForm/loginForm.css b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/loginForm/loginForm.css new file mode 100644 index 000000000..22c1ea5ef --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/loginForm/loginForm.css @@ -0,0 +1,102 @@ +.THIS #sfdc_username_container { + margin-bottom: 10px; + padding: 12px; + background-color: white; + border: 1px solid #ccc; + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px; +} + +.THIS #sfdc_user { + float: left; + width: 23px; + height: 25px; + padding-top: 1px; + padding-left: 2px; + margin: 0px; +} + +.THIS #sfdc_lock { + float: left; + width: 23px; + height: 25px; + padding-top: 1px; + padding-left: 2px; + margin: 0px; +} + +.THIS #error { + text-align: center; + color: #ff0000; +} + +.THIS .login-icon { + color: #ccc; + font-size: 22px; +} + +.THIS #sfdc_password_container { + padding: 12px; + background-color: white; + border: 1px solid #ccc; + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px; +} + +.THIS button.sfdc_button { + width: 100%; + margin-top: 15px; + margin-bottom: 5px; + color: #fff; + background-color: #0070d2; + border-color: #357ebd; + display: inline-block; + text-align: center; + vertical-align: middle; + background-image: none; + border: 1px solid transparent; + white-space: nowrap; + padding: 10px 12px; + font-size: 16px; + font-family: "Open Sans", sans-serif; + font-weight: 300; + line-height: 1.42857143; + border-radius: 2px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; +} + +.THIS button:hover { + background-color: #3276b1; + border-color: #285e8e; + cursor: pointer; +} + +.THIS button .label { + color: #fff; +} + +.THIS input { + margin-left: 10px; + margin-top: 3px; + border: 0px solid transparent; + width: 70%; + -webkit-appearance: none; + font-size: 14px; +} + +.THIS a { + color: white; + text-decoration: none; +} +.THIS a:hover { + color: white; + text-decoration: none; +} + +.THIS label.uiLabel-hidden { + display: none; +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/loginForm/loginForm.design b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/loginForm/loginForm.design new file mode 100644 index 000000000..0e53bfa19 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/loginForm/loginForm.design @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/loginForm/loginFormController.js b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/loginForm/loginFormController.js new file mode 100644 index 000000000..b6187055c --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/loginForm/loginFormController.js @@ -0,0 +1,88 @@ +({ + initialize: function (component, event, helper) { + $A.get("e.siteforce:registerQueryEventMap") + .setParams({ qsToEvent: helper.qsToEventMap }) + .fire(); + $A.get("e.siteforce:registerQueryEventMap") + .setParams({ qsToEvent: helper.qsToEventMap2 }) + .fire(); + component.set( + "v.isUsernamePasswordEnabled", + helper.getIsUsernamePasswordEnabled(component, event, helper) + ); + component.set( + "v.isSelfRegistrationEnabled", + helper.getIsSelfRegistrationEnabled(component, event, helper) + ); + component.set( + "v.communityForgotPasswordUrl", + helper.getCommunityForgotPasswordUrl(component, event, helper) + ); + component.set( + "v.communitySelfRegisterUrl", + helper.getCommunitySelfRegisterUrl(component, event, helper) + ); + }, + + handleLogin: function (component, event, helpler) { + helpler.handleLogin(component, event, helpler); + }, + + setStartUrl: function (component, event, helpler) { + var startUrl = event.getParam("startURL"); + if (startUrl) { + component.set("v.startUrl", startUrl); + } + }, + + setExpId: function (component, event, helper) { + var expId = event.getParam("expid"); + if (expId) { + component.set("v.expid", expId); + } + helper.setBrandingCookie(component, event, helper); + }, + + onKeyUp: function (component, event, helpler) { + //checks for "enter" key + if (event.getParam("keyCode") === 13) { + helpler.handleLogin(component, event, helpler); + } + }, + + navigateToForgotPassword: function (cmp, event, helper) { + var forgotPwdUrl = cmp.get("v.communityForgotPasswordUrl"); + if ($A.util.isUndefinedOrNull(forgotPwdUrl)) { + forgotPwdUrl = cmp.get("v.forgotPasswordUrl"); + } + var startUrl = cmp.get("v.startUrl"); + if (startUrl) { + if (forgotPwdUrl.indexOf("?") === -1) { + forgotPwdUrl = + forgotPwdUrl + "?startURL=" + decodeURIComponent(startUrl); + } else { + forgotPwdUrl = + forgotPwdUrl + "&startURL=" + decodeURIComponent(startUrl); + } + } + var attributes = { url: forgotPwdUrl }; + $A.get("e.force:navigateToURL").setParams(attributes).fire(); + }, + + navigateToSelfRegister: function (cmp, event, helper) { + var selfRegUrl = cmp.get("v.communitySelfRegisterUrl"); + if (selfRegUrl == null) { + selfRegUrl = cmp.get("v.selfRegisterUrl"); + } + var startUrl = cmp.get("v.startUrl"); + if (startUrl) { + if (selfRegUrl.indexOf("?") === -1) { + selfRegUrl = selfRegUrl + "?startURL=" + decodeURIComponent(startUrl); + } else { + selfRegUrl = selfRegUrl + "&startURL=" + decodeURIComponent(startUrl); + } + } + var attributes = { url: selfRegUrl }; + $A.get("e.force:navigateToURL").setParams(attributes).fire(); + } +}); diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/loginForm/loginFormHelper.js b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/loginForm/loginFormHelper.js new file mode 100644 index 000000000..99e46e5e9 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/loginForm/loginFormHelper.js @@ -0,0 +1,86 @@ +({ + qsToEventMap: { + startURL: "e.c:setStartUrl" + }, + + qsToEventMap2: { + expid: "e.c:setExpId" + }, + + handleLogin: function (component, event, helpler) { + var username = component.find("username").get("v.value"); + var password = component.find("password").get("v.value"); + var action = component.get("c.login"); + var startUrl = component.get("v.startUrl"); + + startUrl = decodeURIComponent(startUrl); + + action.setParams({ + username: username, + password: password, + startUrl: startUrl + }); + action.setCallback(this, function (a) { + var rtnValue = a.getReturnValue(); + if (rtnValue !== null) { + component.set("v.errorMessage", rtnValue); + component.set("v.showError", true); + } + }); + $A.enqueueAction(action); + }, + + getIsUsernamePasswordEnabled: function (component, event, helpler) { + var action = component.get("c.getIsUsernamePasswordEnabled"); + action.setCallback(this, function (a) { + var rtnValue = a.getReturnValue(); + if (rtnValue !== null) { + component.set("v.isUsernamePasswordEnabled", rtnValue); + } + }); + $A.enqueueAction(action); + }, + + getIsSelfRegistrationEnabled: function (component, event, helpler) { + var action = component.get("c.getIsSelfRegistrationEnabled"); + action.setCallback(this, function (a) { + var rtnValue = a.getReturnValue(); + if (rtnValue !== null) { + component.set("v.isSelfRegistrationEnabled", rtnValue); + } + }); + $A.enqueueAction(action); + }, + + getCommunityForgotPasswordUrl: function (component, event, helpler) { + var action = component.get("c.getForgotPasswordUrl"); + action.setCallback(this, function (a) { + var rtnValue = a.getReturnValue(); + if (rtnValue !== null) { + component.set("v.communityForgotPasswordUrl", rtnValue); + } + }); + $A.enqueueAction(action); + }, + + getCommunitySelfRegisterUrl: function (component, event, helpler) { + var action = component.get("c.getSelfRegistrationUrl"); + action.setCallback(this, function (a) { + var rtnValue = a.getReturnValue(); + if (rtnValue !== null) { + component.set("v.communitySelfRegisterUrl", rtnValue); + } + }); + $A.enqueueAction(action); + }, + + setBrandingCookie: function (component, event, helpler) { + var expId = component.get("v.expid"); + if (expId) { + var action = component.get("c.setExperienceId"); + action.setParams({ expId: expId }); + action.setCallback(this, function (a) {}); + $A.enqueueAction(action); + } + } +}); diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/selfRegister/selfRegister.cmp b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/selfRegister/selfRegister.cmp new file mode 100644 index 000000000..11efd1ee6 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/selfRegister/selfRegister.cmp @@ -0,0 +1,194 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+ + +
+
+ + +
+ + +
+ +
+ + +
+
+ +
+ +
+
+
diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/selfRegister/selfRegister.cmp-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/selfRegister/selfRegister.cmp-meta.xml new file mode 100644 index 000000000..0fd81274b --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/selfRegister/selfRegister.cmp-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Sample Component for selfRegister + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/selfRegister/selfRegister.css b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/selfRegister/selfRegister.css new file mode 100644 index 000000000..69d231b17 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/selfRegister/selfRegister.css @@ -0,0 +1,174 @@ +.THIS #sfdc_username_container { + margin-bottom: 10px; + padding: 12px; + background-color: white; + border: 1px solid #ccc; + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px; +} + +.THIS #sfdc_nickname_container { + margin-bottom: 10px; + padding: 12px; + background-color: white; + border: 1px solid #ccc; + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px; +} + +.THIS #sfdc_email_container { + margin-bottom: 10px; + padding: 12px; + background-color: white; + border: 1px solid #ccc; + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px; +} + +.THIS #sfdc_extrafield_container { + margin-bottom: 10px; + padding: 12px; + background-color: white; + border: 1px solid #ccc; + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px; +} + +.THIS #sfdc_user { + float: left; + width: 23px; + height: 25px; + padding-top: 1px; + padding-left: 2px; + margin: 0px; +} + +.THIS #sfdc_lock { + float: left; + width: 23px; + height: 25px; + padding-top: 1px; + padding-left: 2px; + margin: 0px; +} + +.THIS .login-icon { + color: #ccc; + font-size: 22px; +} + +.THIS #sfdc_password_container { + margin-bottom: 10px; + padding: 12px; + background-color: white; + border: 1px solid #ccc; + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px; +} + +.THIS #sfdc_confirm_password_container { + padding: 12px; + background-color: white; + border: 1px solid #ccc; + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px; +} + +.THIS button.sfdc_button { + width: 100%; + margin-top: 15px; + margin-bottom: 5px; + color: #fff; + background-color: #0070d2; + border-color: #357ebd; + display: inline-block; + text-align: center; + vertical-align: middle; + background-image: none; + border: 1px solid transparent; + white-space: nowrap; + padding: 10px 12px; + font-size: 16px; + font-family: "Open Sans", sans-serif; + font-weight: 300; + line-height: 1.42857143; + border-radius: 2px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; +} + +.THIS button:hover { + background-color: #3276b1; + border-color: #285e8e; + cursor: pointer; +} + +.THIS input { + margin-left: 10px; + margin-top: 3px; + border: 0px solid transparent; + width: 70%; + -webkit-appearance: none; + font-size: 14px; +} + +.THIS #sfdc_forgot { + font-family: "Open Sans", "sans-serif"; + font-weight: 300; + font-size: 14px; + margin-top: 10px; +} + +.THIS #error { + text-align: center; + color: #ff0000; +} + +.THIS a { + color: white; + text-decoration: none; +} +.THIS a:hover { + color: white; + text-decoration: none; +} + +.THIS input[type="checkbox"] { + appearance: none; + border: 1px solid white; + height: 22px; + width: 22px; + vertical-align: middle; +} + +.THIS input[type="checkbox"]:checked { + border: 1px solid; +} + +.THIS input[type="checkbox"]:checked:after { + display: block; + position: relative; + content: ""; + left: 3px; + top: 3px; + height: 6px; + width: 10px; + border-bottom: 4px solid /*#354452*/ white; + border-left: 4px solid /*#354452*/ white; + transform: rotate(-45deg); +} + +.THIS input[type="checkbox"].disabled { + opacity: 0.35; +} + +.THIS input[type="checkbox"] + label { + vertical-align: middle; +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/selfRegister/selfRegister.design b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/selfRegister/selfRegister.design new file mode 100644 index 000000000..48c27438d --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/selfRegister/selfRegister.design @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/selfRegister/selfRegisterController.js b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/selfRegister/selfRegisterController.js new file mode 100644 index 000000000..6d3fd21a9 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/selfRegister/selfRegisterController.js @@ -0,0 +1,40 @@ +({ + initialize: function (component, event, helper) { + $A.get("e.siteforce:registerQueryEventMap") + .setParams({ qsToEvent: helper.qsToEventMap }) + .fire(); + $A.get("e.siteforce:registerQueryEventMap") + .setParams({ qsToEvent: helper.qsToEventMap2 }) + .fire(); + component.set( + "v.extraFields", + helper.getExtraFields(component, event, helper) + ); + }, + + handleSelfRegister: function (component, event, helpler) { + helpler.handleSelfRegister(component, event, helpler); + }, + + setStartUrl: function (component, event, helpler) { + var startUrl = event.getParam("startURL"); + if (startUrl) { + component.set("v.startUrl", startUrl); + } + }, + + setExpId: function (component, event, helper) { + var expId = event.getParam("expid"); + if (expId) { + component.set("v.expid", expId); + } + helper.setBrandingCookie(component, event, helper); + }, + + onKeyUp: function (component, event, helpler) { + //checks for "enter" key + if (event.getParam("keyCode") === 13) { + helpler.handleSelfRegister(component, event, helpler); + } + } +}); diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/selfRegister/selfRegisterHelper.js b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/selfRegister/selfRegisterHelper.js new file mode 100644 index 000000000..cead3715e --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/selfRegister/selfRegisterHelper.js @@ -0,0 +1,71 @@ +({ + qsToEventMap: { + startURL: "e.c:setStartUrl" + }, + + qsToEventMap2: { + expid: "e.c:setExpId" + }, + + handleSelfRegister: function (component, event, helpler) { + var accountId = component.get("v.accountId"); + var regConfirmUrl = component.get("v.regConfirmUrl"); + var firstname = component.find("firstname").get("v.value"); + var lastname = component.find("lastname").get("v.value"); + var email = component.find("email").get("v.value"); + var includePassword = component.get("v.includePasswordField"); + var password = component.find("password").get("v.value"); + var confirmPassword = component.find("confirmPassword").get("v.value"); + var action = component.get("c.selfRegister"); + var extraFields = JSON.stringify(component.get("v.extraFields")); // somehow apex controllers refuse to deal with list of maps + var startUrl = component.get("v.startUrl"); + + startUrl = decodeURIComponent(startUrl); + + action.setParams({ + firstname: firstname, + lastname: lastname, + email: email, + password: password, + confirmPassword: confirmPassword, + accountId: accountId, + regConfirmUrl: regConfirmUrl, + extraFields: extraFields, + startUrl: startUrl, + includePassword: includePassword + }); + action.setCallback(this, function (a) { + var rtnValue = a.getReturnValue(); + if (rtnValue !== null) { + component.set("v.errorMessage", rtnValue); + component.set("v.showError", true); + } + }); + $A.enqueueAction(action); + }, + + getExtraFields: function (component, event, helpler) { + var action = component.get("c.getExtraFields"); + action.setParam( + "extraFieldsFieldSet", + component.get("v.extraFieldsFieldSet") + ); + action.setCallback(this, function (a) { + var rtnValue = a.getReturnValue(); + if (rtnValue !== null) { + component.set("v.extraFields", rtnValue); + } + }); + $A.enqueueAction(action); + }, + + setBrandingCookie: function (component, event, helpler) { + var expId = component.get("v.expid"); + if (expId) { + var action = component.get("c.setExperienceId"); + action.setParams({ expId: expId }); + action.setCallback(this, function (a) {}); + $A.enqueueAction(action); + } + } +}); diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/setExpId/setExpId.evt b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/setExpId/setExpId.evt new file mode 100644 index 000000000..c1badd240 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/setExpId/setExpId.evt @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/setExpId/setExpId.evt-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/setExpId/setExpId.evt-meta.xml new file mode 100644 index 000000000..e52f540e3 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/setExpId/setExpId.evt-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Sample Event for setExpId + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/setStartUrl/setStartUrl.evt b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/setStartUrl/setStartUrl.evt new file mode 100644 index 000000000..7b0813bb0 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/setStartUrl/setStartUrl.evt @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/setStartUrl/setStartUrl.evt-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/setStartUrl/setStartUrl.evt-meta.xml new file mode 100644 index 000000000..709f304d9 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/aura/setStartUrl/setStartUrl.evt-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Sample Event for setStartUrl + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ChangePasswordController.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ChangePasswordController.cls new file mode 100644 index 000000000..31dde01d0 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ChangePasswordController.cls @@ -0,0 +1,14 @@ +/** + * An apex page controller that exposes the change password functionality + */ +public with sharing class ChangePasswordController { + public String oldPassword {get; set;} + public String newPassword {get; set;} + public String verifyNewPassword {get; set;} + + public PageReference changePassword() { + return Site.changePassword(newPassword, verifyNewPassword, oldpassword); + } + + public ChangePasswordController() {} +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ChangePasswordController.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ChangePasswordController.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ChangePasswordController.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ChangePasswordControllerTest.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ChangePasswordControllerTest.cls new file mode 100644 index 000000000..2814e4215 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ChangePasswordControllerTest.cls @@ -0,0 +1,14 @@ +/** + * An apex page controller that exposes the change password functionality + */ +@IsTest public with sharing class ChangePasswordControllerTest { + @IsTest(SeeAllData=true) public static void testChangePasswordController() { + // Instantiate a new controller with all parameters in the page + ChangePasswordController controller = new ChangePasswordController(); + controller.oldPassword = '123456'; + controller.newPassword = 'qwerty1'; + controller.verifyNewPassword = 'qwerty1'; + + System.assertEquals(controller.changePassword(),null); + } +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ChangePasswordControllerTest.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ChangePasswordControllerTest.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ChangePasswordControllerTest.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLandingController.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLandingController.cls new file mode 100644 index 000000000..9633c5ac0 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLandingController.cls @@ -0,0 +1,12 @@ +/** + * An apex page controller that takes the user to the right start page based on credentials or lack thereof + */ +public with sharing class CommunitiesLandingController { + + // Code we will invoke on page load. + public PageReference forwardToStartPage() { + return Network.communitiesLanding(); + } + + public CommunitiesLandingController() {} +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLandingController.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLandingController.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLandingController.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLandingControllerTest.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLandingControllerTest.cls new file mode 100644 index 000000000..84b5643d4 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLandingControllerTest.cls @@ -0,0 +1,18 @@ +/** + * An apex page controller that takes the user to the right start page based on credentials or lack thereof + */ +@IsTest public with sharing class CommunitiesLandingControllerTest { + @IsTest(SeeAllData=true) public static void testCommunitiesLandingController() { + // Instantiate a new controller with all parameters in the page + CommunitiesLandingController controller = new CommunitiesLandingController(); + PageReference pageRef = controller.forwardToStartPage(); + //PageRef is either null or an empty object in test context + if(pageRef != null){ + String url = pageRef.getUrl(); + if(url != null){ + System.assertEquals(true, String.isEmpty(url)); + //show up in perforce + } + } + } +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLandingControllerTest.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLandingControllerTest.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLandingControllerTest.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLoginController.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLoginController.cls new file mode 100644 index 000000000..35ab098e4 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLoginController.cls @@ -0,0 +1,14 @@ +/** + * An apex page controller that exposes the site login functionality + */ +global with sharing class CommunitiesLoginController { + + global CommunitiesLoginController () {} + + // Code we will invoke on page load. + global PageReference forwardToAuthPage() { + String startUrl = System.currentPageReference().getParameters().get('startURL'); + String displayType = System.currentPageReference().getParameters().get('display'); + return Network.forwardToAuthPage(startUrl, displayType); + } +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLoginController.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLoginController.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLoginController.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLoginControllerTest.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLoginControllerTest.cls new file mode 100644 index 000000000..b892fdcef --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLoginControllerTest.cls @@ -0,0 +1,10 @@ +/** + * An apex page controller that exposes the site login functionality + */ +@IsTest global with sharing class CommunitiesLoginControllerTest { + @IsTest(SeeAllData=true) + global static void testCommunitiesLoginController () { + CommunitiesLoginController controller = new CommunitiesLoginController(); + System.assertEquals(null, controller.forwardToAuthPage()); + } +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLoginControllerTest.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLoginControllerTest.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesLoginControllerTest.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegConfirmController.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegConfirmController.cls new file mode 100644 index 000000000..d98d1fefb --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegConfirmController.cls @@ -0,0 +1,7 @@ +/** + * An apex page controller that takes the user to the right start page based on credentials or lack thereof + */ +public with sharing class CommunitiesSelfRegConfirmController { + + public CommunitiesSelfRegConfirmController() {} +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegConfirmController.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegConfirmController.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegConfirmController.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegConfirmControllerTest.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegConfirmControllerTest.cls new file mode 100644 index 000000000..18a60bb17 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegConfirmControllerTest.cls @@ -0,0 +1,9 @@ +/** + * An apex page controller that takes the user to the right start page based on credentials or lack thereof + */ +@IsTest public with sharing class CommunitiesSelfRegConfirmControllerTest { + @IsTest(SeeAllData=true) public static void testCommunitiesSelfRegConfirmController() { + // Instantiate a new controller with all parameters in the page + CommunitiesSelfRegConfirmController controller = new CommunitiesSelfRegConfirmController(); + } +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegConfirmControllerTest.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegConfirmControllerTest.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegConfirmControllerTest.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegController.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegController.cls new file mode 100644 index 000000000..3b738aa4e --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegController.cls @@ -0,0 +1,74 @@ +/** + * An apex page controller that supports self registration of users in communities that allow self registration + */ +public class CommunitiesSelfRegController { + + public String firstName {get; set;} + public String lastName {get; set;} + public String email {get; set;} + public String password {get; set {password = value == null ? value : value.trim(); } } + public String confirmPassword {get; set { confirmPassword = value == null ? value : value.trim(); } } + public String communityNickname {get; set { communityNickname = value == null ? value : value.trim(); } } + + public CommunitiesSelfRegController() { + String expid = ApexPages.currentPage().getParameters().get('expid'); + if (expId != null) { + Site.setExperienceId(expId); + } + } + + private boolean isValidPassword() { + return password == confirmPassword; + } + + public PageReference registerUser() { + + // it's okay if password is null - we'll send the user a random password in that case + if (!isValidPassword()) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, Label.site.passwords_dont_match); + ApexPages.addMessage(msg); + return null; + } + + String profileId = null; // To be filled in by customer. + String roleEnum = null; // To be filled in by customer. + String accountId = ''; // To be filled in by customer. + + String userName = email; + + User u = new User(); + u.Username = userName; + u.Email = email; + u.FirstName = firstName; + u.LastName = lastName; + u.CommunityNickname = communityNickname; + u.ProfileId = profileId; + + String userId; + + try { + userId = Site.createExternalUser(u, accountId, password); + } catch(Site.ExternalUserCreateException ex) { + List errors = ex.getDisplayMessages(); + for (String error : errors) { + ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.ERROR, error)); + } + + // This message is used for debugging. Do not display this in the UI to the end user. + // It has the information around why the user creation failed. + System.debug(ex.getMessage()); + } + + if (userId != null) { + if (password != null && password.length() > 1) { + return Site.login(userName, password, ApexPages.currentPage().getParameters().get('startURL')); + } + else { + PageReference page = System.Page.CommunitiesSelfRegConfirm; + page.setRedirect(true); + return page; + } + } + return null; + } +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegController.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegController.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegController.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegControllerTest.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegControllerTest.cls new file mode 100644 index 000000000..bda9c05b4 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegControllerTest.cls @@ -0,0 +1,20 @@ +/** + * An apex page controller that supports self registration of users in communities that allow self registration + */ +@IsTest public with sharing class CommunitiesSelfRegControllerTest { + @IsTest(SeeAllData=true) + public static void testCommunitiesSelfRegController() { + CommunitiesSelfRegController controller = new CommunitiesSelfRegController(); + controller.firstName = 'FirstName'; + controller.lastName = 'LastName'; + controller.email = 'test@force.com'; + controller.communityNickname = 'test'; + + // registerUser will always return null when the page isn't accessed as a guest user + System.assert(controller.registerUser() == null); + + controller.password = 'abcd1234'; + controller.confirmPassword = 'abcd123'; + System.assert(controller.registerUser() == null); + } +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegControllerTest.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegControllerTest.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/CommunitiesSelfRegControllerTest.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ForgotPasswordController.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ForgotPasswordController.cls new file mode 100644 index 000000000..480df8bc8 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ForgotPasswordController.cls @@ -0,0 +1,19 @@ +/** + * An apex page controller that exposes the site forgot password functionality + */ +public with sharing class ForgotPasswordController { + public String username {get; set;} + + public ForgotPasswordController() {} + + public PageReference forgotPassword() { + boolean success = Site.forgotPassword(username); + PageReference pr = Page.ForgotPasswordConfirm; + pr.setRedirect(true); + + if (success) { + return pr; + } + return null; + } +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ForgotPasswordController.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ForgotPasswordController.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ForgotPasswordController.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ForgotPasswordControllerTest.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ForgotPasswordControllerTest.cls new file mode 100644 index 000000000..1712f2cd9 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ForgotPasswordControllerTest.cls @@ -0,0 +1,12 @@ +/** + * An apex page controller that exposes the site forgot password functionality + */ +@IsTest public with sharing class ForgotPasswordControllerTest { + @IsTest(SeeAllData=true) public static void testForgotPasswordController() { + // Instantiate a new controller with all parameters in the page + ForgotPasswordController controller = new ForgotPasswordController(); + controller.username = 'test@salesforce.com'; + + System.assertEquals(controller.forgotPassword(),null); + } +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ForgotPasswordControllerTest.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ForgotPasswordControllerTest.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/ForgotPasswordControllerTest.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningForgotPasswordController.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningForgotPasswordController.cls new file mode 100644 index 000000000..2a211878e --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningForgotPasswordController.cls @@ -0,0 +1,35 @@ +global class LightningForgotPasswordController { + + public LightningForgotPasswordController() { + + } + + @AuraEnabled + public static String forgotPassword(String username, String checkEmailUrl) { + try { + Site.forgotPassword(username); + ApexPages.PageReference checkEmailRef = new PageReference(checkEmailUrl); + if(!Site.isValidUsername(username)) { + return Label.Site.invalid_email; + } + aura.redirect(checkEmailRef); + return null; + } + catch (Exception ex) { + return ex.getMessage(); + } + } + + @AuraEnabled + global static String setExperienceId(String expId) { + // Return null if there is no error, else it will return the error message + try { + if (expId != null) { + Site.setExperienceId(expId); + } + return null; + } catch (Exception ex) { + return ex.getMessage(); + } + } +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningForgotPasswordController.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningForgotPasswordController.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningForgotPasswordController.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningForgotPasswordControllerTest.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningForgotPasswordControllerTest.cls new file mode 100644 index 000000000..ab49bb8d3 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningForgotPasswordControllerTest.cls @@ -0,0 +1,25 @@ +@IsTest(SeeAllData = true) +public with sharing class LightningForgotPasswordControllerTest { + + /* Verifies that ForgotPasswordController handles invalid usernames appropriately */ + @IsTest + static void testLightningForgotPasswordControllerInvalidUserName() { + System.assertEquals(LightningForgotPasswordController.forgotPassword('fakeUser', 'http://a.com'), Label.Site.invalid_email); + System.assertEquals(LightningForgotPasswordController.forgotPassword(null, 'http://a.com'), Label.Site.invalid_email); + System.assertEquals(LightningForgotPasswordController.forgotPassword('a', '/home/home.jsp'), Label.Site.invalid_email); + } + + /* Verifies that null checkEmailRef url throws proper exception. */ + @IsTest + static void testLightningForgotPasswordControllerWithNullCheckEmailRef() { + System.assertEquals(LightningForgotPasswordController.forgotPassword('a', null), 'Argument 1 cannot be null'); + System.assertEquals(LightningForgotPasswordController.forgotPassword('a@salesforce.com', null), 'Argument 1 cannot be null'); + } + + /* Verifies that LightningForgotPasswordController object is instantiated correctly. */ + @IsTest + static void LightningForgotPasswordControllerInstantiation() { + LightningForgotPasswordController controller = new LightningForgotPasswordController(); + System.assertNotEquals(controller, null); + } +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningForgotPasswordControllerTest.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningForgotPasswordControllerTest.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningForgotPasswordControllerTest.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningLoginFormController.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningLoginFormController.cls new file mode 100644 index 000000000..3c7726785 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningLoginFormController.cls @@ -0,0 +1,65 @@ +global class LightningLoginFormController { + + public LightningLoginFormController() { + + } + + @AuraEnabled + public static String login(String username, String password, String startUrl) { + try{ + ApexPages.PageReference lgn = Site.login(username, password, startUrl); + aura.redirect(lgn); + return null; + } + catch (Exception ex) { + return ex.getMessage(); + } + } + + @AuraEnabled + public static Boolean getIsUsernamePasswordEnabled() { + Auth.AuthConfiguration authConfig = getAuthConfig(); + return authConfig.getUsernamePasswordEnabled(); + } + + @AuraEnabled + public static Boolean getIsSelfRegistrationEnabled() { + Auth.AuthConfiguration authConfig = getAuthConfig(); + return authConfig.getSelfRegistrationEnabled(); + } + + @AuraEnabled + public static String getSelfRegistrationUrl() { + Auth.AuthConfiguration authConfig = getAuthConfig(); + if (authConfig.getSelfRegistrationEnabled()) { + return authConfig.getSelfRegistrationUrl(); + } + return null; + } + + @AuraEnabled + public static String getForgotPasswordUrl() { + Auth.AuthConfiguration authConfig = getAuthConfig(); + return authConfig.getForgotPasswordUrl(); + } + + @TestVisible + private static Auth.AuthConfiguration getAuthConfig(){ + Id networkId = Network.getNetworkId(); + Auth.AuthConfiguration authConfig = new Auth.AuthConfiguration(networkId,''); + return authConfig; + } + + @AuraEnabled + global static String setExperienceId(String expId) { + // Return null if there is no error, else it will return the error message + try { + if (expId != null) { + Site.setExperienceId(expId); + } + return null; + } catch (Exception ex) { + return ex.getMessage(); + } + } +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningLoginFormController.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningLoginFormController.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningLoginFormController.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningLoginFormControllerTest.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningLoginFormControllerTest.cls new file mode 100644 index 000000000..b008372b8 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningLoginFormControllerTest.cls @@ -0,0 +1,30 @@ +@IsTest(SeeAllData = true) +public with sharing class LightningLoginFormControllerTest { + + @IsTest + static void LightningLoginFormControllerInstantiation() { + LightningLoginFormController controller = new LightningLoginFormController(); + System.assertNotEquals(controller, null); + } + + @IsTest + static void testIsUsernamePasswordEnabled() { + System.assertEquals(true, LightningLoginFormController.getIsUsernamePasswordEnabled()); + } + + @IsTest + static void testIsSelfRegistrationEnabled() { + System.assertEquals(false, LightningLoginFormController.getIsSelfRegistrationEnabled()); + } + + @IsTest + static void testGetSelfRegistrationURL() { + System.assertEquals(null, LightningLoginFormController.getSelfRegistrationUrl()); + } + + @IsTest + static void testAuthConfig() { + Auth.AuthConfiguration authConfig = LightningLoginFormController.getAuthConfig(); + System.assertNotEquals(null, authConfig); + } +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningLoginFormControllerTest.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningLoginFormControllerTest.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningLoginFormControllerTest.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningSelfRegisterController.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningSelfRegisterController.cls new file mode 100644 index 000000000..b284918cf --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningSelfRegisterController.cls @@ -0,0 +1,137 @@ +global class LightningSelfRegisterController { + + public LightningSelfRegisterController() { + + } + + @TestVisible + private static boolean isValidPassword(String password, String confirmPassword) { + return password == confirmPassword; + } + + @TestVisible + private static boolean siteAsContainerEnabled(String communityUrl) { + Auth.AuthConfiguration authConfig = new Auth.AuthConfiguration(communityUrl,''); + return authConfig.isCommunityUsingSiteAsContainer(); + } + + @TestVisible + private static void validatePassword(User u, String password, String confirmPassword) { + if(!Test.isRunningTest()) { + Site.validatePassword(u, password, confirmPassword); + } + return; + } + + @AuraEnabled + public static String selfRegister(String firstname ,String lastname, String email, String password, String confirmPassword, String accountId, String regConfirmUrl, String extraFields, String startUrl, Boolean includePassword) { + Savepoint sp = null; + try { + sp = Database.setSavepoint(); + + if (lastname == null || String.isEmpty(lastname)) { + return Label.Site.lastname_is_required; + } + + if (email == null || String.isEmpty(email)) { + return Label.Site.email_is_required; + } + + User u = new User(); + u.Username = email; + u.put('Email',email); + + u.FirstName = firstname; + u.LastName = lastname; + + String networkId = Network.getNetworkId(); + + // If using site to host the community the user should not hit s1 after logging in from mobile. + if(networkId != null && siteAsContainerEnabled(Network.getLoginUrl(networkId))) { + u.put('UserPreferencesHideS1BrowserUI',true); + } + + String nickname = ((firstname != null && firstname.length() > 0) ? firstname.substring(0,1) : '' ) + lastname.substring(0,1); + nickname += String.valueOf(Crypto.getRandomInteger()).substring(1,7); + u.put('CommunityNickname', nickname); + + if (extraFields != null) { + List extraFieldsList = (List) JSON.deserializeUntyped(extraFields); + for (Object thisFieldObject : extraFieldsList) { + Map thisField = (Map) thisFieldObject; + Schema.SObjectField sof = Schema.SObjectType.User.fields.getMap().get((String) thisField.get('fieldPath')); + u.put(sof, thisField.get('value')); + } + } + + if (includePassword) { + if (!isValidPassword(password, confirmPassword)) { + return Label.site.passwords_dont_match; + } + validatePassword(u, password, confirmPassword); + } + else { + password = null; + } + + // lastName is a required field on user, but if it isn't specified, we'll default it to the username + String userId = Site.createPortalUser(u, accountId, password); + // create a fake userId for test. + if (Test.isRunningTest()) { + userId = 'fakeUserId'; + } + if (userId != null) { + if (password != null && password.length() > 1) { + ApexPages.PageReference lgn = Site.login(email, password, startUrl); + if(!Test.isRunningTest()) { + aura.redirect(lgn); + } + } + else { + ApexPages.PageReference confirmRef = new PageReference(regConfirmUrl); + if(!Test.isRunningTest()) { + aura.redirect(confirmRef); + } + + } + } + return null; + } + catch (Exception ex) { + Database.rollback(sp); + return ex.getMessage(); + } + } + + @AuraEnabled + public static List> getExtraFields(String extraFieldsFieldSet) { + List> extraFields = new List>(); + Schema.FieldSet fieldSet = Schema.SObjectType.User.fieldSets.getMap().get(extraFieldsFieldSet); + if(!Test.isRunningTest()) { + if (fieldSet != null) { + for (Schema.FieldSetMember f : fieldSet.getFields()) { + Map fieldDetail = new Map(); + fieldDetail.put('dbRequired', f.getDBRequired()); + fieldDetail.put('fieldPath', f.getFieldPath()); + fieldDetail.put('label', f.getLabel()); + fieldDetail.put('required', f.getRequired()); + fieldDetail.put('type', f.getType()); + fieldDetail.put('value', ''); // client will populate + extraFields.add(fieldDetail); + }}} + return extraFields; + } + + @AuraEnabled + global static String setExperienceId(String expId) { + // Return null if there is no error, else it will return the error message + try { + if (expId != null) { + Site.setExperienceId(expId); + } + return null; + } catch (Exception ex) { + return ex.getMessage(); + } + } +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningSelfRegisterController.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningSelfRegisterController.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningSelfRegisterController.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningSelfRegisterControllerTest.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningSelfRegisterControllerTest.cls new file mode 100644 index 000000000..5dec8d903 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningSelfRegisterControllerTest.cls @@ -0,0 +1,102 @@ +@IsTest(SeeAllData = true) +public with sharing class LightningSelfRegisterControllerTest { + + /* Verifies that IsValidPassword method with various password combinations. */ + @IsTest + static void testIsValidPassword() { + System.assert(LightningSelfRegisterController.isValidPassword('password?@12334', 'password?@12334') == true); + System.assert(LightningSelfRegisterController.isValidPassword('password?@12334', 'dummyPassword') == false); + System.assert(LightningSelfRegisterController.isValidPassword('password?@12334', null) == false); + System.assert(LightningSelfRegisterController.isValidPassword(null, 'fakePwd') == false); + } + + @IsTest + static void testSiteAsContainerEnabled() { + System.assertNotEquals(null, LightningSelfRegisterController.siteAsContainerEnabled('https://portaleu1-developer-edition.eu11.force.com')); + } + + /* Verifies the selfRegistration method flow with various invalid inputs */ + @IsTest + static void testSelfRegistration() { + Map < String, String > paramsMap = initializeParams(); + System.assertNotEquals(null, paramsMap); + System.assertEquals(Label.Site.lastname_is_required, LightningSelfRegisterController.selfRegister(paramsMap.get('firstName'), '', paramsMap.get('email'), paramsMap.get('password'), paramsMap.get('confirmPasswordCorrect'), null, paramsMap.get('regConfirmUrl'), null, paramsMap.get('startUrl'), true)); + System.assertEquals(Label.Site.email_is_required, LightningSelfRegisterController.selfRegister(paramsMap.get('firstName'), paramsMap.get('lastName'), '', paramsMap.get('password'), paramsMap.get('confirmPasswordCorrect'), null, paramsMap.get('regConfirmUrl'), null, paramsMap.get('startUrl'), true)); + System.assertEquals(Label.Site.email_is_required, LightningSelfRegisterController.selfRegister(null, paramsMap.get('lastName'), '', null, paramsMap.get('confirmPasswordCorrect'), null, paramsMap.get('regConfirmUrl'), null, paramsMap.get('startUrl'), true)); + System.assertEquals(Label.site.passwords_dont_match, LightningSelfRegisterController.selfRegister(paramsMap.get('firstName'), paramsMap.get('lastName'), paramsMap.get('email'), paramsMap.get('password'), paramsMap.get('confirmPasswordWrong'), null, paramsMap.get('regConfirmUrl'), null, paramsMap.get('startUrl'), true)); + System.assertNotEquals(null, LightningSelfRegisterController.selfRegister(paramsMap.get('firstName'), paramsMap.get('lastName'), '', paramsMap.get('password'), paramsMap.get('confirmPasswordWrong'), null, paramsMap.get('regConfirmUrl'), null, paramsMap.get('startUrl'), false)); + } + + + /* Verifies the selfRegistration flow for valid inputs */ + @IsTest + static void testSelfRegisterWithProperCredentials() { + Map < String, String > paramsMap = initializeParams(); + System.assertEquals(null, LightningSelfRegisterController.selfRegister(paramsMap.get('firstName'), paramsMap.get('lastName'), paramsMap.get('email'), paramsMap.get('password'), paramsMap.get('confirmPasswordCorrect'), null, paramsMap.get('regConfirmUrl'), null, paramsMap.get('startUrl'), true)); + } + + /* Verifies SelfRegistration flow with an accounId that is created within the test */ + @IsTest + static void testSelfRegisterWithCreatedAccount() { + Account acc = new Account(name = 'test acc'); + insert acc; + List < Account > accounts = [SELECT Id FROM Account LIMIT 1]; + System.assert(!accounts.isEmpty(), 'There must be at least one account in this environment!'); + String accountId = accounts[0].Id; + Map < String, String > paramsMap = initializeParams(); + System.assertEquals(null, LightningSelfRegisterController.selfRegister(paramsMap.get('firstName'), paramsMap.get('lastName'), paramsMap.get('email'), paramsMap.get('password'), paramsMap.get('confirmPasswordCorrect'), accountId, paramsMap.get('regConfirmUrl'), null, paramsMap.get('startUrl'), false)); + } + + @IsTest + static void testGetNullExtraFields() { + System.assertEquals(new List < Map < String, Object >> (), LightningSelfRegisterController.getExtraFields(null)); + } + + @IsTest + static void testGetNonEmptyExtraFields() { + System.assertEquals(new List < Map < String, Object >> (), LightningSelfRegisterController.getExtraFields('field1')); + } + + /* Verifies validation of extraFields within the Self Registration flow */ + @IsTest + static void testGetExtraFieldsInSelfRegistration() { + List < Map < String, Object >> fieldlist = new List < Map < String, Object >> (); + Map < String, String > paramsMap = initializeParams(); + Map < String, Object > fieldMap = new Map < String, Object > (); + fieldMap.put('description', 'new field'); + fieldMap.put('fieldPath', 'dummyPath'); + fieldlist.add(fieldMap); + String extraFields = JSON.serialize(fieldlist); + System.assertNotEquals(null, LightningSelfRegisterController.selfRegister(paramsMap.get('firstName'), paramsMap.get('lastName'), paramsMap.get('email'), paramsMap.get('password'), paramsMap.get('confirmPasswordCorrect'), null, paramsMap.get('regConfirmUrl'), extraFields, paramsMap.get('startUrl'), true)); + } + + @IsTest + static void LightningSelfRegisterControllerInstantiation() { + LightningSelfRegisterController controller = new LightningSelfRegisterController(); + System.assertNotEquals(controller, null); + } + + /* Helper method to initialize the parameters required for SelfRegistration. */ + private static Map < String, String > initializeParams() { + Map < String, String > paramsMap = new Map < String, String > (); + String firstName = 'test'; + String lastName = 'User'; + String email = 'testUser@salesforce.com'; + String password = 'testuser123'; + String confirmPasswordCorrect = 'testuser123'; + String confirmPasswordWrong = 'wrongpassword'; + String accountId = 'testuser123'; + String regConfirmUrl = 'http://registration-confirm.com'; + String startUrl = 'http://my.company.salesforce.com'; + paramsMap.put('firstName', firstName); + paramsMap.put('lastName', lastName); + paramsMap.put('email', email); + paramsMap.put('password', password); + paramsMap.put('confirmPasswordCorrect', confirmPasswordCorrect); + paramsMap.put('confirmPasswordWrong', confirmPasswordWrong); + paramsMap.put('accountId', accountId); + paramsMap.put('regConfirmUrl', regConfirmUrl); + paramsMap.put('startUrl', startUrl); + return paramsMap; + } +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningSelfRegisterControllerTest.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningSelfRegisterControllerTest.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/LightningSelfRegisterControllerTest.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MicrobatchSelfRegController.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MicrobatchSelfRegController.cls new file mode 100644 index 000000000..e84895156 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MicrobatchSelfRegController.cls @@ -0,0 +1,57 @@ +public class MicrobatchSelfRegController { + public String firstName {get; set;} + public String lastName {get; set;} + public String email {get; set;} + public String communityNickname {get; set { communityNickname = value == null ? value : value.trim(); } } + + public MicrobatchSelfRegController() { + String expid = ApexPages.currentPage().getParameters().get('expid'); + if (expId != null) { + Site.setExperienceId(expId); + } + } + + public PageReference registerUser() { + String userName = email; + String accountName; // to be filled by customer + String contactName; //to be filled by customer + String profileId = null; //to be filled by customer + String UUID; + + User u = new User(); + u.Username = userName; + u.Email = email; + u.FirstName = firstName; + u.LastName = lastName; + u.CommunityNickname = communityNickname; + u.ProfileId = profileId; + u.LocaleSidKey = 'en_US'; + u.TimeZoneSidKey = 'GMT'; + u.LanguageLocaleKey = 'en_US'; + u.EmailEncodingKey = 'UTF-8'; + + Account acc = new Account(); + acc.Name = 'Account for ' + lastName; + Contact c = new Contact(); + c.lastName = lastName; + + try { + UUID = Network.createExternalUserAsync(u, c,acc); + } catch(Site.ExternalUserCreateException ex) { + List errors = ex.getDisplayMessages(); + for (String error : errors) { + ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.ERROR, error)); + } + + // This message is used for debugging. Do not display this in the UI to the end user. + // It has the information around why the user creation failed. + System.debug(ex.getMessage()); + } + if (UUID != null) { + PageReference page = System.Page.CommunitiesSelfRegConfirm; + page.setRedirect(true); + return page; + } + return null; + } +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MicrobatchSelfRegController.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MicrobatchSelfRegController.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MicrobatchSelfRegController.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MicrobatchSelfRegControllerTest.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MicrobatchSelfRegControllerTest.cls new file mode 100644 index 000000000..b6b836518 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MicrobatchSelfRegControllerTest.cls @@ -0,0 +1,14 @@ +@IsTest + public with sharing class MicrobatchSelfRegControllerTest { + @IsTest(SeeAllData=true) + public static void testMicrobatchSelfRegController() { + MicrobatchSelfRegController controller = new MicrobatchSelfRegController(); + controller.firstName = 'FirstName'; + controller.lastName = 'LastName'; + controller.email = 'test@force.com'; + controller.communityNickname = 'test'; + + // registerUser will always return null when the page isn't accessed as a guest user + System.assert(controller.registerUser() == null); + } + } \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MicrobatchSelfRegControllerTest.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MicrobatchSelfRegControllerTest.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MicrobatchSelfRegControllerTest.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MyProfilePageController.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MyProfilePageController.cls new file mode 100644 index 000000000..f3fe255d2 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MyProfilePageController.cls @@ -0,0 +1,53 @@ +/** + * An apex class that updates portal user details. + Guest users are never able to access this page. + */ +public with sharing class MyProfilePageController { + + private User user; + private boolean isEdit = false; + + public User getUser() { + return user; + } + + public MyProfilePageController() { + user = [SELECT id, email, username, usertype, communitynickname, timezonesidkey, languagelocalekey, firstname, lastname, phone, title, + street, city, country, postalcode, state, localesidkey, mobilephone, extension, fax, contact.email + FROM User + WHERE id = :UserInfo.getUserId()]; + // guest users should never be able to access this page + if (user.usertype == 'GUEST') { + throw new NoAccessException(); + } + } + + public Boolean getIsEdit() { + return isEdit; + } + + public void edit() { + isEdit=true; + } + + public void save() { + try { + update user; + isEdit=false; + } catch(DmlException e) { + ApexPages.addMessages(e); + } + } + + public PageReference changePassword() { + return Page.ChangePassword; + } + + public void cancel() { + isEdit=false; + user = [SELECT id, email, username, communitynickname, timezonesidkey, languagelocalekey, firstname, lastname, phone, title, + street, city, country, postalcode, state, localesidkey, mobilephone, extension, fax, contact.email + FROM User + WHERE id = :UserInfo.getUserId()]; + } +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MyProfilePageController.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MyProfilePageController.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MyProfilePageController.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MyProfilePageControllerTest.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MyProfilePageControllerTest.cls new file mode 100644 index 000000000..1b59342e1 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MyProfilePageControllerTest.cls @@ -0,0 +1,55 @@ +/** + * An apex class that updates details of a portal user. + Guest users are never able to access this page. + */ +@IsTest public with sharing class MyProfilePageControllerTest { + + @IsTest(SeeAllData=true) static void testSave() { + // Modify the test to query for a portal user that exists in your org + List existingPortalUsers = [SELECT id, profileId, userRoleId FROM User WHERE UserRoleId <> null AND UserType='CustomerSuccess']; + + if (existingPortalUsers.isEmpty()) { + User currentUser = [select id, title, firstname, lastname, email, phone, mobilephone, fax, street, city, state, postalcode, country + FROM User WHERE id =: UserInfo.getUserId()]; + MyProfilePageController controller = new MyProfilePageController(); + System.assertEquals(currentUser.Id, controller.getUser().Id, 'Did not successfully load the current user'); + System.assert(controller.getIsEdit() == false, 'isEdit should default to false'); + controller.edit(); + System.assert(controller.getIsEdit() == true); + controller.cancel(); + System.assert(controller.getIsEdit() == false); + + System.assert(Page.ChangePassword.getUrl().equals(controller.changePassword().getUrl())); + + String randFax = Math.rint(Math.random() * 1000) + '5551234'; + controller.getUser().Fax = randFax; + controller.save(); + System.assert(controller.getIsEdit() == false); + + currentUser = [Select id, fax from User where id =: currentUser.Id]; + System.assert(currentUser.fax == randFax); + } else { + User existingPortalUser = existingPortalUsers[0]; + String randFax = Math.rint(Math.random() * 1000) + '5551234'; + + System.runAs(existingPortalUser) { + MyProfilePageController controller = new MyProfilePageController(); + System.assertEquals(existingPortalUser.Id, controller.getUser().Id, 'Did not successfully load the current user'); + System.assert(controller.getIsEdit() == false, 'isEdit should default to false'); + controller.edit(); + System.assert(controller.getIsEdit() == true); + + controller.cancel(); + System.assert(controller.getIsEdit() == false); + + controller.getUser().Fax = randFax; + controller.save(); + System.assert(controller.getIsEdit() == false); + } + + // verify that the user was updated + existingPortalUser = [Select id, fax from User where id =: existingPortalUser.Id]; + System.assert(existingPortalUser.fax == randFax); + } + } +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MyProfilePageControllerTest.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MyProfilePageControllerTest.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/MyProfilePageControllerTest.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteLoginController.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteLoginController.cls new file mode 100644 index 000000000..fb2f4c719 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteLoginController.cls @@ -0,0 +1,14 @@ +/** + * An apex page controller that exposes the site login functionality + */ +global with sharing class SiteLoginController { + global String username {get; set;} + global String password {get; set;} + + global PageReference login() { + String startUrl = System.currentPageReference().getParameters().get('startURL'); + return Site.login(username, password, startUrl); + } + + global SiteLoginController () {} +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteLoginController.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteLoginController.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteLoginController.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteLoginControllerTest.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteLoginControllerTest.cls new file mode 100644 index 000000000..88ec4a989 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteLoginControllerTest.cls @@ -0,0 +1,13 @@ +/** + * An apex page controller that exposes the site login functionality + */ +@IsTest global with sharing class SiteLoginControllerTest { + @IsTest(SeeAllData=true) global static void testSiteLoginController () { + // Instantiate a new controller with all parameters in the page + SiteLoginController controller = new SiteLoginController (); + controller.username = 'test@salesforce.com'; + controller.password = '123456'; + + System.assertEquals(controller.login(),null); + } +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteLoginControllerTest.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteLoginControllerTest.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteLoginControllerTest.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteRegisterController.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteRegisterController.cls new file mode 100644 index 000000000..9332bc4fb --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteRegisterController.cls @@ -0,0 +1,50 @@ +/** + * An apex class that creates a portal user + */ +public with sharing class SiteRegisterController { + // PORTAL_ACCOUNT_ID is the account on which the contact will be created on and then enabled as a portal user. + // you need to add the account owner into the role hierarchy before this will work - please see Customer Portal Setup help for more information. + private static Id PORTAL_ACCOUNT_ID = '001x000xxx35tPN'; + + public SiteRegisterController () { + } + + public String username {get; set;} + public String email {get; set;} + public String password {get; set {password = value == null ? value : value.trim(); } } + public String confirmPassword {get; set { confirmPassword = value == null ? value : value.trim(); } } + public String communityNickname {get; set { communityNickname = value == null ? value : value.trim(); } } + + private boolean isValidPassword() { + return password == confirmPassword; + } + + public PageReference registerUser() { + // it's okay if password is null - we'll send the user a random password in that case + if (!isValidPassword()) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, Label.site.passwords_dont_match); + ApexPages.addMessage(msg); + return null; + } + User u = new User(); + u.Username = username; + u.Email = email; + u.CommunityNickname = communityNickname; + + String accountId = PORTAL_ACCOUNT_ID; + + // lastName is a required field on user, but if it isn't specified, we'll default it to the username + String userId = Site.createPortalUser(u, accountId, password); + if (userId != null) { + if (password != null && password.length() > 1) { + return Site.login(username, password, null); + } + else { + PageReference page = System.Page.SiteRegisterConfirm; + page.setRedirect(true); + return page; + } + } + return null; + } +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteRegisterController.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteRegisterController.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteRegisterController.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteRegisterControllerTest.cls b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteRegisterControllerTest.cls new file mode 100644 index 000000000..79f27fafa --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteRegisterControllerTest.cls @@ -0,0 +1,17 @@ +/** + * Class containing tests for SiteRegisterController + */ +@IsTest public with sharing class SiteRegisterControllerTest { + @IsTest(SeeAllData=true) static void testRegistration() { + SiteRegisterController controller = new SiteRegisterController(); + controller.username = 'test@force.com'; + controller.email = 'test@force.com'; + controller.communityNickname = 'test'; + // registerUser will always return null when the page isn't accessed as a guest user + System.assert(controller.registerUser() == null); + + controller.password = 'abcd1234'; + controller.confirmPassword = 'abcd123'; + System.assert(controller.registerUser() == null); + } +} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteRegisterControllerTest.cls-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteRegisterControllerTest.cls-meta.xml new file mode 100644 index 000000000..fbbad0af5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/classes/SiteRegisterControllerTest.cls-meta.xml @@ -0,0 +1,5 @@ + + + 56.0 + Active + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SiteFooter.component b/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SiteFooter.component new file mode 100644 index 000000000..dd36cbbc9 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SiteFooter.component @@ -0,0 +1,3 @@ + + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SiteFooter.component-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SiteFooter.component-meta.xml new file mode 100644 index 000000000..e60afd956 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SiteFooter.component-meta.xml @@ -0,0 +1,6 @@ + + + 56.0 + Default Lightning Platform site footer component + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SiteHeader.component b/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SiteHeader.component new file mode 100644 index 000000000..1bc8cbaee --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SiteHeader.component @@ -0,0 +1,52 @@ + + + + + + {!$Label.site.login_button} + + {!$Label.site.forgot_your_password_q} + + {!$Label.site.new_user_q} + + {!$Label.site.logout} + + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SiteHeader.component-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SiteHeader.component-meta.xml new file mode 100644 index 000000000..56fe28917 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SiteHeader.component-meta.xml @@ -0,0 +1,6 @@ + + + 56.0 + Default Lightning Platform site header component + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SiteLogin.component b/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SiteLogin.component new file mode 100644 index 000000000..0b8c70333 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SiteLogin.component @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + {!$Label.site.forgot_your_password_q} + + {!$Label.site.new_user_q} + + + + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SiteLogin.component-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SiteLogin.component-meta.xml new file mode 100644 index 000000000..68e5b5f0e --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SiteLogin.component-meta.xml @@ -0,0 +1,6 @@ + + + 56.0 + Default Salesforce Sites Login component + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SitePoweredBy.component b/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SitePoweredBy.component new file mode 100644 index 000000000..fe0def61f --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SitePoweredBy.component @@ -0,0 +1,23 @@ + + + + + + + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SitePoweredBy.component-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SitePoweredBy.component-meta.xml new file mode 100644 index 000000000..946bc2ce3 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/components/SitePoweredBy.component-meta.xml @@ -0,0 +1,6 @@ + + + 56.0 + Default Lightning Platform site powered by component + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperienceConfigs/source_plugin_nut1.digitalExperienceConfig-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperienceConfigs/source_plugin_nut1.digitalExperienceConfig-meta.xml new file mode 100644 index 000000000..1efb23a72 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperienceConfigs/source_plugin_nut1.digitalExperienceConfig-meta.xml @@ -0,0 +1,8 @@ + + + + + + + site/source_plugin_nut1 + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__appPage/mainAppPage/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__appPage/mainAppPage/_meta.json new file mode 100644 index 000000000..9d47ccb15 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__appPage/mainAppPage/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "mainAppPage", + "type": "sfdc_cms__appPage", + "path": "" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__appPage/mainAppPage/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__appPage/mainAppPage/content.json new file mode 100644 index 000000000..a6a0c772a --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__appPage/mainAppPage/content.json @@ -0,0 +1,11 @@ +{ + "type": "sfdc_cms__appPage", + "title": "main", + "contentBody": { + "currentThemeId": "Build_Your_Own_LWR", + "headMarkup": "\n\nWelcome to LWC Communities!\n\n\n\n\n\n\n\n\n\n\n\n", + "isLockerServiceEnabled": true, + "isRelaxedCSPLevel": false, + "templateName": "talon-template-byo" + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__brandingSet/Build_Your_Own_LWR/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__brandingSet/Build_Your_Own_LWR/_meta.json new file mode 100644 index 000000000..622f3c734 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__brandingSet/Build_Your_Own_LWR/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "Build_Your_Own_LWR", + "type": "sfdc_cms__brandingSet", + "path": "brandingSets" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__brandingSet/Build_Your_Own_LWR/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__brandingSet/Build_Your_Own_LWR/content.json new file mode 100644 index 000000000..e8114fe52 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__brandingSet/Build_Your_Own_LWR/content.json @@ -0,0 +1,183 @@ +{ + "type": "sfdc_cms__brandingSet", + "title": "Build Your Own (LWR)", + "contentBody": { + "brandingSetType": "APP", + "definitionName": "talon-template-byo:branding", + "values": { + "BackgroundColor": "#ffffff", + "BaseFontSize": "1rem", + "BodyFont": "Salesforce Sans", + "BodyFontSize": "1rem", + "BodyFontStyle": "normal", + "BodyFontWeight": "400", + "BodyLetterSpacing": "0em", + "BodyLineHeight": "1.5", + "BodySmallFont": "Salesforce Sans", + "BodySmallFontSize": "0.75rem", + "BodySmallFontStyle": "normal", + "BodySmallFontWeight": "400", + "BodySmallLetterSpacing": "0em", + "BodySmallLineHeight": "1.25", + "BodySmallTextColor": "var(--dxp-g-root-contrast)", + "BodySmallTextDecoration": "none", + "BodySmallTextTransform": "none", + "BodyTextColor": "var(--dxp-g-root-contrast)", + "BodyTextDecoration": "none", + "BodyTextTransform": "none", + "ButtonActiveColor": "var(--dxp-s-button-color-1)", + "ButtonBorderRadius": "4px", + "ButtonColor": "var(--dxp-g-brand)", + "ButtonFocusColor": "var(--dxp-s-button-color-1)", + "ButtonFont": "Salesforce Sans", + "ButtonFontSize": "1rem", + "ButtonFontStyle": "normal", + "ButtonFontWeight": "400", + "ButtonHoverColor": "var(--dxp-s-button-color-1)", + "ButtonLargeBorderRadius": "4px", + "ButtonLargeFontSize": "1.25rem", + "ButtonLargePadding": "1.25rem", + "ButtonLetterSpacing": "0em", + "ButtonLineHeight": "2", + "ButtonPadding": "1rem", + "ButtonSmallBorderRadius": "4px", + "ButtonSmallFontSize": "0.75rem", + "ButtonSmallPadding": "0.75rem", + "ButtonTextTransform": "none", + "ColumnSpacerSizeDesktop": "1rem", + "ColumnSpacerSizeMobile": "0.75rem", + "ComponentSpacerSizeDesktop": "1.5rem", + "ComponentSpacerSizeMobile": "1.5rem", + "DropdownBackgroundColor": "var(--dxp-g-root)", + "DropdownBackgroundHoverColor": "var(--dxp-g-neutral)", + "DropdownBorderColor": "var(--dxp-g-neutral)", + "DropdownTextColor": "var(--dxp-g-root-contrast)", + "DropdownTextHoverColor": "var(--dxp-g-neutral-contrast)", + "FormElementBackgroundColor": "var(--dxp-g-root)", + "FormElementBorderColor": "var(--dxp-g-neutral-3)", + "FormElementBorderRadius": "4px", + "FormElementBorderWidth": "1px", + "FormElementLabelColor": "var(--dxp-g-root-contrast)", + "FormElementTextColor": "var(--dxp-g-root-contrast)", + "HeadingExtraLargeColor": "var(--dxp-g-root-contrast)", + "HeadingExtraLargeFont": "Salesforce Sans", + "HeadingExtraLargeFontSize": "2.5rem", + "HeadingExtraLargeFontStyle": "normal", + "HeadingExtraLargeFontWeight": "300", + "HeadingExtraLargeLetterSpacing": "0em", + "HeadingExtraLargeLineHeight": "1.25", + "HeadingExtraLargeTextDecoration": "none", + "HeadingExtraLargeTextTransform": "none", + "HeadingLargeColor": "var(--dxp-g-root-contrast)", + "HeadingLargeFont": "Salesforce Sans", + "HeadingLargeFontSize": "1.75rem", + "HeadingLargeFontStyle": "normal", + "HeadingLargeFontWeight": "300", + "HeadingLargeLetterSpacing": "0em", + "HeadingLargeLineHeight": "1.25", + "HeadingLargeTextDecoration": "none", + "HeadingLargeTextTransform": "none", + "HeadingMediumColor": "var(--dxp-g-root-contrast)", + "HeadingMediumFont": "Salesforce Sans", + "HeadingMediumFontSize": "1.25rem", + "HeadingMediumFontStyle": "normal", + "HeadingMediumFontWeight": "300", + "HeadingMediumLetterSpacing": "0em", + "HeadingMediumLineHeight": "1.25", + "HeadingMediumTextDecoration": "none", + "HeadingMediumTextTransform": "none", + "HeadingSmallColor": "var(--dxp-g-root-contrast)", + "HeadingSmallFont": "Salesforce Sans", + "HeadingSmallFontSize": "1.125rem", + "HeadingSmallFontStyle": "normal", + "HeadingSmallFontWeight": "300", + "HeadingSmallLetterSpacing": "0em", + "HeadingSmallLineHeight": "1.25", + "HeadingSmallTextDecoration": "none", + "HeadingSmallTextTransform": "none", + "HorizontalRowPaddingDesktop": "1rem", + "HorizontalRowPaddingMobile": "0.75rem", + "LinkColor": "var(--dxp-g-brand)", + "LinkHoverColor": "var(--dxp-s-link-text-color-1)", + "LinkTextDecoration": "none", + "LinkTextDecorationFocus": "underline", + "LinkTextDecorationHover": "underline", + "MaxContentWidthDesktop": "1800px", + "MaxContentWidthMobile": "none", + "MobileBaseFontSize": "1rem", + "PrimaryAccentColor": "#005fb2", + "PrimaryAccentForegroundColor": "#ffffff", + "SiteLogo": "", + "TextColor": "#1a1b1e", + "VerticalRowPaddingDesktop": "1rem", + "VerticalRowPaddingMobile": "0.75rem", + "_BackgroundColor1": "#ebebeb", + "_BackgroundColor2": "#c2c2c2", + "_BackgroundColor3": "#858585", + "_ButtonActiveColorContrast": "var(--dxp-g-brand-contrast-1)", + "_ButtonColor1": "var(--dxp-g-brand-1)", + "_ButtonColorContrast": "var(--dxp-g-brand-contrast)", + "_ButtonFocusColorContrast": "var(--dxp-g-brand-contrast-1)", + "_ButtonHoverColorContrast": "var(--dxp-g-brand-contrast-1)", + "_DestructiveColor": "#c23934", + "_DestructiveColor1": "#a2302b", + "_DestructiveColor2": "#611d1a", + "_DestructiveColor3": "#010000", + "_DestructiveForegroundColor": "#ffffff", + "_DestructiveForegroundColor1": "#ffffff", + "_DestructiveForegroundColor2": "#ffffff", + "_DestructiveForegroundColor3": "#ffffff", + "_InfoColor": "#16325c", + "_InfoColor1": "#0e203b", + "_InfoColor2": "#000000", + "_InfoColor3": "#000000", + "_InfoForegroundColor": "#ffffff", + "_InfoForegroundColor1": "#ffffff", + "_InfoForegroundColor2": "#ffffff", + "_InfoForegroundColor3": "#ffffff", + "_LinkColor1": "var(--dxp-g-brand-1)", + "_NeutralColor": "#ecebea", + "_NeutralColor1": "#d9d7d5", + "_NeutralColor2": "#b2aeaa", + "_NeutralColor3": "#76716b", + "_NeutralForegroundColor": "#000000", + "_NeutralForegroundColor1": "#000000", + "_NeutralForegroundColor2": "#000000", + "_NeutralForegroundColor3": "#ffffff", + "_OfflineColor": "#444444", + "_OfflineColor1": "#303030", + "_OfflineColor2": "#070707", + "_OfflineColor3": "#000000", + "_OfflineForegroundColor": "#ffffff", + "_OfflineForegroundColor1": "#ffffff", + "_OfflineForegroundColor2": "#ffffff", + "_OfflineForegroundColor3": "#ffffff", + "_PrimaryAccentColor1": "#004989", + "_PrimaryAccentColor2": "#001e38", + "_PrimaryAccentColor3": "#000000", + "_PrimaryAccentForegroundColor1": "#ffffff", + "_PrimaryAccentForegroundColor2": "#ffffff", + "_PrimaryAccentForegroundColor3": "#ffffff", + "_SiteLogoUrl": "", + "_SuccessColor": "#4bca81", + "_SuccessColor1": "#36b66c", + "_SuccessColor2": "#237747", + "_SuccessColor3": "#07190f", + "_SuccessForegroundColor": "#000000", + "_SuccessForegroundColor1": "#000000", + "_SuccessForegroundColor2": "#ffffff", + "_SuccessForegroundColor3": "#ffffff", + "_TextColor1": "#000000", + "_TextColor2": "#000000", + "_TextColor3": "#000000", + "_WarningColor": "#ffb75d", + "_WarningColor1": "#ffa534", + "_WarningColor2": "#e27d00", + "_WarningColor3": "#673900", + "_WarningForegroundColor": "#000000", + "_WarningForegroundColor1": "#000000", + "_WarningForegroundColor2": "#000000", + "_WarningForegroundColor3": "#ffffff" + } + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__languageSettings/languages/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__languageSettings/languages/_meta.json new file mode 100644 index 000000000..bbc8af89a --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__languageSettings/languages/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "languages", + "type": "sfdc_cms__languageSettings", + "path": "_settings" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__languageSettings/languages/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__languageSettings/languages/content.json new file mode 100644 index 000000000..537dee8c6 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__languageSettings/languages/content.json @@ -0,0 +1,21 @@ +{ + "type": "sfdc_cms__languageSettings", + "title": "LanguageContent", + "contentBody": { + "defaultLocale": "en_US", + "languages": [ + { + "isActive": true, + "isAuthoringOnly": false, + "label": "English (US)", + "locale": "en_US" + }, + { + "isActive": true, + "isAuthoringOnly": false, + "label": "Spanish", + "locale": "es" + } + ] + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Check_Password/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Check_Password/_meta.json new file mode 100644 index 000000000..1d23a7501 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Check_Password/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "Check_Password", + "type": "sfdc_cms__route", + "path": "routes" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Check_Password/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Check_Password/content.json new file mode 100644 index 000000000..377f9e4fa --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Check_Password/content.json @@ -0,0 +1,11 @@ +{ + "type": "sfdc_cms__route", + "title": "Check Password", + "contentBody": { + "activeViewId": "checkPasswordResetEmail", + "configurationTags": [], + "pageAccess": "UseParent", + "routeType": "check-password", + "urlPrefix": "CheckPasswordResetEmail" + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Error/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Error/_meta.json new file mode 100644 index 000000000..faa128a16 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Error/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "Error", + "type": "sfdc_cms__route", + "path": "routes" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Error/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Error/content.json new file mode 100644 index 000000000..faf29aeac --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Error/content.json @@ -0,0 +1,11 @@ +{ + "type": "sfdc_cms__route", + "title": "Error", + "contentBody": { + "activeViewId": "error", + "configurationTags": [], + "pageAccess": "UseParent", + "routeType": "error", + "urlPrefix": "error" + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Forgot_Password/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Forgot_Password/_meta.json new file mode 100644 index 000000000..982d96bdb --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Forgot_Password/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "Forgot_Password", + "type": "sfdc_cms__route", + "path": "routes" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Forgot_Password/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Forgot_Password/content.json new file mode 100644 index 000000000..983554686 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Forgot_Password/content.json @@ -0,0 +1,11 @@ +{ + "type": "sfdc_cms__route", + "title": "Forgot Password", + "contentBody": { + "activeViewId": "forgotPassword", + "configurationTags": [], + "pageAccess": "UseParent", + "routeType": "forgot-password", + "urlPrefix": "ForgotPassword" + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Home/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Home/_meta.json new file mode 100644 index 000000000..0536e9fe1 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Home/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "Home", + "type": "sfdc_cms__route", + "path": "routes" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Home/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Home/content.json new file mode 100644 index 000000000..0ebaa84d5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Home/content.json @@ -0,0 +1,11 @@ +{ + "type": "sfdc_cms__route", + "title": "Home", + "contentBody": { + "activeViewId": "home", + "configurationTags": [], + "pageAccess": "UseParent", + "routeType": "home", + "urlPrefix": "" + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Login/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Login/_meta.json new file mode 100644 index 000000000..38723736a --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Login/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "Login", + "type": "sfdc_cms__route", + "path": "routes" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Login/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Login/content.json new file mode 100644 index 000000000..87bcfb8f4 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Login/content.json @@ -0,0 +1,11 @@ +{ + "type": "sfdc_cms__route", + "title": "Login", + "contentBody": { + "activeViewId": "login", + "configurationTags": [], + "pageAccess": "UseParent", + "routeType": "login-main", + "urlPrefix": "login" + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/News_Detail__c/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/News_Detail__c/_meta.json new file mode 100644 index 000000000..3de27e7e9 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/News_Detail__c/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "News_Detail__c", + "type": "sfdc_cms__route", + "path": "routes" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/News_Detail__c/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/News_Detail__c/content.json new file mode 100644 index 000000000..be20ca96a --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/News_Detail__c/content.json @@ -0,0 +1,11 @@ +{ + "type": "sfdc_cms__route", + "title": "News Detail", + "contentBody": { + "activeViewId": "newsDetail", + "configurationTags": [], + "pageAccess": "UseParent", + "routeType": "managed-content-sfdc_cms__news", + "urlPrefix": "news" + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Register/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Register/_meta.json new file mode 100644 index 000000000..5343cfeb5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Register/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "Register", + "type": "sfdc_cms__route", + "path": "routes" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Register/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Register/content.json new file mode 100644 index 000000000..e11fc2de6 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Register/content.json @@ -0,0 +1,11 @@ +{ + "type": "sfdc_cms__route", + "title": "Register", + "contentBody": { + "activeViewId": "register", + "configurationTags": [], + "pageAccess": "UseParent", + "routeType": "self-register", + "urlPrefix": "SelfRegister" + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Service_Not_Available/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Service_Not_Available/_meta.json new file mode 100644 index 000000000..c70c814dc --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Service_Not_Available/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "Service_Not_Available", + "type": "sfdc_cms__route", + "path": "routes" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Service_Not_Available/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Service_Not_Available/content.json new file mode 100644 index 000000000..38c5b1b02 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Service_Not_Available/content.json @@ -0,0 +1,11 @@ +{ + "type": "sfdc_cms__route", + "title": "Service Not Available", + "contentBody": { + "activeViewId": "serviceNotAvailable", + "configurationTags": ["allow-in-static-site"], + "pageAccess": "UseParent", + "routeType": "service-not-available", + "urlPrefix": "service-not-available" + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Too_Many_Requests/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Too_Many_Requests/_meta.json new file mode 100644 index 000000000..85e6214a2 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Too_Many_Requests/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "Too_Many_Requests", + "type": "sfdc_cms__route", + "path": "routes" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Too_Many_Requests/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Too_Many_Requests/content.json new file mode 100644 index 000000000..21bd056e5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__route/Too_Many_Requests/content.json @@ -0,0 +1,11 @@ +{ + "type": "sfdc_cms__route", + "title": "Too Many Requests", + "contentBody": { + "activeViewId": "tooManyRequests", + "configurationTags": ["allow-in-static-site", "too-many-requests"], + "pageAccess": "UseParent", + "routeType": "too-many-requests", + "urlPrefix": "too-many-requests" + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__site/source_plugin_nut1/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__site/source_plugin_nut1/_meta.json new file mode 100644 index 000000000..385d85714 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__site/source_plugin_nut1/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "source_plugin_nut1", + "type": "sfdc_cms__site", + "path": "" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__site/source_plugin_nut1/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__site/source_plugin_nut1/content.json new file mode 100644 index 000000000..a35add76a --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__site/source_plugin_nut1/content.json @@ -0,0 +1,7 @@ +{ + "type": "sfdc_cms__site", + "title": "source-plugin-nut", + "contentBody": { + "authenticationType": "AUTHENTICATED" + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__theme/Build_Your_Own_LWR/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__theme/Build_Your_Own_LWR/_meta.json new file mode 100644 index 000000000..df07f0d33 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__theme/Build_Your_Own_LWR/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "Build_Your_Own_LWR", + "type": "sfdc_cms__theme", + "path": "themes" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__theme/Build_Your_Own_LWR/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__theme/Build_Your_Own_LWR/content.json new file mode 100644 index 000000000..e5bd336f6 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__theme/Build_Your_Own_LWR/content.json @@ -0,0 +1,18 @@ +{ + "type": "sfdc_cms__theme", + "title": "Build Your Own (LWR)", + "contentBody": { + "activeBrandingSetId": "Build_Your_Own_LWR", + "definitionName": "byo", + "layouts": [ + { + "layoutId": "snaThemeLayout", + "layoutType": "ServiceNotAvailable" + }, + { + "layoutId": "scopedHeaderAndFooter", + "layoutType": "Inner" + } + ] + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__themeLayout/scopedHeaderAndFooter/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__themeLayout/scopedHeaderAndFooter/_meta.json new file mode 100644 index 000000000..70e9f2c33 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__themeLayout/scopedHeaderAndFooter/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "scopedHeaderAndFooter", + "type": "sfdc_cms__themeLayout", + "path": "themeLayouts" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__themeLayout/scopedHeaderAndFooter/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__themeLayout/scopedHeaderAndFooter/content.json new file mode 100644 index 000000000..a5375f8cd --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__themeLayout/scopedHeaderAndFooter/content.json @@ -0,0 +1,66 @@ +{ + "type": "sfdc_cms__themeLayout", + "title": "Scoped Header and Footer", + "contentBody": { + "component": { + "attributes": {}, + "children": [ + { + "children": [ + { + "attributes": { + "backgroundImageConfig": "", + "backgroundImageOverlay": "rgba(0,0,0,0)", + "sectionConfig": "{\"UUID\":\"2f8cc8c9-b8bc-4ddf-9ccc-fa2c49dd472c\",\"columns\":[{\"UUID\":\"87770ea6-d264-44a5-bb7b-d2cf593ade4d\",\"columnName\":\"Column 1\",\"columnKey\":\"headerSection\",\"columnWidth\":\"12\",\"seedComponents\":null}]}" + }, + "children": [ + { + "id": "87770ea6-d264-44a5-bb7b-d2cf593ade4d", + "name": "headerSection", + "title": "Theme Header", + "type": "region" + } + ], + "definition": "community_layout:section", + "id": "2f8cc8c9-b8bc-4ddf-9ccc-fa2c49dd472c", + "type": "component" + } + ], + "id": "74a684f7-fbab-4bfa-a1f8-6dc9a62e247b", + "name": "header", + "title": "Theme Header", + "type": "region" + }, + { + "children": [ + { + "attributes": { + "backgroundImageConfig": "", + "backgroundImageOverlay": "rgba(0,0,0,0)", + "sectionConfig": "{\"UUID\":\"786346a8-9b13-4afb-9171-f4bd208809ba\",\"columns\":[{\"UUID\":\"626a0cfa-10cd-42ae-855f-6dc9d00926bb\",\"columnName\":\"Column 1\",\"columnKey\":\"footerSection\",\"columnWidth\":\"12\",\"seedComponents\":null}]}" + }, + "children": [ + { + "id": "626a0cfa-10cd-42ae-855f-6dc9d00926bb", + "name": "footerSection", + "title": "Theme Footer", + "type": "region" + } + ], + "definition": "community_layout:section", + "id": "786346a8-9b13-4afb-9171-f4bd208809ba", + "type": "component" + } + ], + "id": "538eb533-a169-431d-ac5c-c27676963410", + "name": "footer", + "title": "Theme Footer", + "type": "region" + } + ], + "definition": "community_byo:scopedHeaderAndFooter", + "id": "e6517c5b-edca-4a2e-afd5-28f4269edd17", + "type": "component" + } + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__themeLayout/snaThemeLayout/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__themeLayout/snaThemeLayout/_meta.json new file mode 100644 index 000000000..0e29650fe --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__themeLayout/snaThemeLayout/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "snaThemeLayout", + "type": "sfdc_cms__themeLayout", + "path": "themeLayouts" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__themeLayout/snaThemeLayout/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__themeLayout/snaThemeLayout/content.json new file mode 100644 index 000000000..aa458564f --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__themeLayout/snaThemeLayout/content.json @@ -0,0 +1,26 @@ +{ + "type": "sfdc_cms__themeLayout", + "title": "Service Not Available Theme Layout", + "contentBody": { + "component": { + "attributes": {}, + "children": [ + { + "id": "4c92e72f-a735-4f7a-8ff0-7e21782e2c73", + "name": "header", + "title": "Theme Header", + "type": "region" + }, + { + "id": "d2218ad0-b24a-44f5-86e3-fe8eb960d215", + "name": "footer", + "title": "Theme Footer", + "type": "region" + } + ], + "definition": "community_layout:simpleThemeLayout", + "id": "f1b277c4-5cd3-487a-acbb-0a14699bc9ca", + "type": "component" + } + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/checkPasswordResetEmail/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/checkPasswordResetEmail/_meta.json new file mode 100644 index 000000000..91b486255 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/checkPasswordResetEmail/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "checkPasswordResetEmail", + "type": "sfdc_cms__view", + "path": "views" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/checkPasswordResetEmail/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/checkPasswordResetEmail/content.json new file mode 100644 index 000000000..1c6254dc8 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/checkPasswordResetEmail/content.json @@ -0,0 +1,81 @@ +{ + "type": "sfdc_cms__view", + "title": "Check Password", + "contentBody": { + "component": { + "children": [ + { + "children": [ + { + "attributes": { + "backgroundImageConfig": "", + "backgroundImageOverlay": "rgba(0,0,0,0)", + "sectionConfig": "{\"UUID\":\"9a310648-054b-4ba6-9b22-186bb6fc4416\",\"columns\":[{\"UUID\":\"3890935c-6dcf-452d-ae69-30c6b5313e8b\",\"columnName\":\"Column 1\",\"columnKey\":\"col1\",\"columnWidth\":\"12\",\"seedComponents\":null}]}" + }, + "children": [ + { + "children": [ + { + "attributes": { + "imageInfo": "", + "logoWidth": 250 + }, + "definition": "dxp_content_layout:siteLogo", + "id": "1870b69f-e959-4bff-abb5-8e674ba73c8e", + "type": "component" + }, + { + "attributes": { + "checkEmailMessage": "Check the email account associated with your username for the link to reset your password. If you didn't get an email, check your Spam folder. Or contact your administrator.", + "returnButtonLabel": "Back to login", + "titleLabel": "Now check your email" + }, + "definition": "community_login:checkEmail", + "id": "399cfcd4-d5e8-4047-8403-1e591cf9f69e", + "type": "component" + } + ], + "id": "3890935c-6dcf-452d-ae69-30c6b5313e8b", + "name": "col1", + "title": "Column 1", + "type": "region" + } + ], + "definition": "community_layout:section", + "id": "9a310648-054b-4ba6-9b22-186bb6fc4416", + "type": "component" + } + ], + "id": "b29e0d4d-6ebd-46a3-8b36-6f80fa32c643", + "name": "content", + "title": "Content", + "type": "region" + }, + { + "children": [ + { + "attributes": { + "customHeadTags": "", + "description": "", + "pageTitle": "Check Password", + "recordId": "{!recordId}" + }, + "definition": "community_builder:seoAssistant", + "id": "75466e89-060a-41fd-8618-efbf921558eb", + "type": "component" + } + ], + "id": "adec81bf-3b38-483a-bdd3-f1ac334fafd2", + "name": "sfdcHiddenRegion", + "title": "sfdcHiddenRegion", + "type": "region" + } + ], + "definition": "community_layout:sldsFlexibleLayout", + "id": "1c4062f7-2bf3-4105-8875-1d6b47117ea0", + "type": "component" + }, + "themeLayoutType": "Inner", + "viewType": "check-password" + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/error/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/error/_meta.json new file mode 100644 index 000000000..26f2908b0 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/error/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "error", + "type": "sfdc_cms__view", + "path": "views" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/error/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/error/content.json new file mode 100644 index 000000000..2b246dbe7 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/error/content.json @@ -0,0 +1,70 @@ +{ + "type": "sfdc_cms__view", + "title": "Error", + "contentBody": { + "component": { + "children": [ + { + "children": [ + { + "attributes": { + "backgroundImageConfig": "", + "backgroundImageOverlay": "rgba(0,0,0,0)", + "sectionConfig": "{\"UUID\":\"49ecea4b-6cf0-49d2-a424-23217d2ed4c2\",\"columns\":[{\"UUID\":\"d7f901eb-a79a-4377-84a9-31ee4dce0f01\",\"columnName\":\"Column 1\",\"columnKey\":\"col1\",\"columnWidth\":\"12\",\"seedComponents\":null}]}" + }, + "children": [ + { + "children": [ + { + "attributes": { + "richTextValue": "

Invalid Page

" + }, + "definition": "community_builder:richTextEditor", + "id": "07792784-0542-459f-959d-ecbda83a41f2", + "type": "component" + } + ], + "id": "d7f901eb-a79a-4377-84a9-31ee4dce0f01", + "name": "col1", + "title": "Column 1", + "type": "region" + } + ], + "definition": "community_layout:section", + "id": "49ecea4b-6cf0-49d2-a424-23217d2ed4c2", + "type": "component" + } + ], + "id": "4ca3ef17-b199-4201-892d-5c85d538a028", + "name": "content", + "title": "Content", + "type": "region" + }, + { + "children": [ + { + "attributes": { + "customHeadTags": "", + "description": "", + "pageTitle": "Error", + "recordId": "{!recordId}" + }, + "definition": "community_builder:seoAssistant", + "id": "56724006-3e8a-4f5f-8def-9f446b9d55d6", + "type": "component" + } + ], + "id": "310bd83a-aa09-4f2a-9f9c-98063db7b04a", + "name": "sfdcHiddenRegion", + "title": "sfdcHiddenRegion", + "type": "region" + } + ], + "definition": "community_layout:sldsFlexibleLayout", + "id": "d249b197-34f6-4b0e-b95b-d55ae83eb683", + "type": "component" + }, + "themeLayoutType": "Inner", + "viewType": "error" + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/forgotPassword/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/forgotPassword/_meta.json new file mode 100644 index 000000000..e099f6546 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/forgotPassword/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "forgotPassword", + "type": "sfdc_cms__view", + "path": "views" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/forgotPassword/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/forgotPassword/content.json new file mode 100644 index 000000000..68423b07f --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/forgotPassword/content.json @@ -0,0 +1,84 @@ +{ + "type": "sfdc_cms__view", + "title": "Forgot Password", + "contentBody": { + "component": { + "children": [ + { + "children": [ + { + "attributes": { + "backgroundImageConfig": "", + "backgroundImageOverlay": "rgba(0,0,0,0)", + "sectionConfig": "{\"UUID\":\"54567b34-1917-4ad3-9c3b-9d72ea4e4d1c\",\"columns\":[{\"UUID\":\"0c87b336-2033-4358-bec9-5aed3e95926f\",\"columnName\":\"Column 1\",\"columnKey\":\"col1\",\"columnWidth\":\"12\",\"seedComponents\":null}]}" + }, + "children": [ + { + "children": [ + { + "attributes": { + "imageInfo": "", + "logoWidth": 250 + }, + "definition": "dxp_content_layout:siteLogo", + "id": "f34c5283-19b4-4f52-914c-90d7f238adc8", + "type": "component" + }, + { + "attributes": { + "cancelButtonLabel": "Cancel", + "checkEmailUrl": "./CheckPasswordResetEmail", + "instructionsLabel": "To reset your password, enter your username. We'll send a reset-password link to the email address associated with your account.", + "submitButtonLabel": "Reset", + "titleLabel": "Forgot your password?", + "usernameLabel": "Username" + }, + "definition": "community_login:forgotPassword", + "id": "8227f960-ab77-4526-8db8-f2b5b7c787c5", + "type": "component" + } + ], + "id": "0c87b336-2033-4358-bec9-5aed3e95926f", + "name": "col1", + "title": "Column 1", + "type": "region" + } + ], + "definition": "community_layout:section", + "id": "54567b34-1917-4ad3-9c3b-9d72ea4e4d1c", + "type": "component" + } + ], + "id": "31718619-6ce8-4857-a4eb-6a4a92d3c585", + "name": "content", + "title": "Content", + "type": "region" + }, + { + "children": [ + { + "attributes": { + "customHeadTags": "", + "description": "", + "pageTitle": "Forgot Password", + "recordId": "{!recordId}" + }, + "definition": "community_builder:seoAssistant", + "id": "d750e279-6e26-4171-a8a5-51783afbb90f", + "type": "component" + } + ], + "id": "28986df1-d425-4beb-94c4-c910da3eb485", + "name": "sfdcHiddenRegion", + "title": "sfdcHiddenRegion", + "type": "region" + } + ], + "definition": "community_layout:sldsFlexibleLayout", + "id": "2fc9207a-b2d9-42fa-8635-129f6ca43e51", + "type": "component" + }, + "themeLayoutType": "Inner", + "viewType": "forgot-password" + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/forgotPassword/es.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/forgotPassword/es.json new file mode 100644 index 000000000..202df3f42 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/forgotPassword/es.json @@ -0,0 +1,17 @@ +{ + "type": "sfdc_cms__view", + "title": "Forgot Password", + "contentBody": { + "component": { + "children": [ + { + "attributes": { + "cancelButtonLabel": "Cancelar", + "submitButtonLabel": "Reiniciar" + }, + "id": "8227f960-ab77-4526-8db8-f2b5b7c787c5" + } + ] + } + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/home/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/home/_meta.json new file mode 100644 index 000000000..d37c7f6ed --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/home/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "home", + "type": "sfdc_cms__view", + "path": "views" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/home/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/home/content.json new file mode 100644 index 000000000..37a9c8b17 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/home/content.json @@ -0,0 +1,70 @@ +{ + "type": "sfdc_cms__view", + "title": "Home", + "contentBody": { + "component": { + "children": [ + { + "children": [ + { + "attributes": { + "backgroundImageConfig": "", + "backgroundImageOverlay": "rgba(0,0,0,0)", + "sectionConfig": "{\"UUID\":\"9d47fddd-d2ca-497b-a5f1-2f2bf31734ad\",\"columns\":[{\"UUID\":\"c73070f7-4827-4939-ab84-7102d201a1fc\",\"columnName\":\"Column 1\",\"columnKey\":\"col1\",\"columnWidth\":\"12\",\"seedComponents\":null}]}" + }, + "children": [ + { + "children": [ + { + "attributes": { + "richTextValue": "

Start Building Your Page

Drag and drop a component into the content slots.
" + }, + "definition": "community_builder:htmlEditor", + "id": "ca2a2dcf-08ea-4eb4-9c11-470fed356ffc", + "type": "component" + } + ], + "id": "c73070f7-4827-4939-ab84-7102d201a1fc", + "name": "col1", + "title": "Column 1", + "type": "region" + } + ], + "definition": "community_layout:section", + "id": "9d47fddd-d2ca-497b-a5f1-2f2bf31734ad", + "type": "component" + } + ], + "id": "bbef42a5-473d-41b9-875f-f713b20d1ee3", + "name": "content", + "title": "Content", + "type": "region" + }, + { + "children": [ + { + "attributes": { + "customHeadTags": "", + "description": "", + "pageTitle": "Home", + "recordId": "{!recordId}" + }, + "definition": "community_builder:seoAssistant", + "id": "8170c0a2-c6d6-4ee4-9d02-77c212a8c081", + "type": "component" + } + ], + "id": "f55d8555-55db-4099-94fa-53a15ca08323", + "name": "sfdcHiddenRegion", + "title": "sfdcHiddenRegion", + "type": "region" + } + ], + "definition": "community_layout:sldsFlexibleLayout", + "id": "bf0f234e-1f83-42df-8296-1500ddd3a91a", + "type": "component" + }, + "themeLayoutType": "Inner", + "viewType": "home" + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/login/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/login/_meta.json new file mode 100644 index 000000000..eb8f11248 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/login/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "login", + "type": "sfdc_cms__view", + "path": "views" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/login/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/login/content.json new file mode 100644 index 000000000..df0dfafea --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/login/content.json @@ -0,0 +1,94 @@ +{ + "type": "sfdc_cms__view", + "title": "Login", + "contentBody": { + "component": { + "children": [ + { + "children": [ + { + "attributes": { + "backgroundImageConfig": "", + "backgroundImageOverlay": "rgba(0,0,0,0)", + "sectionConfig": "{\"UUID\":\"706bd78e-aa69-485e-afd7-fe661b139795\",\"columns\":[{\"UUID\":\"36b0323d-b4bd-48a3-85e3-aad5d96cfc80\",\"columnName\":\"Column 1\",\"columnKey\":\"col1\",\"columnWidth\":\"12\",\"seedComponents\":null}]}" + }, + "children": [ + { + "children": [ + { + "attributes": { + "imageInfo": "", + "logoWidth": 250 + }, + "definition": "dxp_content_layout:siteLogo", + "id": "17163255-ab68-4b15-a076-49a971c75aa2", + "type": "component" + }, + { + "attributes": { + "forgotPasswordLabel": "Forgot your password?", + "forgotPasswordUrl": "/ForgotPassword", + "loginButtonLabel": "Log In", + "passwordLabel": "Password", + "selfRegisterLabel": "Not a member?", + "selfRegisterUrl": "/SelfRegister", + "startUrl": "", + "usernameLabel": "Username" + }, + "definition": "community_login:loginForm", + "id": "8341a53c-5b50-454e-8c89-27de40597e60", + "type": "component" + }, + { + "attributes": { + "employeeLoginLinkLabel": "Are you an employee? Log in" + }, + "definition": "community_login:employeeLoginLink", + "id": "e7e21311-07ad-43c2-9fdc-412691638e7b", + "type": "component" + } + ], + "id": "36b0323d-b4bd-48a3-85e3-aad5d96cfc80", + "name": "col1", + "title": "Column 1", + "type": "region" + } + ], + "definition": "community_layout:section", + "id": "706bd78e-aa69-485e-afd7-fe661b139795", + "type": "component" + } + ], + "id": "36f60db0-2296-4d4d-aa29-c97691ad3a54", + "name": "content", + "title": "Content", + "type": "region" + }, + { + "children": [ + { + "attributes": { + "customHeadTags": "", + "description": "", + "pageTitle": "Login", + "recordId": "{!recordId}" + }, + "definition": "community_builder:seoAssistant", + "id": "a83753fa-1b1d-44ec-b155-ad51ee7f7ea2", + "type": "component" + } + ], + "id": "76b69d1a-5f6c-42c1-911f-b7308b89d9b0", + "name": "sfdcHiddenRegion", + "title": "sfdcHiddenRegion", + "type": "region" + } + ], + "definition": "community_layout:sldsFlexibleLayout", + "id": "bf8a9b3d-ed6e-4c7b-a2a6-af429c86ae16", + "type": "component" + }, + "themeLayoutType": "Inner", + "viewType": "login-main" + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/newsDetail/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/newsDetail/_meta.json new file mode 100644 index 000000000..2cb00203a --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/newsDetail/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "newsDetail", + "type": "sfdc_cms__view", + "path": "views" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/newsDetail/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/newsDetail/content.json new file mode 100644 index 000000000..6cea9abb6 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/newsDetail/content.json @@ -0,0 +1,60 @@ +{ + "type": "sfdc_cms__view", + "title": "News Detail", + "contentBody": { + "component": { + "children": [ + { + "children": [ + { + "attributes": { + "backgroundImageConfig": "", + "backgroundImageOverlay": "rgba(0,0,0,0)", + "sectionConfig": "{\"UUID\":\"3fcfc456-bd6f-42e3-8669-874ab7035348\",\"columns\":[{\"UUID\":\"0303ba1a-580a-4fbd-b2e1-1566be1998cd\",\"columnName\":\"Column 1\",\"columnKey\":\"col1\",\"columnWidth\":\"12\",\"seedComponents\":[]}]}" + }, + "children": [ + { + "id": "0303ba1a-580a-4fbd-b2e1-1566be1998cd", + "name": "col1", + "title": "Column 1", + "type": "region" + } + ], + "definition": "community_layout:section", + "id": "3fcfc456-bd6f-42e3-8669-874ab7035348", + "type": "component" + } + ], + "id": "6e3b78ad-3915-4b11-9f6a-df4a75af35c4", + "name": "content", + "title": "Content", + "type": "region" + }, + { + "children": [ + { + "attributes": { + "customHeadTags": "", + "description": "", + "pageTitle": "{!Content.contentTypeLabel}.{!Content.title}", + "recordId": "{!recordId}" + }, + "definition": "community_builder:seoAssistant", + "id": "2fc66052-9f62-478d-8bed-2dfb18f9882d", + "type": "component" + } + ], + "id": "8c497d6b-f70a-4819-8802-df653ef7a242", + "name": "sfdcHiddenRegion", + "title": "sfdcHiddenRegion", + "type": "region" + } + ], + "definition": "community_layout:sldsFlexibleLayout", + "id": "0722f655-5c0a-4e27-911e-5a8346a47bbb", + "type": "component" + }, + "themeLayoutType": "Inner", + "viewType": "managed-content-sfdc_cms__news" + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/register/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/register/_meta.json new file mode 100644 index 000000000..1d207a98b --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/register/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "register", + "type": "sfdc_cms__view", + "path": "views" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/register/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/register/content.json new file mode 100644 index 000000000..50b2e41d8 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/register/content.json @@ -0,0 +1,87 @@ +{ + "type": "sfdc_cms__view", + "title": "Register", + "contentBody": { + "component": { + "children": [ + { + "children": [ + { + "attributes": { + "backgroundImageConfig": "", + "backgroundImageOverlay": "rgba(0,0,0,0)", + "sectionConfig": "{\"UUID\":\"70d276b1-0489-4094-82ad-3589dc67b9e6\",\"columns\":[{\"UUID\":\"ff340856-7a88-48c2-9eb7-f05684b03fb3\",\"columnName\":\"Column 1\",\"columnKey\":\"col1\",\"columnWidth\":\"12\",\"seedComponents\":null}]}" + }, + "children": [ + { + "children": [ + { + "attributes": { + "imageInfo": "", + "logoWidth": 250 + }, + "definition": "dxp_content_layout:siteLogo", + "id": "355a20c8-6ca1-4ca0-87fa-08a2cd446feb", + "type": "component" + }, + { + "attributes": { + "cancelLinkLabel": "Already have an account?", + "confirmPasswordLabel": "Confirm Password", + "emailLabel": "Email", + "firstnameLabel": "First Name", + "includePasswordField": true, + "lastnameLabel": "Last Name", + "passwordLabel": "Create Password", + "regConfirmUrl": "./CheckPasswordResetEmail", + "submitButtonLabel": "Sign Up" + }, + "definition": "community_login:selfRegister", + "id": "fb97551a-23f8-4a12-966d-ddd6c5e7629c", + "type": "component" + } + ], + "id": "ff340856-7a88-48c2-9eb7-f05684b03fb3", + "name": "col1", + "title": "Column 1", + "type": "region" + } + ], + "definition": "community_layout:section", + "id": "70d276b1-0489-4094-82ad-3589dc67b9e6", + "type": "component" + } + ], + "id": "4e56c77a-da20-48cf-a34c-9635b542dfb6", + "name": "content", + "title": "Content", + "type": "region" + }, + { + "children": [ + { + "attributes": { + "customHeadTags": "", + "description": "", + "pageTitle": "Register", + "recordId": "{!recordId}" + }, + "definition": "community_builder:seoAssistant", + "id": "d83b1e6b-68c0-4233-a004-8038255d3f6e", + "type": "component" + } + ], + "id": "8c220154-b831-4d16-8f2f-3f01339d046c", + "name": "sfdcHiddenRegion", + "title": "sfdcHiddenRegion", + "type": "region" + } + ], + "definition": "community_layout:sldsFlexibleLayout", + "id": "a3e879e1-4fec-40f9-832d-24a8702d9dfe", + "type": "component" + }, + "themeLayoutType": "Inner", + "viewType": "self-register" + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/serviceNotAvailable/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/serviceNotAvailable/_meta.json new file mode 100644 index 000000000..039a745ba --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/serviceNotAvailable/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "serviceNotAvailable", + "type": "sfdc_cms__view", + "path": "views" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/serviceNotAvailable/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/serviceNotAvailable/content.json new file mode 100644 index 000000000..2d118bf73 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/serviceNotAvailable/content.json @@ -0,0 +1,51 @@ +{ + "type": "sfdc_cms__view", + "title": "Service Not Available", + "contentBody": { + "component": { + "children": [ + { + "children": [ + { + "attributes": { + "backgroundImageConfig": "", + "backgroundImageOverlay": "rgba(0,0,0,0)", + "sectionConfig": "{\"UUID\":\"694441c7-8d90-4f3e-8e90-01b449e50dc9\",\"columns\":[{\"UUID\":\"bb75a5f3-e02e-4858-bcbf-2483151aa3b9\",\"columnName\":\"Column 1\",\"columnKey\":\"col1\",\"columnWidth\":\"12\",\"seedComponents\":null}]}" + }, + "children": [ + { + "children": [ + { + "attributes": { + "richTextValue": "
\n\t
\n
\n
\n\t

Looks like the site is temporarily unavailable

\n\t
\n\t

Please try again in a bit.

\n
" + }, + "definition": "community_builder:htmlEditor", + "id": "6e29fe6a-d358-4318-8d3e-d13e4f76fdc5", + "type": "component" + } + ], + "id": "bb75a5f3-e02e-4858-bcbf-2483151aa3b9", + "name": "col1", + "title": "Column 1", + "type": "region" + } + ], + "definition": "community_layout:section", + "id": "694441c7-8d90-4f3e-8e90-01b449e50dc9", + "type": "component" + } + ], + "id": "664d051f-2146-4f10-8331-48333468cabe", + "name": "content", + "title": "Content", + "type": "region" + } + ], + "definition": "community_layout:sldsFlexibleLayout", + "id": "85d05ccf-14f1-4806-bc07-4a3a1e0fa638", + "type": "component" + }, + "themeLayoutType": "ServiceNotAvailable", + "viewType": "service-not-available" + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/tooManyRequests/_meta.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/tooManyRequests/_meta.json new file mode 100644 index 000000000..f9baafc9e --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/tooManyRequests/_meta.json @@ -0,0 +1,5 @@ +{ + "apiName": "tooManyRequests", + "type": "sfdc_cms__view", + "path": "views" +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/tooManyRequests/content.json b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/tooManyRequests/content.json new file mode 100644 index 000000000..c92416e25 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/sfdc_cms__view/tooManyRequests/content.json @@ -0,0 +1,57 @@ +{ + "type": "sfdc_cms__view", + "title": "Too Many Requests", + "contentBody": { + "component": { + "children": [ + { + "children": [ + { + "attributes": { + "backgroundImageConfig": "", + "backgroundImageOverlay": "rgba(0,0,0,0)", + "sectionConfig": "{\"UUID\":\"6de4f0e8-3b6b-4cdc-bb74-a0695dfc82bb\",\"columns\":[{\"UUID\":\"d48e63f2-c9c7-4d32-a09a-5512d000cefc\",\"columnName\":\"Column 1\",\"columnKey\":\"col1\",\"columnWidth\":\"12\",\"seedComponents\":null}]}" + }, + "children": [ + { + "children": [ + { + "attributes": { + "richTextValue": "
\n\t
\n
\n
\n\t

Looks like the site is experiencing higher than usual demand…

\n\t

Don't go anywhere. We'll redirect you in a moment.

\n
" + }, + "definition": "community_builder:htmlEditor", + "id": "e363be05-fad9-4a43-b609-80f3066d4595", + "type": "component" + }, + { + "attributes": {}, + "definition": "experience_availability:autoRefresh", + "id": "66102c7e-ca9e-40f6-b916-5544a95b50d5", + "type": "component" + } + ], + "id": "d48e63f2-c9c7-4d32-a09a-5512d000cefc", + "name": "col1", + "title": "Column 1", + "type": "region" + } + ], + "definition": "community_layout:section", + "id": "6de4f0e8-3b6b-4cdc-bb74-a0695dfc82bb", + "type": "component" + } + ], + "id": "4cfaba5b-060a-4dee-8b30-c8d9fcce1e38", + "name": "content", + "title": "Content", + "type": "region" + } + ], + "definition": "community_layout:sldsFlexibleLayout", + "id": "4f947f8f-675d-4c07-ae96-426c8de8a109", + "type": "component" + }, + "themeLayoutType": "ServiceNotAvailable", + "viewType": "too-many-requests" + } +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/source_plugin_nut1.digitalExperience-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/source_plugin_nut1.digitalExperience-meta.xml new file mode 100644 index 000000000..75da125e8 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/digitalExperiences/site/source_plugin_nut1/source_plugin_nut1.digitalExperience-meta.xml @@ -0,0 +1,4 @@ + + + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/navigationMenus/SFDC_Default_Navigation_source-plugin-nut.navigationMenu-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/navigationMenus/SFDC_Default_Navigation_source-plugin-nut.navigationMenu-meta.xml new file mode 100644 index 000000000..580abf9ff --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/navigationMenus/SFDC_Default_Navigation_source-plugin-nut.navigationMenu-meta.xml @@ -0,0 +1,13 @@ + + + source-plugin-nut + Network + + + + 1 + true + ShowMoreTopics + NavigationalTopic + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/networkBranding/cbsource_plugin_nut.networkBranding b/test/nuts/partialBundleDeleteProject/force-app/main/default/networkBranding/cbsource_plugin_nut.networkBranding new file mode 100644 index 000000000..9e26dfeeb --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/networkBranding/cbsource_plugin_nut.networkBranding @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/networkBranding/cbsource_plugin_nut.networkBranding-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/networkBranding/cbsource_plugin_nut.networkBranding-meta.xml new file mode 100644 index 000000000..c38562246 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/networkBranding/cbsource_plugin_nut.networkBranding-meta.xml @@ -0,0 +1,13 @@ + + + source-plugin-nut + #1797C0 + #FFFFFF + #B1BAC1 + #222222 + #51606E + #DDE4E9 + #222222 + #51606E + #FFFFFF + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/networks/source-plugin-nut.network-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/networks/source-plugin-nut.network-meta.xml new file mode 100644 index 000000000..f56445a09 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/networks/source-plugin-nut.network-meta.xml @@ -0,0 +1,54 @@ + + + false + false + unfiled$public/CommunityChangePasswordEmailTemplate + + true + shetzel@salesforce.com + source-plugin-nut + true + false + true + true + false + false + false + false + false + false + false + true + false + false + false + true + true + true + false + false + unfiled$public/CommunityForgotPasswordEmailTemplate + false + + Admin + + + Standard + Designer + Designer + Designer + Designer + + source_plugin_nut1 + false + true + source_plugin_nut + NotArchived + UnderConstruction + + home + Chatter + + vforcesite + unfiled$public/CommunityWelcomeEmailTemplate + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/AnswersHome.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/AnswersHome.page new file mode 100644 index 000000000..5b4be31f2 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/AnswersHome.page @@ -0,0 +1 @@ + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/AnswersHome.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/AnswersHome.page-meta.xml new file mode 100644 index 000000000..3db9af7b6 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/AnswersHome.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Default Lightning Platform home page for Answers sites + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/BandwidthExceeded.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/BandwidthExceeded.page new file mode 100644 index 000000000..a6b7c0cfd --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/BandwidthExceeded.page @@ -0,0 +1,16 @@ + + + + + + + +
+
+ +
+
+
diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/BandwidthExceeded.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/BandwidthExceeded.page-meta.xml new file mode 100644 index 000000000..d28a95b2b --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/BandwidthExceeded.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Default Lightning Platform Limit Exceeded page + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/ChangePassword.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/ChangePassword.page new file mode 100644 index 000000000..1bb5fbcb3 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/ChangePassword.page @@ -0,0 +1,91 @@ + + + +
+ +
+
+ +
+ + + + +
+ +
+ + + + + + + + + + + + + +
+
+
+
+ +
+
+
+
+
+
+
diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/ChangePassword.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/ChangePassword.page-meta.xml new file mode 100644 index 000000000..e7559c597 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/ChangePassword.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Default Salesforce Sites Change Password page + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesLanding.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesLanding.page new file mode 100644 index 000000000..8a168e453 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesLanding.page @@ -0,0 +1,7 @@ + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesLanding.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesLanding.page-meta.xml new file mode 100644 index 000000000..8b290a1b5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesLanding.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Default experiences landing page + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesLogin.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesLogin.page new file mode 100644 index 000000000..65621dc71 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesLogin.page @@ -0,0 +1,7 @@ + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesLogin.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesLogin.page-meta.xml new file mode 100644 index 000000000..16c4b27e5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesLogin.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Default experiences login page + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesSelfReg.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesSelfReg.page new file mode 100644 index 000000000..3206984fb --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesSelfReg.page @@ -0,0 +1,62 @@ + + +
+ + + + + + + + + + + + + + + + + + +
+
+
+
+
+
diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesSelfReg.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesSelfReg.page-meta.xml new file mode 100644 index 000000000..27c274514 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesSelfReg.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Default experiences self registration page + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesSelfRegConfirm.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesSelfRegConfirm.page new file mode 100644 index 000000000..3a6789a5c --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesSelfRegConfirm.page @@ -0,0 +1,56 @@ + + +
+ +
+
+ +
+ + + + +
+ +
+
+ {!$Label.site.go_to_login_page} +
+
+
+
+ +
+
+
+
+
+
diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesSelfRegConfirm.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesSelfRegConfirm.page-meta.xml new file mode 100644 index 000000000..6c8581e4a --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesSelfRegConfirm.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Default experiences self registration confirmation page + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesTemplate.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesTemplate.page new file mode 100644 index 000000000..9b61288d4 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesTemplate.page @@ -0,0 +1,6 @@ + + + + + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesTemplate.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesTemplate.page-meta.xml new file mode 100644 index 000000000..fb3f2bda4 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/CommunitiesTemplate.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Default template for experiences pages + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/Exception.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/Exception.page new file mode 100644 index 000000000..7a6fcac0a --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/Exception.page @@ -0,0 +1,53 @@ + + + +
+ +
+
+ +
+ + + + + + + + + +
+
+
+
+
+ +
+
+ +
+
+
+
+
+
diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/Exception.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/Exception.page-meta.xml new file mode 100644 index 000000000..d4024c4e0 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/Exception.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Default Lightning Platform page for post-authentication errors + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/FileNotFound.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/FileNotFound.page new file mode 100644 index 000000000..7bbac3549 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/FileNotFound.page @@ -0,0 +1,55 @@ + + + +
+ +
+
+ +
+ + + + + + + + +
+
+ +
+
+
+ +
+
+
+
+
+ +
diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/FileNotFound.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/FileNotFound.page-meta.xml new file mode 100644 index 000000000..37d46446b --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/FileNotFound.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Default Lightning Platform Page/Data Not Found page + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/ForgotPassword.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/ForgotPassword.page new file mode 100644 index 000000000..b3e5e49cc --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/ForgotPassword.page @@ -0,0 +1,70 @@ + + + +
+ +
+
+ +
+ + + + +
+ +
+ + + + + + + + +
+
+
+
+ +
+
+
+
+
+
+
diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/ForgotPassword.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/ForgotPassword.page-meta.xml new file mode 100644 index 000000000..a09827103 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/ForgotPassword.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Default Salesforce Sites Forgot Password Confirmation page + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/ForgotPasswordConfirm.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/ForgotPasswordConfirm.page new file mode 100644 index 000000000..e47d2612b --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/ForgotPasswordConfirm.page @@ -0,0 +1,55 @@ + + + +
+ +
+
+ +
+ + + + +
+ +
+
+ {!$Label.site.go_to_login_page} +
+
+
+
+ +
+
+
+
+
+
+
diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/ForgotPasswordConfirm.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/ForgotPasswordConfirm.page-meta.xml new file mode 100644 index 000000000..0d336326d --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/ForgotPasswordConfirm.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Default Salesforce Sites Forgot Password Confirmation page + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/IdeasHome.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/IdeasHome.page new file mode 100644 index 000000000..6e8c28e35 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/IdeasHome.page @@ -0,0 +1 @@ + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/IdeasHome.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/IdeasHome.page-meta.xml new file mode 100644 index 000000000..58cc3129c --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/IdeasHome.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Default Lightning Platform home page for ideas sites + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/InMaintenance.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/InMaintenance.page new file mode 100644 index 000000000..8be9bef1a --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/InMaintenance.page @@ -0,0 +1,25 @@ + + + + + + + + + +
+
+ +
+
+
diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/InMaintenance.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/InMaintenance.page-meta.xml new file mode 100644 index 000000000..1f0f040af --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/InMaintenance.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Default Lightning Platform In Maintenance page + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/MicrobatchSelfReg.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/MicrobatchSelfReg.page new file mode 100644 index 000000000..34cb44959 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/MicrobatchSelfReg.page @@ -0,0 +1,55 @@ + + +
+ + + + + + + + + + + + + + +
+
+
+
+
+
diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/MicrobatchSelfReg.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/MicrobatchSelfReg.page-meta.xml new file mode 100644 index 000000000..8f7e65595 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/MicrobatchSelfReg.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Process self-registration requests in batches instead of individually + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/MyProfilePage.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/MyProfilePage.page new file mode 100644 index 000000000..1b67551dc --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/MyProfilePage.page @@ -0,0 +1,155 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/MyProfilePage.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/MyProfilePage.page-meta.xml new file mode 100644 index 000000000..ec4637116 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/MyProfilePage.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Default Salesforce Sites My Profile page + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteLogin.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteLogin.page new file mode 100644 index 000000000..31672fab5 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteLogin.page @@ -0,0 +1,47 @@ + + + +
+ +
+
+ +
+ + + + +
+ +
+ +
+
+
+
+ +
+
+
+
+
+
+
diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteLogin.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteLogin.page-meta.xml new file mode 100644 index 000000000..013fb6d68 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteLogin.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Default Salesforce Sites Login page + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteRegister.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteRegister.page new file mode 100644 index 000000000..1cb808a54 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteRegister.page @@ -0,0 +1,102 @@ + + + +
+ +
+
+ +
+ + + + +
+ +
+ + + + + + + + + + + + + + + + + +
+
+
+
+ +
+
+
+
+
+
+
diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteRegister.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteRegister.page-meta.xml new file mode 100644 index 000000000..07bdde08d --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteRegister.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Default Salesforce Sites User Registration page + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteRegisterConfirm.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteRegisterConfirm.page new file mode 100644 index 000000000..e79ce17e9 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteRegisterConfirm.page @@ -0,0 +1,52 @@ + + + +
+ +
+
+ +
+ + + + +
+ +
+
+ {!$Label.site.go_to_login_page} +
+
+
+
+ +
+
+
+
+
+
+
diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteRegisterConfirm.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteRegisterConfirm.page-meta.xml new file mode 100644 index 000000000..248e6c982 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteRegisterConfirm.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Default Salesforce Sites User Registration Confirmation page + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteTemplate.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteTemplate.page new file mode 100644 index 000000000..bdf8db793 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteTemplate.page @@ -0,0 +1,13 @@ + + + + +
+
+ + +
+ + +
+
diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteTemplate.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteTemplate.page-meta.xml new file mode 100644 index 000000000..f21620bb3 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/SiteTemplate.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Default Lightning Platform template for site pages + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/StdExceptionTemplate.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/StdExceptionTemplate.page new file mode 100644 index 000000000..a0e76a84e --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/StdExceptionTemplate.page @@ -0,0 +1,43 @@ + + +
+ +
+
+ +
+ + + + + + + + +
+
+ +
+
+
+
diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/StdExceptionTemplate.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/StdExceptionTemplate.page-meta.xml new file mode 100644 index 000000000..eb05eedea --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/StdExceptionTemplate.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Default Lightning Platform template for standard exception pages + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/Unauthorized.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/Unauthorized.page new file mode 100644 index 000000000..d64909201 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/Unauthorized.page @@ -0,0 +1,70 @@ + + + +
+ +
+
+ +
+ + + + + + +
+
+ +
+ +
+
+
+ + + +
+
+
+ +
+
+
+
+
+
+ +
diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/Unauthorized.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/Unauthorized.page-meta.xml new file mode 100644 index 000000000..ceaf0e78a --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/Unauthorized.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Default Lightning Platform Authorization Required page + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/UnderConstruction.page b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/UnderConstruction.page new file mode 100644 index 000000000..ffae4e7ad --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/UnderConstruction.page @@ -0,0 +1,19 @@ + + + + + + + + + +
+
+ +
+
+
diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/UnderConstruction.page-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/UnderConstruction.page-meta.xml new file mode 100644 index 000000000..c92847696 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/pages/UnderConstruction.page-meta.xml @@ -0,0 +1,8 @@ + + + 56.0 + false + false + Default Lightning Platform Under Construction page + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/profiles/Admin.profile-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/profiles/Admin.profile-meta.xml new file mode 100644 index 000000000..1c4fbdc46 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/profiles/Admin.profile-meta.xml @@ -0,0 +1,937 @@ + + + + ChangePasswordController + true + + + ChangePasswordControllerTest + true + + + CommunitiesLandingController + true + + + CommunitiesLandingControllerTest + true + + + CommunitiesLoginController + true + + + CommunitiesLoginControllerTest + true + + + CommunitiesSelfRegConfirmController + true + + + CommunitiesSelfRegConfirmControllerTest + true + + + CommunitiesSelfRegController + true + + + CommunitiesSelfRegControllerTest + true + + + ForgotPasswordController + true + + + ForgotPasswordControllerTest + true + + + LightningForgotPasswordController + true + + + LightningForgotPasswordControllerTest + true + + + LightningLoginFormController + true + + + LightningLoginFormControllerTest + true + + + LightningSelfRegisterController + true + + + LightningSelfRegisterControllerTest + true + + + MicrobatchSelfRegController + true + + + MicrobatchSelfRegControllerTest + true + + + MyProfilePageController + true + + + MyProfilePageControllerTest + true + + + SiteLoginController + true + + + SiteLoginControllerTest + true + + + SiteRegisterController + true + + + SiteRegisterControllerTest + true + + false + + AnswersHome + true + + + BandwidthExceeded + true + + + ChangePassword + true + + + CommunitiesLanding + true + + + CommunitiesLogin + true + + + CommunitiesSelfReg + true + + + CommunitiesSelfRegConfirm + true + + + CommunitiesTemplate + true + + + Exception + true + + + FileNotFound + true + + + ForgotPassword + true + + + ForgotPasswordConfirm + true + + + IdeasHome + true + + + InMaintenance + true + + + MicrobatchSelfReg + true + + + MyProfilePage + true + + + SiteLogin + true + + + SiteRegister + true + + + SiteRegisterConfirm + true + + + SiteTemplate + true + + + StdExceptionTemplate + true + + + Unauthorized + true + + + UnderConstruction + true + + Salesforce + + true + AIViewInsightObjects + + + true + ActivateContract + + + true + ActivateOrder + + + true + ActivitiesAccess + + + true + AddDirectMessageMembers + + + true + AllowUniversalSearch + + + true + AllowViewKnowledge + + + true + ApexRestServices + + + true + ApiEnabled + + + true + AssignPermissionSets + + + true + AssignTopics + + + true + AuthorApex + + + true + BulkMacrosAllowed + + + true + CanInsertFeedSystemFields + + + true + CanUseNewDashboardBuilder + + + true + CanVerifyComment + + + true + ChangeDashboardColors + + + true + ChatterEditOwnPost + + + true + ChatterEditOwnRecordPost + + + true + ChatterFileLink + + + true + ChatterInternalUser + + + true + ChatterInviteExternalUsers + + + true + ChatterOwnGroups + + + true + ClientSecretRotation + + + true + ConnectOrgToEnvironmentHub + + + true + ConsentApiUpdate + + + true + ContentAdministrator + + + true + ContentWorkspaces + + + true + ConvertLeads + + + true + CreateCustomizeDashboards + + + true + CreateCustomizeFilters + + + true + CreateCustomizeReports + + + true + CreateDashboardFolders + + + true + CreateLtngTempFolder + + + true + CreateReportFolders + + + true + CreateTopics + + + true + CreateWorkBadgeDefinition + + + true + CreateWorkspaces + + + true + CustomizeApplication + + + true + DataExport + + + true + DelegatedTwoFactor + + + true + DeleteActivatedContract + + + true + DeleteTopics + + + true + DistributeFromPersWksp + + + true + EditActivatedOrders + + + true + EditBillingInfo + + + true + EditBrandTemplates + + + true + EditCaseComments + + + true + EditEvent + + + true + EditHtmlTemplates + + + true + EditKnowledge + + + true + EditMyDashboards + + + true + EditMyReports + + + true + EditOppLineItemUnitPrice + + + true + EditPublicDocuments + + + true + EditPublicFilters + + + true + EditPublicTemplates + + + true + EditReadonlyFields + + + true + EditTask + + + true + EditTopics + + + true + EmailMass + + + true + EmailSingle + + + true + EnableCommunityAppLauncher + + + true + EnableNotifications + + + true + ExportReport + + + true + FieldServiceAccess + + + true + GiveRecognitionBadge + + + true + ImportCustomObjects + + + true + ImportLeads + + + true + ImportPersonal + + + true + InstallPackaging + + + true + LightningConsoleAllowedForUser + + + true + LightningExperienceUser + + + true + ListEmailSend + + + true + ManageAnalyticSnapshots + + + true + ManageAuthProviders + + + true + ManageBusinessHourHolidays + + + true + ManageC360AConnections + + + true + ManageCMS + + + true + ManageCallCenters + + + true + ManageCases + + + true + ManageCategories + + + true + ManageCertificates + + + true + ManageContentPermissions + + + true + ManageContentProperties + + + true + ManageContentTypes + + + true + ManageConvMiningReports + + + true + ManageCustomPermissions + + + true + ManageCustomReportTypes + + + true + ManageDashbdsInPubFolders + + + true + ManageDataCategories + + + true + ManageDataIntegrations + + + true + ManageDynamicDashboards + + + true + ManageEmailClientConfig + + + true + ManageEntitlements + + + true + ManageExchangeConfig + + + true + ManageHealthCheck + + + true + ManageHubConnections + + + true + ManageInteraction + + + true + ManageInternalUsers + + + true + ManageIpAddresses + + + true + ManageKnowledge + + + true + ManageKnowledgeImportExport + + + true + ManageLeads + + + true + ManageLoginAccessPolicies + + + true + ManageMobile + + + true + ManageNetworks + + + true + ManageOrchInstsAndWorkItems + + + true + ManagePackageLicenses + + + true + ManagePartners + + + true + ManagePasswordPolicies + + + true + ManageProfilesPermissionsets + + + true + ManagePropositions + + + true + ManagePvtRptsAndDashbds + + + true + ManageRecommendationStrategies + + + true + ManageReleaseUpdates + + + true + ManageRemoteAccess + + + true + ManageReportsInPubFolders + + + true + ManageRoles + + + true + ManageSearchPromotionRules + + + true + ManageSharing + + + true + ManageSolutions + + + true + ManageSubscriptions + + + true + ManageSynonyms + + + true + ManageUnlistedGroups + + + true + ManageUsers + + + true + MassInlineEdit + + + true + MergeTopics + + + true + ModerateChatter + + + true + ModifyAllData + + + true + ModifyDataClassification + + + true + ModifyMetadata + + + true + NewReportBuilder + + + true + OmnichannelInventorySync + + + true + Packaging2 + + + true + Packaging2Delete + + + true + PrivacyDataAccess + + + true + RemoveDirectMessageMembers + + + true + ResetPasswords + + + true + RunReports + + + true + ScheduleReports + + + true + SelectFilesFromSalesforce + + + true + SendCustomNotifications + + + true + SendExternalEmailAvailable + + + true + SendSitRequests + + + true + ShareFilesWithNetworks + + + true + ShareInternalArticles + + + true + ShowCompanyNameAsUserBadge + + + true + SolutionImport + + + true + SubmitMacrosAllowed + + + true + SubscribeDashboardRolesGrps + + + true + SubscribeDashboardToOtherUsers + + + true + SubscribeReportRolesGrps + + + true + SubscribeReportToOtherUsers + + + true + SubscribeReportsRunAsUser + + + true + SubscribeToLightningDashboards + + + true + SubscribeToLightningReports + + + true + TransactionalEmailSend + + + true + TransferAnyCase + + + true + TransferAnyEntity + + + true + TransferAnyLead + + + true + UseOmnichannelInventoryAPIs + + + true + UseTeamReassignWizards + + + true + UseWebLink + + + true + ViewAllData + + + true + ViewAllProfiles + + + true + ViewAllUsers + + + true + ViewDataAssessment + + + true + ViewDataCategories + + + true + ViewDataLeakageEvents + + + true + ViewDeveloperName + + + true + ViewEventLogFiles + + + true + ViewFlowUsageAndFlowEventData + + + true + ViewHealthCheck + + + true + ViewHelpLink + + + true + ViewMLModels + + + true + ViewMyTeamsDashboards + + + true + ViewPlatformEvents + + + true + ViewPublicDashboards + + + true + ViewPublicReports + + + true + ViewRoles + + + true + ViewSetup + + + true + ViewUserPII + + + true + WorkCalibrationUser + + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/profiles/source-plugin-nut Profile.profile-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/profiles/source-plugin-nut Profile.profile-meta.xml new file mode 100644 index 000000000..62ffa1a23 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/profiles/source-plugin-nut Profile.profile-meta.xml @@ -0,0 +1,201 @@ + + + + ChangePasswordController + false + + + ChangePasswordControllerTest + false + + + CommunitiesLandingController + false + + + CommunitiesLandingControllerTest + false + + + CommunitiesLoginController + false + + + CommunitiesLoginControllerTest + false + + + CommunitiesSelfRegConfirmController + false + + + CommunitiesSelfRegConfirmControllerTest + false + + + CommunitiesSelfRegController + false + + + CommunitiesSelfRegControllerTest + false + + + ForgotPasswordController + false + + + ForgotPasswordControllerTest + false + + + LightningForgotPasswordController + false + + + LightningForgotPasswordControllerTest + false + + + LightningLoginFormController + false + + + LightningLoginFormControllerTest + false + + + LightningSelfRegisterController + false + + + LightningSelfRegisterControllerTest + false + + + MicrobatchSelfRegController + false + + + MicrobatchSelfRegControllerTest + false + + + MyProfilePageController + false + + + MyProfilePageControllerTest + false + + + SiteLoginController + false + + + SiteLoginControllerTest + false + + + SiteRegisterController + false + + + SiteRegisterControllerTest + false + + true + + AnswersHome + false + + + BandwidthExceeded + true + + + ChangePassword + false + + + CommunitiesLanding + true + + + CommunitiesLogin + true + + + CommunitiesSelfReg + true + + + CommunitiesSelfRegConfirm + true + + + CommunitiesTemplate + true + + + Exception + true + + + FileNotFound + true + + + ForgotPassword + true + + + ForgotPasswordConfirm + true + + + IdeasHome + false + + + InMaintenance + true + + + MicrobatchSelfReg + true + + + MyProfilePage + false + + + SiteLogin + true + + + SiteRegister + true + + + SiteRegisterConfirm + true + + + SiteTemplate + false + + + StdExceptionTemplate + false + + + Unauthorized + false + + + UnderConstruction + true + + Guest User License + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/sites/source_plugin_nut.site-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/sites/source_plugin_nut.site-meta.xml new file mode 100644 index 000000000..7bcac4ef4 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/sites/source_plugin_nut.site-meta.xml @@ -0,0 +1,30 @@ + + + true + false + false + false + false + false + true + false + CommunitiesLogin + BandwidthExceeded + true + true + SameOriginOnly + true + true + FileNotFound + Exception + InMaintenance + CommunitiesLanding + source-plugin-nut + false + true + CommunitiesSelfReg + test-2m1bmoqk7oag@example.com + test-2m1bmoqk7oag@example.com + ChatterNetwork + vforcesite + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples.resource-meta.xml b/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples.resource-meta.xml new file mode 100644 index 000000000..1ed30e1ac --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples.resource-meta.xml @@ -0,0 +1,6 @@ + + + Public + application/zip + Static resource for sites sample pages + diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/SiteStyles.css b/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/SiteStyles.css new file mode 100644 index 000000000..51eae7b98 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/SiteStyles.css @@ -0,0 +1,28 @@ +.topPanelContainer { + text-align: left; + border: 1px solid #ccc; +} + +.topPanel { + background-color: white; + border: 1px solid #ccc; + padding: 0px; + margin-top: 10px; + margin-bottom: 0px; + margin-left: 10px; + margin-right: 10px; +} + +.title { + font-size: larger; + font-weight: bold; +} + +.poweredByImage { + vertical-align: middle; + margin: 12px 8px 8px 0; +} + +img { + border: none; +} diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/clock.png b/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/clock.png new file mode 100644 index 000000000..dc1cbecf4 Binary files /dev/null and b/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/clock.png differ diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/construction.png b/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/construction.png new file mode 100644 index 000000000..236ead92e Binary files /dev/null and b/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/construction.png differ diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/force_logo.png b/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/force_logo.png new file mode 100644 index 000000000..96122284e Binary files /dev/null and b/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/force_logo.png differ diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/maintenance.png b/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/maintenance.png new file mode 100644 index 000000000..45b636a7a Binary files /dev/null and b/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/maintenance.png differ diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/poweredby.png b/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/poweredby.png new file mode 100644 index 000000000..806fba884 Binary files /dev/null and b/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/poweredby.png differ diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/tools.png b/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/tools.png new file mode 100644 index 000000000..e42885384 Binary files /dev/null and b/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/tools.png differ diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/unauthorized.png b/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/unauthorized.png new file mode 100644 index 000000000..d0d07e26e Binary files /dev/null and b/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/unauthorized.png differ diff --git a/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/warning.png b/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/warning.png new file mode 100644 index 000000000..b49fd8f7a Binary files /dev/null and b/test/nuts/partialBundleDeleteProject/force-app/main/default/staticresources/SiteSamples/img/warning.png differ diff --git a/test/nuts/partialBundleDeleteProject/jest.config.js b/test/nuts/partialBundleDeleteProject/jest.config.js new file mode 100644 index 000000000..410b3d554 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/jest.config.js @@ -0,0 +1,6 @@ +const { jestConfig } = require("@salesforce/sfdx-lwc-jest/config"); + +module.exports = { + ...jestConfig, + modulePathIgnorePatterns: ["/.localdevserver"] +}; diff --git a/test/nuts/partialBundleDeleteProject/package.json b/test/nuts/partialBundleDeleteProject/package.json new file mode 100644 index 000000000..4b6163291 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/package.json @@ -0,0 +1,41 @@ +{ + "name": "salesforce-app", + "private": true, + "version": "1.0.0", + "description": "Salesforce App", + "scripts": { + "lint": "eslint **/{aura,lwc}/**", + "test": "npm run test:unit", + "test:unit": "sfdx-lwc-jest", + "test:unit:watch": "sfdx-lwc-jest --watch", + "test:unit:debug": "sfdx-lwc-jest --debug", + "test:unit:coverage": "sfdx-lwc-jest --coverage", + "prettier": "prettier --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"", + "prettier:verify": "prettier --list-different \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"", + "postinstall": "husky install", + "precommit": "lint-staged" + }, + "devDependencies": { + "@lwc/eslint-plugin-lwc": "^1.1.2", + "@prettier/plugin-xml": "^2.0.1", + "@salesforce/eslint-config-lwc": "^3.2.3", + "@salesforce/eslint-plugin-aura": "^2.0.0", + "@salesforce/eslint-plugin-lightning": "^1.0.0", + "@salesforce/sfdx-lwc-jest": "^1.1.0", + "eslint": "^8.11.0", + "eslint-plugin-import": "^2.25.4", + "eslint-plugin-jest": "^26.1.2", + "husky": "^7.0.4", + "lint-staged": "^12.3.7", + "prettier": "^2.6.0", + "prettier-plugin-apex": "^1.10.0" + }, + "lint-staged": { + "**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}": [ + "prettier --write" + ], + "**/{aura,lwc}/**": [ + "eslint" + ] + } +} diff --git a/test/nuts/partialBundleDeleteProject/sfdx-project.json b/test/nuts/partialBundleDeleteProject/sfdx-project.json new file mode 100644 index 000000000..84b033456 --- /dev/null +++ b/test/nuts/partialBundleDeleteProject/sfdx-project.json @@ -0,0 +1,12 @@ +{ + "packageDirectories": [ + { + "path": "force-app", + "default": true + } + ], + "name": "partialBundleDeleteProject", + "namespace": "", + "sfdcLoginUrl": "https://login.salesforce.com", + "sourceApiVersion": "56.0" +} diff --git a/yarn.lock b/yarn.lock index 4d4982b06..b0d37c728 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1097,7 +1097,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.8": +"@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": version "3.32.12" resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-3.32.12.tgz#853cc5b6a5f95d4896b2d34a40a6042ef9aa6d2c" integrity sha512-27rqSiQWul7b/OkJs19FYDv2M/S4oI4efiGv+6sR7UWv7D7CG1P+0XpgLS3d9xRYF30h98n6VQr4W2a+BWFRvA== @@ -1120,6 +1120,29 @@ jsonwebtoken "9.0.0" ts-retry-promise "^0.7.0" +"@salesforce/core@^3.32.12", "@salesforce/core@^3.32.13", "@salesforce/core@^3.32.14": + version "3.32.14" + resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-3.32.14.tgz#8746656d72776f27bc2cbfba7344d4f7ddd236ca" + integrity sha512-2hpjdYgVFdi9Bgihw8skElhbCi3U0uowrsoCNljtCHrxnm+ORyqwsdDAnNemKUPBL9JGX4ASfWcD4m7F8m9Ysw== + dependencies: + "@salesforce/bunyan" "^2.0.0" + "@salesforce/kit" "^1.8.0" + "@salesforce/schemas" "^1.4.0" + "@salesforce/ts-types" "^1.7.2" + "@types/graceful-fs" "^4.1.5" + "@types/semver" "^7.3.13" + ajv "^8.11.2" + archiver "^5.3.0" + change-case "^4.1.2" + debug "^3.2.7" + faye "^1.4.0" + form-data "^4.0.0" + graceful-fs "^4.2.9" + js2xmlparser "^4.0.1" + jsforce "^2.0.0-beta.19" + jsonwebtoken "9.0.0" + ts-retry-promise "^0.7.0" + "@salesforce/dev-config@^3.0.0", "@salesforce/dev-config@^3.0.1": version "3.1.0" resolved "https://registry.npmjs.org/@salesforce/dev-config/-/dev-config-3.1.0.tgz#8eb5b35860ff60d1c1dc3fd9329b01a28475d5b9" @@ -1164,7 +1187,7 @@ 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.1": +"@salesforce/kit@^1.7.1", "@salesforce/kit@^1.8.0": version "1.8.1" resolved "https://registry.yarnpkg.com/@salesforce/kit/-/kit-1.8.1.tgz#289ca9f4094157c1deaa77cc72f295fdc71f043f" integrity sha512-fCMKh7yWiWtl9C2OXamwkzxD7r6MddrsxKAvlMYZTrTeVG/wxrV03NIhARVkT0k12CsmWNYv83VSPobBAufiIA== @@ -1173,6 +1196,15 @@ shx "^0.3.3" tslib "^2.2.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== + dependencies: + "@salesforce/ts-types" "^1.7.2" + shx "^0.3.3" + tslib "^2.2.0" + "@salesforce/plugin-command-reference@^1.5.8": version "1.5.8" resolved "https://registry.yarnpkg.com/@salesforce/plugin-command-reference/-/plugin-command-reference-1.5.8.tgz#326aae0912dc1fd16b6a42688e66261ccd586654" @@ -1262,7 +1294,7 @@ chalk "^4" inquirer "^8.2.5" -"@salesforce/source-deploy-retrieve@^7.5.19", "@salesforce/source-deploy-retrieve@^7.5.22", "@salesforce/source-deploy-retrieve@^7.7.0": +"@salesforce/source-deploy-retrieve@^7.5.19": version "7.7.0" resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-7.7.0.tgz#30b81028f27a196e37a68b591c761db4ee53ddd3" integrity sha512-Lw6+e1oxFUZgw8cArcE3wXGIJyPWC18eMIkF+oGD8ZhEEcQavAEzxLAKsYMrzZyIDXP/6dqZ5/McdJ1FAfe5BQ== @@ -1281,6 +1313,25 @@ proxy-from-env "^1.1.0" unzipper "0.10.11" +"@salesforce/source-deploy-retrieve@^7.7.3": + version "7.7.3" + resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-7.7.3.tgz#476d4bae3cd74330ca0c65c74f7bf60999b9513d" + integrity sha512-CPn5AqsFLz9ZIFgL+4NmOwiizO4xWNelwdLan/aTzUqmxPo+XSZ8MYU+tD/1Pe8/fjmzLh/iYePiAMpXdphGRw== + dependencies: + "@salesforce/core" "^3.32.13" + "@salesforce/kit" "^1.8.0" + "@salesforce/ts-types" "^1.7.2" + archiver "^5.3.1" + fast-xml-parser "^3.21.1" + got "^11.8.6" + graceful-fs "^4.2.10" + ignore "^5.2.4" + mime "2.6.0" + minimatch "^5.1.2" + proxy-agent "^5.0.0" + proxy-from-env "^1.1.0" + unzipper "0.10.11" + "@salesforce/source-testkit@^2.0.29": version "2.0.29" resolved "https://registry.yarnpkg.com/@salesforce/source-testkit/-/source-testkit-2.0.29.tgz#394967e2028be482cae78eb0cf57a8696aee21df" @@ -1298,14 +1349,14 @@ sinon "^10.0.0" strip-ansi "^7.0.1" -"@salesforce/source-tracking@^2.2.16": - version "2.2.16" - resolved "https://registry.yarnpkg.com/@salesforce/source-tracking/-/source-tracking-2.2.16.tgz#ad5384f0d1de83caa9600be9b5dd28c1bf931ef1" - integrity sha512-DLhuYxAqpTOm+snEAblbYw06YfLQcZC+g2vSWmpayTjoE8wNd07mDEXBi9RDFQrszVTp48NWSuK227E4KwRCaw== +"@salesforce/source-tracking@^2.2.18": + version "2.2.18" + resolved "https://registry.yarnpkg.com/@salesforce/source-tracking/-/source-tracking-2.2.18.tgz#f58c1da69d802de36eee000b09772b04f2cbb0ad" + integrity sha512-xxzudKTaHTrYoOclL+PwOsTHFK8rWB952SFcAW+DmrilddKlq39Qu9SbffKTNFKPpKt9YuX7x+d3sbVQReFCpg== dependencies: "@salesforce/core" "^3.32.12" - "@salesforce/kit" "^1.8.1" - "@salesforce/source-deploy-retrieve" "^7.5.22" + "@salesforce/kit" "^1.8.3" + "@salesforce/source-deploy-retrieve" "^7.7.3" graceful-fs "^4.2.10" isomorphic-git "1.17.0" ts-retry-promise "^0.7.0" @@ -5672,13 +5723,20 @@ minimatch@4.2.1: dependencies: brace-expansion "^1.1.7" -minimatch@^5.0.1, minimatch@^5.1.0, minimatch@^5.1.2: +minimatch@^5.0.1, minimatch@^5.1.0: version "5.1.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.2.tgz#0939d7d6f0898acbd1508abe534d1929368a8fff" integrity sha512-bNH9mmM9qsJ2X4r2Nat1B//1dJVcn3+iBLa3IgqJ7EbGaDNepL9QSHOxN4ng33s52VMMhhIfgCYDk3C4ZmlDAg== dependencies: brace-expansion "^2.0.1" +minimatch@^5.1.2: + version "5.1.6" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.6.tgz#1cfcb8cf5522ea69952cd2af95ae09477f122a96" + integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g== + dependencies: + brace-expansion "^2.0.1" + minimist-options@4.1.0: version "4.1.0" resolved "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz#c0655713c53a8a2ebd77ffa247d342c40f010619"