@salesforce/plugin-orchestrator 1.0.17 → 1.0.20

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 (35) hide show
  1. package/README.md +2 -2
  2. package/lib/commands/orchestrator/app/update.d.ts +0 -4
  3. package/lib/commands/orchestrator/app/update.js +4 -44
  4. package/lib/commands/orchestrator/app/update.js.map +1 -1
  5. package/lib/commands/orchestrator/app/upgrade.d.ts +32 -0
  6. package/lib/commands/orchestrator/app/upgrade.js +188 -0
  7. package/lib/commands/orchestrator/app/upgrade.js.map +1 -0
  8. package/lib/commands/orchestrator/rules/eval.d.ts +63 -0
  9. package/lib/commands/orchestrator/rules/eval.js +126 -0
  10. package/lib/commands/orchestrator/rules/eval.js.map +1 -0
  11. package/lib/commands/orchestrator/template/list.d.ts +1 -0
  12. package/lib/commands/orchestrator/template/list.js +12 -2
  13. package/lib/commands/orchestrator/template/list.js.map +1 -1
  14. package/lib/utils/app/appDisplayUtil.js +1 -1
  15. package/lib/utils/app/appDisplayUtil.js.map +1 -1
  16. package/lib/utils/app/appframeworkapp.d.ts +12 -2
  17. package/lib/utils/app/appframeworkapp.js +36 -3
  18. package/lib/utils/app/appframeworkapp.js.map +1 -1
  19. package/messages/appframework.create.app.md +92 -38
  20. package/messages/appframework.create.template.md +74 -21
  21. package/messages/appframework.delete.app.md +101 -17
  22. package/messages/appframework.delete.template.md +84 -31
  23. package/messages/appframework.display.app.md +88 -15
  24. package/messages/appframework.display.template.md +71 -28
  25. package/messages/appframework.list.app.md +36 -58
  26. package/messages/appframework.list.template.md +63 -24
  27. package/messages/appframework.update.app.md +96 -24
  28. package/messages/appframework.update.template.md +112 -21
  29. package/messages/orchestrator.app.upgrade.md +141 -0
  30. package/messages/orchestrator.rules.eval.md +55 -0
  31. package/npm-shrinkwrap.json +4159 -4068
  32. package/oclif.lock +3608 -3373
  33. package/oclif.manifest.json +400 -168
  34. package/package.json +33 -11
  35. package/messages/appframework.decouple.app.md +0 -82
@@ -1,10 +1,36 @@
1
1
  # summary
2
2
 
3
- Display details of an AppFramework template.
3
+ Display details of a template.
4
4
 
5
5
  # description
6
6
 
7
- Shows detailed information about a specific AppFramework template including its name, label, ID, type, and other properties.
7
+ Display comprehensive information about a specific template including its name, label, ID, type, subtype, description, and other metadata properties. Use this command to inspect templates before using them to create apps or for understanding template configurations.
8
+
9
+ You can identify a template by either its unique ID or its name. Template IDs are guaranteed to be unique, while template names should be unique within an org. The command displays all available template properties in a formatted, easy-to-read layout.
10
+
11
+ Template information helps you understand what the template provides, its intended use case, and how to use it effectively when creating orchestrated apps. You must have Data Cloud and Tableau Next enabled in your org and the AppFrameworkViewApp user permission to view templates.
12
+
13
+ # examples
14
+
15
+ - Display a template using its ID:
16
+
17
+ <%= config.bin %> <%= command.id %> --target-org myOrg --template-id 01RM0000000HwBGMA0
18
+
19
+ - Display a template using its name:
20
+
21
+ <%= config.bin %> <%= command.id %> --target-org myOrg --template-name "MyTemplate"
22
+
23
+ - Display a template with a name that contains spaces:
24
+
25
+ <%= config.bin %> <%= command.id %> --target-org myOrg --template-name "Sales Analytics Template"
26
+
27
+ - Display a template in a specific org using a particular API version:
28
+
29
+ <%= config.bin %> <%= command.id %> --target-org mySandbox --template-id 01RM0000000HwBGMA0 --api-version 60.0
30
+
31
+ - Display a template by name in your default org:
32
+
33
+ <%= config.bin %> <%= command.id %> --template-name "dashboard_template"
8
34
 
9
35
  # flags.template-id.summary
10
36
 
@@ -12,7 +38,7 @@ The ID of the template to display.
12
38
 
13
39
  # flags.template-id.description
14
40
 
