@simplysf/simply-sobject 1.6.12 → 1.6.13

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 (2) hide show
  1. package/README.md +38 -18
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @simplysf/simply-sobject
2
2
 
3
- [![NPM](https://img.shields.io/npm/v/@simplysf/simply-sobject?label=@simplysf/simply-sobject)](https://npmjs.com/@simplysf/simply-sobject) [![Downloads/week](https://img.shields.io/npm/dw/@simplysf/simply-sobject.svg)](https://npmjs.com/@simplysf/simply-sobject) [![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://raw.githubusercontent.com/SimplySF/simply-node/main/LICENSE.txt)
3
+ [![NPM](https://img.shields.io/npm/v/@simplysf/simply-sobject?label=@simplysf/simply-sobject)](https://npmjs.com/@simplysf/simply-sobject) [![Downloads/week](https://img.shields.io/npm/dw/@simplysf/simply-sobject.svg)](https://npmjs.com/@simplysf/simply-sobject) [![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://raw.githubusercontent.com/SimplySF/simply-plugins/main/LICENSE.txt)
4
4
 
5
5
  ## Install
6
6
 
@@ -10,11 +10,11 @@ sf plugins install @simplysf/simply-sobject
10
10
 
11
11
  ## Issues
12
12
 
13
- Please report any issues at https://github.com/SimplySF/simply-node/issues
13
+ Please report any issues at https://github.com/SimplySF/simply-plugins/issues
14
14
 
15
15
  ## Contributing
16
16
 
17
- This package is part of the [`@simplysf/simply`](https://github.com/SimplySF/simply-node) monorepo. See the repo's [CONTRIBUTING.md](https://github.com/SimplySF/simply-node/blob/main/CONTRIBUTING.md) for the repo structure, how to set up and build the project, our commit conventions, and how to submit a pull request. Please also read our [Code of Conduct](https://github.com/SimplySF/simply-node/blob/main/CODE_OF_CONDUCT.md).
17
+ This package is part of the [`@simplysf/simply`](https://github.com/SimplySF/simply-plugins) monorepo. See the repo's [CONTRIBUTING.md](https://github.com/SimplySF/simply-plugins/blob/main/CONTRIBUTING.md) for the repo structure, how to set up and build the project, our commit conventions, and how to submit a pull request. Please also read our [Code of Conduct](https://github.com/SimplySF/simply-plugins/blob/main/CODE_OF_CONDUCT.md).
18
18
 
19
19
  ## Commands
20
20
 
@@ -32,14 +32,17 @@ Back up SObject data to a CSV file.
32
32
 
33
33
  ```
34
34
  USAGE
35
- $ sf simply sobject backup -s <value> -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-d <value>]
35
+ $ sf simply sobject backup -o <value> -s <value> [--json] [--flags-dir <value>] [--api-version <value>] [-d <value>]
36
+ [--include-relationship-fields] [-f <value>...]
36
37
 
37
38
  FLAGS
38
- -d, --output-dir=<value> Output directory
39
- -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
40
- configuration variable is already set.
41
- -s, --sobject=<value> (required) SObject API name
42
- --api-version=<value> Override the api version used for api requests made by this command
39
+ -d, --output-dir=<value> Output directory
40
+ -f, --additional-fields=<value>... Additional fields to include
41
+ -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
42
+ configuration variable is already set.
43
+ -s, --sobject=<value> (required) SObject API name
44
+ --api-version=<value> Override the api version used for api requests made by this command
45
+ --include-relationship-fields Include parent relationship fields
43
46
 
44
47
  GLOBAL FLAGS
45
48
  --flags-dir=<value> Import flag values from a directory.
@@ -55,17 +58,34 @@ EXAMPLES
55
58
 
56
59
  $ sf simply sobject backup --target-org myOrg --sobject Custom_Object__c --output-dir backups
57
60
 
61
+ $ sf simply sobject backup --target-org myOrg --sobject Account --include-relationship-fields
62
+
63
+ $ sf simply sobject backup --target-org myOrg --sobject Account --additional-fields Owner.Manager.Name --additional-fields Parent.Owner.Email
64
+
58
65
  FLAG DESCRIPTIONS
59
66
  -d, --output-dir=<value> Output directory
60
67
 
61
68
  The directory to save the backup CSV file to. Defaults to the current directory.
62
69
 
70
+ -f, --additional-fields=<value>... Additional fields to include
71
+
72
+ Extra field API names to include in the query, on top of the SObject's own fields and any fields discovered via
73
+ --include-relationship-fields. Useful for fields --include-relationship-fields won't discover, such as multi-hop
74
+ relationship paths (e.g. Owner.Manager.Name) or fields through a polymorphic relationship. Fields already included
75
+ are not duplicated.
76
+
63
77
  -s, --sobject=<value> SObject API name
64
78
 
65
79
  The API name of the SObject to back up.
80
+
81
+ --include-relationship-fields Include parent relationship fields
82
+
83
+ For every lookup/master-detail field, describe its parent SObject and include its identifying fields (e.g.
84
+ RecordTypeId includes RecordType.Name and RecordType.DeveloperName). Polymorphic relationship fields, such as
85
+ OwnerId, are skipped.
66
86
  ```
67
87
 
68
- _See code: [lib/commands/simply/sobject/backup.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-sobject@1.4.0/packages/simply-sobject/lib/commands/simply/sobject/backup.js)_
88
+ _See code: [lib/commands/simply/sobject/backup.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-sobject@1.6.12/packages/simply-sobject/lib/commands/simply/sobject/backup.js)_
69
89
 
70
90
  ## `sf simply sobject deduplicate`
71
91
 
@@ -73,7 +93,7 @@ Identify and prepare deduplication of an SObject's records.
73
93
 
74
94
  ```
75
95
  USAGE
76
- $ sf simply sobject deduplicate -c <value> -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [--dry-run]
96
+ $ sf simply sobject deduplicate -o <value> -c <value> [--json] [--flags-dir <value>] [--api-version <value>] [--dry-run]
77
97
  [--output-dir <value>]
78
98
 
79
99
  FLAGS
@@ -118,7 +138,7 @@ FLAG DESCRIPTIONS
118
138
  The directory to write the generated CSV files to. Defaults to ./temp/<primaryObjectApiName>.
119
139
  ```
120
140
 
121
- _See code: [lib/commands/simply/sobject/deduplicate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-sobject@1.4.0/packages/simply-sobject/lib/commands/simply/sobject/deduplicate.js)_
141
+ _See code: [lib/commands/simply/sobject/deduplicate.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-sobject@1.6.12/packages/simply-sobject/lib/commands/simply/sobject/deduplicate.js)_
122
142
 
123
143
  ## `sf simply sobject history export`
124
144
 
@@ -126,7 +146,7 @@ Export field history for an SObject within a date range to a CSV file.
126
146
 
127
147
  ```
128
148
  USAGE
129
- $ sf simply sobject history export -s <value> --start-date <value> --end-date <value> -o <value> [--json] [--flags-dir <value>]
149
+ $ sf simply sobject history export -o <value> -s <value> --start-date <value> --end-date <value> [--json] [--flags-dir <value>]
130
150
  [--api-version <value>] [-d <value>]
131
151
 
132
152
  FLAGS
@@ -172,7 +192,7 @@ FLAG DESCRIPTIONS
172
192
  The start of the date range to export history for, inclusive.
173
193
  ```
174
194
 
175
- _See code: [lib/commands/simply/sobject/history/export.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-sobject@1.4.0/packages/simply-sobject/lib/commands/simply/sobject/history/export.js)_
195
+ _See code: [lib/commands/simply/sobject/history/export.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-sobject@1.6.12/packages/simply-sobject/lib/commands/simply/sobject/history/export.js)_
176
196
 
177
197
  ## `sf simply sobject history query`
178
198
 
@@ -180,7 +200,7 @@ Query the field history of an SObject, with optional filtering.
180
200
 
181
201
  ```
182
202
  USAGE
183
- $ sf simply sobject history query --object <value> -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [--filters
203
+ $ sf simply sobject history query -o <value> --object <value> [--json] [--flags-dir <value>] [--api-version <value>] [--filters
184
204
  <value>] [-d <value>]
185
205
 
186
206
  FLAGS
@@ -228,7 +248,7 @@ FLAG DESCRIPTIONS
228
248
  The API name of the SObject to query field history for (e.g. Account or Custom_Object__c).
229
249
  ```
230
250
 
231
- _See code: [lib/commands/simply/sobject/history/query.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-sobject@1.4.0/packages/simply-sobject/lib/commands/simply/sobject/history/query.js)_
251
+ _See code: [lib/commands/simply/sobject/history/query.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-sobject@1.6.12/packages/simply-sobject/lib/commands/simply/sobject/history/query.js)_
232
252
 
233
253
  ## `sf simply sobject history schema`
234
254
 
@@ -266,7 +286,7 @@ FLAG DESCRIPTIONS
266
286
  The directory to save the generated CSV and HTML report files to. Defaults to the current directory.
267
287
  ```
268
288
 
269
- _See code: [lib/commands/simply/sobject/history/schema.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-sobject@1.4.0/packages/simply-sobject/lib/commands/simply/sobject/history/schema.js)_
289
+ _See code: [lib/commands/simply/sobject/history/schema.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-sobject@1.6.12/packages/simply-sobject/lib/commands/simply/sobject/history/schema.js)_
270
290
  <!-- commandsstop -->
271
291
 
272
292
  ## Configuration Files
@@ -335,4 +355,4 @@ Conditions on `Field`, `CreatedById`, `CreatedDate`, or the parent lookup field
335
355
 
336
356
  ## License
337
357
 
338
- Licensed under the [Apache-2.0](https://raw.githubusercontent.com/SimplySF/simply-node/main/LICENSE.txt) license.
358
+ Licensed under the [Apache-2.0](https://raw.githubusercontent.com/SimplySF/simply-plugins/main/LICENSE.txt) license.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simplysf/simply-sobject",
3
3
  "description": "Utilities for working with SObjects",
4
- "version": "1.6.12",
4
+ "version": "1.6.13",
5
5
  "author": "@ClayChipps",
6
6
  "homepage": "https://github.com/SimplySF/simply-plugins",
7
7
  "bugs": "https://github.com/SimplySF/simply-plugins/issues",
@@ -66,7 +66,7 @@
66
66
  "@salesforce/kit": "^3.2.6",
67
67
  "@salesforce/sf-plugins-core": "^12.2.16",
68
68
  "@simplysf/simply-core": "^1.5.1",
69
- "@simplysf/simply-plugin-kit": "^1.0.6",
69
+ "@simplysf/simply-plugin-kit": "^1.0.7",
70
70
  "@simplysf/simply-sobject-core": "^0.2.2",
71
71
  "zod": "^4.1.12"
72
72
  },
@@ -203,5 +203,5 @@
203
203
  "output": []
204
204
  }
205
205
  },
206
- "gitHead": "c019eb527cdafcb96eb7ec2682d35e54cb51d6a7"
206
+ "gitHead": "a836763b64db560efdb2a62784d5115f3e7b5509"
207
207
  }