@kitalive/sfdx-plugin 0.4.6 → 0.5.1

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 +69 -65
  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 +161 -48
  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,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