15
- Specify the unique identifier of the template you want to display. Use this flag when you know the template's ID.
41
+ Specify the unique identifier of the template you want to display. Template IDs are guaranteed to be unique within an org. Use this flag when you know the template's ID, which you can get from "sf orchestrator template list" command. Either --template-id or --template-name is required.
16
42
 
17
43
  # flags.template-name.summary
18
44
 
@@ -20,82 +46,99 @@ The name of the template to display.
20
46
 
21
47
  # flags.template-name.description
22
48
 
23
- Specify the name of the template you want to display. Use this flag when you know the template's name but not its ID.
49
+ Specify the name of the template you want to display. Template names should be unique within an org. Use this flag when you know the template's name but not its ID. If the name contains spaces, enclose it in quotes. Either --template-id or --template-name is required.
24
50
 
25
51
  # flags.target-org.summary
26
52
 
27
- Login username or alias for the target org
53
+ Login username or alias for the target org.
28
54
 
29
55
  # flags.target-org.description
30
56
 
31
- The target org to connect to for displaying the template.
57
+ The target org to connect to for displaying the template. This org must have Data Cloud and Tableau Next enabled and you must have the AppFrameworkViewApp user permission to view templates. The template must exist in this org.
32
58
 
33
59
  # flags.api-version.summary
34
60
 
35
- Override the api version used for api requests
61
+ Override the API version used for API requests.
36
62
 
37
63
  # flags.api-version.description
38
64
 
39
- Override the api version used for api requests to the app framework.
65
+ Override the API version used for orchestrator API requests. Use this flag to specify a particular API version when the default version doesn't work with your org's configuration.
40
66
 
41
67
  # fetchingTemplate
42
68
 
43
- Fetching AppFramework template...
69
+ Fetching template...
44
70
 
45
71
  # error.MissingRequiredFlag
46
72
 
47
- Either --template-id or --template-name must be provided
73
+ Either --template-id or --template-name must be provided.
48
74
 
49
75
  # error.MissingRequiredFlag.Actions
50
76
 
51
- - Use --template-id to specify a template by ID
52
- - Use --template-name to specify a template by name
77
+ - Use --template-id to specify a template by its unique ID
78
+ - Use --template-name to specify a template by its name
79
+ - Get template IDs and names using "sf orchestrator template list"
53
80
 
54
81
  # error.CertificateError
55
82
 
56
- Error retrieving AppFramework template: Certificate validation error
83
+ Error retrieving template: Certificate validation error.
57
84
 
58
85
  # error.CertificateError.Actions
59
86
 
60
87
  - This appears to be a certificate validation issue, which is common in dev environments
