@kitalive/sfdx-plugin 0.4.5 → 0.5.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 (55) hide show
  1. package/README.md +317 -443
  2. package/lib/bulk.js +161 -167
  3. package/lib/bulk.js.map +1 -1
  4. package/lib/commands/kit/data/bulk/delete.js +45 -38
  5. package/lib/commands/kit/data/bulk/delete.js.map +1 -1
  6. package/lib/commands/kit/data/bulk/query.js +25 -23
  7. package/lib/commands/kit/data/bulk/query.js.map +1 -1
  8. package/lib/commands/kit/data/bulk/upsert.js +13 -1
  9. package/lib/commands/kit/data/bulk/upsert.js.map +1 -1
  10. package/lib/commands/kit/data/csv/convert.js +43 -36
  11. package/lib/commands/kit/data/csv/convert.js.map +1 -1
  12. package/lib/commands/kit/layout/assignments/deploy.js +20 -18
  13. package/lib/commands/kit/layout/assignments/deploy.js.map +1 -1
  14. package/lib/commands/kit/layout/assignments/retrieve.js +52 -47
  15. package/lib/commands/kit/layout/assignments/retrieve.js.map +1 -1
  16. package/lib/commands/kit/object/fields/describe.js +23 -23
  17. package/lib/commands/kit/object/fields/describe.js.map +1 -1
  18. package/lib/commands/kit/object/fields/setup.js +117 -64
  19. package/lib/commands/kit/object/fields/setup.js.map +1 -1
  20. package/lib/commands/kit/script/execute.js +34 -43
  21. package/lib/commands/kit/script/execute.js.map +1 -1
  22. package/lib/index.js +1 -2
  23. package/lib/index.js.map +1 -1
  24. package/lib/metadata.js +4 -2
  25. package/lib/metadata.js.map +1 -1
  26. package/lib/utils.js +6 -5
  27. package/lib/utils.js.map +1 -1
  28. package/messages/data.bulk.delete.md +17 -0
  29. package/messages/data.bulk.md +54 -0
  30. package/messages/data.bulk.query.md +17 -0
  31. package/messages/data.bulk.upsert.md +13 -0
  32. package/messages/data.csv.convert.md +49 -0
  33. package/messages/layout.assignments.deploy.md +24 -0
  34. package/messages/layout.assignments.retrieve.md +46 -0
  35. package/messages/object.fields.describe.md +25 -0
  36. package/messages/object.fields.setup.md +29 -0
  37. package/messages/script.execute.md +42 -0
  38. package/oclif.manifest.json +1017 -1
  39. package/package.json +162 -49
  40. package/lib/bulk.d.ts +0 -22
  41. package/lib/commands/kit/data/bulk/delete.d.ts +0 -18
  42. package/lib/commands/kit/data/bulk/insert.d.ts +0 -2
  43. package/lib/commands/kit/data/bulk/query.d.ts +0 -15
  44. package/lib/commands/kit/data/bulk/update.d.ts +0 -2
  45. package/lib/commands/kit/data/bulk/upsert.d.ts +0 -2
  46. package/lib/commands/kit/data/csv/convert.d.ts +0 -22
  47. package/lib/commands/kit/layout/assignments/deploy.d.ts +0 -13
  48. package/lib/commands/kit/layout/assignments/retrieve.d.ts +0 -21
  49. package/lib/commands/kit/object/fields/describe.d.ts +0 -14
  50. package/lib/commands/kit/object/fields/setup.d.ts +0 -21
  51. package/lib/commands/kit/script/execute.d.ts +0 -13
  52. package/lib/index.d.ts +0 -2
  53. package/lib/metadata.d.ts +0 -18
  54. package/lib/types.d.ts +0 -35
  55. package/lib/utils.d.ts +0 -16
