@salesforce/plugin-orchestrator 1.0.22 → 1.0.24

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.
@@ -14,11 +14,7 @@ type TransformationPayload = {
14
14
  namespace: string;
15
15
  };
16
16
  };
17
- values: {
18
- Variables: {
19
- hello: string;
20
- };
21
- };
17
+ values: Record<string, unknown>;
22
18
  definition: {
23
19
  rules: Array<{
24
20
  name: string;
@@ -53,7 +49,7 @@ export default class TemplateEval extends SfCommand<TemplatePreviewResult> {
53
49
  'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
54
50
  'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
55
51
  document: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
56
- variables: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
52
+ values: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
57
53
  rules: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
58
54
  };
59
55
  run(): Promise<TemplatePreviewResult>;
@@ -38,10 +38,10 @@ export default class TemplateEval extends SfCommand {
38
38
  description: messages.getMessage('flags.document.description'),
39
39
  required: true,
40
40
  }),
41
- variables: Flags.file({
41
+ values: Flags.file({
42
42
  char: 'v',
43
- summary: messages.getMessage('flags.variables.summary'),
44
- description: messages.getMessage('flags.variables.description'),
43
+ summary: messages.getMessage('flags.values.summary'),
44
+ description: messages.getMessage('flags.values.description'),
45
45
  required: true,
46
46
  }),
47
47
  rules: Flags.file({
@@ -94,17 +94,17 @@ export default class TemplateEval extends SfCommand {
94
94
  }
95
95
  }
96
96
  async getTemplatePayload(flags) {
97
- return this.getDirectFilePayload(flags.document, flags.variables, flags.rules);
97
+ return this.getDirectFilePayload(flags.document, flags.values, flags.rules);
98
98
  }
99
- async getDirectFilePayload(documentFile, variablesFile, rulesFile) {
99
+ async getDirectFilePayload(documentFile, valuesFile, rulesFile) {
100
100
  this.log(`Loading document: ${documentFile}`);
101
101
  // Read and parse the document file
102
102
  const documentContent = await fs.readFile(documentFile, 'utf8');
103
103
  const document = JSON.parse(documentContent);
104
- // Read variables file
105
- this.log(`Loading variables: ${variablesFile}`);
106
- const variablesContent = await fs.readFile(variablesFile, 'utf8');
107
- const values = JSON.parse(variablesContent);
104
+ // Read values file
105
+ this.log(`Loading values: ${valuesFile}`);
106
+ const valuesContent = await fs.readFile(valuesFile, 'utf8');
107
+ const values = JSON.parse(valuesContent);
108
108
  // Read rules file
109
109
  this.log(`Loading rules: ${rulesFile}`);
110
110
  const rulesContent = await fs.readFile(rulesFile, 'utf8');
@@ -117,7 +117,7 @@ export default class TemplateEval extends SfCommand {
117
117
  },
118
118
  payload: {
119
119
  document: document,
120
- values: values,
120
+ values,
121
121
  definition: definition,
122
122
  },
123
123
  };
@@ -1 +1 @@
1
- {"version":3,"file":"eval.js","sourceRoot":"","sources":["../../../../src/commands/orchestrator/rules/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,yBAAyB,CAAC,CAAC;AAmDrG,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,SAAgC;IACjE,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QA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6C;gBACvD,MAAM;gBACN,UAAU,EAAE,UAAiD;aAC9D;SACF,CAAC;IACJ,CAAC"}
@@ -30,13 +30,13 @@ Path to JSON document file to transform.
30
30
 
31
31
  Path to the JSON document file (dashboard, lens, etc.) that will be transformed by the rules.
32
32
 
33
- # flags.variables.summary
33
+ # flags.values.summary
34
34
 
35
- Path to Analytics variables.json file.
35
+ Path to values JSON file.
36
36
 
37
- # flags.variables.description
37
+ # flags.values.description
38
38
 
39
- Path to the variables.json file containing variable definitions used in transformations.
39
+ Path to the JSON file containing values used in transformations. Can contain any JSON structure that matches your transformation rules.
40
40
 
41
41
  # flags.rules.summary
42
42
 
@@ -49,7 +49,7 @@ Path to the rules.json file containing transformation rules and macro definition
49
49
  # examples
50
50
 
51
51
  - Test JSON transformation with Analytics files:
52
- <%= config.bin %> <%= command.id %> --document ./dashboard.json --variables ./variables.json --rules ./rules.json --target-org myorg
52
+ <%= config.bin %> <%= command.id %> --document ./dashboard.json --values ./values.json --rules ./rules.json --target-org myorg
53
53
 
54
54
  - Test with specific API version:
55
- <%= config.bin %> <%= command.id %> --document ./dashboard.json --variables ./variables.json --rules ./rules.json --target-org myorg --api-version 60.0
55
+ <%= config.bin %> <%= command.id %> --document ./dashboard.json --values ./values.json --rules ./rules.json --target-org myorg --api-version 60.0
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-orchestrator",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@salesforce/plugin-orchestrator",
9
- "version": "1.0.22",
9
+ "version": "1.0.24",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "@inquirer/select": "^5.0.1",
@@ -710,8 +710,8 @@
710
710
  "args": {},
711
711
  "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.",
712
712
  "examples": [
713
- "Test JSON transformation with Analytics files:\n<%= config.bin %> <%= command.id %> --document ./dashboard.json --variables ./variables.json --rules ./rules.json --target-org myorg",
714
- "Test with specific API version:\n<%= config.bin %> <%= command.id %> --document ./dashboard.json --variables ./variables.json --rules ./rules.json --target-org myorg --api-version 60.0"
713
+ "Test JSON transformation with Analytics files:\n<%= config.bin %> <%= command.id %> --document ./dashboard.json --values ./values.json --rules ./rules.json --target-org myorg",
714
+ "Test with specific API version:\n<%= config.bin %> <%= command.id %> --document ./dashboard.json --values ./values.json --rules ./rules.json --target-org myorg --api-version 60.0"
715
715
  ],
716
716
  "flags": {
717
717
  "json": {
@@ -758,12 +758,12 @@
758
758
  "multiple": false,
759
759
  "type": "option"
760
760
  },
761
- "variables": {
761
+ "values": {
762
762
  "char": "v",
763
- "description": "Path to the variables.json file containing variable definitions used in transformations.",
764
- "name": "variables",
763
+ "description": "Path to the JSON file containing values used in transformations. Can contain any JSON structure that matches your transformation rules.",
764
+ "name": "values",
765
765
  "required": true,
766
- "summary": "Path to Analytics variables.json file.",
766
+ "summary": "Path to values JSON file.",
767
767
  "hasDynamicHelp": false,
768
768
  "multiple": false,
769
769
  "type": "option"
@@ -1342,5 +1342,5 @@
1342
1342
  ]
1343
1343
  }
1344
1344
  },
1345
- "version": "1.0.22"
1345
+ "version": "1.0.24"
1346
1346
  }
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.22",
4
+ "version": "1.0.24",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -229,7 +229,7 @@
229
229
  "exports": "./lib/index.js",
230
230
  "type": "module",
231
231
  "sfdx": {
232
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-orchestrator/1.0.22.crt",
233
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-orchestrator/1.0.22.sig"
232
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-orchestrator/1.0.24.crt",
233
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-orchestrator/1.0.24.sig"
234
234
  }
235
235
  }