@salesforce/plugin-orchestrator 1.0.20 → 1.1.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.
@@ -52,9 +52,9 @@ export default class TemplateEval extends SfCommand<TemplatePreviewResult> {
52
52
  static readonly flags: {
53
53
  'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
54
54
  'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
55
- 'template-info': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
56
- variables: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
57
- rules: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
55
+ 'document-file': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
56
+ 'values-file': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
57
+ 'definition-file': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
58
58
  };
59
59
  run(): Promise<TemplatePreviewResult>;
60
60
  private getTemplatePayload;
@@ -17,7 +17,7 @@ import * as fs from 'node:fs/promises';
17
17
  import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
18
18
  import { Messages } from '@salesforce/core';
19
19
  Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
20
- const messages = Messages.loadMessages('@salesforce/plugin-orchestrator', 'orchestrator.rules.eval');
20
+ const messages = Messages.loadMessages('@salesforce/plugin-orchestrator', 'orchestrator.template.eval');
21
21
  export default class TemplateEval extends SfCommand {
22
22
  static summary = messages.getMessage('summary');
23
23
  static description = messages.getMessage('description');
@@ -32,23 +32,23 @@ export default class TemplateEval extends SfCommand {
32
32
  summary: messages.getMessage('flags.api-version.summary'),
33
33
  description: messages.getMessage('flags.api-version.description'),
34
34
  }),
35
- 'template-info': Flags.file({
36
- char: 't',
37
- summary: messages.getMessage('flags.template-info.summary'),
38
- description: messages.getMessage('flags.template-info.description'),
35
+ 'document-file': Flags.file({
36
+ char: 'd',
37
+ summary: messages.getMessage('flags.document-file.summary'),
38
+ description: messages.getMessage('flags.document-file.description'),
39
39
  required: true,
40
40
  }),
41
- variables: Flags.file({
41
+ 'values-file': Flags.file({
42
42
  char: 'v',
43
- summary: messages.getMessage('flags.variables.summary'),
44
- description: messages.getMessage('flags.variables.description'),
45
- required: true,
43
+ summary: messages.getMessage('flags.values-file.summary'),
44
+ description: messages.getMessage('flags.values-file.description'),
45
+ dependsOn: ['document-file'],
46
46
  }),
47
- rules: Flags.file({
47
+ 'definition-file': Flags.file({
48
48
  char: 'r',
49
- summary: messages.getMessage('flags.rules.summary'),
50
- description: messages.getMessage('flags.rules.description'),
51
- required: true,
49
+ summary: messages.getMessage('flags.definition-file.summary'),
50
+ description: messages.getMessage('flags.definition-file.description'),
51
+ dependsOn: ['document-file'],
52
52
  }),
53
53
  };
54
54
  async run() {
@@ -94,25 +94,31 @@ export default class TemplateEval extends SfCommand {
94
94
  }
95
95
  }
96
96
  async getTemplatePayload(flags) {
97
- return this.getDirectFilePayload(flags['template-info'], flags['variables'], flags['rules']);
97
+ return this.getDirectFilePayload(flags['document-file'], flags['values-file'], flags['definition-file']);
98
98
  }
99
- async getDirectFilePayload(templateInfoFile, variablesFile, rulesFile) {
100
- this.log(`Loading template info: ${templateInfoFile}`);
101
- // Read and parse the template-info file
102
- const templateInfoContent = await fs.readFile(templateInfoFile, 'utf8');
103
- const document = JSON.parse(templateInfoContent);
104
- // Read variables file
105
- this.log(`Loading variables: ${variablesFile}`);
106
- const variablesContent = await fs.readFile(variablesFile, 'utf8');
107
- const values = JSON.parse(variablesContent);
108
- // Read rules file
109
- this.log(`Loading rules: ${rulesFile}`);
110
- const rulesContent = await fs.readFile(rulesFile, 'utf8');
111
- const definition = JSON.parse(rulesContent);
99
+ async getDirectFilePayload(documentFile, valuesFile, definitionFile) {
100
+ this.log(`Loading document: ${documentFile}`);
101
+ // Read and parse the document file
102
+ const documentContent = await fs.readFile(documentFile, 'utf8');
103
+ const document = JSON.parse(documentContent);
104
+ // Read values file if provided, otherwise use empty object
105
+ let values = { Variables: { hello: 'world' } };
106
+ if (valuesFile) {
107
+ this.log(`Loading values: ${valuesFile}`);
108
+ const valuesContent = await fs.readFile(valuesFile, 'utf8');
109
+ values = JSON.parse(valuesContent);
110
+ }
111
+ // Read definition file if provided, otherwise use empty rules
112
+ let definition = { rules: [] };
113
+ if (definitionFile) {
114
+ this.log(`Loading definition: ${definitionFile}`);
115
+ const definitionContent = await fs.readFile(definitionFile, 'utf8');
116
+ definition = JSON.parse(definitionContent);
117
+ }
112
118
  return {
113
119
  template: {
114
120
  name: 'Direct Files',
115
- path: templateInfoFile,
121
+ path: documentFile,
116
122
  source: 'local',
117
123
  },
118
124
  payload: {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eval.js","sourceRoot":"","sources":["../../../../src/commands/orchestrator/template/eval.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAc,MAAM,kBAAkB,CAAC;AAExD,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,iCAAiC,EAAE,4BAA4B,CAAC,CAAC;AAmDxG,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,SAAgC;IACjE,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CA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K,CAAC,aAAa,CAAkB,CAAC;QACtD,CAAC;QAED,8DAA8D;QAC9D,IAAI,UAAU,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;QAC/B,IAAI,cAAc,EAAE,CAAC;YACnB,IAAI,CAAC,GAAG,CAAC,uBAAuB,cAAc,EAAE,CAAC,CAAC;YAClD,MAAM,iBAAiB,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;YACpE,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAsB,CAAC;QAClE,CAAC;QAED,OAAO;YACL,QAAQ,EAAE;gBACR,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,YAAY;gBAClB,MAAM,EAAE,OAAgB;aACzB;YACD,OAAO,EAAE;gBACP,QAAQ,EAAE,QAA6C;gBACvD,MAAM,EAAE,MAAyC;gBACjD,UAAU,EAAE,UAAiD;aAC9D;SACF,CAAC;IACJ,CAAC"}
@@ -8,7 +8,6 @@ export default class ListTemplate extends SfCommand<TemplateData[]> {
8
8
  static readonly flags: {
9
9
  'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
10
10
  'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
- all: import("@oclif/core/interfaces").BooleanFlag<boolean>;
12
11
  };
13
12
  run(): Promise<TemplateData[]>;
14
13
  }
@@ -35,11 +35,6 @@ export default class ListTemplate extends SfCommand {
35
35
  summary: messages.getMessage('flags.api-version.summary'),
36
36
  description: messages.getMessage('flags.api-version.description'),
37
37
  }),
38
- all: Flags.boolean({
39
- summary: messages.getMessage('flags.all.summary'),
40
- description: messages.getMessage('flags.all.description'),
41
- default: false,
42
- }),
43
38
  };
44
39
  async run() {
45
40
  const { flags } = await this.parse(ListTemplate);
@@ -49,17 +44,12 @@ export default class ListTemplate extends SfCommand {
49
44
  const appFrameworkTemplate = new AppFrameworkTemplate(connection);
50
45
  const rawTemplates = await appFrameworkTemplate.list();
51
46
  this.spinner.stop();
52
- let templates = TemplateListUtil.processTemplates(rawTemplates);
53
- // Filter out standard templates by default unless --all flag is used
54
- if (!flags.all) {
55
- templates = templates.filter((template) => !template.name?.startsWith('sfdc_internal__'));
56
- }
47
+ const templates = TemplateListUtil.processTemplates(rawTemplates);
57
48
  if (templates.length > 0) {
58
49
  TemplateDisplayUtil.displayTemplateList(this, templates);
59
50
  }
60
51
  else {
61
- const messageKey = flags.all ? 'noResultsFound' : 'noCustomTemplatesFound';
62
- this.log(messages.getMessage(messageKey));
52
+ this.log(messages.getMessage('noResultsFound'));
63
53
  }
64
54
  return templates;
65
55
  }
@@ -1 +1 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../src/commands/orchestrator/template/list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAc,MAAM,kBAAkB,CAAC;AAEjE,OAAO,oBAAoB,MAAM,iDAAiD,CAAC;AAEnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAC;AAErF,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,iCAAiC,EAAE,4BAA4B,CAAC,CAAC;AAExG,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,SAAyB;IAC1D,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GA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Q,GAAI,KAAe,CAAC,OAAO,CAAC;YAE1C,IAAI,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;gBACtE,MAAM,IAAI,OAAO,CACf,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC,EAC7C,mBAAmB,EACnB,QAAQ,CAAC,WAAW,CAAC,gCAAgC,CAAC,CACvD,CAAC;YACJ,CAAC;iBAAM,IAAI,QAAQ,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;gBACzE,MAAM,IAAI,OAAO,CACf,QAAQ,CAAC,UAAU,CAAC,2BAA2B,CAAC,EAChD,mBAAmB,EACnB,QAAQ,CAAC,WAAW,CAAC,mCAAmC,CAAC,CAC1D,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,MAAM,IAAI,OAAO,CACf,QAAQ,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAC,QAAQ,CAAC,CAAC,EACrD,mBAAmB,EACnB,QAAQ,CAAC,WAAW,CAAC,4BAA4B,CAAC,CACnD,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC"}
@@ -6,8 +6,6 @@ List all available templates in the target org.
6
6
 
7
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
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
9
  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
10
 
13
11
  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.
@@ -30,14 +28,6 @@ You must have Data Cloud and Tableau Next enabled in your org and the AppFramewo
30
28
 
31
29
  <%= config.bin %> <%= command.id %> --target-org mySandbox --api-version 60.0
32
30
 
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
40
-
41
31
  # flags.target-org.summary
42
32
 
43
33
  Login username or alias for the target org.
@@ -54,14 +44,6 @@ Override the API version used for API requests.
54
44
 
55
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.
56
46
 
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.
64
-
65
47
  # templatesFound
66
48
 
67
49
  Found %s templates:
@@ -70,10 +52,6 @@ Found %s templates:
70
52
 
71
53
  No templates found.
72
54
 
73
- # noCustomTemplatesFound
74
-
75
- No custom templates found. Use --all to include standard Salesforce templates.
76
-
77
55
  # fetchingTemplates
78
56
 
79
57
  Fetching templates...
@@ -0,0 +1,58 @@
1
+ # summary
2
+
3
+ Test JSON transformation rules using the jsonxform/transformation endpoint.
4
+
5
+ # description
6
+
7
+ Preview how transformation rules will modify JSON documents before deploying templates. This command uses a sample transformation to test the jsonxform/transformation endpoint with built-in User and Org context variables.
8
+
9
+ # flags.target-org.summary
10
+
11
+ Username or alias for the target org; overrides default target org.
12
+
13
+ # flags.target-org.description
14
+
15
+ The username or alias of the target org where the jsonxform/transformation endpoint will be called. This org provides the User and Org context variables used in the transformation.
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
+ API version to use for the transformation request. Defaults to the org's configured API version.
24
+
25
+ # flags.document-file.summary
26
+
27
+ Path to JSON document file to transform.
28
+
29
+ # flags.document-file.description
30
+
31
+ Path to the JSON document file that will be transformed by the rules.
32
+
33
+ # flags.values-file.summary
34
+
35
+ Path to JSON values file for variables.
36
+
37
+ # flags.values-file.description
38
+
39
+ Path to JSON file containing variables used in transformations.
40
+
41
+ # flags.definition-file.summary
42
+
43
+ Path to JSON rules definition file.
44
+
45
+ # flags.definition-file.description
46
+
47
+ Path to JSON file containing transformation rules and definitions.
48
+
49
+ # examples
50
+
51
+ - Test JSON transformation with document file only:
52
+ <%= config.bin %> <%= command.id %> --document-file ./document.json --target-org myorg
53
+
54
+ - Test with document, values, and rules files:
55
+ <%= config.bin %> <%= command.id %> --document-file ./document.json --values-file ./values.json --definition-file ./rules.json --target-org myorg
56
+
57
+ - Test with specific API version:
58
+ <%= config.bin %> <%= command.id %> --document-file ./document.json --target-org myorg --api-version 60.0
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-orchestrator",
3
- "version": "1.0.20",
3
+ "version": "1.1.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@salesforce/plugin-orchestrator",
9
- "version": "1.0.20",
9
+ "version": "1.1.0",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "@inquirer/select": "^5.0.1",
@@ -1040,17 +1040,121 @@
1040
1040
  "display:template:orchestrator"
1041
1041
  ]
1042
1042
  },
1043
+ "orchestrator:template:eval": {
1044
+ "aliases": [],
1045
+ "args": {},
1046
+ "description": "Preview how transformation rules will modify JSON documents before deploying templates. This command uses a sample transformation to test the jsonxform/transformation endpoint with built-in User and Org context variables.",
1047
+ "examples": [
1048
+ "Test JSON transformation with document file only:\n<%= config.bin %> <%= command.id %> --document-file ./document.json --target-org myorg",
1049
+ "Test with document, values, and rules files:\n<%= config.bin %> <%= command.id %> --document-file ./document.json --values-file ./values.json --definition-file ./rules.json --target-org myorg",
1050
+ "Test with specific API version:\n<%= config.bin %> <%= command.id %> --document-file ./document.json --target-org myorg --api-version 60.0"
1051
+ ],
1052
+ "flags": {
1053
+ "json": {
1054
+ "description": "Format output as json.",
1055
+ "helpGroup": "GLOBAL",
1056
+ "name": "json",
1057
+ "allowNo": false,
1058
+ "type": "boolean"
1059
+ },
1060
+ "flags-dir": {
1061
+ "helpGroup": "GLOBAL",
1062
+ "name": "flags-dir",
1063
+ "summary": "Import flag values from a directory.",
1064
+ "hasDynamicHelp": false,
1065
+ "multiple": false,
1066
+ "type": "option"
1067
+ },
1068
+ "target-org": {
1069
+ "char": "o",
1070
+ "description": "The username or alias of the target org where the jsonxform/transformation endpoint will be called. This org provides the User and Org context variables used in the transformation.",
1071
+ "name": "target-org",
1072
+ "noCacheDefault": true,
1073
+ "required": true,
1074
+ "summary": "Username or alias for the target org; overrides default target org.",
1075
+ "hasDynamicHelp": true,
1076
+ "multiple": false,
1077
+ "type": "option"
1078
+ },
1079
+ "api-version": {
1080
+ "description": "API version to use for the transformation request. Defaults to the org's configured API version.",
1081
+ "name": "api-version",
1082
+ "summary": "Override the api version used for api requests made by this command.",
1083
+ "hasDynamicHelp": false,
1084
+ "multiple": false,
1085
+ "type": "option"
1086
+ },
1087
+ "document-file": {
1088
+ "char": "d",
1089
+ "description": "Path to the JSON document file that will be transformed by the rules.",
1090
+ "name": "document-file",
1091
+ "required": true,
1092
+ "summary": "Path to JSON document file to transform.",
1093
+ "hasDynamicHelp": false,
1094
+ "multiple": false,
1095
+ "type": "option"
1096
+ },
1097
+ "values-file": {
1098
+ "char": "v",
1099
+ "dependsOn": [
1100
+ "document-file"
1101
+ ],
1102
+ "description": "Path to JSON file containing variables used in transformations.",
1103
+ "name": "values-file",
1104
+ "summary": "Path to JSON values file for variables.",
1105
+ "hasDynamicHelp": false,
1106
+ "multiple": false,
1107
+ "type": "option"
1108
+ },
1109
+ "definition-file": {
1110
+ "char": "r",
1111
+ "dependsOn": [
1112
+ "document-file"
1113
+ ],
1114
+ "description": "Path to JSON file containing transformation rules and definitions.",
1115
+ "name": "definition-file",
1116
+ "summary": "Path to JSON rules definition file.",
1117
+ "hasDynamicHelp": false,
1118
+ "multiple": false,
1119
+ "type": "option"
1120
+ }
1121
+ },
1122
+ "hasDynamicHelp": true,
1123
+ "hiddenAliases": [],
1124
+ "id": "orchestrator:template:eval",
1125
+ "pluginAlias": "@salesforce/plugin-orchestrator",
1126
+ "pluginName": "@salesforce/plugin-orchestrator",
1127
+ "pluginType": "core",
1128
+ "strict": true,
1129
+ "summary": "Test JSON transformation rules using the jsonxform/transformation endpoint.",
1130
+ "enableJsonFlag": true,
1131
+ "isESM": true,
1132
+ "relativePath": [
1133
+ "lib",
1134
+ "commands",
1135
+ "orchestrator",
1136
+ "template",
1137
+ "eval.js"
1138
+ ],
1139
+ "aliasPermutations": [],
1140
+ "permutations": [
1141
+ "orchestrator:template:eval",
1142
+ "template:orchestrator:eval",
1143
+ "template:eval:orchestrator",
1144
+ "orchestrator:eval:template",
1145
+ "eval:orchestrator:template",
1146
+ "eval:template:orchestrator"
1147
+ ]
1148
+ },
1043
1149
  "orchestrator:template:list": {
1044
1150
  "aliases": [],
1045
1151
  "args": {},
1046
- "description": "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.\n\nBy 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.\n\nTemplates 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.\n\nYou 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.",
1152
+ "description": "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.\n\nTemplates 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.\n\nYou 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.",
1047
1153
  "examples": [
1048
1154
  "List all templates in your default org:\n<%= config.bin %> <%= command.id %>",
1049
1155
  "List templates in a specific org:\n<%= config.bin %> <%= command.id %> --target-org myOrg",
1050
1156
  "List templates using a specific API version:\n<%= config.bin %> <%= command.id %> --api-version 64.0",
1051
- "List templates in a sandbox org with a specific API version:\n<%= config.bin %> <%= command.id %> --target-org mySandbox --api-version 60.0",
1052
- "List all templates including standard Salesforce templates:\n<%= config.bin %> <%= command.id %> --all",
1053
- "List all templates in a specific org:\n<%= config.bin %> <%= command.id %> --target-org myOrg --all"
1157
+ "List templates in a sandbox org with a specific API version:\n<%= config.bin %> <%= command.id %> --target-org mySandbox --api-version 60.0"
1054
1158
  ],
1055
1159
  "flags": {
1056
1160
  "json": {
@@ -1086,13 +1190,6 @@
1086
1190
  "hasDynamicHelp": false,
1087
1191
  "multiple": false,
1088
1192
  "type": "option"
1089
- },
1090
- "all": {
1091
- "description": "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.",
1092
- "name": "all",
1093
- "summary": "Show all templates including standard Salesforce templates.",
1094
- "allowNo": false,
1095
- "type": "boolean"
1096
1193
  }
1097
1194
  },
1098
1195
  "hasDynamicHelp": true,
@@ -1239,108 +1336,7 @@
1239
1336
  "update:orchestrator:template",
1240
1337
  "update:template:orchestrator"
1241
1338
  ]
1242
- },
1243
- "orchestrator:rules:eval": {
1244
- "aliases": [],
1245
- "args": {},
1246
- "description": "Preview how transformation rules will modify JSON documents before deploying templates. This command uses a sample transformation to test the jsonxform/transformation endpoint with built-in User and Org context variables.",
1247
- "examples": [
1248
- "Test JSON transformation with Analytics template files:\n<%= config.bin %> <%= command.id %> --template-info ./template-info.json --variables ./variables.json --rules ./rules.json --target-org myorg",
1249
- "Test with specific API version:\n<%= config.bin %> <%= command.id %> --template-info ./template-info.json --variables ./variables.json --rules ./rules.json --target-org myorg --api-version 60.0"
1250
- ],
1251
- "flags": {
1252
- "json": {
1253
- "description": "Format output as json.",
1254
- "helpGroup": "GLOBAL",
1255
- "name": "json",
1256
- "allowNo": false,
1257
- "type": "boolean"
1258
- },
1259
- "flags-dir": {
1260
- "helpGroup": "GLOBAL",
1261
- "name": "flags-dir",
1262
- "summary": "Import flag values from a directory.",
1263
- "hasDynamicHelp": false,
1264
- "multiple": false,
1265
- "type": "option"
1266
- },
1267
- "target-org": {
1268
- "char": "o",
1269
- "description": "The username or alias of the target org where the jsonxform/transformation endpoint will be called. This org provides the User and Org context variables used in the transformation.",
1270
- "name": "target-org",
1271
- "noCacheDefault": true,
1272
- "required": true,
1273
- "summary": "Username or alias for the target org; overrides default target org.",
1274
- "hasDynamicHelp": true,
1275
- "multiple": false,
1276
- "type": "option"
1277
- },
1278
- "api-version": {
1279
- "description": "API version to use for the transformation request. Defaults to the org's configured API version.",
1280
- "name": "api-version",
1281
- "summary": "Override the api version used for api requests made by this command.",
1282
- "hasDynamicHelp": false,
1283
- "multiple": false,
1284
- "type": "option"
1285
- },
1286
- "template-info": {
1287
- "char": "t",
1288
- "description": "Path to the template-info.json file containing the base JSON document structure that will be transformed.",
1289
- "name": "template-info",
1290
- "required": true,
1291
- "summary": "Path to Analytics template-info.json file.",
1292
- "hasDynamicHelp": false,
1293
- "multiple": false,
1294
- "type": "option"
1295
- },
1296
- "variables": {
1297
- "char": "v",
1298
- "description": "Path to the variables.json file containing variable definitions used in transformations.",
1299
- "name": "variables",
1300
- "required": true,
1301
- "summary": "Path to Analytics variables.json file.",
1302
- "hasDynamicHelp": false,
1303
- "multiple": false,
1304
- "type": "option"
1305
- },
1306
- "rules": {
1307
- "char": "r",
1308
- "description": "Path to the rules.json file containing transformation rules and macro definitions.",
1309
- "name": "rules",
1310
- "required": true,
1311
- "summary": "Path to Analytics rules.json file.",
1312
- "hasDynamicHelp": false,
1313
- "multiple": false,
1314
- "type": "option"
1315
- }
1316
- },
1317
- "hasDynamicHelp": true,
1318
- "hiddenAliases": [],
1319
- "id": "orchestrator:rules:eval",
1320
- "pluginAlias": "@salesforce/plugin-orchestrator",
1321
- "pluginName": "@salesforce/plugin-orchestrator",
1322
- "pluginType": "core",
1323
- "strict": true,
1324
- "summary": "Test JSON transformation rules using the jsonxform/transformation endpoint.",
1325
- "enableJsonFlag": true,
1326
- "isESM": true,
1327
- "relativePath": [
1328
- "lib",
1329
- "commands",
1330
- "orchestrator",
1331
- "rules",
1332
- "eval.js"
1333
- ],
1334
- "aliasPermutations": [],
1335
- "permutations": [
1336
- "orchestrator:rules:eval",
1337
- "rules:orchestrator:eval",
1338
- "rules:eval:orchestrator",
1339
- "orchestrator:eval:rules",
1340
- "eval:orchestrator:rules",
1341
- "eval:rules:orchestrator"
1342
- ]
1343
1339
  }
1344
1340
  },
1345
- "version": "1.0.20"
1341
+ "version": "1.1.0"
1346
1342
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-orchestrator",
3
3
  "description": "Plugin for working with SalesForce analytic apps, templates, assets and services.",
4
- "version": "1.0.20",
4
+ "version": "1.1.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -62,9 +62,6 @@
62
62
  "subtopics": {
63
63
  "app": {
64
64
  "external": true
65
- },
66
- "rules": {
67
- "external": true
68
65
  }
69
66
  }
70
67
  },
@@ -74,9 +71,6 @@
74
71
  "orchestrator:template": {
75
72
  "description": "Work with templates"
76
73
  },
77
- "orchestrator:rules": {
78
- "description": "Work with transformation rules"
79
- },
80
74
  "template": {
81
75
  "description": "description for template"
82
76
  }
@@ -229,7 +223,7 @@
229
223
  "exports": "./lib/index.js",
230
224
  "type": "module",
231
225
  "sfdx": {
232
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-orchestrator/1.0.20.crt",
233
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-orchestrator/1.0.20.sig"
226
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-orchestrator/1.1.0.crt",
227
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-orchestr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IAC/F,CAAC;IAEO,KAAK,CAAC,oBAAoB,CAChC,gBAAwB,EACxB,aAAqB,EACrB,SAAiB;QAKjB,IAAI,CAAC,GAAG,CAAC,0BAA0B,gBAAgB,EAAE,CAAC,CAAC;QAEvD,wCAAwC;QACxC,MAAM,mBAAmB,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;QACxE,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAY,CAAC;QAE5D,sBAAsB;QACtB,IAAI,CAAC,GAAG,CAAC,sBAAsB,aAAa,EAAE,CAAC,CAAC;QAChD,MAAM,gBAAgB,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;QAClE,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAA2C,CAAC;QAEtF,kBAAkB;QAClB,IAAI,CAAC,GAAG,CAAC,kBAAkB,SAAS,EAAE,CAAC,CAAC;QACxC,MAAM,YAAY,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAC1D,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAyB,CAAC;QAEpE,OAAO;YACL,QAAQ,EAAE;gBACR,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,gBAAgB;gBACtB,MAAM,EAAE,OAAgB;aACzB;YACD,OAAO,EAAE;gBACP,QAAQ,EAAE,QAA6C;gBACvD,MAAM,EAAE,MAAyC;gBACjD,UAAU,EAAE,UAAiD;aAC9D;SACF,CAAC;IACJ,CAAC"}
@@ -1,55 +0,0 @@
1
- # summary
2
-
3
- Test JSON transformation rules using the jsonxform/transformation endpoint.
4
-
5
- # description
6
-
7
- Preview how transformation rules will modify JSON documents before deploying templates. This command uses a sample transformation to test the jsonxform/transformation endpoint with built-in User and Org context variables.
8
-
9
- # flags.target-org.summary
10
-
11
- Username or alias for the target org; overrides default target org.
12
-
13
- # flags.target-org.description
14
-
15
- The username or alias of the target org where the jsonxform/transformation endpoint will be called. This org provides the User and Org context variables used in the transformation.
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
- API version to use for the transformation request. Defaults to the org's configured API version.
24
-
25
- # flags.template-info.summary
26
-
27
- Path to Analytics template-info.json file.
28
-
29
- # flags.template-info.description
30
-
31
- Path to the template-info.json file containing the base JSON document structure that will be transformed.
32
-
33
- # flags.variables.summary
34
-
35
- Path to Analytics variables.json file.
36
-
37
- # flags.variables.description
38
-
39
- Path to the variables.json file containing variable definitions used in transformations.
40
-
41
- # flags.rules.summary
42
-
43
- Path to Analytics rules.json file.
44
-
45
- # flags.rules.description
46
-
47
- Path to the rules.json file containing transformation rules and macro definitions.
48
-
49
- # examples
50
-
51
- - Test JSON transformation with Analytics template files:
52
- <%= config.bin %> <%= command.id %> --template-info ./template-info.json --variables ./variables.json --rules ./rules.json --target-org myorg
53
-
54
- - Test with specific API version:
55
- <%= config.bin %> <%= command.id %> --template-info ./template-info.json --variables ./variables.json --rules ./rules.json --target-org myorg --api-version 60.0