@salesforce/plugin-orchestrator 1.0.0 → 1.0.7

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 (83) hide show
  1. package/LICENSE.txt +200 -6
  2. package/README.md +6 -6
  3. package/lib/commands/orchestrator/{create/app.js → app/create.js} +14 -5
  4. package/lib/commands/orchestrator/app/create.js.map +1 -0
  5. package/lib/commands/orchestrator/{delete/app.js → app/delete.js} +14 -5
  6. package/lib/commands/orchestrator/app/delete.js.map +1 -0
  7. package/lib/commands/orchestrator/{display/app.js → app/display.js} +14 -5
  8. package/lib/commands/orchestrator/app/display.js.map +1 -0
  9. package/lib/commands/orchestrator/{list/app.js → app/list.js} +14 -5
  10. package/lib/commands/orchestrator/app/list.js.map +1 -0
  11. package/lib/commands/orchestrator/{update/app.js → app/update.js} +14 -5
  12. package/lib/commands/orchestrator/app/update.js.map +1 -0
  13. package/lib/commands/orchestrator/template/create.d.ts +1 -1
  14. package/lib/commands/orchestrator/template/create.js +16 -7
  15. package/lib/commands/orchestrator/template/create.js.map +1 -1
  16. package/lib/commands/orchestrator/template/delete.d.ts +1 -1
  17. package/lib/commands/orchestrator/template/delete.js +16 -7
  18. package/lib/commands/orchestrator/template/delete.js.map +1 -1
  19. package/lib/commands/orchestrator/template/display.d.ts +1 -1
  20. package/lib/commands/orchestrator/template/display.js +16 -7
  21. package/lib/commands/orchestrator/template/display.js.map +1 -1
  22. package/lib/commands/orchestrator/template/list.d.ts +2 -1
  23. package/lib/commands/orchestrator/template/list.js +18 -7
  24. package/lib/commands/orchestrator/template/list.js.map +1 -1
  25. package/lib/commands/orchestrator/template/update.d.ts +1 -1
  26. package/lib/commands/orchestrator/template/update.js +16 -7
  27. package/lib/commands/orchestrator/template/update.js.map +1 -1
  28. package/lib/index.js +13 -4
  29. package/lib/index.js.map +1 -1
  30. package/lib/utils/app/appDisplayUtil.js +14 -5
  31. package/lib/utils/app/appDisplayUtil.js.map +1 -1
  32. package/lib/utils/app/appListUtils.js.map +1 -1
  33. package/lib/utils/app/appTypes.js +13 -4
  34. package/lib/utils/app/appTypes.js.map +1 -1
  35. package/lib/utils/app/appframeworkapp.js.map +1 -1
  36. package/lib/utils/display/displayUtil.js +13 -4
  37. package/lib/utils/display/displayUtil.js.map +1 -1
  38. package/lib/utils/request.js.map +1 -1
  39. package/lib/utils/template/appframeworktemplate.js.map +1 -1
  40. package/lib/utils/template/templateDisplayUtil.js +14 -5
  41. package/lib/utils/template/templateDisplayUtil.js.map +1 -1
  42. package/lib/utils/template/templateHighlighter.js +13 -4
  43. package/lib/utils/template/templateHighlighter.js.map +1 -1
  44. package/lib/utils/template/templateListUtils.js.map +1 -1
  45. package/lib/utils/template/templateTypes.js +13 -4
  46. package/lib/utils/template/templateTypes.js.map +1 -1
  47. package/lib/utils/utils.js +13 -4
  48. package/lib/utils/utils.js.map +1 -1
  49. package/messages/appframework.list.template.md +1 -1
  50. package/messages/appframework.template.list.md +1 -1
  51. package/npm-shrinkwrap.json +217 -218
  52. package/oclif.lock +215 -205
  53. package/oclif.manifest.json +238 -851
  54. package/package.json +15 -28
  55. package/LICENSE +0 -28
  56. package/lib/commands/orchestrator/create/app.js.map +0 -1
  57. package/lib/commands/orchestrator/create/template.d.ts +0 -17
  58. package/lib/commands/orchestrator/create/template.js +0 -96
  59. package/lib/commands/orchestrator/create/template.js.map +0 -1
  60. package/lib/commands/orchestrator/decouple/app.d.ts +0 -14
  61. package/lib/commands/orchestrator/decouple/app.js +0 -106
  62. package/lib/commands/orchestrator/decouple/app.js.map +0 -1
  63. package/lib/commands/orchestrator/delete/app.js.map +0 -1
  64. package/lib/commands/orchestrator/delete/template.d.ts +0 -15
  65. package/lib/commands/orchestrator/delete/template.js +0 -108
  66. package/lib/commands/orchestrator/delete/template.js.map +0 -1
  67. package/lib/commands/orchestrator/display/app.js.map +0 -1
  68. package/lib/commands/orchestrator/display/template.d.ts +0 -15
  69. package/lib/commands/orchestrator/display/template.js +0 -105
  70. package/lib/commands/orchestrator/display/template.js.map +0 -1
  71. package/lib/commands/orchestrator/list/app.js.map +0 -1
  72. package/lib/commands/orchestrator/list/template.d.ts +0 -14
  73. package/lib/commands/orchestrator/list/template.js +0 -64
  74. package/lib/commands/orchestrator/list/template.js.map +0 -1
  75. package/lib/commands/orchestrator/update/app.js.map +0 -1
  76. package/lib/commands/orchestrator/update/template.d.ts +0 -17
  77. package/lib/commands/orchestrator/update/template.js +0 -107
  78. package/lib/commands/orchestrator/update/template.js.map +0 -1
  79. /package/lib/commands/orchestrator/{create/app.d.ts → app/create.d.ts} +0 -0
  80. /package/lib/commands/orchestrator/{delete/app.d.ts → app/delete.d.ts} +0 -0
  81. /package/lib/commands/orchestrator/{display/app.d.ts → app/display.d.ts} +0 -0
  82. /package/lib/commands/orchestrator/{list/app.d.ts → app/list.d.ts} +0 -0
  83. /package/lib/commands/orchestrator/{update/app.d.ts → app/update.d.ts} +0 -0