@@ -0,0 +1,54 @@
1
+ # examples
2
+
3
+ - %s Account records with mapping.json:
4
+
5
+ <%= config.bin %> <%= command.id %> -o Account -f ./path/to/Account.csv -m ./path/to/mapping.json
6
+
7
+ - %s MyObject\_\_c records with convert.js:
8
+
9
+ <%= config.bin %> <%= command.id %> -o MyObject**c -f ./path/to/MyObject**c.csv -c ./path/to/convert.js -w 10
10
+
11
+ # description
12
+
13
+ For information about CSV file formats, see [Prepare CSV Files](https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/datafiles_csv_preparing.htm) in the Bulk API Developer Guide.
14
+
15
+ # flags.sobject.summary
16
+
17
+ The SObject name to %s
18
+
19
+ # flags.csvfile.summary
20
+
21
+ The CSV file path that defines the records to %s
22
+
23
+ # flags.resultfile.summary
24
+
25
+ The CSV file path for writing the %s results
26
+
27
+ # flags.setnull.summary
28
+
29
+ Set blank values as null values during %s operations (default: empty field values are ignored)
30
+
31
+ # flags.convertonly.summary
32
+
33
+ Output converted.csv file and skip %s for debugging
34
+
35
+ # flags.concurrencymode.summary
36
+
37
+ The concurrency mode (Parallel or Serial) for the job
38
+
39
+ # flags.batchsize.summary
40
+
41
+ The batch size of the job
42
+
43
+ # flags.wait.summary
44
+
45
+ The number of minutes to wait for the command to complete before displaying the results
46
+
47
+ # flags.assignmentruleid.summary
48
+
49
+ The ID of a specific assignment rule to run for a case or a lead
50
+
51
+ # asyncJob
52
+
53
+ Check bulk job status with the command:
54
+ %s org open -o %s -p "lightning/setup/AsyncApiJobStatus/page?address=%2F%s"
@@ -0,0 +1,17 @@
1
+ # summary
2
+
3
+ Bulk query records.
4
+
5
+ # examples
6
+
7
+ - Query Account records and save to specified path:
8
+
9
+ <%= config.bin %> <%= command.id %> -q "SELECT Id, Name FROM Account" -f ./path/to/Account.csv
10
+
11
+ # flags.query.summary
12
+
13
+ SOQL query to export
14
+
15
+ # flags.csvfile.summary
16
+
17
+ [default: standard output] Output csv file
@@ -0,0 +1,13 @@
1
+ # examples
2
+
3
+ - Upsert Account records with mapping.json:
4
+
5
+ <%= config.bin %> <%= command.id %> -o Account -f ./path/to/Account.csv -m ./path/to/mapping.json
6
+
7
+ - Upsert MyObject\_\_c with convert.js and external ID
8
+
9
+ <%= config.bin %> <%= command.id %> -o MyObject**c -f ./path/to/MyObject**c.csv -c ./path/to/convert.js -i MyExternalId\_\_c -w 10
10
+
11
+ # flags.externalid.summary
12
+
13
+ The column name of the external ID
@@ -0,0 +1,49 @@
1
+ # summary
2
+
3
+ Convert CSV data using column mapping file or Node.js script.
4
+
5
+ # examples
6
+
7
+ - Convert csv file using mapping file and output to standard output:
8
+
9
+ <%= config.bin %> <%= command.id %> -i ./path/to/input.csv -m ./path/to/mapping.json
10
+
11
+ - Convert csv file using script and output to specified path:
12
+
13
+ <%= config.bin %> <%= command.id %> -i ./path/to/input.csv -o ./path/to/output.csv -c ./path/to/convert.js
14
+
15
+ # flags.input.summary
16
+
17
+ [default: standard input] The path of the input CSV file
18
+
19
+ # flags.output.summary
20
+
21
+ [default: standard output] The path of the output CSV file
22
+
23
+ # flags.encoding.summary
24
+
25
+ The input CSV file encoding
26
+
27
+ # flags.delimiter.summary
28
+
29
+ The input CSV file delimiter
30
+
31
+ # flags.quote.summary
32
+
33
+ The input CSV file quote character
34
+
35
+ # flags.skiplines.summary
36
+
37
+ The number of lines to skip
38
+
39
+ # flags.trim.summary
40
+
41
+ Trim all white space from columns
42
+
43
+ # flags.mapping.summary
44
+
45
+ The path of the JSON file that defines CSV column mappings
46
+
47
+ # flags.converter.summary
48
+
49
+ The path of the script to convert CSV rows
@@ -0,0 +1,24 @@
1
+ # summary
2
+
3
+ Deploy page layout assignments from JSON file.
4
+
5
+ # examples
6
+
7
+ - Deploy from the default file path to the default org:
8
+
9
+ <%= config.bin %> <%= command.id %>
10
+
11
+ - Deploy from the specified file to the default org:
12
+
13
+ <%= config.bin %> <%= command.id %> -f config/layout-assignments.scratch.json
14
+
15
+ - Deploy from the specified file to the specified org:
16
+ <%= config.bin %> <%= command.id %> -o me@my.org -f config/layout-assignments.sandbox.json
17
+
18
+ # flags.file.summary
19
+
20
+ Input file path of page layout assignment settings.
21
+
22
+ # spinner.start
23
+
24
+ Deploy page layout assignments from %s
@@ -0,0 +1,46 @@
1
+ # summary
2
+
3
+ Retrieve page layout assignments and save to JSON file.
4
+
5
+ # examples
6
+
7
+ - Retrieve page layout assignments from the default org and save to the default path:
8
+
9
+ <%= config.bin %> <%= command.id %>
10
+
11
+ - Retrieve Admin profile's Account and Contact page layout assignments and save to the specified path:
12
+
13
+ <%= config.bin %> <%= command.id %> -p Admin -s Account -s Contact -f config/layout-assignments.scratch.json
14
+
15
+ - Retrieve page layout assignments from the specified org and save to the specified path:
16
+ <%= config.bin %> <%= command.id %> -o me@my.org -f config/layout-assignments.sandbox.json
17
+
18
+ # flags.file.summary
19
+
20
+ Output file path of page layout assignment settings.
21
+
22
+ # flags.profile.summary
23
+
24
+ [default: all profiles] Profile names to retrieve
25
+
26
+ # flags.sobject.summary
27
+
28
+ [default: sobjects which have multiple layouts] SObject names to retrieve
29
+
30
+ # flags.merge.summary
31
+
32
+ Merge retrieved configurations with existing file.
33
+
34
+ # spinner.start
35
+
36
+ Retrieve page layout assignments
37
+
38
+ # result
39
+
40
+ Saved to %s:
41
+ profiles: %s
42
+ sobjects: %s
43
+
44
+ # error.noSObjects
45
+
46
+ There are no sobjects to retrieve.
@@ -0,0 +1,25 @@
1
+ # summary
2
+
3
+ Describe sobject fields information.
4
+
5
+ # examples
6
+
7
+ - Describe Account fields of the default org and save to csv file:
8
+
9
+ <%= config.bin %> <%= command.id %> -s Account -f path/to/account_fields.csv
10
+
11
+ - Output CustomObject\_\_c fields of the specified org as JSON format:
12
+
13
+ <%= config.bin %> <%= command.id %> -o me@my.org -s CustomObject\_\_c --json
14
+
15
+ # flags.sobject.summary
16
+
17
+ SObject name to describe
18
+
19
+ # flags.file.summary
20
+
21
+ Output csv file path
22
+
23
+ # spinner.start
24
+
25
+ Describe %s fields
@@ -0,0 +1,29 @@
1
+ # summary
2
+
3
+ Upsert and delete sobject fields from a CSV file.
4
+
5
+ # examples
6
+
7
+ - Upsert Account fields to the default org:
8
+
9
+ <%= config.bin %> <%= command.id %> -s Account -f path/to/account_fields.csv
10
+
11
+ - Upsert and delete CustomObject\_\_c fields to the specified org:
12
+
13
+ <%= config.bin %> <%= command.id %> -o me@my.org -s CustomObject\_\_c -f path/to/custom_object_fields.csv --delete
14
+
15
+ # flags.sobject.summary
16
+
17
+ SObject name to setup
18
+
19
+ # flags.file.summary
20
+
21
+ Input csv file path
22
+
23
+ # flags.delete.summary
24
+
25
+ Delete fields that are not in the csv file
26
+
27
+ # flags.force.summary
28
+
29
+ Do not confirm when deleting
@@ -0,0 +1,42 @@
1
+ # summary
2
+
3
+ Execute Node.js scripts in SfCommand context.
4
+
5
+ # description
6
+
7
+ Available variables in Node.js scripts
8
+
9
+ - argv: Parsed command line arguments after the file option
10
+ - conn: jsforce Connection
11
+ - context: SfCommand
12
+
13
+ # examples
14
+
15
+ - Execute from js file:
16
+
17
+ <%= config.bin %> <%= command.id %> -f ./path/to/script.js
18
+
19
+ - Execute in REPL mode:
20
+
21
+ <%= config.bin %> <%= command.id %> -o target-org
22
+
23
+ - query a account from org in REPL
24
+
25
+ > await conn.query('SELECT Id, Name FROM Account LIMIT 1')
26
+
27
+ Top level await is not enabled by default in REPL before Node.js v16
28
+ $ NODE_OPTIONS=--experimental-repl-await <%= config.bin %> <%= command.id %>
29
+
30
+ # flags.file.summary
31
+
32
+ The path of the Node.js script file to execute.
33
+
34
+ # repl.start
35
+
36
+ Starting REPL mode
37
+ Available variables
38
+
39
+ - conn: jsforce Connection
40
+ - context: SfCommand
41
+
42
+ Type .exit or Press Ctrl+D to exit the REPL