@simplysf/simply-sobject 1.6.21 → 1.6.22

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/oclif.manifest.json +542 -0
  2. package/package.json +4 -2
@@ -0,0 +1,542 @@
1
+ {
2
+ "commands": {
3
+ "simply:sobject:backup": {
4
+ "aliases": [],
5
+ "args": {},
6
+ "description": "Describes the given SObject, queries every field via the Bulk API, and writes the results to a timestamped CSV file.",
7
+ "examples": [
8
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --sobject Account",
9
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --sobject Custom_Object__c --output-dir backups",
10
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --sobject Account --include-relationship-fields",
11
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --sobject Account --additional-fields Owner.Manager.Name --additional-fields Parent.Owner.Email"
12
+ ],
13
+ "flags": {
14
+ "json": {
15
+ "description": "Format output as json.",
16
+ "helpGroup": "GLOBAL",
17
+ "name": "json",
18
+ "allowNo": false,
19
+ "type": "boolean"
20
+ },
21
+ "flags-dir": {
22
+ "helpGroup": "GLOBAL",
23
+ "name": "flags-dir",
24
+ "summary": "Import flag values from a directory.",
25
+ "hasDynamicHelp": false,
26
+ "multiple": false,
27
+ "type": "option"
28
+ },
29
+ "api-version": {
30
+ "description": "Override the api version used for api requests made by this command",
31
+ "name": "api-version",
32
+ "hasDynamicHelp": false,
33
+ "multiple": false,
34
+ "type": "option"
35
+ },
36
+ "target-org": {
37
+ "char": "o",
38
+ "name": "target-org",
39
+ "noCacheDefault": true,
40
+ "required": true,
41
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
42
+ "hasDynamicHelp": true,
43
+ "multiple": false,
44
+ "type": "option"
45
+ },
46
+ "output-dir": {
47
+ "char": "d",
48
+ "description": "The directory to save the backup CSV file to. Defaults to the current directory.",
49
+ "name": "output-dir",
50
+ "summary": "Output directory",
51
+ "hasDynamicHelp": false,
52
+ "multiple": false,
53
+ "type": "option"
54
+ },
55
+ "sobject": {
56
+ "char": "s",
57
+ "description": "The API name of the SObject to back up.",
58
+ "name": "sobject",
59
+ "required": true,
60
+ "summary": "SObject API name",
61
+ "hasDynamicHelp": false,
62
+ "multiple": false,
63
+ "type": "option"
64
+ },
65
+ "include-relationship-fields": {
66
+ "description": "For every lookup/master-detail field, describe its parent SObject and include its identifying fields (e.g. RecordTypeId includes RecordType.Name and RecordType.DeveloperName). Polymorphic relationship fields, such as OwnerId, are skipped.",
67
+ "name": "include-relationship-fields",
68
+ "summary": "Include parent relationship fields",
69
+ "allowNo": false,
70
+ "type": "boolean"
71
+ },
72
+ "additional-fields": {
73
+ "char": "f",
74
+ "description": "Extra field API names to include in the query, on top of the SObject's own fields and any fields discovered via --include-relationship-fields. Useful for fields --include-relationship-fields won't discover, such as multi-hop relationship paths (e.g. Owner.Manager.Name) or fields through a polymorphic relationship. Fields already included are not duplicated.",
75
+ "name": "additional-fields",
76
+ "summary": "Additional fields to include",
77
+ "hasDynamicHelp": false,
78
+ "multiple": true,
79
+ "type": "option"
80
+ }
81
+ },
82
+ "hasDynamicHelp": true,
83
+ "hiddenAliases": [],
84
+ "id": "simply:sobject:backup",
85
+ "pluginAlias": "@simplysf/simply-sobject",
86
+ "pluginName": "@simplysf/simply-sobject",
87
+ "pluginType": "core",
88
+ "strict": true,
89
+ "summary": "Back up SObject data to a CSV file.",
90
+ "enableJsonFlag": true,
91
+ "isESM": true,
92
+ "relativePath": [
93
+ "lib",
94
+ "commands",
95
+ "simply",
96
+ "sobject",
97
+ "backup.js"
98
+ ],
99
+ "aliasPermutations": [],
100
+ "permutations": [
101
+ "simply:sobject:backup",
102
+ "sobject:simply:backup",
103
+ "sobject:backup:simply",
104
+ "simply:backup:sobject",
105
+ "backup:simply:sobject",
106
+ "backup:sobject:simply"
107
+ ]
108
+ },
109
+ "simply:sobject:deduplicate": {
110
+ "aliases": [],
111
+ "args": {},
112
+ "description": "Queries an SObject, groups records by a composite key built from configured fields, and writes CSV files listing which records are unique and which are duplicates that should be deleted. For each associated object with lookups to the primary object, also writes a CSV of the lookup field updates needed to re-point duplicate references at the surviving unique record. This command does not perform any deletes or updates in the org; it only prepares the CSV files for a subsequent data load.",
113
+ "examples": [
114
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --config config/deduplicate-account.json",
115
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --config config/deduplicate-account.json --dry-run"
116
+ ],
117
+ "flags": {
118
+ "json": {
119
+ "description": "Format output as json.",
120
+ "helpGroup": "GLOBAL",
121
+ "name": "json",
122
+ "allowNo": false,
123
+ "type": "boolean"
124
+ },
125
+ "flags-dir": {
126
+ "helpGroup": "GLOBAL",
127
+ "name": "flags-dir",
128
+ "summary": "Import flag values from a directory.",
129
+ "hasDynamicHelp": false,
130
+ "multiple": false,
131
+ "type": "option"
132
+ },
133
+ "api-version": {
134
+ "description": "Override the api version used for api requests made by this command",
135
+ "name": "api-version",
136
+ "hasDynamicHelp": false,
137
+ "multiple": false,
138
+ "type": "option"
139
+ },
140
+ "target-org": {
141
+ "char": "o",
142
+ "name": "target-org",
143
+ "noCacheDefault": true,
144
+ "required": true,
145
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
146
+ "hasDynamicHelp": true,
147
+ "multiple": false,
148
+ "type": "option"
149
+ },
150
+ "config": {
151
+ "char": "c",
152
+ "description": "The path to a JSON file describing the primary object, its composite key fields, and any associated objects with lookups to it.",
153
+ "name": "config",
154
+ "required": true,
155
+ "summary": "Path to a deduplication configuration file",
156
+ "hasDynamicHelp": false,
157
+ "multiple": false,
158
+ "type": "option"
159
+ },
160
+ "dry-run": {
161
+ "description": "When set, only the primary object's unique/duplicate CSV files are generated; associated object lookup replacement files are not calculated.",
162
+ "name": "dry-run",
163
+ "summary": "Skip calculating associated object lookup replacements",
164
+ "allowNo": false,
165
+ "type": "boolean"
166
+ },
167
+ "output-dir": {
168
+ "description": "The directory to write the generated CSV files to. Defaults to ./temp/<primaryObjectApiName>.",
169
+ "name": "output-dir",
170
+ "summary": "Output directory",
171
+ "hasDynamicHelp": false,
172
+ "multiple": false,
173
+ "type": "option"
174
+ }
175
+ },
176
+ "hasDynamicHelp": true,
177
+ "hiddenAliases": [],
178
+ "id": "simply:sobject:deduplicate",
179
+ "pluginAlias": "@simplysf/simply-sobject",
180
+ "pluginName": "@simplysf/simply-sobject",
181
+ "pluginType": "core",
182
+ "strict": true,
183
+ "summary": "Identify and prepare deduplication of an SObject's records.",
184
+ "enableJsonFlag": true,
185
+ "isESM": true,
186
+ "relativePath": [
187
+ "lib",
188
+ "commands",
189
+ "simply",
190
+ "sobject",
191
+ "deduplicate.js"
192
+ ],
193
+ "aliasPermutations": [],
194
+ "permutations": [
195
+ "simply:sobject:deduplicate",
196
+ "sobject:simply:deduplicate",
197
+ "sobject:deduplicate:simply",
198
+ "simply:deduplicate:sobject",
199
+ "deduplicate:simply:sobject",
200
+ "deduplicate:sobject:simply"
201
+ ]
202
+ },
203
+ "simply:sobject:history:export": {
204
+ "aliases": [],
205
+ "args": {},
206
+ "description": "Queries the field history object for the given SObject (e.g. `AccountHistory`, `Custom_Object__History`, or `OpportunityFieldHistory`) for changes created within the given date range, and writes the results to a timestamped CSV file.",
207
+ "examples": [
208
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --sobject Account --start-date 2026-01-01 --end-date 2026-01-31",
209
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --sobject Custom_Object__c --start-date 2026-01-01 --end-date 2026-01-31 --output-dir exports"
210
+ ],
211
+ "flags": {
212
+ "json": {
213
+ "description": "Format output as json.",
214
+ "helpGroup": "GLOBAL",
215
+ "name": "json",
216
+ "allowNo": false,
217
+ "type": "boolean"
218
+ },
219
+ "flags-dir": {
220
+ "helpGroup": "GLOBAL",
221
+ "name": "flags-dir",
222
+ "summary": "Import flag values from a directory.",
223
+ "hasDynamicHelp": false,
224
+ "multiple": false,
225
+ "type": "option"
226
+ },
227
+ "api-version": {
228
+ "description": "Override the api version used for api requests made by this command",
229
+ "name": "api-version",
230
+ "hasDynamicHelp": false,
231
+ "multiple": false,
232
+ "type": "option"
233
+ },
234
+ "target-org": {
235
+ "char": "o",
236
+ "name": "target-org",
237
+ "noCacheDefault": true,
238
+ "required": true,
239
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
240
+ "hasDynamicHelp": true,
241
+ "multiple": false,
242
+ "type": "option"
243
+ },
244
+ "sobject": {
245
+ "char": "s",
246
+ "description": "The API name of the SObject to export field history for (e.g. Account or Custom_Object__c).",
247
+ "name": "sobject",
248
+ "required": true,
249
+ "summary": "SObject API name",
250
+ "hasDynamicHelp": false,
251
+ "multiple": false,
252
+ "type": "option"
253
+ },
254
+ "start-date": {
255
+ "description": "The start of the date range to export history for, inclusive.",
256
+ "name": "start-date",
257
+ "required": true,
258
+ "summary": "Start date (YYYY-MM-DD)",
259
+ "hasDynamicHelp": false,
260
+ "multiple": false,
261
+ "type": "option"
262
+ },
263
+ "end-date": {
264
+ "description": "The end of the date range to export history for, inclusive.",
265
+ "name": "end-date",
266
+ "required": true,
267
+ "summary": "End date (YYYY-MM-DD)",
268
+ "hasDynamicHelp": false,
269
+ "multiple": false,
270
+ "type": "option"
271
+ },
272
+ "output-dir": {
273
+ "char": "d",
274
+ "description": "The directory to save the exported CSV file to. Defaults to the current directory.",
275
+ "name": "output-dir",
276
+ "summary": "Output directory",
277
+ "hasDynamicHelp": false,
278
+ "multiple": false,
279
+ "type": "option"
280
+ }
281
+ },
282
+ "hasDynamicHelp": true,
283
+ "hiddenAliases": [],
284
+ "id": "simply:sobject:history:export",
285
+ "pluginAlias": "@simplysf/simply-sobject",
286
+ "pluginName": "@simplysf/simply-sobject",
287
+ "pluginType": "core",
288
+ "strict": true,
289
+ "summary": "Export field history for an SObject within a date range to a CSV file.",
290
+ "enableJsonFlag": true,
291
+ "isESM": true,
292
+ "relativePath": [
293
+ "lib",
294
+ "commands",
295
+ "simply",
296
+ "sobject",
297
+ "history",
298
+ "export.js"
299
+ ],
300
+ "aliasPermutations": [],
301
+ "permutations": [
302
+ "simply:sobject:history:export",
303
+ "sobject:simply:history:export",
304
+ "sobject:history:simply:export",
305
+ "sobject:history:export:simply",
306
+ "simply:history:sobject:export",
307
+ "history:simply:sobject:export",
308
+ "history:sobject:simply:export",
309
+ "history:sobject:export:simply",
310
+ "simply:history:export:sobject",
311
+ "history:simply:export:sobject",
312
+ "history:export:simply:sobject",
313
+ "history:export:sobject:simply",
314
+ "simply:sobject:export:history",
315
+ "sobject:simply:export:history",
316
+ "sobject:export:simply:history",
317
+ "sobject:export:history:simply",
318
+ "simply:export:sobject:history",
319
+ "export:simply:sobject:history",
320
+ "export:sobject:simply:history",
321
+ "export:sobject:history:simply",
322
+ "simply:export:history:sobject",
323
+ "export:simply:history:sobject",
324
+ "export:history:simply:sobject",
325
+ "export:history:sobject:simply"
326
+ ]
327
+ },
328
+ "simply:sobject:history:query": {
329
+ "aliases": [],
330
+ "args": {},
331
+ "description": "Queries the field history object for the given SObject (e.g. `AccountHistory`, `Custom_Object__History`, or `OpportunityFieldHistory`) and writes the results to a timestamped CSV file. An optional filter tree can be supplied to narrow the results: conditions on Field, CreatedById, CreatedDate, or the parent lookup field are pushed into the SOQL WHERE clause; conditions on any other field (e.g. OldValue or NewValue) are applied client-side after the query runs.",
332
+ "examples": [
333
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --object Account",
334
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --object Custom_Object__c --filters config/history-filters.json",
335
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --object Account --filters '{\"logic\":\"AND\",\"filters\":[{\"field\":\"Field\",\"operator\":\"=\",\"value\":\"Name\"}]}'"
336
+ ],
337
+ "flags": {
338
+ "json": {
339
+ "description": "Format output as json.",
340
+ "helpGroup": "GLOBAL",
341
+ "name": "json",
342
+ "allowNo": false,
343
+ "type": "boolean"
344
+ },
345
+ "flags-dir": {
346
+ "helpGroup": "GLOBAL",
347
+ "name": "flags-dir",
348
+ "summary": "Import flag values from a directory.",
349
+ "hasDynamicHelp": false,
350
+ "multiple": false,
351
+ "type": "option"
352
+ },
353
+ "api-version": {
354
+ "description": "Override the api version used for api requests made by this command",
355
+ "name": "api-version",
356
+ "hasDynamicHelp": false,
357
+ "multiple": false,
358
+ "type": "option"
359
+ },
360
+ "target-org": {
361
+ "char": "o",
362
+ "name": "target-org",
363
+ "noCacheDefault": true,
364
+ "required": true,
365
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
366
+ "hasDynamicHelp": true,
367
+ "multiple": false,
368
+ "type": "option"
369
+ },
370
+ "object": {
371
+ "description": "The API name of the SObject to query field history for (e.g. Account or Custom_Object__c).",
372
+ "name": "object",
373
+ "required": true,
374
+ "summary": "SObject API name",
375
+ "hasDynamicHelp": false,
376
+ "multiple": false,
377
+ "type": "option"
378
+ },
379
+ "filters": {
380
+ "description": "A JSON object describing a tree of filter conditions: `{ \"logic\": \"AND\", \"filters\": [ { \"field\": \"Field\", \"operator\": \"=\", \"value\": \"Status__c\" } ] }`. Each entry in `filters` is either a condition (`field`, `operator`, `value`) or another nested group with its own `logic`/`filters`. Supported operators are =, !=, >, <, >=, <=, IN, NOT IN, and LIKE (using `%` as a wildcard).",
381
+ "name": "filters",
382
+ "summary": "Path to a filter configuration file, or a raw JSON filter string",
383
+ "hasDynamicHelp": false,
384
+ "multiple": false,
385
+ "type": "option"
386
+ },
387
+ "output-dir": {
388
+ "char": "d",
389
+ "description": "The directory to save the query results CSV file to. Defaults to the current directory.",
390
+ "name": "output-dir",
391
+ "summary": "Output directory",
392
+ "hasDynamicHelp": false,
393
+ "multiple": false,
394
+ "type": "option"
395
+ }
396
+ },
397
+ "hasDynamicHelp": true,
398
+ "hiddenAliases": [],
399
+ "id": "simply:sobject:history:query",
400
+ "pluginAlias": "@simplysf/simply-sobject",
401
+ "pluginName": "@simplysf/simply-sobject",
402
+ "pluginType": "core",
403
+ "strict": true,
404
+ "summary": "Query the field history of an SObject, with optional filtering.",
405
+ "enableJsonFlag": true,
406
+ "isESM": true,
407
+ "relativePath": [
408
+ "lib",
409
+ "commands",
410
+ "simply",
411
+ "sobject",
412
+ "history",
413
+ "query.js"
414
+ ],
415
+ "aliasPermutations": [],
416
+ "permutations": [
417
+ "simply:sobject:history:query",
418
+ "sobject:simply:history:query",
419
+ "sobject:history:simply:query",
420
+ "sobject:history:query:simply",
421
+ "simply:history:sobject:query",
422
+ "history:simply:sobject:query",
423
+ "history:sobject:simply:query",
424
+ "history:sobject:query:simply",
425
+ "simply:history:query:sobject",
426
+ "history:simply:query:sobject",
427
+ "history:query:simply:sobject",
428
+ "history:query:sobject:simply",
429
+ "simply:sobject:query:history",
430
+ "sobject:simply:query:history",
431
+ "sobject:query:simply:history",
432
+ "sobject:query:history:simply",
433
+ "simply:query:sobject:history",
434
+ "query:simply:sobject:history",
435
+ "query:sobject:simply:history",
436
+ "query:sobject:history:simply",
437
+ "simply:query:history:sobject",
438
+ "query:simply:history:sobject",
439
+ "query:history:simply:sobject",
440
+ "query:history:sobject:simply"
441
+ ]
442
+ },
443
+ "simply:sobject:history:schema": {
444
+ "aliases": [],
445
+ "args": {},
446
+ "description": "Identifies every object with field history tracking enabled, and every tracked field on each, resolving the managed/unlocked package each field belongs to, and writes the results to a timestamped CSV file and a browsable HTML report.",
447
+ "examples": [
448
+ "<%= config.bin %> <%= command.id %> --target-org myOrg",
449
+ "<%= config.bin %> <%= command.id %> --target-org myOrg --output-dir reports"
450
+ ],
451
+ "flags": {
452
+ "json": {
453
+ "description": "Format output as json.",
454
+ "helpGroup": "GLOBAL",
455
+ "name": "json",
456
+ "allowNo": false,
457
+ "type": "boolean"
458
+ },
459
+ "flags-dir": {
460
+ "helpGroup": "GLOBAL",
461
+ "name": "flags-dir",
462
+ "summary": "Import flag values from a directory.",
463
+ "hasDynamicHelp": false,
464
+ "multiple": false,
465
+ "type": "option"
466
+ },
467
+ "api-version": {
468
+ "description": "Override the api version used for api requests made by this command",
469
+ "name": "api-version",
470
+ "hasDynamicHelp": false,
471
+ "multiple": false,
472
+ "type": "option"
473
+ },
474
+ "target-org": {
475
+ "char": "o",
476
+ "name": "target-org",
477
+ "noCacheDefault": true,
478
+ "required": true,
479
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
480
+ "hasDynamicHelp": true,
481
+ "multiple": false,
482
+ "type": "option"
483
+ },
484
+ "output-dir": {
485
+ "char": "d",
486
+ "description": "The directory to save the generated CSV and HTML report files to. Defaults to the current directory.",
487
+ "name": "output-dir",
488
+ "summary": "Output directory",
489
+ "hasDynamicHelp": false,
490
+ "multiple": false,
491
+ "type": "option"
492
+ }
493
+ },
494
+ "hasDynamicHelp": true,
495
+ "hiddenAliases": [],
496
+ "id": "simply:sobject:history:schema",
497
+ "pluginAlias": "@simplysf/simply-sobject",
498
+ "pluginName": "@simplysf/simply-sobject",
499
+ "pluginType": "core",
500
+ "strict": true,
501
+ "summary": "Report on which objects and fields have field history tracking enabled.",
502
+ "enableJsonFlag": true,
503
+ "isESM": true,
504
+ "relativePath": [
505
+ "lib",
506
+ "commands",
507
+ "simply",
508
+ "sobject",
509
+ "history",
510
+ "schema.js"
511
+ ],
512
+ "aliasPermutations": [],
513
+ "permutations": [
514
+ "simply:sobject:history:schema",
515
+ "sobject:simply:history:schema",
516
+ "sobject:history:simply:schema",
517
+ "sobject:history:schema:simply",
518
+ "simply:history:sobject:schema",
519
+ "history:simply:sobject:schema",
520
+ "history:sobject:simply:schema",
521
+ "history:sobject:schema:simply",
522
+ "simply:history:schema:sobject",
523
+ "history:simply:schema:sobject",
524
+ "history:schema:simply:sobject",
525
+ "history:schema:sobject:simply",
526
+ "simply:sobject:schema:history",
527
+ "sobject:simply:schema:history",
528
+ "sobject:schema:simply:history",
529
+ "sobject:schema:history:simply",
530
+ "simply:schema:sobject:history",
531
+ "schema:simply:sobject:history",
532
+ "schema:sobject:simply:history",
533
+ "schema:sobject:history:simply",
534
+ "simply:schema:history:sobject",
535
+ "schema:simply:history:sobject",
536
+ "schema:history:simply:sobject",
537
+ "schema:history:sobject:simply"
538
+ ]
539
+ }
540
+ },
541
+ "version": "1.6.22"
542
+ }
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.21",
4
+ "version": "1.6.22",
5
5
  "author": "@ClayChipps",
6
6
  "homepage": "https://github.com/SimplySF/simply-plugins",
7
7
  "bugs": "https://github.com/SimplySF/simply-plugins/issues",
@@ -85,6 +85,8 @@
85
85
  "fix-license": "eslint src test --fix --rule \"header/header: [2]\"",
86
86
  "format": "wireit",
87
87
  "lint": "wireit",
88
+ "postpack": "node -e \"require('node:fs').rmSync('oclif.manifest.json', { force: true })\"",
89
+ "prepack": "oclif manifest .",
88
90
  "readme": "oclif readme --no-aliases",
89
91
  "test": "wireit",
90
92
  "test:coverage": "vitest run --coverage --project simply-sobject",
@@ -203,5 +205,5 @@
203
205
  "output": []
204
206
  }
205
207
  },
206
- "gitHead": "f3519ebc046826de4e4d6e0b9e503e9192a8fb6a"
208
+ "gitHead": "a5aac006f9776347e6d0f845d270660d2db81a28"
207
209
  }