@jayree/sfdx-plugin-legacy 1.0.0

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/LICENSE.txt +12 -0
  3. package/README.md +251 -0
  4. package/lib/commands/jayree/automation/changeset/deploy.d.ts +23 -0
  5. package/lib/commands/jayree/automation/changeset/deploy.js +397 -0
  6. package/lib/commands/jayree/automation/changeset/deploy.js.map +1 -0
  7. package/lib/commands/jayree/automation/changeset/list.d.ts +11 -0
  8. package/lib/commands/jayree/automation/changeset/list.js +98 -0
  9. package/lib/commands/jayree/automation/changeset/list.js.map +1 -0
  10. package/lib/commands/jayree/automation/ltngsync/status.d.ts +22 -0
  11. package/lib/commands/jayree/automation/ltngsync/status.js +239 -0
  12. package/lib/commands/jayree/automation/ltngsync/status.js.map +1 -0
  13. package/lib/commands/jayree/packagedescription/create.d.ts +17 -0
  14. package/lib/commands/jayree/packagedescription/create.js +62 -0
  15. package/lib/commands/jayree/packagedescription/create.js.map +1 -0
  16. package/lib/commands/jayree/packagedescription/get.d.ts +16 -0
  17. package/lib/commands/jayree/packagedescription/get.js +57 -0
  18. package/lib/commands/jayree/packagedescription/get.js.map +1 -0
  19. package/lib/commands/jayree/packagedescription/remove.d.ts +16 -0
  20. package/lib/commands/jayree/packagedescription/remove.js +82 -0
  21. package/lib/commands/jayree/packagedescription/remove.js.map +1 -0
  22. package/lib/commands/jayree/packagedescription/set.d.ts +17 -0
  23. package/lib/commands/jayree/packagedescription/set.js +76 -0
  24. package/lib/commands/jayree/packagedescription/set.js.map +1 -0
  25. package/lib/hooks/changelog.d.ts +2 -0
  26. package/lib/hooks/changelog.js +123 -0
  27. package/lib/hooks/changelog.js.map +1 -0
  28. package/lib/index.d.ts +2 -0
  29. package/lib/index.js +10 -0
  30. package/lib/index.js.map +1 -0
  31. package/lib/utils/xml.d.ts +5 -0
  32. package/lib/utils/xml.js +50 -0
  33. package/lib/utils/xml.js.map +1 -0
  34. package/messages/createpackagedescription.json +5 -0
  35. package/messages/deploychangeset.json +8 -0
  36. package/messages/getpackagedescription.json +4 -0
  37. package/messages/listchangeset.json +3 -0
  38. package/messages/ltngsyncstatus.json +6 -0
  39. package/messages/removepackagedescription.json +4 -0
  40. package/messages/setpackagedescription.json +5 -0
  41. package/oclif.manifest.json +1 -0
  42. package/package.json +160 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ # 1.0.0 (2022-06-04)
