@salesforce/plugin-signups 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +7 -7
- package/lib/shared/snapshot.d.ts +0 -2
- package/lib/shared/snapshot.js +1 -8
- package/lib/shared/snapshot.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
@@ -121,7 +121,7 @@ EXAMPLES
|
|
121
121
|
$ sf org create shape --target-org SourceOrg
|
122
122
|
```
|
123
123
|
|
124
|
-
_See code: [src/commands/org/create/shape.ts](https://github.com/salesforcecli/plugin-signups/blob/
|
124
|
+
_See code: [src/commands/org/create/shape.ts](https://github.com/salesforcecli/plugin-signups/blob/2.0.2/src/commands/org/create/shape.ts)_
|
125
125
|
|
126
126
|
## `sf org create snapshot`
|
127
127
|
|
@@ -174,7 +174,7 @@ FLAG DESCRIPTIONS
|
|
174
174
|
as a version control system tag or commit ID.
|
175
175
|
```
|
176
176
|
|
177
|
-
_See code: [src/commands/org/create/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/
|
177
|
+
_See code: [src/commands/org/create/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.0.2/src/commands/org/create/snapshot.ts)_
|
178
178
|
|
179
179
|
## `sf org delete shape`
|
180
180
|
|
@@ -212,7 +212,7 @@ EXAMPLES
|
|
212
212
|
$ sf org delete shape --target-org SourceOrg --no-prompt
|
213
213
|
```
|
214
214
|
|
215
|
-
_See code: [src/commands/org/delete/shape.ts](https://github.com/salesforcecli/plugin-signups/blob/
|
215
|
+
_See code: [src/commands/org/delete/shape.ts](https://github.com/salesforcecli/plugin-signups/blob/2.0.2/src/commands/org/delete/shape.ts)_
|
216
216
|
|
217
217
|
## `sf org delete snapshot`
|
218
218
|
|
@@ -254,7 +254,7 @@ FLAG DESCRIPTIONS
|
|
254
254
|
The IDs of scratch org snapshots start with 0Oo.
|
255
255
|
```
|
256
256
|
|
257
|
-
_See code: [src/commands/org/delete/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/
|
257
|
+
_See code: [src/commands/org/delete/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.0.2/src/commands/org/delete/snapshot.ts)_
|
258
258
|
|
259
259
|
## `sf org get snapshot`
|
260
260
|
|
@@ -299,7 +299,7 @@ FLAG DESCRIPTIONS
|
|
299
299
|
The IDs of scratch org snapshots start with 0Oo.
|
300
300
|
```
|
301
301
|
|
302
|
-
_See code: [src/commands/org/get/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/
|
302
|
+
_See code: [src/commands/org/get/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.0.2/src/commands/org/get/snapshot.ts)_
|
303
303
|
|
304
304
|
## `sf org list shape`
|
305
305
|
|
@@ -331,7 +331,7 @@ EXAMPLES
|
|
331
331
|
$ sf org list shape --json > tmp/MyOrgShapeList.json
|
332
332
|
```
|
333
333
|
|
334
|
-
_See code: [src/commands/org/list/shape.ts](https://github.com/salesforcecli/plugin-signups/blob/
|
334
|
+
_See code: [src/commands/org/list/shape.ts](https://github.com/salesforcecli/plugin-signups/blob/2.0.2/src/commands/org/list/shape.ts)_
|
335
335
|
|
336
336
|
## `sf org list snapshot`
|
337
337
|
|
@@ -371,6 +371,6 @@ EXAMPLES
|
|
371
371
|
$ sf org list snapshot --target-dev-hub SnapshotDevHub
|
372
372
|
```
|
373
373
|
|
374
|
-
_See code: [src/commands/org/list/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/
|
374
|
+
_See code: [src/commands/org/list/snapshot.ts](https://github.com/salesforcecli/plugin-signups/blob/2.0.2/src/commands/org/list/snapshot.ts)_
|
375
375
|
|
376
376
|
<!-- commandsstop -->
|
package/lib/shared/snapshot.d.ts
CHANGED
package/lib/shared/snapshot.js
CHANGED
@@ -20,8 +20,6 @@ export const ORG_SNAPSHOT_FIELDS = [
|
|
20
20
|
'CreatedDate',
|
21
21
|
'LastModifiedDate',
|
22
22
|
'ExpirationDate',
|
23
|
-
'LastClonedDate',
|
24
|
-
'LastClonedById',
|
25
23
|
'Error',
|
26
24
|
];
|
27
25
|
const dateTimeFormatter = (dateString) => dateString
|
@@ -51,11 +49,6 @@ const ORG_SNAPSHOT_COLUMNS = {
|
|
51
49
|
header: 'Expiration Date',
|
52
50
|
get: (row) => (row.ExpirationDate ? new Date(row.ExpirationDate).toLocaleDateString() : ''),
|
53
51
|
},
|
54
|
-
LastClonedDate: {
|
55
|
-
header: 'Last Cloned Date',
|
56
|
-
get: (row) => rowDateTimeFormatter(row, 'LastClonedDate'),
|
57
|
-
},
|
58
|
-
LastClonedById: { header: 'Last Cloned By Id', get: (row) => row.LastClonedById ?? '' },
|
59
52
|
};
|
60
53
|
const invalidTypeErrorHandler = (e) => {
|
61
54
|
if (e instanceof Error && e.name === 'INVALID_TYPE') {
|
@@ -95,7 +88,7 @@ export const printSingleRecordTable = (snapshotRecord) => {
|
|
95
88
|
.map(([key, value]) => ({
|
96
89
|
Name: capitalCase(key),
|
97
90
|
// format the datetime values
|
98
|
-
Value: ['LastModifiedDate', '
|
91
|
+
Value: ['LastModifiedDate', 'CreatedDate'].includes(key) ? dateTimeFormatter(value) : value,
|
99
92
|
}))
|
100
93
|
// null/undefined becomes empty string
|
101
94
|
.map((row) => (row.Value ? row : { ...row, Value: '' })), { Name: {}, Value: {} });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../src/shared/snapshot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAc,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,QAAQ,CAAC,uBAAuB,CAAC,OAAO,CAAC,aAAa,CAAC,MA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|
"description": "Commands to interact with org shapes",
|
4
|
-
"version": "2.0.
|
4
|
+
"version": "2.0.2",
|
5
5
|
"author": "Salesforce",
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
7
7
|
"dependencies": {
|
@@ -246,7 +246,7 @@
|
|
246
246
|
"exports": "./lib/index.js",
|
247
247
|
"type": "module",
|
248
248
|
"sfdx": {
|
249
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-signups/2.0.
|
250
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-signups/2.0.
|
249
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-signups/2.0.2.crt",
|
250
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-signups/2.0.2.sig"
|
251
251
|
}
|
252
252
|
}
|