package/package.json CHANGED
@@ -1,24 +1,25 @@
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.0",
4
+ "version": "1.0.7",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
8
8
  "@oclif/core": "^4",
9
- "@salesforce/core": "^8.11.1",
9
+ "@salesforce/core": "^8.14.0",
10
10
  "@salesforce/kit": "^3.2.1",
11
11
  "@salesforce/sf-plugins-core": "^12",
12
12
  "ansis": "^3.17.0",
13
- "eslint-config-salesforce-license": "^0.2.0"
13
+ "eslint": "^8.56.0"
14
14
  },
15
15
  "devDependencies": {
16
- "@oclif/plugin-command-snapshot": "^5.2.40",
16
+ "@oclif/plugin-command-snapshot": "^5.3.2",
17
17
  "@salesforce/cli-plugins-testkit": "^5.3.39",
18
- "@salesforce/dev-scripts": "^10.2.12",
19
- "@salesforce/plugin-command-reference": "^3.1.54",
20
- "eslint-plugin-sf-plugin": "^1.20.24",
21
- "oclif": "^4.17.46",
18
+ "@salesforce/dev-scripts": "^11.0.2",
19
+ "@salesforce/plugin-command-reference": "^3.1.57",
20
+ "eslint-config-salesforce-license": "^1.0.1",
21
+ "eslint-plugin-sf-plugin": "^1.20.26",
22
+ "oclif": "^4.20.1",
22
23
  "ts-node": "^10.9.2",
23
24
  "typescript": "^5.5.4"
24
25
  },
@@ -43,7 +44,7 @@
43
44
  "sfdx",
44
45
  "sfdx-plugin"
45
46
  ],
