sfdx-jayree 4.3.18 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/LICENSE.txt +2 -2
- package/README.md +21 -21
- package/config/countrystate.json +93 -0
- package/lib/{src/commands → commands}/jayree/flowtestcoverage.d.ts +0 -0
- package/lib/{src/commands → commands}/jayree/flowtestcoverage.js +5 -8
- package/lib/{src/commands → commands}/jayree/flowtestcoverage.js.map +1 -1
- package/lib/{src/commands → commands}/jayree/org/configure/country.d.ts +0 -0
- package/lib/{src/commands → commands}/jayree/org/configure/country.js +18 -45
- package/lib/commands/jayree/org/configure/country.js.map +1 -0
- package/lib/{src/commands → commands}/jayree/org/configure/index.d.ts +0 -0
- package/lib/{src/commands → commands}/jayree/org/configure/index.js +22 -51
- package/lib/commands/jayree/org/configure/index.js.map +1 -0
- package/lib/{src/commands → commands}/jayree/org/configure/state.d.ts +0 -0
- package/lib/{src/commands → commands}/jayree/org/configure/state.js +22 -53
- package/lib/commands/jayree/org/configure/state.js.map +1 -0
- package/lib/{src/commands → commands}/jayree/org/settings.d.ts +0 -0
- package/lib/{src/commands → commands}/jayree/org/settings.js +20 -49
- package/lib/{src/commands → commands}/jayree/org/settings.js.map +1 -1
- package/lib/{src/commands → commands}/jayree/org/streaming.d.ts +0 -0
- package/lib/{src/commands → commands}/jayree/org/streaming.js +6 -9
- package/lib/commands/jayree/org/streaming.js.map +1 -0
- package/lib/{src/commands → commands}/jayree/source/fix.d.ts +0 -0
- package/lib/{src/commands → commands}/jayree/source/fix.js +10 -13
- package/lib/commands/jayree/source/fix.js.map +1 -0
- package/lib/{src/commands → commands}/jayree/source/tracking/list.d.ts +0 -0
- package/lib/{src/commands → commands}/jayree/source/tracking/list.js +13 -42
- package/lib/commands/jayree/source/tracking/list.js.map +1 -0
- package/lib/{src/commands → commands}/jayree/source/tracking/store/get.d.ts +0 -0
- package/lib/commands/jayree/source/tracking/store/get.js +53 -0
- package/lib/commands/jayree/source/tracking/store/get.js.map +1 -0
- package/lib/{src/commands → commands}/jayree/source/tracking/store/set.d.ts +0 -0
- package/lib/commands/jayree/source/tracking/store/set.js +69 -0
- package/lib/commands/jayree/source/tracking/store/set.js.map +1 -0
- package/lib/{src/commands → commands}/jayree/version.d.ts +0 -0
- package/lib/{src/commands → commands}/jayree/version.js +8 -11
- package/lib/commands/jayree/version.js.map +1 -0
- package/lib/{src/hooks → hooks}/changelog.d.ts +0 -0
- package/lib/{src/hooks → hooks}/changelog.js +19 -47
- package/lib/hooks/changelog.js.map +1 -0
- package/lib/{src/hooks → hooks}/postretrieve.d.ts +0 -0
- package/lib/{src/hooks → hooks}/postretrieve.js +21 -48
- package/lib/hooks/postretrieve.js.map +1 -0
- package/lib/{src/hooks → hooks}/preretrieve.d.ts +0 -0
- package/lib/hooks/preretrieve.js +15 -0
- package/lib/hooks/preretrieve.js.map +1 -0
- package/lib/{src/hooks → hooks}/prerun.d.ts +0 -0
- package/lib/hooks/prerun.js +69 -0
- package/lib/hooks/prerun.js.map +1 -0
- package/lib/{src/index.d.ts → index.d.ts} +0 -0
- package/lib/{src/index.js → index.js} +1 -3
- package/lib/index.js.map +1 -0
- package/lib/{src/jayreeSfdxCommand.d.ts → jayreeSfdxCommand.d.ts} +0 -0
- package/lib/{src/jayreeSfdxCommand.js → jayreeSfdxCommand.js} +2 -6
- package/lib/jayreeSfdxCommand.js.map +1 -0
- package/lib/{src/utils → utils}/config.d.ts +0 -0
- package/lib/{src/utils → utils}/config.js +11 -39
- package/lib/utils/config.js.map +1 -0
- package/lib/{src/utils → utils}/hookUtils.d.ts +0 -0
- package/lib/utils/hookUtils.js +20 -0
- package/lib/utils/hookUtils.js.map +1 -0
- package/lib/{src/utils → utils}/object-path.d.ts +1 -1
- package/lib/{src/utils → utils}/object-path.js +4 -30
- package/lib/utils/object-path.js.map +1 -0
- package/lib/{src/utils → utils}/puppeteer/configuretasks.d.ts +0 -0
- package/lib/{src/utils → utils}/puppeteer/configuretasks.js +12 -21
- package/lib/utils/puppeteer/configuretasks.js.map +1 -0
- package/lib/{src/utils → utils}/puppeteer/statetasks.d.ts +0 -0
- package/lib/{src/utils → utils}/puppeteer/statetasks.js +17 -51
- package/lib/utils/puppeteer/statetasks.js.map +1 -0
- package/lib/{src/utils → utils}/renderer.d.ts +0 -0
- package/lib/{src/utils → utils}/renderer.js +36 -45
- package/lib/utils/renderer.js.map +1 -0
- package/lib/{src/utils → utils}/souceUtils.d.ts +0 -1
- package/lib/{src/utils → utils}/souceUtils.js +107 -144
- package/lib/utils/souceUtils.js.map +1 -0
- package/lib/{src/utils → utils}/stateFolderHandler.d.ts +0 -0
- package/lib/utils/stateFolderHandler.js +40 -0
- package/lib/utils/stateFolderHandler.js.map +1 -0
- package/lib/{src/utils → utils}/xml.d.ts +0 -1
- package/lib/utils/xml.js +34 -0
- package/lib/utils/xml.js.map +1 -0
- package/messages/configure.json +5 -0
- package/messages/sourceretrievefix.json +5 -0
- package/oclif.manifest.json +1 -1
- package/package.json +41 -39
- package/lib/config/countrystate.json +0 -93
- package/lib/src/commands/jayree/org/configure/country.js.map +0 -1
- package/lib/src/commands/jayree/org/configure/index.js.map +0 -1
- package/lib/src/commands/jayree/org/configure/state.js.map +0 -1
- package/lib/src/commands/jayree/org/streaming.js.map +0 -1
- package/lib/src/commands/jayree/source/fix.js.map +0 -1
- package/lib/src/commands/jayree/source/tracking/list.js.map +0 -1
- package/lib/src/commands/jayree/source/tracking/store/get.js +0 -82
- package/lib/src/commands/jayree/source/tracking/store/get.js.map +0 -1
- package/lib/src/commands/jayree/source/tracking/store/set.js +0 -98
- package/lib/src/commands/jayree/source/tracking/store/set.js.map +0 -1
- package/lib/src/commands/jayree/version.js.map +0 -1
- package/lib/src/hooks/changelog.js.map +0 -1
- package/lib/src/hooks/postretrieve.js.map +0 -1
- package/lib/src/hooks/preretrieve.js +0 -19
- package/lib/src/hooks/preretrieve.js.map +0 -1
- package/lib/src/hooks/prerun.js +0 -99
- package/lib/src/hooks/prerun.js.map +0 -1
- package/lib/src/index.js.map +0 -1
- package/lib/src/jayreeSfdxCommand.js.map +0 -1
- package/lib/src/utils/config.js.map +0 -1
- package/lib/src/utils/hookUtils.js +0 -49
- package/lib/src/utils/hookUtils.js.map +0 -1
- package/lib/src/utils/object-path.js.map +0 -1
- package/lib/src/utils/puppeteer/configuretasks.js.map +0 -1
- package/lib/src/utils/puppeteer/statetasks.js.map +0 -1
- package/lib/src/utils/renderer.js.map +0 -1
- package/lib/src/utils/souceUtils.js.map +0 -1
- package/lib/src/utils/stateFolderHandler.js +0 -69
- package/lib/src/utils/stateFolderHandler.js.map +0 -1
- package/lib/src/utils/xml.js +0 -48
- package/lib/src/utils/xml.js.map +0 -1
- package/messages/configure.js +0 -6
- package/messages/sourceretrievefix.js +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,42 @@
|
|
|
1
|
+
## [4.4.1](https://github.com/jayree/sfdx-jayree-plugin/compare/v4.4.0...v4.4.1) (2022-09-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** bump @jayree/sfdx-plugin-legacy from 1.1.0 to 1.1.1 ([9c2237c](https://github.com/jayree/sfdx-jayree-plugin/commit/9c2237c145febc72ff621dd11c8d63cc1e63475b))
|
|
7
|
+
* **deps:** bump @jayree/sfdx-plugin-manifest from 2.3.0 to 2.3.1 ([71e04ee](https://github.com/jayree/sfdx-jayree-plugin/commit/71e04eed0517fed615bce039131271a9a6af681a))
|
|
8
|
+
* **deps:** bump @jayree/sfdx-plugin-prettier from 1.2.0 to 1.2.1 ([8f9f967](https://github.com/jayree/sfdx-jayree-plugin/commit/8f9f967d63b45e5ce2d1a334bee2d9e002d8f6af))
|
|
9
|
+
* **deps:** bump @oclif/core from 1.16.1 to 1.16.3 ([eb2c9ae](https://github.com/jayree/sfdx-jayree-plugin/commit/eb2c9ae5ccdcea50a4fb81724e209ff16df25410))
|
|
10
|
+
* **deps:** bump @salesforce/command from 5.2.6 to 5.2.8 ([0edb4ef](https://github.com/jayree/sfdx-jayree-plugin/commit/0edb4efe497605ea9cb19d66819aa5ab6f990b54))
|
|
11
|
+
* **deps:** bump @salesforce/kit from 1.6.0 to 1.6.1 ([c9ef7a9](https://github.com/jayree/sfdx-jayree-plugin/commit/c9ef7a9d6e623690d7fa92ea6902ec9a89995b31))
|
|
12
|
+
* **deps:** bump @salesforce/source-deploy-retrieve from 6.7.0 to 6.8.1 ([a0c7086](https://github.com/jayree/sfdx-jayree-plugin/commit/a0c70864ae949a37b2f2ff8c02729bfc9db8e49e))
|
|
13
|
+
* **deps:** bump @salesforce/source-tracking from 2.2.2 to 2.2.3 ([76e19ca](https://github.com/jayree/sfdx-jayree-plugin/commit/76e19ca4ea7d41bb55768dd86df5606ac704d8f0))
|
|
14
|
+
* **deps:** bump fast-xml-parser from 4.0.9 to 4.0.10 ([2273df9](https://github.com/jayree/sfdx-jayree-plugin/commit/2273df9768c198c6731a54e309f31d6cafe018c7))
|
|
15
|
+
* **deps:** bump puppeteer from 17.1.3 to 18.0.4 ([74553c1](https://github.com/jayree/sfdx-jayree-plugin/commit/74553c108135b8f848311af00fc47bb394e63ccf))
|
|
16
|
+
|
|
17
|
+
# [4.4.0](https://github.com/jayree/sfdx-jayree-plugin/compare/v4.3.18...v4.4.0) (2022-09-08)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **deps:** bump @jayree/sfdx-plugin-legacy from 1.0.2 to 1.1.0 ([1c1d0d7](https://github.com/jayree/sfdx-jayree-plugin/commit/1c1d0d798125b7fed237b1cd1ff45de66c59b255))
|
|
23
|
+
* **deps:** bump @jayree/sfdx-plugin-manifest from 2.2.10 to 2.3.0 ([19525e4](https://github.com/jayree/sfdx-jayree-plugin/commit/19525e40c86f4d49084be7419f46bc436242eda3))
|
|
24
|
+
* **deps:** bump @jayree/sfdx-plugin-prettier from 1.1.7 to 1.2.0 ([91c767b](https://github.com/jayree/sfdx-jayree-plugin/commit/91c767b881db0bd10f501772d055c2174b60abc2))
|
|
25
|
+
* **deps:** bump @oclif/core from 1.13.10 to 1.16.0 ([4963ab7](https://github.com/jayree/sfdx-jayree-plugin/commit/4963ab79eec67e9bf2411fe7204c5b8592f48947))
|
|
26
|
+
* **deps:** bump @oclif/core from 1.16.0 to 1.16.1 ([dfcfb6a](https://github.com/jayree/sfdx-jayree-plugin/commit/dfcfb6ae3f8a87e129145fefff3e4d21851f9b42))
|
|
27
|
+
* **deps:** bump @salesforce/command from 5.2.4 to 5.2.6 ([9ba33be](https://github.com/jayree/sfdx-jayree-plugin/commit/9ba33bee5b8b9c36b7bb675f758aa1aed4c80501))
|
|
28
|
+
* **deps:** bump @salesforce/kit from 1.5.45 to 1.6.0 ([01941b7](https://github.com/jayree/sfdx-jayree-plugin/commit/01941b75811166d201e0b547e1e82ba119782c3e))
|
|
29
|
+
* **deps:** bump @salesforce/source-deploy-retrieve from 6.3.0 to 6.5.0 ([42c603b](https://github.com/jayree/sfdx-jayree-plugin/commit/42c603b43ea2510dade2d70acbdf4ed396e0557c))
|
|
30
|
+
* **deps:** bump @salesforce/source-deploy-retrieve from 6.5.0 to 6.7.0 ([9b8f1d8](https://github.com/jayree/sfdx-jayree-plugin/commit/9b8f1d84b8341f09713d0572a98a8a59bd7a63e0))
|
|
31
|
+
* **deps:** bump listr2 from 5.0.2 to 5.0.5 ([9f9b4aa](https://github.com/jayree/sfdx-jayree-plugin/commit/9f9b4aab85cfc02197f18ebd883223d67e6d9652))
|
|
32
|
+
* **deps:** bump puppeteer from 16.1.0 to 17.1.1 ([5e0af79](https://github.com/jayree/sfdx-jayree-plugin/commit/5e0af79c6f25d99a07ac781b3bf42ff20484e023))
|
|
33
|
+
* **deps:** bump puppeteer from 17.1.1 to 17.1.3 ([f60b8ad](https://github.com/jayree/sfdx-jayree-plugin/commit/f60b8ad05e2449fa4ffdf02add9ede8a1a5bc85a))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* move to ESM ([a649c40](https://github.com/jayree/sfdx-jayree-plugin/commit/a649c40bbd86a7be3c4be667082b661229d9d581))
|
|
39
|
+
|
|
1
40
|
## [4.3.18](https://github.com/jayree/sfdx-jayree-plugin/compare/v4.3.17...v4.3.18) (2022-08-11)
|
|
2
41
|
|
|
3
42
|
|
package/LICENSE.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright (c)
|
|
1
|
+
Copyright (c) 2022, jayree
|
|
2
2
|
All rights reserved.
|
|
3
3
|
|
|
4
4
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
@@ -9,4 +9,4 @@ Redistribution and use in source and binary forms, with or without modification,
|
|
|
9
9
|
|
|
10
10
|
* Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
11
11
|
|
|
12
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
12
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ $ sfdx plugins:install sfdx-jayree
|
|
|
24
24
|
$ sfdx jayree:[COMMAND]
|
|
25
25
|
running command...
|
|
26
26
|
$ sfdx plugins
|
|
27
|
-
sfdx-jayree 4.
|
|
27
|
+
sfdx-jayree 4.4.1
|
|
28
28
|
$ sfdx help jayree:[COMMAND]
|
|
29
29
|
USAGE
|
|
30
30
|
$ sfdx jayree:COMMAND
|
|
@@ -102,7 +102,7 @@ EXAMPLES
|
|
|
102
102
|
❯ ChangeSet1
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
-
_See code: [@jayree/sfdx-plugin-legacy](https://github.com/jayree/sfdx-plugin-legacy/blob/v1.
|
|
105
|
+
_See code: [@jayree/sfdx-plugin-legacy](https://github.com/jayree/sfdx-plugin-legacy/blob/v1.1.1/src/commands/jayree/automation/changeset/deploy.ts)_
|
|
106
106
|
|
|
107
107
|
### `sfdx jayree:automation:changeset:list`
|
|
108
108
|
|
|
@@ -126,7 +126,7 @@ DESCRIPTION
|
|
|
126
126
|
list incomming change sets of an org (beta)
|
|
127
127
|
```
|
|
128
128
|
|
|
129
|
-
_See code: [@jayree/sfdx-plugin-legacy](https://github.com/jayree/sfdx-plugin-legacy/blob/v1.
|
|
129
|
+
_See code: [@jayree/sfdx-plugin-legacy](https://github.com/jayree/sfdx-plugin-legacy/blob/v1.1.1/src/commands/jayree/automation/changeset/list.ts)_
|
|
130
130
|
|
|
131
131
|
### `sfdx jayree:automation:ltngsync:status`
|
|
132
132
|
|
|
@@ -164,7 +164,7 @@ EXAMPLES
|
|
|
164
164
|
userContacts/userEvents: Exchange to Salesforce sync status... Initial sync completed/Initial sync completed
|
|
165
165
|
```
|
|
166
166
|
|
|
167
|
-
_See code: [@jayree/sfdx-plugin-legacy](https://github.com/jayree/sfdx-plugin-legacy/blob/v1.
|
|
167
|
+
_See code: [@jayree/sfdx-plugin-legacy](https://github.com/jayree/sfdx-plugin-legacy/blob/v1.1.1/src/commands/jayree/automation/ltngsync/status.ts)_
|
|
168
168
|
|
|
169
169
|
### `sfdx jayree:flowtestcoverage`
|
|
170
170
|
|
|
@@ -194,7 +194,7 @@ EXAMPLES
|
|
|
194
194
|
...
|
|
195
195
|
```
|
|
196
196
|
|
|
197
|
-
_See code: [src/
|
|
197
|
+
_See code: [src/commands/jayree/flowtestcoverage.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.4.1/src/commands/jayree/flowtestcoverage.ts)_
|
|
198
198
|
|
|
199
199
|
### `sfdx jayree:manifest:cleanup`
|
|
200
200
|
|
|
@@ -224,7 +224,7 @@ EXAMPLES
|
|
|
224
224
|
$ sfdx jayree:manifest:cleanup --manifest=package.xml --file=packageignore.xml
|
|
225
225
|
```
|
|
226
226
|
|
|
227
|
-
_See code: [@jayree/sfdx-plugin-manifest](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.
|
|
227
|
+
_See code: [@jayree/sfdx-plugin-manifest](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.3.1/src/commands/jayree/manifest/cleanup.ts)_
|
|
228
228
|
|
|
229
229
|
### `sfdx jayree:manifest:generate`
|
|
230
230
|
|
|
@@ -268,7 +268,7 @@ EXAMPLES
|
|
|
268
268
|
<Package xmlns='http://soap.sforce.com/2006/04/metadata'>...</Package>
|
|
269
269
|
```
|
|
270
270
|
|
|
271
|
-
_See code: [@jayree/sfdx-plugin-manifest](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.
|
|
271
|
+
_See code: [@jayree/sfdx-plugin-manifest](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.3.1/src/commands/jayree/manifest/generate.ts)_
|
|
272
272
|
|
|
273
273
|
### `sfdx jayree:manifest:git:diff`
|
|
274
274
|
|
|
@@ -322,7 +322,7 @@ EXAMPLES
|
|
|
322
322
|
uses the diff of what is unique in branchB (REF2)
|
|
323
323
|
```
|
|
324
324
|
|
|
325
|
-
_See code: [@jayree/sfdx-plugin-manifest](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.
|
|
325
|
+
_See code: [@jayree/sfdx-plugin-manifest](https://github.com/jayree/sfdx-plugin-manifest/blob/v2.3.1/src/commands/jayree/manifest/git/diff.ts)_
|
|
326
326
|
|
|
327
327
|
### `sfdx jayree:org:configure`
|
|
328
328
|
|
|
@@ -358,7 +358,7 @@ EXAMPLES
|
|
|
358
358
|
$ sfdx jayree:org:configure --concurrent --tasks="Asset Settings","Activity Settings"
|
|
359
359
|
```
|
|
360
360
|
|
|
361
|
-
_See code: [src/
|
|
361
|
+
_See code: [src/commands/jayree/org/configure/index.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.4.1/src/commands/jayree/org/configure/index.ts)_
|
|
362
362
|
|
|
363
363
|
### `sfdx jayree:org:configure:country`
|
|
364
364
|
|
|
@@ -382,7 +382,7 @@ DESCRIPTION
|
|
|
382
382
|
update country integration values in the State/Country Picklists
|
|
383
383
|
```
|
|
384
384
|
|
|
385
|
-
_See code: [src/
|
|
385
|
+
_See code: [src/commands/jayree/org/configure/country.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.4.1/src/commands/jayree/org/configure/country.ts)_
|
|
386
386
|
|
|
387
387
|
### `sfdx jayree:org:configure:state`
|
|
388
388
|
|
|
@@ -411,7 +411,7 @@ DESCRIPTION
|
|
|
411
411
|
import (create/update) states into the State/Country Picklists
|
|
412
412
|
```
|
|
413
413
|
|
|
414
|
-
_See code: [src/
|
|
414
|
+
_See code: [src/commands/jayree/org/configure/state.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.4.1/src/commands/jayree/org/configure/state.ts)_
|
|
415
415
|
|
|
416
416
|
### `sfdx jayree:org:settings`
|
|
417
417
|
|
|
@@ -444,7 +444,7 @@ EXAMPLES
|
|
|
444
444
|
$ sfdx jayree:org:settings -u MyTestOrg1 -w
|
|
445
445
|
```
|
|
446
446
|
|
|
447
|
-
_See code: [src/
|
|
447
|
+
_See code: [src/commands/jayree/org/settings.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.4.1/src/commands/jayree/org/settings.ts)_
|
|
448
448
|
|
|
449
449
|
### `sfdx jayree:org:streaming`
|
|
450
450
|
|
|
@@ -473,7 +473,7 @@ EXAMPLES
|
|
|
473
473
|
...
|
|
474
474
|
```
|
|
475
475
|
|
|
476
|
-
_See code: [src/
|
|
476
|
+
_See code: [src/commands/jayree/org/streaming.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.4.1/src/commands/jayree/org/streaming.ts)_
|
|
477
477
|
|
|
478
478
|
### `sfdx jayree:packagedescription:create`
|
|
479
479
|
|
|
@@ -498,7 +498,7 @@ EXAMPLES
|
|
|
498
498
|
$ sfdx jayree:packagedescription:create --file FILENAME --description 'DESCRIPTION'
|
|
499
499
|
```
|
|
500
500
|
|
|
501
|
-
_See code: [@jayree/sfdx-plugin-legacy](https://github.com/jayree/sfdx-plugin-legacy/blob/v1.
|
|
501
|
+
_See code: [@jayree/sfdx-plugin-legacy](https://github.com/jayree/sfdx-plugin-legacy/blob/v1.1.1/src/commands/jayree/packagedescription/create.ts)_
|
|
502
502
|
|
|
503
503
|
### `sfdx jayree:packagedescription:get`
|
|
504
504
|
|
|
@@ -523,7 +523,7 @@ EXAMPLES
|
|
|
523
523
|
Description of Package FILENAME
|
|
524
524
|
```
|
|
525
525
|
|
|
526
|
-
_See code: [@jayree/sfdx-plugin-legacy](https://github.com/jayree/sfdx-plugin-legacy/blob/v1.
|
|
526
|
+
_See code: [@jayree/sfdx-plugin-legacy](https://github.com/jayree/sfdx-plugin-legacy/blob/v1.1.1/src/commands/jayree/packagedescription/get.ts)_
|
|
527
527
|
|
|
528
528
|
### `sfdx jayree:packagedescription:remove`
|
|
529
529
|
|
|
@@ -547,7 +547,7 @@ EXAMPLES
|
|
|
547
547
|
$ sfdx jayree:packagedescription:remove --file FILENAME
|
|
548
548
|
```
|
|
549
549
|
|
|
550
|
-
_See code: [@jayree/sfdx-plugin-legacy](https://github.com/jayree/sfdx-plugin-legacy/blob/v1.
|
|
550
|
+
_See code: [@jayree/sfdx-plugin-legacy](https://github.com/jayree/sfdx-plugin-legacy/blob/v1.1.1/src/commands/jayree/packagedescription/remove.ts)_
|
|
551
551
|
|
|
552
552
|
### `sfdx jayree:packagedescription:set`
|
|
553
553
|
|
|
@@ -572,7 +572,7 @@ EXAMPLES
|
|
|
572
572
|
$ sfdx jayree:packagedescription:set --file FILENAME --description 'NEW DESCRIPTION'
|
|
573
573
|
```
|
|
574
574
|
|
|
575
|
-
_See code: [@jayree/sfdx-plugin-legacy](https://github.com/jayree/sfdx-plugin-legacy/blob/v1.
|
|
575
|
+
_See code: [@jayree/sfdx-plugin-legacy](https://github.com/jayree/sfdx-plugin-legacy/blob/v1.1.1/src/commands/jayree/packagedescription/set.ts)_
|
|
576
576
|
|
|
577
577
|
### `sfdx jayree:source:fix`
|
|
578
578
|
|
|
@@ -601,7 +601,7 @@ DESCRIPTION
|
|
|
601
601
|
(examples will follow)
|
|
602
602
|
```
|
|
603
603
|
|
|
604
|
-
_See code: [src/
|
|
604
|
+
_See code: [src/commands/jayree/source/fix.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.4.1/src/commands/jayree/source/fix.ts)_
|
|
605
605
|
|
|
606
606
|
### `sfdx jayree:source:tracking:list`
|
|
607
607
|
|
|
@@ -632,7 +632,7 @@ EXAMPLES
|
|
|
632
632
|
$ sfdx jayree:source:tracking:list -u me@my.org -r 101
|
|
633
633
|
```
|
|
634
634
|
|
|
635
|
-
_See code: [src/
|
|
635
|
+
_See code: [src/commands/jayree/source/tracking/list.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.4.1/src/commands/jayree/source/tracking/list.ts)_
|
|
636
636
|
|
|
637
637
|
### `sfdx jayree:source:tracking:store:get`
|
|
638
638
|
|
|
@@ -660,7 +660,7 @@ EXAMPLES
|
|
|
660
660
|
$ sfdx jayree:source:tracking:store:get -u me@my.org
|
|
661
661
|
```
|
|
662
662
|
|
|
663
|
-
_See code: [src/
|
|
663
|
+
_See code: [src/commands/jayree/source/tracking/store/get.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.4.1/src/commands/jayree/source/tracking/store/get.ts)_
|
|
664
664
|
|
|
665
665
|
### `sfdx jayree:source:tracking:store:set`
|
|
666
666
|
|
|
@@ -691,7 +691,7 @@ EXAMPLES
|
|
|
691
691
|
$ sfdx jayree:source:tracking:store:set -u MyTestOrg1 -r 101
|
|
692
692
|
```
|
|
693
693
|
|
|
694
|
-
_See code: [src/
|
|
694
|
+
_See code: [src/commands/jayree/source/tracking/store/set.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.4.1/src/commands/jayree/source/tracking/store/set.ts)_
|
|
695
695
|
<!-- commandsstop -->
|
|
696
696
|
|
|
697
697
|
## Hooks
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"updatecheck": "#bodyCell > table > tbody > tr:nth-child(1) > td > span",
|
|
3
|
+
"update": {
|
|
4
|
+
"editName": "#configurecountry:form:blockEditCountry:j_id9:j_id37:editName",
|
|
5
|
+
"editIsoCode": "#configurecountry:form:blockEditCountry:j_id9:j_id40:editIsoCode",
|
|
6
|
+
"editIntVal": "#configurecountry:form:blockEditCountry:j_id9:j_id43:editIntVal",
|
|
7
|
+
"editActive": "#configurecountry:form:blockEditCountry:j_id9:j_id46:editActive",
|
|
8
|
+
"editVisible": "#configurecountry:form:blockEditCountry:j_id9:j_id49:editVisible",
|
|
9
|
+
"save": "#configurecountry:form:blockEditCountry:j_id8:saveButtonTop"
|
|
10
|
+
},
|
|
11
|
+
"create": {
|
|
12
|
+
"editName": "#configurenew:j_id1:blockNew:j_id9:nameSectionItem:editName",
|
|
13
|
+
"editIsoCode": "#configurenew:j_id1:blockNew:j_id9:codeSectionItem:editIsoCode",
|
|
14
|
+
"editIntVal": "#configurenew:j_id1:blockNew:j_id9:intValSectionItem:editIntVal",
|
|
15
|
+
"editActive": "#configurenew:j_id1:blockNew:j_id9:activeSectionItem:editActive",
|
|
16
|
+
"editVisible": "#configurenew:j_id1:blockNew:j_id9:visibleSectionItem:editVisible",
|
|
17
|
+
"save": "#configurenew:j_id1:blockNew:j_id43:addButton"
|
|
18
|
+
},
|
|
19
|
+
"setCountry": {
|
|
20
|
+
"editIntVal": "#configurecountry:form:blockEditCountry:j_id33:j_id40:editIntVal",
|
|
21
|
+
"save": "#configurecountry:form:blockTopButtons:j_id6:saveButtonTop"
|
|
22
|
+
},
|
|
23
|
+
"fix": {},
|
|
24
|
+
"deactivate": {
|
|
25
|
+
"CN": {
|
|
26
|
+
"autonomous region": ["CN-45", "CN-15", "CN-64", "CN-65", "CN-54"],
|
|
27
|
+
"municipality": ["CN-11", "CN-50", "CN-31", "CN-12"],
|
|
28
|
+
"province": [
|
|
29
|
+
"CN-34",
|
|
30
|
+
"CN-35",
|
|
31
|
+
"CN-62",
|
|
32
|
+
"CN-44",
|
|
33
|
+
"CN-52",
|
|
34
|
+
"CN-46",
|
|
35
|
+
"CN-13",
|
|
36
|
+
"CN-23",
|
|
37
|
+
"CN-41",
|
|
38
|
+
"CN-42",
|
|
39
|
+
"CN-43",
|
|
40
|
+
"CN-32",
|
|
41
|
+
"CN-36",
|
|
42
|
+
"CN-22",
|
|
43
|
+
"CN-21",
|
|
44
|
+
"CN-63",
|
|
45
|
+
"CN-61",
|
|
46
|
+
"CN-37",
|
|
47
|
+
"CN-14",
|
|
48
|
+
"CN-51",
|
|
49
|
+
"CN-71",
|
|
50
|
+
"CN-53",
|
|
51
|
+
"CN-33"
|
|
52
|
+
],
|
|
53
|
+
"special administrative region": ["CN-92", "CN-91"]
|
|
54
|
+
},
|
|
55
|
+
"IT": { "province": ["IT-AO", "IT-CI", "IT-GO", "IT-OG", "IT-OT", "IT-PN", "IT-TS", "IT-UD", "IT-VS"] },
|
|
56
|
+
"MX": {
|
|
57
|
+
"federal district": ["MX-DF"],
|
|
58
|
+
"state": [
|
|
59
|
+
"MX-AG",
|
|
60
|
+
"MX-BC",
|
|
61
|
+
"MX-BS",
|
|
62
|
+
"MX-CM",
|
|
63
|
+
"MX-CH",
|
|
64
|
+
"MX-CS",
|
|
65
|
+
"MX-CO",
|
|
66
|
+
"MX-CL",
|
|
67
|
+
"MX-DG",
|
|
68
|
+
"MX-GR",
|
|
69
|
+
"MX-GT",
|
|
70
|
+
"MX-HG",
|
|
71
|
+
"MX-JA",
|
|
72
|
+
"MX-ME",
|
|
73
|
+
"MX-MI",
|
|
74
|
+
"MX-MO",
|
|
75
|
+
"MX-NA",
|
|
76
|
+
"MX-NL",
|
|
77
|
+
"MX-OA",
|
|
78
|
+
"MX-PB",
|
|
79
|
+
"MX-QE",
|
|
80
|
+
"MX-QR",
|
|
81
|
+
"MX-SI",
|
|
82
|
+
"MX-SL",
|
|
83
|
+
"MX-SO",
|
|
84
|
+
"MX-TB",
|
|
85
|
+
"MX-TM",
|
|
86
|
+
"MX-TL",
|
|
87
|
+
"MX-VE",
|
|
88
|
+
"MX-YU",
|
|
89
|
+
"MX-ZA"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
File without changes
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
1
|
/*
|
|
4
2
|
* Copyright (c) 2021, jayree
|
|
5
3
|
* All rights reserved.
|
|
6
4
|
* Licensed under the BSD 3-Clause license.
|
|
7
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
8
6
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const messages =
|
|
13
|
-
class FlowTestCoverage extends
|
|
7
|
+
import { SfdxCommand } from '@salesforce/command';
|
|
8
|
+
import { Messages } from '@salesforce/core';
|
|
9
|
+
Messages.importMessagesDirectory(new URL('./', import.meta.url).pathname);
|
|
10
|
+
const messages = Messages.loadMessages('sfdx-jayree', 'flowtestcoverage');
|
|
11
|
+
export default class FlowTestCoverage extends SfdxCommand {
|
|
14
12
|
async run() {
|
|
15
13
|
const conn = this.org.getConnection();
|
|
16
14
|
const query1 = await conn.tooling.query("SELECT count_distinct(DefinitionId) FROM Flow WHERE Status = 'Active' AND(ProcessType = 'AutolaunchedFlow' OR ProcessType = 'Workflow' OR ProcessType = 'CustomEvent' OR ProcessType = 'InvocableProcess')");
|
|
@@ -52,7 +50,6 @@ class FlowTestCoverage extends command_1.SfdxCommand {
|
|
|
52
50
|
};
|
|
53
51
|
}
|
|
54
52
|
}
|
|
55
|
-
exports.default = FlowTestCoverage;
|
|
56
53
|
FlowTestCoverage.description = messages.getMessage('commandDescription');
|
|
57
54
|
FlowTestCoverage.examples = [
|
|
58
55
|
`$ sfdx jayree:flowtestcoverage
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowtestcoverage.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"fl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AA2E,EAAE,SAAS;YACtF,iDAAiD,EAAE,OAAO;SAC3D,CAAC;IACJ,CAAC;;AA9Ea,4BAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAExD,yBAAQ,GAAG;IACvB;;;;CAIH;CACE,CAAC;AAEe,iCAAgB,GAAG,IAAI,CAAC;AACxB,uCAAsB,GAAG,KAAK,CAAC;AAC/B,gCAAe,GAAG,KAAK,CAAC"}
|
|
File without changes
|
|
@@ -1,51 +1,25 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
1
|
/*
|
|
30
2
|
* Copyright (c) 2021, jayree
|
|
31
3
|
* All rights reserved.
|
|
32
4
|
* Licensed under the BSD 3-Clause license.
|
|
33
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
34
6
|
*/
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
|
|
7
|
+
import { createRequire } from 'module';
|
|
8
|
+
import { flags, SfdxCommand } from '@salesforce/command';
|
|
9
|
+
import { Messages } from '@salesforce/core';
|
|
10
|
+
import chalk from 'chalk';
|
|
11
|
+
import { CliUx } from '@oclif/core';
|
|
12
|
+
import puppeteer from 'puppeteer';
|
|
13
|
+
import { Tabletojson as tabletojson } from 'tabletojson';
|
|
14
|
+
import config from '../../../../utils/config.js';
|
|
15
|
+
const require = createRequire(import.meta.url);
|
|
16
|
+
const CSconfig = require('../../../../../config/countrystate.json');
|
|
17
|
+
Messages.importMessagesDirectory(new URL('./', import.meta.url).pathname);
|
|
18
|
+
const messages = Messages.loadMessages('sfdx-jayree', 'createstatecountry');
|
|
19
|
+
export default class UpdateCountry extends SfdxCommand {
|
|
46
20
|
async run() {
|
|
47
21
|
let spinnermessage = '';
|
|
48
|
-
const browser = await
|
|
22
|
+
const browser = await puppeteer.launch(config().puppeteer);
|
|
49
23
|
const page = await browser.newPage();
|
|
50
24
|
const setHTMLInputElementValue = async (newvalue, element) => {
|
|
51
25
|
element = element.replace(/:/g, '\\:');
|
|
@@ -63,7 +37,7 @@ class UpdateCountry extends command_1.SfdxCommand {
|
|
|
63
37
|
return page.evaluate((val, s) => (document.querySelector(s).value = val), newvalue, element);
|
|
64
38
|
}
|
|
65
39
|
};
|
|
66
|
-
const bar =
|
|
40
|
+
const bar = CliUx.ux.progress({
|
|
67
41
|
barCompleteChar: '\u2588',
|
|
68
42
|
barIncompleteChar: '\u2591',
|
|
69
43
|
format: 'State and Country/Territory Picklist | [{bar}] {percentage}% | ETA: {eta}s | {value}/{total} | {text}',
|
|
@@ -96,7 +70,7 @@ class UpdateCountry extends command_1.SfdxCommand {
|
|
|
96
70
|
}
|
|
97
71
|
this.ux.stopSpinner();
|
|
98
72
|
const table = await page.evaluate(() => document.querySelector('.list').outerHTML);
|
|
99
|
-
const list =
|
|
73
|
+
const list = tabletojson.convert(table)[0];
|
|
100
74
|
let curr = 0;
|
|
101
75
|
if (!this.flags.silent) {
|
|
102
76
|
bar.start(list.length, 0, {
|
|
@@ -135,7 +109,7 @@ class UpdateCountry extends command_1.SfdxCommand {
|
|
|
135
109
|
await browser.close();
|
|
136
110
|
}
|
|
137
111
|
}
|
|
138
|
-
this.ux.error(
|
|
112
|
+
this.ux.error(chalk.bold('ERROR running jayree:automation:country:update: ') + chalk.red(error.message));
|
|
139
113
|
process.exit(1);
|
|
140
114
|
}
|
|
141
115
|
// eslint-disable-next-line no-unused-expressions
|
|
@@ -150,10 +124,9 @@ class UpdateCountry extends command_1.SfdxCommand {
|
|
|
150
124
|
process.exit(0);
|
|
151
125
|
}
|
|
152
126
|
}
|
|
153
|
-
exports.default = UpdateCountry;
|
|
154
127
|
UpdateCountry.description = messages.getMessage('commandCountryDescription');
|
|
155
128
|
UpdateCountry.flagsConfig = {
|
|
156
|
-
silent:
|
|
129
|
+
silent: flags.boolean({
|
|
157
130
|
description: messages.getMessage('silentFlagDescription'),
|
|
158
131
|
required: false,
|
|
159
132
|
default: false,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"country.js","sourceRoot":"","sources":["../../../../../src/commands/jayree/org/configure/country.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM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IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,mDAAmD,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YAC1G,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;SACjB;QACD,iDAAiD;QACjD,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC1F,GAAG,CAAC,IAAI,EAAE,CAAC;QACX,IAAI,IAAI,EAAE;YACR,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;YACnB,IAAI,OAAO,EAAE;gBACX,MAAM,OAAO,CAAC,KAAK,EAAE,CAAC;aACvB;SACF;QACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;;AA5Ia,yBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC;AAE5D,yBAAW,GAAG;IAC7B,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC;QACpB,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,CAAC;QACzD,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,IAAI;KACb,CAAC;CACH,CAAC;AAEe,8BAAgB,GAAG,IAAI,CAAC;AACxB,oCAAsB,GAAG,KAAK,CAAC;AAC/B,6BAAe,GAAG,KAAK,CAAC"}
|
|
File without changes
|
|
@@ -1,72 +1,44 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
1
|
/*
|
|
30
2
|
* Copyright (c) 2021, jayree
|
|
31
3
|
* All rights reserved.
|
|
32
4
|
* Licensed under the BSD 3-Clause license.
|
|
33
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
34
6
|
*/
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
const debug =
|
|
47
|
-
class ConfigureOrg extends
|
|
7
|
+
import { flags, SfdxCommand } from '@salesforce/command';
|
|
8
|
+
import { Messages } from '@salesforce/core';
|
|
9
|
+
import { traverse } from '@salesforce/core/lib/util/internal.js';
|
|
10
|
+
import { Logger, Listr } from 'listr2';
|
|
11
|
+
import kit from '@salesforce/kit';
|
|
12
|
+
import Debug from 'debug';
|
|
13
|
+
import config from '../../../../utils/config.js';
|
|
14
|
+
import { PuppeteerConfigureTasks } from '../../../../utils/puppeteer/configuretasks.js';
|
|
15
|
+
Messages.importMessagesDirectory(new URL('./', import.meta.url).pathname);
|
|
16
|
+
const messages = Messages.loadMessages('sfdx-jayree', 'configure');
|
|
17
|
+
const logger = new Logger({ useIcons: false });
|
|
18
|
+
const debug = Debug('jayree:org:configure');
|
|
19
|
+
export default class ConfigureOrg extends SfdxCommand {
|
|
48
20
|
async run() {
|
|
49
21
|
const isContentTypeJSON = kit.env.getString('SFDX_CONTENT_TYPE', '').toUpperCase() === 'JSON';
|
|
50
22
|
this.isOutputEnabled = !(process.argv.find((arg) => arg === '--json') || isContentTypeJSON);
|
|
51
23
|
await this.org.refreshAuth();
|
|
52
|
-
const configPath = await
|
|
24
|
+
const configPath = await traverse.forFile(process.cwd(), '.sfdx-jayree.json');
|
|
53
25
|
let allTasks = [];
|
|
54
26
|
let selectedSetupTasks = [];
|
|
55
27
|
if (this.flags.tasks) {
|
|
56
28
|
this.flags.tasks.forEach((task) => {
|
|
57
|
-
selectedSetupTasks = selectedSetupTasks.concat((
|
|
29
|
+
selectedSetupTasks = selectedSetupTasks.concat(config(configPath).setupTasks.filter((t) => task === t.title));
|
|
58
30
|
});
|
|
59
31
|
allTasks = selectedSetupTasks;
|
|
60
32
|
}
|
|
61
33
|
else {
|
|
62
|
-
selectedSetupTasks = (
|
|
63
|
-
allTasks = (
|
|
34
|
+
selectedSetupTasks = config(configPath).setupTasks.filter((t) => t.isactive === true);
|
|
35
|
+
allTasks = config(configPath).setupTasks;
|
|
64
36
|
}
|
|
65
|
-
const setupTaskRunner = new
|
|
37
|
+
const setupTaskRunner = new PuppeteerConfigureTasks({
|
|
66
38
|
accessToken: this.org.getConnection().accessToken,
|
|
67
39
|
instanceUrl: this.org.getConnection().instanceUrl,
|
|
68
40
|
}, selectedSetupTasks);
|
|
69
|
-
const setupTasks = new
|
|
41
|
+
const setupTasks = new Listr([], { concurrent: this.flags.concurrent, exitOnError: false });
|
|
70
42
|
allTasks.forEach((el) => {
|
|
71
43
|
setupTasks.add({
|
|
72
44
|
title: el.title,
|
|
@@ -80,7 +52,7 @@ class ConfigureOrg extends command_1.SfdxCommand {
|
|
|
80
52
|
options: { persistentOutput: false, bottomBar: 5 },
|
|
81
53
|
});
|
|
82
54
|
});
|
|
83
|
-
const mainTasks = new
|
|
55
|
+
const mainTasks = new Listr([
|
|
84
56
|
{
|
|
85
57
|
title: 'Open Browser',
|
|
86
58
|
skip: () => !(selectedSetupTasks.length > 0),
|
|
@@ -126,7 +98,6 @@ class ConfigureOrg extends command_1.SfdxCommand {
|
|
|
126
98
|
}
|
|
127
99
|
}
|
|
128
100
|
}
|
|
129
|
-
exports.default = ConfigureOrg;
|
|
130
101
|
ConfigureOrg.description = messages.getMessage('commandDescription');
|
|
131
102
|
ConfigureOrg.examples = [
|
|
132
103
|
`$ sfdx jayree:org:configure
|
|
@@ -135,11 +106,11 @@ $ sfdx jayree:org:configure --tasks="Asset Settings","Activity Settings"
|
|
|
135
106
|
$ sfdx jayree:org:configure --concurrent --tasks="Asset Settings","Activity Settings"`,
|
|
136
107
|
];
|
|
137
108
|
ConfigureOrg.flagsConfig = {
|
|
138
|
-
tasks:
|
|
109
|
+
tasks: flags.array({
|
|
139
110
|
char: 't',
|
|
140
111
|
description: messages.getMessage('tasks'),
|
|
141
112
|
}),
|
|
142
|
-
concurrent:
|
|
113
|
+
concurrent: flags.boolean({
|
|
143
114
|
description: messages.getMessage('concurrent'),
|
|
144
115
|
default: false,
|
|
145
116
|
}),
|