@salesforce/plugin-signups 2.0.30 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +307 -2
- package/lib/commands/org/create/shape.js.map +1 -1
- package/lib/commands/org/create/snapshot.js +15 -2
- package/lib/commands/org/create/snapshot.js.map +1 -1
- package/lib/commands/org/delete/snapshot.js.map +1 -1
- package/lib/commands/org/get/snapshot.js.map +1 -1
- package/lib/commands/org/list/shape.js.map +1 -1
- package/lib/commands/org/list/snapshot.js.map +1 -1
- package/lib/shared/deleteUtils.js.map +1 -1
- package/lib/shared/orgShapeListUtils.js.map +1 -1
- package/lib/shared/snapshot.d.ts +3 -1
- package/lib/shared/snapshot.js +2 -2
- package/lib/shared/snapshot.js.map +1 -1
- package/messages/snapshot.md +1 -1
- package/npm-shrinkwrap.json +592 -1211
- package/oclif.lock +51 -470
- package/oclif.manifest.json +57 -1
- package/package.json +5 -5
package/README.md
CHANGED
@@ -78,8 +78,313 @@ sfdx plugins
|
|
78
78
|
|
79
79
|
<!-- commands -->
|
80
80
|
|
81
|
-
|
81
|
+
- [`sf org create shape`](#sf-org-create-shape)
|
82
|
+
- [`sf org create snapshot`](#sf-org-create-snapshot)
|
83
|
+
- [`sf org delete shape`](#sf-org-delete-shape)
|
84
|
+
- [`sf org delete snapshot`](#sf-org-delete-snapshot)
|
85
|
+
- [`sf org get snapshot`](#sf-org-get-snapshot)
|
86
|
+
- [`sf org list shape`](#sf-org-list-shape)
|
87
|
+
- [`sf org list snapshot`](#sf-org-list-snapshot)
|
82
88
|
|
83
|
-
|
89
|
+
## `sf org create shape`
|
90
|
+
|
91
|
+
Create a scratch org configuration (shape) based on the specified source org.
|
92
|
+
|
93
|
+
```
|
94
|
+
USAGE
|
95
|
+
$ sf org create shape -o <value> [--json] [--flags-dir <value>] [--api-version <value>]
|
96
|
+
|
97
|
+
FLAGS
|
98
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
99
|
+
configuration variable is already set.
|
100
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
101
|
+
|
102
|
+
GLOBAL FLAGS
|
103
|
+
--flags-dir=<value> Import flag values from a directory.
|
104
|
+
--json Format output as json.
|
105
|
+
|
106
|
+
DESCRIPTION
|
107
|
+
Create a scratch org configuration (shape) based on the specified source org.
|
108
|
+
|
109
|
+
Scratch org shapes mimic the baseline setup (features, limits, edition, and Metadata API settings) of a source org
|
110
|
+
without the extraneous data and metadata.
|
111
|
+
|
112
|
+
Run "sf org list shape" to view the available org shapes and their IDs.
|
113
|
+
|
114
|
+
To create a scratch org from an org shape, include the "sourceOrg" property in the scratch org definition file and set
|
115
|
+
it to the org ID of the source org. Then create a scratch org with the "sf force:org:create" command.
|
116
|
+
|
117
|
+
ALIASES
|
118
|
+
$ sf force org shape create
|
119
|
+
|
120
|
+
EXAMPLES
|
121
|
+
Create an org shape for the source org with alias SourceOrg:
|
122
|
+
|
123
|
+
$ sf org create shape --target-org SourceOrg
|
124
|
+
```
|
125
|
+
|
126
|
+
_See code: [src/commands/org/create/shape.ts](https://github.com/salesforcecli/plugin-signups/blob/2.1.1/src/commands/org/create/shape.ts)_
|
127
|
+
|
128
|
+
## `sf org create snapshot`
|
129
|
+
|
130
|
+
Create a snapshot of a scratch org.
|
131
|
+
|
132
|
+
```
|
133
|
+
USAGE
|
134
|
+
$ sf org create snapshot -v <value> -o <value> -n <value> [--json] [--flags-dir <value>] [--api-version <value>] [-d
|
135
|
+
<value>]
|
136
|
+
|
137
|
+
FLAGS
|
138
|
+
-d, --description=<value> Description of snapshot.
|
139
|
+
-n, --name=<value> (required) Unique name of snapshot.
|
140
|
+
-o, --source-org=<value> (required) ID or locally authenticated username or alias of scratch org to snapshot.
|
141
|
+
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the `target-dev-hub`
|
142
|
+
configuration variable is already set.
|
143
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
144
|
+
|
145
|
+
GLOBAL FLAGS
|
146
|
+
--flags-dir=<value> Import flag values from a directory.
|
147
|
+
--json Format output as json.
|
148
|
+
|
149
|
+
DESCRIPTION
|
150
|
+
Create a snapshot of a scratch org.
|
151
|
+
|
152
|
+
A snapshot is a point-in-time copy of a scratch org. The copy is referenced by its unique name in a scratch org
|
153
|
+
definition file.
|
154
|
+
|
155
|
+
Use "sf org get snapshot" to get details, including status, about a snapshot creation request.
|
156
|
+
|
157
|
+
To create a scratch org from a snapshot, include the "snapshot" option (instead of "edition") in the scratch org
|
158
|
+
definition file and set it to the name of the snapshot. Then use "sf force:org:create" to create the scratch org.
|
159
|
+
|
160
|
+
ALIASES
|
161
|
+
$ sf force org snapshot create
|
162
|
+
|
163
|
+
EXAMPLES
|
164
|
+
Create a snapshot called "Dependencies" using the source scratch org ID and your default Dev Hub org:
|
165
|
+
|
166
|
+
$ sf org create snapshot --source-org 00Dxx0000000000 --name Dependencies --description 'Contains PackageA \
|
167
|
+
v1.1.0'
|
168
|
+
|
169
|
+
Create a snapshot called "NightlyBranch" using the source scratch org username and a Dev Hub org with alias
|
170
|
+
NightlyDevHub:
|
171
|
+
|
172
|
+
$ sf org create snapshot --source-org myuser@myorg --name NightlyBranch --description 'Contains PkgA v2.1.0 and \
|
173
|
+
PkgB 3.3.0' --target-dev-hub NightlyDevHub
|
174
|
+
|
175
|
+
FLAG DESCRIPTIONS
|
176
|
+
-d, --description=<value> Description of snapshot.
|
177
|
+
|
178
|
+
Use this description to document the contents of the snapshot. We suggest that you include a reference point, such
|
179
|
+
as a version control system tag or commit ID.
|
180
|
+
```
|
181
|
+
|
182
|
+
_See code: [src/commands/org/create/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.1.1/src/commands/org/create/snapshot.ts)_
|
183
|
+
|
184
|
+
## `sf org delete shape`
|
185
|
+
|
186
|
+
Delete all org shapes for a target org.
|
187
|
+
|
188
|
+
```
|
189
|
+
USAGE
|
190
|
+
$ sf org delete shape -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-p]
|
191
|
+
|
192
|
+
FLAGS
|
193
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
194
|
+
configuration variable is already set.
|
195
|
+
-p, --no-prompt Don't prompt for confirmation.
|
196
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
197
|
+
|
198
|
+
GLOBAL FLAGS
|
199
|
+
--flags-dir=<value> Import flag values from a directory.
|
200
|
+
--json Format output as json.
|
201
|
+
|
202
|
+
DESCRIPTION
|
203
|
+
Delete all org shapes for a target org.
|
204
|
+
|
205
|
+
A source org can have only one active org shape. If you try to create an org shape for a source org that already has
|
206
|
+
one, the previous shape is marked inactive and replaced by a new active shape. If you don’t want to create scratch
|
207
|
+
orgs based on this shape, you can delete the org shape.
|
208
|
+
|
209
|
+
ALIASES
|
210
|
+
$ sf force org shape delete
|
211
|
+
|
212
|
+
EXAMPLES
|
213
|
+
Delete all org shapes for the source org with alias SourceOrg:
|
214
|
+
|
215
|
+
$ sf org delete shape --target-org SourceOrg
|
216
|
+
|
217
|
+
Delete all org shapes without prompting:
|
218
|
+
|
219
|
+
$ sf org delete shape --target-org SourceOrg --no-prompt
|
220
|
+
```
|
221
|
+
|
222
|
+
_See code: [src/commands/org/delete/shape.ts](https://github.com/salesforcecli/plugin-signups/blob/2.1.1/src/commands/org/delete/shape.ts)_
|
223
|
+
|
224
|
+
## `sf org delete snapshot`
|
225
|
+
|
226
|
+
Delete a scratch org snapshot.
|
227
|
+
|
228
|
+
```
|
229
|
+
USAGE
|
230
|
+
$ sf org delete snapshot -v <value> -s <value> [--json] [--flags-dir <value>] [--api-version <value>]
|
231
|
+
|
232
|
+
FLAGS
|
233
|
+
-s, --snapshot=<value> (required) Name or ID of snapshot to delete.
|
234
|
+
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the `target-dev-hub`
|
235
|
+
configuration variable is already set.
|
236
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
237
|
+
|
238
|
+
GLOBAL FLAGS
|
239
|
+
--flags-dir=<value> Import flag values from a directory.
|
240
|
+
--json Format output as json.
|
241
|
+
|
242
|
+
DESCRIPTION
|
243
|
+
Delete a scratch org snapshot.
|
244
|
+
|
245
|
+
Dev Hub admins can delete any snapshot, while users can delete only their own unless a Dev Hub admin gives the user
|
246
|
+
Modify All permissions.
|
247
|
+
|
248
|
+
ALIASES
|
249
|
+
$ sf force org snapshot delete
|
250
|
+
|
251
|
+
EXAMPLES
|
252
|
+
Delete a snapshot from the default Dev Hub using the snapshot ID:
|
253
|
+
|
254
|
+
$ sf org delete snapshot --snapshot 0Oo...
|
255
|
+
|
256
|
+
Delete a snapshot from the specified Dev Hub using the snapshot name:
|
257
|
+
|
258
|
+
$ sf org delete snapshot --snapshot BaseSnapshot --target-dev-hub SnapshotDevHub
|
259
|
+
|
260
|
+
FLAG DESCRIPTIONS
|
261
|
+
-s, --snapshot=<value> Name or ID of snapshot to delete.
|
262
|
+
|
263
|
+
The IDs of scratch org snapshots start with 0Oo.
|
264
|
+
```
|
265
|
+
|
266
|
+
_See code: [src/commands/org/delete/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.1.1/src/commands/org/delete/snapshot.ts)_
|
267
|
+
|
268
|
+
## `sf org get snapshot`
|
269
|
+
|
270
|
+
Get details about a scratch org snapshot.
|
271
|
+
|
272
|
+
```
|
273
|
+
USAGE
|
274
|
+
$ sf org get snapshot -v <value> -s <value> [--json] [--flags-dir <value>] [--api-version <value>]
|
275
|
+
|
276
|
+
FLAGS
|
277
|
+
-s, --snapshot=<value> (required) Name or ID of snapshot to retrieve.
|
278
|
+
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the `target-dev-hub`
|
279
|
+
configuration variable is already set.
|
280
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
281
|
+
|
282
|
+
GLOBAL FLAGS
|
283
|
+
--flags-dir=<value> Import flag values from a directory.
|
284
|
+
--json Format output as json.
|
285
|
+
|
286
|
+
DESCRIPTION
|
287
|
+
Get details about a scratch org snapshot.
|
288
|
+
|
289
|
+
Snapshot creation can take a while. Use this command with the snapshot name or ID to check its creation status. After
|
290
|
+
the status changes to Active, you can use the snapshot to create scratch orgs.
|
291
|
+
|
292
|
+
To create a snapshot, use the "sf org create snapshot" command. To retrieve a list of all snapshots, use "sf org list
|
293
|
+
snapshot".
|
294
|
+
|
295
|
+
ALIASES
|
296
|
+
$ sf force org snapshot get
|
297
|
+
|
298
|
+
EXAMPLES
|
299
|
+
Get snapshot details using its ID and the default Dev Hub org:
|
300
|
+
|
301
|
+
$ sf org get snapshot --snapshot 0Oo...
|
302
|
+
|
303
|
+
Get snapshot details using its name from a Dev Hub org with alias SnapshotDevHub:
|
304
|
+
|
305
|
+
$ sf org get snapshot --snapshot Dependencies --target-dev-hub SnapshotDevHub
|
306
|
+
|
307
|
+
FLAG DESCRIPTIONS
|
308
|
+
-s, --snapshot=<value> Name or ID of snapshot to retrieve.
|
309
|
+
|
310
|
+
The IDs of scratch org snapshots start with 0Oo.
|
311
|
+
```
|
312
|
+
|
313
|
+
_See code: [src/commands/org/get/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.1.1/src/commands/org/get/snapshot.ts)_
|
314
|
+
|
315
|
+
## `sf org list shape`
|
316
|
+
|
317
|
+
List all org shapes you’ve created.
|
318
|
+
|
319
|
+
```
|
320
|
+
USAGE
|
321
|
+
$ sf org list shape [--json] [--flags-dir <value>]
|
322
|
+
|
323
|
+
GLOBAL FLAGS
|
324
|
+
--flags-dir=<value> Import flag values from a directory.
|
325
|
+
--json Format output as json.
|
326
|
+
|
327
|
+
DESCRIPTION
|
328
|
+
List all org shapes you’ve created.
|
329
|
+
|
330
|
+
The output includes the alias, username, and ID of the source org, the status of the org shape creation, and more. Use
|
331
|
+
the org ID to update your scratch org configuration file so you can create a scratch org based on this org shape.
|
332
|
+
|
333
|
+
ALIASES
|
334
|
+
$ sf force org shape list
|
335
|
+
|
336
|
+
EXAMPLES
|
337
|
+
List all org shapes you've created:
|
338
|
+
|
339
|
+
$ sf org list shape
|
340
|
+
|
341
|
+
List all org shapes in JSON format and write the output to a file:
|
342
|
+
|
343
|
+
$ sf org list shape --json > tmp/MyOrgShapeList.json
|
344
|
+
```
|
345
|
+
|
346
|
+
_See code: [src/commands/org/list/shape.ts](https://github.com/salesforcecli/plugin-signups/blob/2.1.1/src/commands/org/list/shape.ts)_
|
347
|
+
|
348
|
+
## `sf org list snapshot`
|
349
|
+
|
350
|
+
List scratch org snapshots.
|
351
|
+
|
352
|
+
```
|
353
|
+
USAGE
|
354
|
+
$ sf org list snapshot -v <value> [--json] [--flags-dir <value>] [--api-version <value>]
|
355
|
+
|
356
|
+
FLAGS
|
357
|
+
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the `target-dev-hub`
|
358
|
+
configuration variable is already set.
|
359
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
360
|
+
|
361
|
+
GLOBAL FLAGS
|
362
|
+
--flags-dir=<value> Import flag values from a directory.
|
363
|
+
--json Format output as json.
|
364
|
+
|
365
|
+
DESCRIPTION
|
366
|
+
List scratch org snapshots.
|
367
|
+
|
368
|
+
You can view all the snapshots in a Dev Hub that you have access to. If you’re an admin, you can see all snapshots
|
369
|
+
associated with the Dev Hub org. If you’re a user, you can see only your snapshots unless a Dev Hub admin gives you
|
370
|
+
View All permissions.
|
371
|
+
|
372
|
+
To create a snapshot, use the "sf org create snapshot" command. To get details about a snapshot request, use "sf org
|
373
|
+
get snapshot".
|
374
|
+
|
375
|
+
ALIASES
|
376
|
+
$ sf force org snapshot list
|
377
|
+
|
378
|
+
EXAMPLES
|
379
|
+
List snapshots in the default Dev Hub:
|
380
|
+
|
381
|
+
$ sf org list snapshot
|
382
|
+
|
383
|
+
List snapshots in the Dev Hub with alias SnapshotDevHub:
|
384
|
+
|
385
|
+
$ sf org list snapshot --target-dev-hub SnapshotDevHub
|
386
|
+
```
|
387
|
+
|
388
|
+
_See code: [src/commands/org/list/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.1.1/src/commands/org/list/snapshot.ts)_
|
84
389
|
|
85
390
|
<!-- commandsstop -->
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"shape.js","sourceRoot":"","sources":["../../../../src/commands/org/create/shape.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
1
|
+
{"version":3,"file":"shape.js","sourceRoot":"","sources":["../../../../src/commands/org/create/shape.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,SAAS,EACT,+BAA+B,EAC/B,iCAAiC,EACjC,QAAQ,GACT,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAc,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAEhE,OAAO,EAAE,cAAc,EAAgB,MAAM,sCAAsC,CAAC;AAEpF,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,4BAA4B,EAAE,cAAc,CAAC,CAAC;AAQrF,MAAM,OAAO,qBAAsB,SAAQ,SAA4B;IAC9D,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,OAAO,GAAG,CAAC,wBAAwB,CAAC,CAAC;IACrD,MAAM,CAAU,gBAAgB,GAAG,IAAI,CAAC;IAExC,MAAM,CAAU,KAAK,GAAG;QAC7B,YAAY,EAAE,+BAA+B;QAC7C,aAAa,EAAE,iCAAiC;QAChD,QAAQ;KACT,CAAC;IAEK,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;QAC1D,MAAM,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AAU,CAAC,MAAM,CAAC,KAAK,eAAe,EAAE,CAAC;YAC3G,MAAM,QAAQ,CAAC,WAAW,CAAC,yBAAyB,CAAC,CAAC;QACxD,CAAC;aAAM,CAAC;YACN,MAAM,UAAU,CAAC;QACnB,CAAC;IACH,CAAC;AACH,CAAC,CAAC"}
|
@@ -6,9 +6,10 @@
|
|
6
6
|
*/
|
7
7
|
import { Flags, SfCommand, loglevel, orgApiVersionFlagWithDeprecations, requiredHubFlagWithDeprecations, } from '@salesforce/sf-plugins-core';
|
8
8
|
import { StateAggregator, Messages, SfError } from '@salesforce/core';
|
9
|
-
import { queryByNameOrId, printSingleRecordTable } from '../../../shared/snapshot.js';
|
9
|
+
import { queryByNameOrId, printSingleRecordTable, invalidTypeErrorHandler, } from '../../../shared/snapshot.js';
|
10
10
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
11
11
|
const messages = Messages.loadMessages('@salesforce/plugin-signups', 'snapshot.create');
|
12
|
+
const snapshotMessages = Messages.loadMessages('@salesforce/plugin-signups', 'snapshot');
|
12
13
|
export class SnapshotCreate extends SfCommand {
|
13
14
|
static summary = messages.getMessage('summary');
|
14
15
|
static description = messages.getMessage('description');
|
@@ -46,11 +47,23 @@ export class SnapshotCreate extends SfCommand {
|
|
46
47
|
async run() {
|
47
48
|
const { flags } = await this.parse(SnapshotCreate);
|
48
49
|
const conn = flags['target-dev-hub'].getConnection(flags['api-version']);
|
49
|
-
const createResponse = await conn
|
50
|
+
const createResponse = await conn
|
51
|
+
.sobject('OrgSnapshot')
|
52
|
+
.create({
|
50
53
|
SourceOrg: flags['source-org'],
|
51
54
|
Description: flags.description,
|
52
55
|
SnapshotName: flags.name,
|
53
56
|
Content: 'metadatadata',
|
57
|
+
})
|
58
|
+
.catch((error) => {
|
59
|
+
// dev hub does not have snapshot pref enabled
|
60
|
+
if (error.name === 'NOT_FOUND') {
|
61
|
+
error.message = snapshotMessages.getMessage('snapshotNotEnabled');
|
62
|
+
return invalidTypeErrorHandler(error);
|
63
|
+
}
|
64
|
+
else {
|
65
|
+
throw error;
|
66
|
+
}
|
54
67
|
});
|
55
68
|
if (createResponse.success === false) {
|
56
69
|
throw new SfError('An error while created the org snapshot');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../../src/commands/org/create/snapshot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
1
|
+
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../../src/commands/org/create/snapshot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,EACL,SAAS,EACT,QAAQ,EACR,iCAAiC,EACjC,+BAA+B,GAChC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAEL,eAAe,EACf,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,6BAA6B,CAAC;AAErC,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,4BAA4B,EAAE,iBAAiB,CAAC,CAAC;AACxF,MAAM,gBAAgB,GAAG,QAAQ,CAAC,YAAY,CAAC,4BAA4B,EAAE,UAAU,CAAC,CAAC;AAEzF,MAAM,OAAO,cAAe,SAAQ,SAAsB;IACjD,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,OAAO,GAAG,CAAC,2BAA2B,CAAC,CAAC;IACxD,MAAM,CAAU,gBAAgB,GAAG,IAAI,CAAC;IACxC,MAAM,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AAoB,qBAAqB,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,OAAO,GAAG,CAAC,KAAK,CAAC;AACnB,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../../src/commands/org/delete/snapshot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;
|
1
|
+
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../../src/commands/org/delete/snapshot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAE9B,OAAO,EACL,KAAK,EACL,SAAS,EACT,QAAQ,EACR,iCAAiC,EACjC,+BAA+B,GAChC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,4BAA4B,EAAE,iBAAiB,CAAC,CAAC;AAExF,4CAA4C;AAC5C,MAAM,WAAW,GAAG,CAAC,KAAgB,EAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,KAAK,SAAS,CAAC;AAE1F,MAAM,OAAO,cAAe,SAAQ,SAAqB;IAChD,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,OAAO,GAAG,CAAC,2BAA2B,CAAC,CAAC;IACxD,MAAM,CA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@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../../src/commands/org/get/snapshot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
1
|
+
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../../src/commands/org/get/snapshot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,EACL,SAAS,EACT,QAAQ,EACR,+BAA+B,EAC/B,iCAAiC,GAClC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAe,eAAe,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAEnG,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,4BAA4B,EAAE,cAAc,CAAC,CAAC;AAErF,MAAM,OAAO,WAAY,SAAQ,SAAsB;IAC9C,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,OAAO,GAAG,CAAC,wBAAwB,CAAC,CAAC;IACrD,MAAM,CAAU,gBAAgB,GAAG,IAAI,CAAC;IACxC,MAAM,CAAU,KAAK,GAAG,MAAM,CAAC;IAE/B,MAAM,CAAU,KAAK,GAAG;QAC7B,gBAAgB,EAAE,+BAA+B;QACjD,aAAa,EAAE,iCAAiC;QAChD,QAAQ;QACR,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC;YACrB,IAAI,EAAE,GAAG;YACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC;YACtD,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,4BAA4B,CAAC;YAC9D,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;IAEK,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAChD,MAAM,MAAM,GAAG,MAAM,eAAe,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;QAClH,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;YACxB,sBAAsB,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"shape.js","sourceRoot":"","sources":["../../../../src/commands/org/list/shape.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
1
|
+
{"version":3,"file":"shape.js","sourceRoot":"","sources":["../../../../src/commands/org/list/shape.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAA6B,MAAM,sCAAsC,CAAC;AAEjF,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,4BAA4B,EAAE,YAAY,CAAC,CAAC;AAEnF,qCAAqC;AACrC,MAAM,eAAe,GAAG;IACtB,KAAK,EAAE;QACL,MAAM,EAAE,OAAO;QACf,GAAG,EAAE,CAAC,IAAwB,EAAU,EAAE,CAAC,IAAI,CAAC,K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CAAC,CAAC,CAAC;YAC9C,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;QAChC,IAAI,CAAC,KAAK,CACR,SAAS,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAC/G,eAAe,CAChB,CAAC;QACF,OAAO,SAAS,CAAC;IACnB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../../src/commands/org/list/snapshot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
1
|
+
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../../src/commands/org/list/snapshot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,QAAQ,EACR,iCAAiC,EACjC,+BAA+B,EAC/B,SAAS,GACV,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAe,QAAQ,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEtF,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,4BAA4B,EAAE,eAAe,CAAC,CAAC;AAEtF,MAAM,OAAO,YAAa,SAAQ,SAAwB;IACjD,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,OAAO,GAAG,CAAC,yBAAyB,CAAC,CAAC;IACtD,MAAM,CAAU,gBAAgB,GAAG,IAAI,CAAC;IACxC,MAAM,CAAU,KAAK,GAAG,MAAM,CAAC;IAC/B,MAAM,CAAU,KAAK,GAAG;QAC7B,gBAAgB,EAAE,+BAA+B;QACjD,aAAa,EAAE,iCAAiC;QAChD,QAAQ;KACT,CAAC;IAEK,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QACjD,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QAC5F,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;YACxB,gBAAgB,CAAC,OAAO,CAAC,CAAC;QAC5B,CAAC;QACD,OAAO,OAAO,CAAC;IACjB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"deleteUtils.js","sourceRoot":"","sources":["../../src/shared/deleteUtils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
1
|
+
{"version":3,"file":"deleteUtils.js","sourceRoot":"","sources":["../../src/shared/deleteUtils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAc,MAAM,kBAAkB,CAAC;AAuBxD;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,EAAE,IAAgB,EAAE,QAAgB,EAA4B,EAAE;IAC9F,IAAI,QAAQ,GAAa,EAAE,CAAC;IAC5B,MAAM,eAAe,GAAoB;QACvC,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE,EAAE;KACb,CAAC;IACF,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAA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AAO,CAAC,CAAC,CAAC,4BAA4B;aAC3E,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CACH,CAAC;IAEF,OAAO,eAAe,CAAC;AACzB,CAAC,CAAC;AAEF,eAAe;IACb,SAAS;CACV,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"orgShapeListUtils.js","sourceRoot":"","sources":["../../src/shared/orgShapeListUtils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
1
|
+
{"version":3,"file":"orgShapeListUtils.js","sourceRoot":"","sources":["../../src/shared/orgShapeListUtils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAc,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAoB,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC1G,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AA0B5C,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,OAAyB;IACjE,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,eAAe,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;IACpE,MAAM,IAAI,GAAG,GAAG,CAAC,aAAa,EAAE,CAAC;IACjC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,wBAAwB,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC9E,MAAM,CAAC,IAAI,CAAC,cAAc,OAAO,CAAC,QAAQ,aAAa,CAAC,CAAC;IACzD,IAAI,CAAC;QACH,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,KAAK,CAClC,wHAAwH,CACzH,CAAC;QACF,OAAO,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YACzC,GAAG;gBACD,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,OAAO,EAAE,K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AO,SAAS,CAAC,SAAS,GAAG,CAAC,IAAI,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,wBAAwB,CAAC;AACrF,CAAC;AAED,MAAM,CAAC,MAAM,oCAAoC,GAAG,KAAK,IAGtD,EAAE;IACH,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,qBAAqB,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACxG,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,4BAA4B,EAAE,UAAU,CAAC,CAAC;QACjF,MAAM,QAAQ,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAC5C,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,SAAS,CAAuB,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAE9F,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC;AACzE,CAAC,CAAC;AAEF,eAAe;IACb,oCAAoC;IACpC,cAAc;IACd,mBAAmB;CACpB,CAAC"}
|
package/lib/shared/snapshot.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
import { Connection } from '@salesforce/core';
|
1
|
+
import { Connection, Messages } from '@salesforce/core';
|
2
|
+
export declare const messages: Messages<string>;
|
2
3
|
export interface OrgSnapshotRequest {
|
3
4
|
SourceOrg: string;
|
4
5
|
SnapshotName: string;
|
@@ -14,6 +15,7 @@ export type OrgSnapshot = OrgSnapshotRequest & {
|
|
14
15
|
Error?: string;
|
15
16
|
};
|
16
17
|
export declare const ORG_SNAPSHOT_FIELDS: string[];
|
18
|
+
export declare const invalidTypeErrorHandler: (e: unknown) => never;
|
17
19
|
export declare const queryAll: (conn: Connection) => Promise<OrgSnapshot[]>;
|
18
20
|
export declare const queryByNameOrId: (conn: Connection, nameOrId: string) => Promise<OrgSnapshot>;
|
19
21
|
export declare const printSingleRecordTable: (snapshotRecord: OrgSnapshot) => void;
|
package/lib/shared/snapshot.js
CHANGED
@@ -8,7 +8,7 @@ import { ux } from '@oclif/core';
|
|
8
8
|
import { SfError, Messages } from '@salesforce/core';
|
9
9
|
import { capitalCase } from 'change-case';
|
10
10
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
11
|
-
const messages = Messages.loadMessages('@salesforce/plugin-signups', 'snapshot');
|
11
|
+
export const messages = Messages.loadMessages('@salesforce/plugin-signups', 'snapshot');
|
12
12
|
export const ORG_SNAPSHOT_FIELDS = [
|
13
13
|
'Id',
|
14
14
|
'SnapshotName',
|
@@ -48,7 +48,7 @@ const ORG_SNAPSHOT_COLUMNS = {
|
|
48
48
|
get: (row) => (row.ExpirationDate ? new Date(row.ExpirationDate).toLocaleDateString() : ''),
|
49
49
|
},
|
50
50
|
};
|
51
|
-
const invalidTypeErrorHandler = (e) => {
|
51
|
+
export const invalidTypeErrorHandler = (e) => {
|
52
52
|
if (e instanceof Error && e.name === 'INVALID_TYPE') {
|
53
53
|
e.message = messages.getMessage('snapshotNotEnabled');
|
54
54
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../src/shared/snapshot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
1
|
+
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../src/shared/snapshot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAc,OAAO,EAAE,QAAQ,EAAE,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