46
- "license": "BSD-3-Clause",
47
+ "license": "Apache-2.0",
47
48
  "oclif": {
48
49
  "commands": "./lib/commands",
49
50
  "bin": "sf",
@@ -57,23 +58,8 @@
57
58
  "orchestrator": {
58
59
  "description": "Commands to work with AppFramework apps and templates"
59
60
  },
60
- "orchestrator:list": {
61
- "description": "List AppFramework resources"
62
- },
63
- "orchestrator:display": {
64
- "description": "Display AppFramework resources"
65
- },
66
- "orchestrator:create": {
67
- "description": "Create AppFramework resources"
68
- },
69
- "orchestrator:update": {
70
- "description": "Update AppFramework resources"
71
- },
72
- "orchestrator:delete": {
73
- "description": "Delete AppFramework resources"
74
- },
75
- "orchestrator:decouple": {
76
- "description": "Decouple AppFramework resources"
61
+ "orchestrator:app": {
62
+ "description": "Work with AppFramework apps"
77
63
  },
78
64
  "orchestrator:template": {
79
65
  "description": "Work with AppFramework templates"
@@ -88,6 +74,7 @@
88
74
  "clean-all": "sf-clean all",
89
75
  "compile": "wireit",
90
76
  "docs": "sf-docs",
77
+ "fix-license": "eslint src test --fix --rule \"header/header: [2]\"",
91
78
  "format": "wireit",
92
79
  "link-check": "wireit",
93
80
  "lint": "wireit",
@@ -220,7 +207,7 @@
220
207
  "exports": "./lib/index.js",
221
208
  "type": "module",
222
209
  "sfdx": {
223
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-orchestrator/1.0.0.crt",
224
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-orchestrator/1.0.0.sig"
210
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-orchestrator/1.0.7.crt",
211
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-orchestrator/1.0.7.sig"
225
212
  }
226
213
  }
package/LICENSE DELETED
@@ -1,28 +0,0 @@
1
- BSD 3-Clause License
2
-
3
- Copyright (c) 2025, Salesforce CLI
4
-
5
- Redistribution and use in source and binary forms, with or without
6
- modification, are permitted provided that the following conditions are met:
7
-
8
- 1. Redistributions of source code must retain the above copyright notice, this
9
- list of conditions and the following disclaimer.
10
-
11
- 2. Redistributions in binary form must reproduce the above copyright notice,
12
- this list of conditions and the following disclaimer in the documentation
13
- and/or other materials provided with the distribution.
14
-
15
- 3. Neither the name of the copyright holder nor the names of its
16
- contributors may be used to endorse or promote products derived from
17
- this software without specific prior written permission.
18
-
19
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.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EAAE,CAAC;gBACnD,MAAM,KAAK,CAAC;YACd,CAAC;YAED,MAAM,IAAI,OAAO,CACf,QAAQ,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAE,KAAe,CAAC,OAAO,CAAC,CAAC,EACzE,kBAAkB,EAClB,QAAQ,CAAC,WAAW,CAAC,gCAAgC,CAAC,CACvD,CAAC;QACJ,CAAC;IACH,CAAC"}
@@ -1,17 +0,0 @@
1
- import { SfCommand } from '@salesforce/sf-plugins-core';
2
- export default class CreateTemplate extends SfCommand<string> {
3
- static readonly summary: string;
4
- static readonly description: string;
5
- static readonly examples: string[];
6
- static readonly state = "preview";
7
- static readonly flags: {
8
- 'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
9
- 'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
- name: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
11
- type: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
12
- subtype: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
- label: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
- description: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
- };
16
- run(): Promise<string>;
17
- }
@@ -1,96 +0,0 @@
1
- /*
2
- * Copyright (c) 2025, salesforce.com, inc.
3
- * All rights reserved.
4
- * Licensed under the BSD 3-Clause license.
5
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
- */
7
- import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
8
- import { Messages, SfError } from '@salesforce/core';
9
- import AppFrameworkTemplate from '../../../utils/template/appframeworktemplate.js';
10
- import { TemplateDisplayUtil } from '../../../utils/template/templateDisplayUtil.js';
11
- Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
12
- const messages = Messages.loadMessages('@salesforce/plugin-orchestrator', 'appframework.create.template');
13
- export default class CreateTemplate extends SfCommand {
14
- static summary = messages.getMessage('summary');
15
- static description = messages.getMessage('description');
16
- static examples = messages.getMessages('examples');
17
- static state = 'preview';
18
- static flags = {
19
- 'target-org': Flags.requiredOrg({
20
- summary: messages.getMessage('flags.target-org.summary'),
21
- description: messages.getMessage('flags.target-org.description'),
22
- required: true,
23
- }),
24
- 'api-version': Flags.orgApiVersion({
25
- summary: messages.getMessage('flags.api-version.summary'),
26
- description: messages.getMessage('flags.api-version.description'),
27
- }),
28
- name: Flags.string({
29
- char: 'n',
30
- summary: messages.getMessage('flags.name.summary'),
31
- description: messages.getMessage('flags.name.description'),
32
- required: true,
33
- }),
34
- type: Flags.string({
35
- char: 't',
36
- summary: messages.getMessage('flags.type.summary'),
37
- description: messages.getMessage('flags.type.description'),
38
- default: 'app',
39
- options: ['app', 'component', 'dashboard', 'lens'],
40
- }),
41
- subtype: Flags.string({
42
- char: 's',
43
- summary: messages.getMessage('flags.subtype.summary'),
44
- description: messages.getMessage('flags.subtype.description'),
45
- }),
46
- label: Flags.string({
47
- char: 'l',
48
- summary: messages.getMessage('flags.label.summary'),
49
- description: messages.getMessage('flags.label.description'),
50
- }),
51
- description: Flags.string({
52
- char: 'd',
53
- summary: messages.getMessage('flags.description.summary'),
54
- description: messages.getMessage('flags.description.description'),
55
- }),
56
- };
57
- async run() {
58
- const { flags } = await this.parse(CreateTemplate);
59
- this.spinner.start(messages.getMessage('creatingTemplate'));
60
- try {
61
- const connection = flags['target-org'].getConnection(flags['api-version']);
62
- const appFrameworkTemplate = new AppFrameworkTemplate(connection);
63
- const templateId = await appFrameworkTemplate.create({
64
- name: flags.name,
65
- templateType: flags.type,
66
- templateSubtype: flags.subtype,
67
- label: flags.label,
68
- description: flags.description,
69
- });
70
- this.spinner.stop();
71
- this.log(messages.getMessage('createSuccess', [templateId]));
72
- try {
73
- const template = await appFrameworkTemplate.getTemplate(templateId);
74
- if (template) {
75
- const displayTemplate = {
76
- ...template,
77
- };
78
- TemplateDisplayUtil.displayTemplateDetail(this, displayTemplate);
79
- }
80
- }
81
- catch (error) {
82
- this.debug(`Error fetching template details: ${error.message}`);
83
- }
84
- return templateId;
85
- }
86
- catch (error) {
87
- this.spinner.stop();
88
- throw new SfError(`Error creating AppFramework template: ${error.message}`, 'TemplateCreationError', [
89
- 'Verify that you have permission to create templates',
90
- 'Ensure you are connected to the correct org',
91
- 'Check your API version compatibility',
92
- ]);
93
- }
94
- }
95
- }
96
- //# sourceMappingURL=template.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../src/commands/orchestrator/create/template.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;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,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,8BAA8B,CAAC,CAAC;AAE1G,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,SAAiB;IACpD,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,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,KAAK,GAAG,SAAS,CAAC;IAElC,MAAM,C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oBACF,mBAAmB,CAAC,qBAAqB,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;gBACnE,CAAC;YACH,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,CAAC,KAAK,CAAC,oCAAqC,KAAe,CAAC,OAAO,EAAE,CAAC,CAAC;YAC7E,CAAC;YAED,OAAO,UAAU,CAAC;QACpB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YAEpB,MAAM,IAAI,OAAO,CAAC,yCAA0C,KAAe,CAAC,OAAO,EAAE,EAAE,uBAAuB,EAAE;gBAC9G,qDAAqD;gBACrD,6CAA6C;gBAC7C,sCAAsC;aACvC,CAAC,CAAC;QACL,CAAC;IACH,CAAC"}
@@ -1,14 +0,0 @@
1
- import { SfCommand } from '@salesforce/sf-plugins-core';
2
- export default class DecoupleApp extends SfCommand<string> {
3
- static readonly summary: string;
4
- static readonly description: string;
5
- static readonly examples: string[];
6
- static readonly state = "preview";
7
- static readonly flags: {
8
- 'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
9
- 'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
- 'app-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
- 'app-name': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
- };
13
- run(): Promise<string>;
14
- }
@@ -1,106 +0,0 @@
1
- /*
2
- * Copyright (c) 2025, salesforce.com, inc.
3
- * All rights reserved.
4
- * Licensed under the BSD 3-Clause license.
5
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
- */
7
- import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
8
- import { Messages, SfError } from '@salesforce/core';
9
- import AppFrameworkApp from '../../../utils/app/appframeworkapp.js';
10
- import { AppListUtil } from '../../../utils/app/appListUtils.js';
11
- import { AppDisplayUtil } from '../../../utils/app/appDisplayUtil.js';
12
- Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
13
- const messages = Messages.loadMessages('@salesforce/plugin-orchestrator', 'appframework.decouple.app');
14
- export default class DecoupleApp extends SfCommand {
15
- static summary = messages.getMessage('summary');
16
- static description = messages.getMessage('description');
17
- static examples = messages.getMessages('examples');
18
- static state = 'preview';
19
- static flags = {
20
- 'target-org': Flags.requiredOrg({
21
- summary: messages.getMessage('flags.target-org.summary'),
22
- description: messages.getMessage('flags.target-org.description'),
23
- required: true,
24
- }),
25
- 'api-version': Flags.orgApiVersion({
26
- summary: messages.getMessage('flags.api-version.summary'),
27
- description: messages.getMessage('flags.api-version.description'),
28
- }),
29
- 'app-id': Flags.string({
30
- char: 'i',
31
- summary: messages.getMessage('flags.app-id.summary'),
32
- description: messages.getMessage('flags.app-id.description'),
33
- exclusive: ['app-name'],
34
- }),
35
- 'app-name': Flags.string({
36
- char: 'n',
37
- summary: messages.getMessage('flags.app-name.summary'),
38
- description: messages.getMessage('flags.app-name.description'),
39
- exclusive: ['app-id'],
40
- }),
41
- };
42
- async run() {
43
- const { flags } = await this.parse(DecoupleApp);
44
- // Check that at least one of app-id or app-name is provided
45
- if (!flags['app-id'] && !flags['app-name']) {
46
- throw new SfError(messages.getMessage('noAppSpecified'), 'AppDecoupleError', messages.getMessages('error.DecoupleError.Actions'));
47
- }
48
- try {
49
- const connection = flags['target-org'].getConnection(flags['api-version']);
50
- const appFrameworkApp = new AppFrameworkApp(connection);
51
- let appId = '';
52
- // Get app ID if app name was provided
53
- if (flags['app-name']) {
54
- this.spinner.start(messages.getMessage('fetchingApp'));
55
- const apps = await appFrameworkApp.list();
56
- const app = apps.find((a) => a.name === flags['app-name']);
57
- if (!app) {
58
- this.spinner.stop();
59
- throw new SfError(messages.getMessage('noAppFound'), 'AppDecoupleError', messages.getMessages('error.DecoupleError.Actions'));
60
- }
61
- appId = app.id ?? '';
62
- this.spinner.stop();
63
- }
64
- else {
65
- appId = flags['app-id'] ?? '';
66
- }
67
- // Get the app to retrieve its template
68
- this.spinner.start(messages.getMessage('fetchingApp'));
69
- const app = await appFrameworkApp.getApp(appId);
70
- if (!app) {
71
- this.spinner.stop();
72
- throw new SfError(messages.getMessage('noAppFound'), 'AppDecoupleError', messages.getMessages('error.DecoupleError.Actions'));
73
- }
74
- if (!app.templateSourceId) {
75
- this.spinner.stop();
76
- throw new SfError(messages.getMessage('noTemplateFound'), 'AppDecoupleError', messages.getMessages('error.DecoupleError.Actions'));
77
- }
78
- const templateId = app.templateSourceId;
79
- this.spinner.stop();
80
- // Decouple the app
81
- this.spinner.start(messages.getMessage('decouplingApp'));
82
- const decoupledAppId = await appFrameworkApp.decoupleApp(appId, templateId);
83
- this.spinner.stop();
84
- this.log(messages.getMessage('decoupleSuccess', [decoupledAppId]));
85
- try {
86
- // Fetch the updated app and display its details
87
- const updatedApp = await appFrameworkApp.getApp(decoupledAppId);
88
- if (updatedApp) {
89
- const processedApps = AppListUtil.processApps([updatedApp]);
90
- if (processedApps.length > 0) {
91
- AppDisplayUtil.displayAppDetails(this, processedApps[0]);
92
- }
93
- }
94
- }
95
- catch (error) {
96
- this.debug(`Error fetching decoupled app details: ${error.message}`);
97
- }
98
- return decoupledAppId;
99
- }
100
- catch (error) {
101
- this.spinner.stop();
102
- throw new SfError(messages.getMessage('error.DecoupleError', [error.message]), 'AppDecoupleError', messages.getMessages('error.DecoupleError.Actions'));
103
- }
104
- }
105
- }
106
- //# sourceMappingURL=app.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app.js","sourceRoot":"","sources":["../../../../src/commands/orchestrator/decouple/app.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAc,MAAM,kBAAk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AAE,CAAC,WAAW,CAAC,CAAC;iBAC7D,CAAC,CAAC;gBAEH,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC;oBACjD,OAAO;gBACT,CAAC;YACH,CAAC;YAED,iBAAiB;YACjB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC;YACvD,MAAM,eAAe,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;YACvC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YAEpB,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC1D,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YAEpB,MAAM,IAAI,OAAO,CACf,QAAQ,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAE,KAAe,CAAC,OAAO,CAAC,CAAC,EACpE,gBAAgB,EAChB,QAAQ,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAClD,CAAC;QACJ,CAAC;IACH,CAAC"}
@@ -1,15 +0,0 @@
1
- import { SfCommand } from '@salesforce/sf-plugins-core';
2
- export default class DeleteTemplate extends SfCommand<void> {
3
- static readonly summary: string;
4
- static readonly description: string;
5
- static readonly examples: string[];
6
- static readonly state = "preview";
7
- static readonly flags: {
8
- 'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
9
- 'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
- 'template-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
- 'template-name': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
- 'no-prompt': import("@oclif/core/interfaces").BooleanFlag<boolean>;
13
- };
14
- run(): Promise<void>;
15
- }
@@ -1,108 +0,0 @@
1
- /*
2
- * Copyright (c) 2025, salesforce.com, inc.
3
- * All rights reserved.
4
- * Licensed under the BSD 3-Clause license.
5
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
- */
7
- import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
8
- import { Messages, SfError } from '@salesforce/core';
9
- import AppFrameworkTemplate from '../../../utils/template/appframeworktemplate.js';
10
- Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
11
- const messages = Messages.loadMessages('@salesforce/plugin-orchestrator', 'appframework.delete.template');
12
- export default class DeleteTemplate extends SfCommand {
13
- static summary = messages.getMessage('summary');
14
- static description = messages.getMessage('description');
15
- static examples = messages.getMessages('examples');
16
- static state = 'preview';
17
- static flags = {
18
- 'target-org': Flags.requiredOrg({
19
- summary: messages.getMessage('flags.target-org.summary'),
20
- description: messages.getMessage('flags.target-org.description'),
21
- required: true,
22
- }),
23
- 'api-version': Flags.orgApiVersion({
24
- summary: messages.getMessage('flags.api-version.summary'),
25
- description: messages.getMessage('flags.api-version.description'),
26
- }),
27
- 'template-id': Flags.string({
28
- char: 'i',
29
- summary: messages.getMessage('flags.template-id.summary'),
30
- description: messages.getMessage('flags.template-id.description'),
31
- exclusive: ['template-name'],
32
- }),
33
- 'template-name': Flags.string({
34
- char: 'n',
35
- summary: messages.getMessage('flags.template-name.summary'),
36
- description: messages.getMessage('flags.template-name.description'),
37
- exclusive: ['template-id'],
38
- }),
39
- 'no-prompt': Flags.boolean({
40
- char: 'p',
41
- summary: messages.getMessage('flags.no-prompt.summary'),
42
- description: messages.getMessage('flags.no-prompt.description'),
43
- }),
44
- };
45
- // we'll add this after template app delete is in place
46
- // 'force-delete': Flags.boolean({
47
- // char: 'f',
48
- // summary: messages.getMessage('flags.force-delete.summary'),
49
- // description: messages.getMessage('flags.force-delete.description'),
50
- // }),
51
- async run() {
52
- const { flags } = await this.parse(DeleteTemplate);
53
- if (!flags['template-id'] && !flags['template-name']) {
54
- throw new SfError(messages.getMessage('error.MissingRequiredFlag'), 'MissingRequiredFlag', messages.getMessages('error.MissingRequiredFlag.Actions'));
55
- }
56
- try {
57
- const connection = flags['target-org'].getConnection(flags['api-version']);
58
- const appFrameworkTemplate = new AppFrameworkTemplate(connection);
59
- const identifier = flags['template-id'] ?? flags['template-name'] ?? '';
60
- this.spinner.start(messages.getMessage('fetchingTemplate'));
61
- const template = await appFrameworkTemplate.getTemplate(String(identifier));
62
- this.spinner.stop();
63
- if (!template) {
64
- throw new SfError(messages.getMessage('error.TemplateNotFound', [String(identifier)]), 'TemplateNotFound', messages.getMessages('error.TemplateNotFound.Actions'));
65
- }
66
- let shouldDelete = flags['no-prompt'];
67
- if (!shouldDelete) {
68
- shouldDelete = await this.confirm({
69
- message: 'confirmDeleteYesNo',
70
- });
71
- }
72
- if (!shouldDelete) {
73
- this.log(messages.getMessage('deletionCancelled'));
74
- return;
75
- }
76
- // if (flags['force-delete']) {
77
- // this.spinner.start(messages.getMessage('deletingApps'));
78
- // // TODO: This is a placeholder. In a full implementation, we would:
79
- // // 1. Find all apps created from this template
80
- // // 2. Delete each app
81
- // this.spinner.stop();
82
- // this.log('Force delete of apps is not currently implemented. Only the template will be deleted.');
83
- // }
84
- this.spinner.start(messages.getMessage('deletingTemplate'));
85
- await appFrameworkTemplate.deleteTemplate(template.id);
86
- this.spinner.stop();
87
- this.log(messages.getMessage('deleteTemplateSuccess', [template.id]));
88
- }
89
- catch (error) {
90
- this.spinner.stop();
91
- const errorMsg = error.message;
92
- if (errorMsg.includes('certificate') || errorMsg.includes('altnames')) {
93
- throw new SfError(messages.getMessage('error.CertificateError'), 'TemplateDeletionError', messages.getMessages('error.CertificateError.Actions'));
94
- }
95
- else if (errorMsg.includes('Unauthorized') || errorMsg.includes('401')) {
96
- throw new SfError(messages.getMessage('error.AuthenticationError'), 'TemplateDeletionError', messages.getMessages('error.AuthenticationError.Actions'));
97
- }
98
- else if (errorMsg.includes('Not Found') || errorMsg.includes('404')) {
99
- const identifier = String(flags['template-id'] ?? flags['template-name'] ?? '');
100
- throw new SfError(messages.getMessage('error.TemplateNotFound', [identifier]), 'TemplateDeletionError', messages.getMessages('error.TemplateNotFound.Actions'));
101
- }
102
- else {
103
- throw new SfError(messages.getMessage('error.GenericError', [errorMsg]), 'TemplateDeletionError', messages.getMessages('error.GenericError.Actions'));
104
- }
105
- }
106
- }
107
- }
108
- //# sourceMappingURL=template.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../src/commands/orchestrator/delete/template.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;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,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,iCAAiC,EAAE,8BAA8B,CAAC,CAAC;AAE1G,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,SAAe;IAClD,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,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,KAAK,GAAG,SAAS,CAAC;IAElC,MAAM,CAAU,KAAK,GAAG;QAC7B,YAAY,EAAE,KAAK,CAAC,WAAW,CAAC;YAC9B,OAA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AAC,CAAC,CAAC,SAAS;gBACrF,QAAQ,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS;gBAChG,aAAa,EAAE,GAAG,CAAC,aAAa;gBAChC,QAAQ,EAAE,GAAG,CAAC,QAAQ;gBACtB,MAAM,EAAE,GAAG,CAAC,MAAM;gBAClB,GAAG,EAAE,GAAG,CAAC,GAAG;gBACZ,gBAAgB,EAAE,GAAG,CAAC,gBAAgB;gBACtC,YAAY,EAAE,GAAG,CAAC,YAAY;aAC/B,CAAC;YAEF,cAAc,CAAC,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAChD,OAAO,OAAO,CAAC;QACjB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YAEpB,MAAM,IAAI,OAAO,CACf,QAAQ,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAE,KAAe,CAAC,OAAO,CAAC,CAAC,EACvE,iBAAiB,EACjB,QAAQ,CAAC,WAAW,CAAC,8BAA8B,CAAC,CACrD,CAAC;QACJ,CAAC;IACH,CAAC"}
@@ -1,15 +0,0 @@
1
- import { SfCommand } from '@salesforce/sf-plugins-core';
2
- import { TemplateData } from '../../../utils/template/templateTypes.js';
3
- export default class DisplayTemplate extends SfCommand<TemplateData> {
4
- static readonly summary: string;
5
- static readonly description: string;
6
- static readonly examples: string[];
7
- static readonly state = "preview";
8
- static readonly flags: {
9
- 'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
10
- 'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
- 'template-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
- 'template-name': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
- };
14
- run(): Promise<TemplateData>;
15
- }