61
88
  - Try specifying the API version with --api-version=64.0 (or your org's version)
62
- - Make sure you're using the correct org with -o YOUR_ORG_ALIAS
89
+ - Make sure you're using the correct org with --target-org YOUR_ORG_ALIAS
63
90
  - If using a sandbox or scratch org, ensure your connection is properly authenticated
64
91
 
65
92
  # error.AuthenticationError
66
93
 
67
- Error retrieving AppFramework template: Authentication issue
94
+ Error retrieving template: Authentication issue.
68
95
 
69
96
  # error.AuthenticationError.Actions
70
97
 
71
98
  - Your session may have expired or you may not have permission to access this resource
72
- - Try running sf org refresh to update your credentials
73
- - Ensure you have AppFramework enabled and have permission to view templates
99
+ - Try running "sf org login web" to reauthenticate
100
+ - Ensure you have Tableau Next enabled and have permission to view templates
101
+ - Verify the target org is correct and accessible
74
102
 
75
103
  # error.TemplateNotFound
76
104
 
77
- Template %s not found
105
+ Template "%s" not found.
78
106
 
79
107
  # error.TemplateNotFound.Actions
80
108
 
81
109
  - Verify that you have the correct template ID or name
82
- - Ensure the template exists in this org
110
+ - Ensure the template exists in this org using "sf orchestrator template list"
83
111
  - Check your permissions to view templates
112
+ - Make sure you're connected to the correct org with --target-org
84
113
 
85
114
  # error.GenericError
86
115
 
87
- Error retrieving AppFramework template: %s
116
+ Error retrieving template: %s
88
117
 
89
118
  # error.GenericError.Actions
90
119
 
91
- - Verify that you are using an org with AppFramework enabled
120
+ - Verify that you are using an org with Data Cloud and Tableau Next enabled
92
121
  - Check that the template ID or name is correct
93
- - Check your credentials and permissions
94
- - Try running sf org refresh to update your credentials
122
+ - Ensure you have permission to view templates
123
+ - Try running "sf org login web" to reauthenticate
124
+ - Verify the target org has Data Cloud and Tableau Next properly configured
95
125
 
96
- # examples
126
+ # error.MultipleTemplatesFound
97
127
 
98
- - Display a template using its ID:
99
- <%= config.bin %> <%= command.id %> --template-id 01RM0000000HwBGMA0
100
- - Display a template using its name:
101
- <%= config.bin %> <%= command.id %> --template-name MyTemplate
128
+ Multiple templates found with name "%s".
129
+
130
+ # error.MultipleTemplatesFound.Actions
131
+
132
+ - Use --template-id instead of --template-name for unique identification
133
+ - Get the specific template ID using "sf orchestrator template list"
134
+ - Template names should be unique, but this org may have duplicates
135
+
136
+ # error.InvalidTemplateId
137
+
138
+ Template ID "%s" is not valid.
139
+
140
+ # error.InvalidTemplateId.Actions
141
+
142
+ - Verify the template ID format is correct
143
+ - Get valid template IDs using "sf orchestrator template list"
144
+ - Template IDs should be 15 or 18 character Salesforce IDs
@@ -1,74 +1,56 @@
1
1
  # summary
2
2
 
3
- List AppFramework apps in your org.
3
+ List all orchestrated apps in the target org.
4
4
 
5
5
  # description
6
6
 
7
- Lists all AppFramework apps in your org. You can filter the results by template type and other criteria.
7
+ List all orchestrated apps in your org with their key information including name, label, ID, type, and associated template details. This command helps you discover and manage existing apps in your organization.
8
8
 
9
- # flags.target-org.summary
10
-
11
- Login username or alias for the target org.
12
-
13
- # flags.target-org.description
14
-
15
- Overrides your default org.
16
-
17
- # flags.api-version.summary
18
-
19
- Override the api version used for api requests made by this command.
20
-
21
- # flags.api-version.description
22
-
23
- Override the api version used for api requests made by this command.
24
-
25
- # flags.filter-type.summary
9
+ Apps are displayed in a table format showing their current status, creation details, and template associations. Use this information to understand your app inventory and make informed decisions about app management.
26
10
 
27
- Filter apps by template type.
11
+ You must have Data Cloud and Tableau Next enabled in your org and the AppFrameworkViewApp user permission to view apps. This command works with production orgs, sandboxes, and scratch orgs.
28
12
 
29
- # flags.filter-type.description
30
-
31
- Only show apps with the specified template type, such as 'app', 'dashboard', or 'analytics'.
13
+ # examples
32
14
 
33
- # flags.filter-subtype.summary
15
+ - List all orchestrated apps in your default org:
34
16
 
35
- Filter apps by template subtype.
17
+ <%= config.bin %> <%= command.id %>
36
18
 
37
- # flags.filter-subtype.description
19
+ - List apps in a specific org:
38
20
 
39
- Only show apps with the specified template subtype.
21
+ <%= config.bin %> <%= command.id %> --target-org myOrg
40
22
 
41
- # flags.json.summary
23
+ - List apps using a specific API version:
42
24
 
43
- Format output as JSON.
25
+ <%= config.bin %> <%= command.id %> --api-version 64.0
44
26
 
45
- # flags.json.description
27
+ - List apps in a sandbox org with specific API version:
46
28
 
47
- Format output as a JSON array of app records.
29
+ <%= config.bin %> <%= command.id %> --target-org mySandbox --api-version 60.0
48
30
 
49
- # flags.csv.summary
31
+ # flags.target-org.summary
50
32
 
51
- Format output as CSV.
33
+ Login username or alias for the target org.
52
34
 
53
- # flags.csv.description
35
+ # flags.target-org.description
54
36
 
55
- Format output as CSV on the specified fields.
37
+ The target org to connect to for listing apps. This org must have Data Cloud and Tableau Next enabled and you must have the AppFrameworkViewApp user permission to view apps.
56
38
 
57
- # flags.csv-fields.summary
39
+ # flags.api-version.summary
58
40
 
59
- Fields to include when generating CSV output.
41
+ Override the API version used for API requests.
60
42
 
61
- # flags.csv-fields.description
43
+ # flags.api-version.description
62
44
 
63
- Specify a comma-separated list of field API names to include in the CSV output.
45
+ Override the API version used for orchestrator API requests. Use this flag to specify a particular API version when the default version doesn't work with your org's configuration.
64
46
 
65
47
  # fetchingApps
66
48
 
67
- Fetching apps from AppFramework. This might take a moment...
49
+ Fetching apps. This might take a moment...
68
50
 
69
51
  # noAppsFound
70
52
 
71
- No AppFramework apps found in the org.
53
+ No orchestrated apps found in the org.
72
54
 
73
55
  # emptyFilteredApps
74
56
 
@@ -84,16 +66,9 @@ Failed to list apps: %s
84
66
  - Ensure your authentication to the org is valid
85
67
  - Try running with --debug for more details
86
68
 
87
- # examples
88
-
89
- - List all AppFramework apps in your default org:
90
- <%= config.bin %> <%= command.id %>
91
- - List apps with a specific API version:
92
- <%= config.bin %> <%= command.id %> --api-version=64.0
93
-
94
69
  # noResultsFound
95
70
 
96
- No AppFramework apps found in the org.
71
+ No apps found in the org.
97
72
 
98
73
  # error.CertificateError
99
74
 
@@ -101,9 +76,10 @@ Certificate error: Unable to connect to the org. This is typically caused by an
101
76
 
102
77
  # error.CertificateError.Actions
103
78
 
104
- - Check your network connection and try again.
105
- - Ensure that your network is not blocking or intercepting HTTPS requests.
106
- - If you are behind a corporate proxy, ensure that your proxy certificates are properly configured.
79
+ - Check your network connection and try again
80
+ - Ensure that your network is not blocking or intercepting HTTPS requests
81
+ - If you are behind a corporate proxy, ensure that your proxy certificates are properly configured
82
+ - Try specifying the API version with --api-version
107
83
 
108
84
  # error.AuthenticationError
109
85
 
@@ -111,9 +87,10 @@ Authentication error: Unable to authenticate with the org. Please check your cre
111
87
 
112
88
  # error.AuthenticationError.Actions
113
89
 
114
- - Use `sf org login` to log in to the org again.
115
- - Ensure that your user has the necessary permissions to access the AppFramework API.
116
- - Check if your authentication token has expired.
90
+ - Use "sf org login web" to log in to the org again
91
+ - Ensure that your user has the necessary permissions to access the orchestration API
92
+ - Check if your authentication token has expired
93
+ - Verify the target org is correct and accessible
117
94
 
118
95
  # error.GenericError
119
96
 
@@ -121,6 +98,7 @@ An error occurred while listing apps: %s
121
98
 
122
99
  # error.GenericError.Actions
123
100
 
124
- - Check the error message above for more details.
125
- - Ensure that AppFramework is enabled in your org.
126
- - Ensure that your user has the necessary permissions.
101
+ - Check the error message above for more details
102
+ - Ensure that Data Cloud and Tableau Next are enabled in your org
103
+ - Ensure that your user has the necessary permissions
104
+ - Try running "sf org login web" to reauthenticate
@@ -1,38 +1,82 @@
1
1
  # summary
2
2
 
3
- List all available AppFramework templates in the target org.
3
+ List all available templates in the target org.
4
4
 
5
5
  # description
6
6
 
7
- Lists AppFramework templates available in the target org. Shows template name, label, ID and other information.
7
+ Templates are reusable configurations that define the structure and settings for creating orchestrated apps. Use this command to discover available templates in your org before creating new apps.
8
+
9
+ By default, this command only shows custom templates created in your org. Standard Salesforce-provided templates are filtered out to reduce noise. Use the --all flag to include all templates including the standard ones.
10
+
11
+ Templates are displayed in a table format showing their name, label, ID, type, and other metadata. This information helps you choose the right template for your orchestrated app development.
12
+
13
+ You must have Data Cloud and Tableau Next enabled in your org and the AppFrameworkViewApp user permission to view templates. This command works with production orgs, sandboxes, and scratch orgs.
14
+
15
+ # examples
16
+
17
+ - List all templates in your default org:
18
+
19
+ <%= config.bin %> <%= command.id %>
20
+
21
+ - List templates in a specific org:
22
+
23
+ <%= config.bin %> <%= command.id %> --target-org myOrg
24
+
25
+ - List templates using a specific API version:
26
+
27
+ <%= config.bin %> <%= command.id %> --api-version 64.0
28
+
29
+ - List templates in a sandbox org with a specific API version:
30
+
31
+ <%= config.bin %> <%= command.id %> --target-org mySandbox --api-version 60.0
32
+
33
+ - List all templates including standard Salesforce templates:
34
+
35
+ <%= config.bin %> <%= command.id %> --all
36
+
37
+ - List all templates in a specific org:
38
+
39
+ <%= config.bin %> <%= command.id %> --target-org myOrg --all
8
40
 
9
41
  # flags.target-org.summary
10
42
 
11
- Login username or alias for the target org
43
+ Login username or alias for the target org.
12
44
 
13
45
  # flags.target-org.description
14
46
 
15
- The target org to connect to for listing templates.
47
+ The target org to connect to for listing templates. This org must have Data Cloud and Tableau Next enabled and you must have the AppFrameworkViewApp user permission to view templates.
16
48
 
17
49
  # flags.api-version.summary
18
50
 
19
- Override the api version used for api requests
51
+ Override the API version used for API requests.
20
52
 
21
53
  # flags.api-version.description
22
54
 
23
- Override the api version used for api requests to the app framework.
55
+ Override the API version used for orchestrator API requests. Use this flag to specify a particular API version when the default version doesn't work with your org's configuration.
56
+
57
+ # flags.all.summary
58
+
59
+ Show all templates including standard Salesforce templates.
60
+
61
+ # flags.all.description
62
+
63
+ By default, this command only shows custom templates created in your org. Use this flag to include the standard Salesforce-provided templates (those starting with 'sfdc_internal\_\_') in the results.
24
64
 
25
65
  # templatesFound
26
66
 
27
- Found %s AppFramework templates:
67
+ Found %s templates:
28
68
 
29
69
  # noResultsFound
30
70
 
31
- No AppFramework templates found.
71
+ No templates found.
72
+
73
+ # noCustomTemplatesFound
74
+
75
+ No custom templates found. Use --all to include standard Salesforce templates.
32
76
 
33
77
  # fetchingTemplates
34
78
 
35
- Fetching AppFramework templates...
79
+ Fetching templates...
36
80
 
37
81
  # templateTypeLegend
38
82
 
@@ -40,39 +84,34 @@ Legend: %s, %s, %s - Other template types
40
84
 
41
85
  # error.CertificateError
42
86
 
43
- Error retrieving AppFramework templates: Certificate validation error
87
+ Error retrieving templates: Certificate validation error.
44
88
 
45
89
  # error.CertificateError.Actions
46
90
 
47
91
  - This appears to be a certificate validation issue, which is common in dev environments
48
92
  - Try specifying the API version with --api-version=64.0 (or your org's version)
49
- - Make sure you're using the correct org with -o YOUR_ORG_ALIAS
93
+ - Make sure you're using the correct org with --target-org YOUR_ORG_ALIAS
50
94
  - If using a sandbox or scratch org, ensure your connection is properly authenticated
51
95
 
52
96
  # error.AuthenticationError
53
97
 
54
- Error retrieving AppFramework templates: Authentication issue
98
+ Error retrieving templates: Authentication issue.
55
99
 
56
100
  # error.AuthenticationError.Actions
57
101
 
58
102
  - Your session may have expired or you may not have permission to access this resource
59
- - Try running sf org refresh to update your credentials
60
- - Ensure you have AppFramework enabled and have permission to view templates
103
+ - Try running "sf org login web" to reauthenticate
104
+ - Ensure you have Data Cloud and Tableau Next enabled and have the AppFrameworkViewApp user permission to view templates
105
+ - Verify the target org is correct and accessible
61
106
 
62
107
  # error.GenericError
63
108
 
64
- Error retrieving AppFramework templates: %s
109
+ Error retrieving templates: %s
65
110
 
66
111
  # error.GenericError.Actions
67
112
 
68
- - Verify that you are using an org with AppFramework enabled
113
+ - Verify that you are using an org with Data Cloud and Tableau Next enabled
69
114
  - Check that your credentials and permissions are valid
70
115
  - Check your internet connection
71
- - Try running sf org refresh to update your credentials
72
-
73
- # examples
74
-
75
- - List all AppFramework templates in your default org:
76
- <%= config.bin %> <%= command.id %>
77
- - List templates with a specific API version:
78
- <%= config.bin %> <%= command.id %> --api-version=64.0
116
+ - Try running "sf org login web" to reauthenticate
117
+ - Ensure the target org has Data Cloud and Tableau Next properly configured