2
+
3
+
4
+ ### Features
5
+
6
+ * initial commit ([5f72324](https://github.com/jayree/sfdx-plugin-legacy/commit/5f72324eb2004984806026962af1500eea6023d4))
package/LICENSE.txt ADDED
@@ -0,0 +1,12 @@
1
+ Copyright (c) 2021, jayree
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5
+
6
+ * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7
+
8
+ * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9
+
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
+
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 ADDED
@@ -0,0 +1,251 @@
1
+ # @jayree/sfdx-plugin-legacy
2
+
3
+ jayree sfdx legacy commands
4
+
5
+ [![sfdx](https://img.shields.io/badge/cli-sfdx-brightgreen.svg)](https://developer.salesforce.com/tools/sfdxcli)
6
+ [![Version](https://img.shields.io/npm/v/@jayree/sfdx-plugin-legacy.svg)](https://npmjs.org/package/@jayree/sfdx-plugin-legacy)
7
+ [![test-and-release](https://github.com/jayree/sfdx-plugin-manifest/actions/workflows/release.yml/badge.svg)](https://github.com/jayree/sfdx-plugin-manifest/actions/workflows/release.yml)
8
+ [![Downloads/week](https://img.shields.io/npm/dw/@jayree/sfdx-plugin-legacy.svg)](https://npmjs.org/package/@jayree/sfdx-plugin-legacy)
9
+ [![License](https://img.shields.io/npm/l/@jayree/sfdx-plugin-legacy.svg)](https://github.com/jayree-plugins/sfdx-plugin-manifest/blob/main/package.json)
10
+
11
+ <!-- toc -->
12
+ * [Usage](#usage)
13
+ * [Commands](#commands)
14
+ <!-- tocstop -->
15
+
16
+ ## Usage
17
+
18
+ <!-- usage -->
19
+ ```sh-session
20
+ $ sfdx plugins:install @jayree/sfdx-plugin-legacy
21
+ $ sfdx jayree:[COMMAND]
22
+ running command...
23
+ $ sfdx plugins
24
+ @jayree/sfdx-plugin-legacy 1.0.0
25
+ $ sfdx help jayree:[COMMAND]
26
+ USAGE
27
+ $ sfdx jayree:COMMAND
28
+ ...
29
+ ```
30
+ <!-- usagestop -->
31
+
32
+ ## Commands
33
+
34
+ <!-- commands -->
35
+ * [`sfdx jayree:automation:changeset:deploy`](#sfdx-jayreeautomationchangesetdeploy)
36
+ * [`sfdx jayree:automation:changeset:list`](#sfdx-jayreeautomationchangesetlist)
37
+ * [`sfdx jayree:automation:ltngsync:status`](#sfdx-jayreeautomationltngsyncstatus)
38
+ * [`sfdx jayree:packagedescription:create`](#sfdx-jayreepackagedescriptioncreate)
39
+ * [`sfdx jayree:packagedescription:get`](#sfdx-jayreepackagedescriptionget)
40
+ * [`sfdx jayree:packagedescription:remove`](#sfdx-jayreepackagedescriptionremove)
41
+ * [`sfdx jayree:packagedescription:set`](#sfdx-jayreepackagedescriptionset)
42
+
43
+ ### `sfdx jayree:automation:changeset:deploy`
44
+
45
+ deploy incomming change set to an org (beta)
46
+
47
+ ```
48
+ USAGE
49
+ $ sfdx jayree:automation:changeset:deploy [-r <string> -l <string>] [-c] [--nodialog -s <string>] [-u <string>] [--apiversion
50
+ <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
51
+
52
+ FLAGS
53
+ -c, --checkonly validate deploy but don’t save to
54
+ the org (default:false)
55
+ -l, --testlevel=<option> deployment testing level
56
+ (Default,RunSpecifiedTests,RunLocalT
57
+ ests,RunAllTestsInOrg)
58
+ <options: Default|RunSpecifiedTests|
59
+ RunLocalTests|RunAllTestsInOrg>
60
+ -r, --runtests=<value> tests to run if --testlevel
61
+ RunSpecifiedTests
62
+ -s, --changeset=<value> name of changeset to deploy
63
+ -u, --targetusername=<value> username or alias for the target
64
+ org; overrides default target org
65
+ --apiversion=<value> override the api version used for
66
+ api requests made by this command
67
+ --json format output as json
68
+ --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
69
+ this command invocation
70
+ --nodialog don't show the dialog wizard
71
+
72
+ DESCRIPTION
73
+ deploy incomming change set to an org (beta)
74
+
75
+ EXAMPLES
76
+ $ sfdx jayree:automation:changeset:deploy -s ChangeSet -l RunLocalTests --nodialog
77
+ Deploying Change Set 'ChangeSet'...
78
+ === Status
79
+ Status: Pending
80
+ jobid: 0Xxx100000xx1x1
81
+
82
+ $ sfdx jayree:automation:changeset:deploy
83
+ ? Change Sets Awaiting Deployment (Use arrow keys)
84
+ ChangeSet3
85
+ ChangeSet2
86
+ ❯ ChangeSet1
87
+ ```
88
+
89
+ _See code: [src/commands/jayree/automation/changeset/deploy.ts](https://github.com/jayree/sfdx-plugin-legacy/blob/v1.0.0/src/commands/jayree/automation/changeset/deploy.ts)_
90
+
91
+ ### `sfdx jayree:automation:changeset:list`
92
+
93
+ list incomming change sets of an org (beta)
94
+
95
+ ```
96
+ USAGE
97
+ $ sfdx jayree:automation:changeset:list [-u <string>] [--apiversion <string>] [--json] [--loglevel
98
+ trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
99
+
100
+ FLAGS
101
+ -u, --targetusername=<value> username or alias for the target
102
+ org; overrides default target org
103
+ --apiversion=<value> override the api version used for
104
+ api requests made by this command
105
+ --json format output as json
106
+ --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
107
+ this command invocation
108
+
109
+ DESCRIPTION
110
+ list incomming change sets of an org (beta)
111
+ ```
112
+
113
+ _See code: [src/commands/jayree/automation/changeset/list.ts](https://github.com/jayree/sfdx-plugin-legacy/blob/v1.0.0/src/commands/jayree/automation/changeset/list.ts)_
114
+
115
+ ### `sfdx jayree:automation:ltngsync:status`
116
+
117
+ check the Lightning Sync User Sync Status and reset sync if needed (beta)
118
+
119
+ ```
120
+ USAGE
121
+ $ sfdx jayree:automation:ltngsync:status -o <string> [-s] [-w <integer>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
122
+ trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
123
+
124
+ FLAGS
125
+ -o, --officeuser=<value> (required) 'name' (firstname
126
+ lastname) of the SF user
127
+ -s, --statusonly get Lightning Sync status of the SF
128
+ user, only
129
+ -u, --targetusername=<value> username or alias for the target
130
+ org; overrides default target org
131
+ -w, --wait=<value> wait time for command to wait for
132
+ status change in minutes (default:
133
+ infinitely)
134
+ --apiversion=<value> override the api version used for
135
+ api requests made by this command
136
+ --json format output as json
137
+ --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
138
+ this command invocation
139
+
140
+ DESCRIPTION
141
+ check the Lightning Sync User Sync Status and reset sync if needed (beta)
142
+
143
+ EXAMPLES
144
+ $ sfdx jayree:automation:ltngsync:status -o 'Name'
145
+ configSetup: User assigned to active Lightning Sync configuration... Yes
146
+ userContacts/userEvents: Salesforce and Exchange email addresses linked... Linked/Linked
147
+ userContacts/userEvents: Salesforce to Exchange sync status... Initial sync completed/Initial sync completed
148
+ userContacts/userEvents: Exchange to Salesforce sync status... Initial sync completed/Initial sync completed
149
+ ```
150
+
151
+ _See code: [src/commands/jayree/automation/ltngsync/status.ts](https://github.com/jayree/sfdx-plugin-legacy/blob/v1.0.0/src/commands/jayree/automation/ltngsync/status.ts)_
152
+
153
+ ### `sfdx jayree:packagedescription:create`
154
+
155
+ creates an empty package with the description
156
+
157
+ ```
158
+ USAGE
159
+ $ sfdx jayree:packagedescription:create (-d <string> -f <string>) [--json] [--loglevel
160
+ trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
161
+
162
+ FLAGS
163
+ -d, --description=<value> (required) new description value
164
+ -f, --file=<value> (required) file to create
165
+ --json format output as json
166
+ --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
167
+ this command invocation
168
+
169
+ DESCRIPTION
170
+ creates an empty package with the description
171
+
172
+ EXAMPLES
173
+ $ sfdx jayree:packagedescription:create --file FILENAME --description 'DESCRIPTION'
174
+ ```
175
+
176
+ _See code: [src/commands/jayree/packagedescription/create.ts](https://github.com/jayree/sfdx-plugin-legacy/blob/v1.0.0/src/commands/jayree/packagedescription/create.ts)_
177
+
178
+ ### `sfdx jayree:packagedescription:get`
179
+
180
+ get the description within a package
181
+
182
+ ```
183
+ USAGE
184
+ $ sfdx jayree:packagedescription:get -f <string> [--json] [--loglevel
185
+ trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
186
+
187
+ FLAGS
188
+ -f, --file=<value> (required) file to read
189
+ --json format output as json
190
+ --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
191
+ this command invocation
192
+
193
+ DESCRIPTION
194
+ get the description within a package
195
+
196
+ EXAMPLES
197
+ $ sfdx jayree:packagedescription:get --file FILENAME
198
+ Description of Package FILENAME
199
+ ```
200
+
201
+ _See code: [src/commands/jayree/packagedescription/get.ts](https://github.com/jayree/sfdx-plugin-legacy/blob/v1.0.0/src/commands/jayree/packagedescription/get.ts)_
202
+
203
+ ### `sfdx jayree:packagedescription:remove`
204
+
205
+ remove the description within a package
206
+
207
+ ```
208
+ USAGE
209
+ $ sfdx jayree:packagedescription:remove -f <string> [--json] [--loglevel
210
+ trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
211
+
212
+ FLAGS
213
+ -f, --file=<value> (required) file to read
214
+ --json format output as json
215
+ --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
216
+ this command invocation
217
+
218
+ DESCRIPTION
219
+ remove the description within a package
220
+
221
+ EXAMPLES
222
+ $ sfdx jayree:packagedescription:remove --file FILENAME
223
+ ```
224
+
225
+ _See code: [src/commands/jayree/packagedescription/remove.ts](https://github.com/jayree/sfdx-plugin-legacy/blob/v1.0.0/src/commands/jayree/packagedescription/remove.ts)_
226
+
227
+ ### `sfdx jayree:packagedescription:set`
228
+
229
+ set the description within a package
230
+
231
+ ```
232
+ USAGE
233
+ $ sfdx jayree:packagedescription:set (-d <string> -f <string>) [--json] [--loglevel
234
+ trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
235
+
236
+ FLAGS
237
+ -d, --description=<value> (required) new description value
238
+ -f, --file=<value> (required) file to read
239
+ --json format output as json
240
+ --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
241
+ this command invocation
242
+
243
+ DESCRIPTION
244
+ set the description within a package
245
+
246
+ EXAMPLES
247
+ $ sfdx jayree:packagedescription:set --file FILENAME --description 'NEW DESCRIPTION'
248
+ ```
249
+
250
+ _See code: [src/commands/jayree/packagedescription/set.ts](https://github.com/jayree/sfdx-plugin-legacy/blob/v1.0.0/src/commands/jayree/packagedescription/set.ts)_
251
+ <!-- commandsstop -->
@@ -0,0 +1,23 @@
1
+ import { flags, SfdxCommand } from '@salesforce/command';
2
+ import { AnyJson } from '@salesforce/ts-types';
3
+ export default class DeployChangeSet extends SfdxCommand {
4
+ static description: string;
5
+ static examples: string[];
6
+ protected static flagsConfig: {
7
+ changeset: flags.Discriminated<flags.String>;
8
+ runtests: flags.Discriminated<flags.String>;
9
+ testlevel: flags.Discriminated<flags.String>;
10
+ checkonly: flags.Discriminated<flags.Boolean<boolean>>;
11
+ nodialog: flags.Discriminated<flags.Boolean<boolean>>;
12
+ };
13
+ protected static requiresUsername: boolean;
14
+ protected static supportsDevhubUsername: boolean;
15
+ protected static requiresProject: boolean;
16
+ run(): Promise<AnyJson>;
17
+ private login;
18
+ private selecttest;
19
+ private clickvalidateordeploy;
20
+ private clickvalidateordeploy2;
21
+ private getjob;
22
+ private gettables;
23
+ }