@mcp-consultant-tools/powerplatform-customization 28.0.0-beta.13 → 28.0.0-beta.16

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 (56) hide show
  1. package/build/cli/commands/app-commands.d.ts +7 -0
  2. package/build/cli/commands/app-commands.d.ts.map +1 -0
  3. package/build/cli/commands/app-commands.js +49 -0
  4. package/build/cli/commands/app-commands.js.map +1 -0
  5. package/build/cli/commands/flow-commands.d.ts +8 -0
  6. package/build/cli/commands/flow-commands.d.ts.map +1 -0
  7. package/build/cli/commands/flow-commands.js +209 -0
  8. package/build/cli/commands/flow-commands.js.map +1 -0
  9. package/build/cli/commands/form-commands.d.ts +7 -0
  10. package/build/cli/commands/form-commands.d.ts.map +1 -0
  11. package/build/cli/commands/form-commands.js +95 -0
  12. package/build/cli/commands/form-commands.js.map +1 -0
  13. package/build/cli/commands/index.d.ts +12 -0
  14. package/build/cli/commands/index.d.ts.map +1 -1
  15. package/build/cli/commands/index.js +36 -0
  16. package/build/cli/commands/index.js.map +1 -1
  17. package/build/cli/commands/integration-commands.d.ts +7 -0
  18. package/build/cli/commands/integration-commands.d.ts.map +1 -0
  19. package/build/cli/commands/integration-commands.js +100 -0
  20. package/build/cli/commands/integration-commands.js.map +1 -0
  21. package/build/cli/commands/optionset-commands.d.ts +7 -0
  22. package/build/cli/commands/optionset-commands.d.ts.map +1 -0
  23. package/build/cli/commands/optionset-commands.js +133 -0
  24. package/build/cli/commands/optionset-commands.js.map +1 -0
  25. package/build/cli/commands/plugin-commands.d.ts +8 -0
  26. package/build/cli/commands/plugin-commands.d.ts.map +1 -0
  27. package/build/cli/commands/plugin-commands.js +278 -0
  28. package/build/cli/commands/plugin-commands.js.map +1 -0
  29. package/build/cli/commands/relationship-commands.d.ts +7 -0
  30. package/build/cli/commands/relationship-commands.d.ts.map +1 -0
  31. package/build/cli/commands/relationship-commands.js +102 -0
  32. package/build/cli/commands/relationship-commands.js.map +1 -0
  33. package/build/cli/commands/solution-commands.d.ts +8 -0
  34. package/build/cli/commands/solution-commands.d.ts.map +1 -0
  35. package/build/cli/commands/solution-commands.js +132 -0
  36. package/build/cli/commands/solution-commands.js.map +1 -0
  37. package/build/cli/commands/view-commands.d.ts +7 -0
  38. package/build/cli/commands/view-commands.d.ts.map +1 -0
  39. package/build/cli/commands/view-commands.js +94 -0
  40. package/build/cli/commands/view-commands.js.map +1 -0
  41. package/build/cli/commands/webhook-commands.d.ts +7 -0
  42. package/build/cli/commands/webhook-commands.d.ts.map +1 -0
  43. package/build/cli/commands/webhook-commands.js +46 -0
  44. package/build/cli/commands/webhook-commands.js.map +1 -0
  45. package/build/cli/commands/webresource-commands.d.ts +7 -0
  46. package/build/cli/commands/webresource-commands.d.ts.map +1 -0
  47. package/build/cli/commands/webresource-commands.js +67 -0
  48. package/build/cli/commands/webresource-commands.js.map +1 -0
  49. package/build/cli/commands/workflow-commands.d.ts +8 -0
  50. package/build/cli/commands/workflow-commands.d.ts.map +1 -0
  51. package/build/cli/commands/workflow-commands.js +107 -0
  52. package/build/cli/commands/workflow-commands.js.map +1 -0
  53. package/build/tools/app-endpoint-tools.d.ts.map +1 -1
  54. package/build/tools/app-endpoint-tools.js +9 -0
  55. package/build/tools/app-endpoint-tools.js.map +1 -1
  56. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ /**
2
+ * App CLI commands: add-entities, validate, publish
3
+ */
4
+ import type { Command } from 'commander';
5
+ import type { ServiceContext } from '../../context-factory.js';
6
+ export declare function registerAppCommands(program: Command, ctx: ServiceContext): void;
7
+ //# sourceMappingURL=app-commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-commands.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/app-commands.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG/D,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,IAAI,CA+C/E"}
@@ -0,0 +1,49 @@
1
+ import { outputResult, handleCliError } from '../output.js';
2
+ export function registerAppCommands(program, ctx) {
3
+ const app = program.command('app').description('Model-driven app operations');
4
+ app
5
+ .command('add-entities')
6
+ .description('Add entities to a model-driven app')
7
+ .requiredOption('--app-id <guid>', 'The GUID of the app (appmoduleid)')
8
+ .requiredOption('--entity-names <names>', 'Comma-separated entity logical names (e.g., account,contact)')
9
+ .action(async (opts) => {
10
+ try {
11
+ const service = ctx.pp;
12
+ const entityNames = opts.entityNames.split(',').map((n) => n.trim());
13
+ const result = await service.addEntitiesToApp(opts.appId, entityNames);
14
+ outputResult(result);
15
+ }
16
+ catch (error) {
17
+ handleCliError(error);
18
+ }
19
+ });
20
+ app
21
+ .command('validate')
22
+ .description('Validate a model-driven app before publishing')
23
+ .requiredOption('--app-id <guid>', 'The GUID of the app (appmoduleid)')
24
+ .action(async (opts) => {
25
+ try {
26
+ const service = ctx.pp;
27
+ const result = await service.validateApp(opts.appId);
28
+ outputResult(result);
29
+ }
30
+ catch (error) {
31
+ handleCliError(error);
32
+ }
33
+ });
34
+ app
35
+ .command('publish')
36
+ .description('Publish a model-driven app to make it available to users')
37
+ .requiredOption('--app-id <guid>', 'The GUID of the app (appmoduleid)')
38
+ .action(async (opts) => {
39
+ try {
40
+ const service = ctx.pp;
41
+ const result = await service.publishApp(opts.appId);
42
+ outputResult(result);
43
+ }
44
+ catch (error) {
45
+ handleCliError(error);
46
+ }
47
+ });
48
+ }
49
+ //# sourceMappingURL=app-commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-commands.js","sourceRoot":"","sources":["../../../src/cli/commands/app-commands.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE5D,MAAM,UAAU,mBAAmB,CAAC,OAAgB,EAA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,CAAC;IACH,CAAC,CAAC,CAAC;IAEL,GAAG;SACA,OAAO,CAAC,SAAS,CAAC;SAClB,WAAW,CAAC,0DAA0D,CAAC;SACvE,cAAc,CAAC,iBAAiB,EAAE,mCAAmC,CAAC;SACtE,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;QACrB,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,GAAG,CAAC,EAAE,CAAC;YACvB,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACpD,YAAY,CAAC,MAAM,CAAC,CAAC;QACvB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,cAAc,CAAC,KAAK,CAAC,CAAC;QACxB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Flow CLI commands: create, delete, clone, activate, deactivate, create-from-def,
3
+ * get-template, update-def, runs, cancel-run, resubmit-run
4
+ */
5
+ import type { Command } from 'commander';
6
+ import type { ServiceContext } from '../../context-factory.js';
7
+ export declare function registerFlowCommands(program: Command, ctx: ServiceContext): void;
8
+ //# sourceMappingURL=flow-commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow-commands.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/flow-commands.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG/D,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,IAAI,CA+MhF"}
@@ -0,0 +1,209 @@
1
+ import { outputResult, handleCliError } from '../output.js';
2
+ export function registerFlowCommands(program, ctx) {
3
+ const flow = program.command('flow').description('Power Automate flow operations');
4
+ flow
5
+ .command('create')
6
+ .description('Create a new flow from an existing template flow')
7
+ .requiredOption('--name <name>', 'Display name for the new flow')
8
+ .requiredOption('--template-flow-id <guid>', 'GUID of the template flow to copy from')
9
+ .option('--description <desc>', 'Description for the new flow')
10
+ .option('--state <state>', 'Initial state: draft, activated (default: draft)')
11
+ .option('--connection-reference-mappings <json>', 'JSON map of connection ref names to new connection IDs')
12
+ .action(async (opts) => {
13
+ try {
14
+ const service = ctx.pp;
15
+ const connectionReferenceMappings = opts.connectionReferenceMappings
16
+ ? JSON.parse(opts.connectionReferenceMappings) : undefined;
17
+ const result = await service.createFlow(opts.name, opts.templateFlowId, {
18
+ description: opts.description,
19
+ state: opts.state,
20
+ connectionReferenceMappings
21
+ });
22
+ outputResult(result);
23
+ }
24
+ catch (error) {
25
+ handleCliError(error);
26
+ }
27
+ });
28
+ flow
29
+ .command('delete')
30
+ .description('Delete a Power Automate flow (permanent, cannot be undone)')
31
+ .requiredOption('--flow-id <guid>', 'GUID of the flow to delete')
32
+ .option('--confirm', 'Confirm deletion (required)', false)
33
+ .action(async (opts) => {
34
+ try {
35
+ if (!opts.confirm) {
36
+ console.error('Deletion not confirmed. Use --confirm to proceed.');
37
+ process.exit(1);
38
+ }
39
+ const service = ctx.pp;
40
+ const result = await service.deleteFlow(opts.flowId);
41
+ outputResult(result);
42
+ }
43
+ catch (error) {
44
+ handleCliError(error);
45
+ }
46
+ });
47
+ flow
48
+ .command('clone')
49
+ .description('Clone an existing flow with a new name')
50
+ .requiredOption('--source-flow-id <guid>', 'GUID of the flow to clone')
51
+ .requiredOption('--new-name <name>', 'Display name for the cloned flow')
52
+ .option('--description <desc>', 'Description for the cloned flow')
53
+ .option('--update-connection-references', 'Update connection references using mappings', false)
54
+ .option('--connection-reference-mappings <json>', 'JSON map of connection ref names to new connection IDs')
55
+ .action(async (opts) => {
56
+ try {
57
+ const service = ctx.pp;
58
+ const connectionReferenceMappings = opts.connectionReferenceMappings
59
+ ? JSON.parse(opts.connectionReferenceMappings) : undefined;
60
+ const result = await service.cloneFlow(opts.sourceFlowId, opts.newName, {
61
+ description: opts.description,
62
+ updateConnectionReferences: opts.updateConnectionReferences,
63
+ connectionReferenceMappings
64
+ });
65
+ outputResult(result);
66
+ }
67
+ catch (error) {
68
+ handleCliError(error);
69
+ }
70
+ });
71
+ flow
72
+ .command('activate')
73
+ .description('Activate a Power Automate flow')
74
+ .requiredOption('--flow-id <guid>', 'GUID of the flow to activate')
75
+ .action(async (opts) => {
76
+ try {
77
+ const service = ctx.pp;
78
+ const result = await service.activateFlow(opts.flowId);
79
+ outputResult(result);
80
+ }
81
+ catch (error) {
82
+ handleCliError(error);
83
+ }
84
+ });
85
+ flow
86
+ .command('deactivate')
87
+ .description('Deactivate a Power Automate flow (set to Draft)')
88
+ .requiredOption('--flow-id <guid>', 'GUID of the flow to deactivate')
89
+ .action(async (opts) => {
90
+ try {
91
+ const service = ctx.pp;
92
+ const result = await service.deactivateFlow(opts.flowId);
93
+ outputResult(result);
94
+ }
95
+ catch (error) {
96
+ handleCliError(error);
97
+ }
98
+ });
99
+ flow
100
+ .command('create-from-def')
101
+ .description('Create a new flow from a clientdata JSON definition')
102
+ .requiredOption('--name <name>', 'Display name for the new flow')
103
+ .requiredOption('--client-data <json>', 'Flow definition JSON (stringified)')
104
+ .option('--description <desc>', 'Description for the new flow')
105
+ .option('--primary-entity <name>', 'Primary entity logical name (default: none)')
106
+ .option('--state <state>', 'Initial state: draft, activated (default: draft)')
107
+ .action(async (opts) => {
108
+ try {
109
+ const service = ctx.pp;
110
+ const result = await service.createFlowFromDefinition(opts.name, opts.clientData, {
111
+ description: opts.description,
112
+ primaryEntity: opts.primaryEntity,
113
+ state: opts.state
114
+ });
115
+ outputResult(result);
116
+ }
117
+ catch (error) {
118
+ handleCliError(error);
119
+ }
120
+ });
121
+ flow
122
+ .command('get-template')
123
+ .description('Get a pre-built flow definition template')
124
+ .requiredOption('--template-type <type>', 'Template type: dataverse-on-create, dataverse-on-update, dataverse-on-delete, dataverse-on-create-with-condition-and-update, scheduled-recurrence, manual-trigger, http-request')
125
+ .action(async (opts) => {
126
+ try {
127
+ const service = ctx.pp;
128
+ const template = service.getFlowDefinitionTemplate(opts.templateType);
129
+ outputResult(template);
130
+ }
131
+ catch (error) {
132
+ handleCliError(error);
133
+ }
134
+ });
135
+ flow
136
+ .command('update-def')
137
+ .description('Update an existing flow\'s clientdata definition')
138
+ .requiredOption('--flow-id <guid>', 'GUID of the flow to update')
139
+ .requiredOption('--client-data <json>', 'Updated flow definition JSON (stringified)')
140
+ .option('--no-reactivate', 'Do not auto-reactivate flow after update')
141
+ .option('--no-validate', 'Skip JSON structure validation')
142
+ .action(async (opts) => {
143
+ try {
144
+ const service = ctx.pp;
145
+ const result = await service.updateFlowDefinition(opts.flowId, opts.clientData, {
146
+ reactivate: opts.reactivate,
147
+ validateDefinition: opts.validate
148
+ });
149
+ outputResult(result);
150
+ }
151
+ catch (error) {
152
+ handleCliError(error);
153
+ }
154
+ });
155
+ flow
156
+ .command('runs')
157
+ .description('Get run history for a specific flow')
158
+ .requiredOption('--flow-id <guid>', 'GUID of the flow')
159
+ .option('--status <status>', 'Filter by status: Succeeded, Failed, Running, Waiting, Cancelled')
160
+ .option('--started-after <date>', 'Only runs started after this date (ISO 8601)')
161
+ .option('--started-before <date>', 'Only runs started before this date (ISO 8601)')
162
+ .option('--max-records <n>', 'Maximum runs to return (default: 50)', parseInt)
163
+ .action(async (opts) => {
164
+ try {
165
+ const service = ctx.pp;
166
+ const result = await service.getFlowRuns(opts.flowId, {
167
+ status: opts.status,
168
+ startedAfter: opts.startedAfter,
169
+ startedBefore: opts.startedBefore,
170
+ maxRecords: opts.maxRecords || 50,
171
+ });
172
+ outputResult(result);
173
+ }
174
+ catch (error) {
175
+ handleCliError(error);
176
+ }
177
+ });
178
+ flow
179
+ .command('cancel-run')
180
+ .description('Cancel a running or waiting flow run')
181
+ .requiredOption('--flow-id <guid>', 'GUID of the flow')
182
+ .requiredOption('--run-id <guid>', 'GUID of the flow run to cancel')
183
+ .action(async (opts) => {
184
+ try {
185
+ const service = ctx.pp;
186
+ const result = await service.cancelFlowRun(opts.flowId, opts.runId);
187
+ outputResult(result);
188
+ }
189
+ catch (error) {
190
+ handleCliError(error);
191
+ }
192
+ });
193
+ flow
194
+ .command('resubmit-run')
195
+ .description('Resubmit/retry a failed flow run using original trigger inputs')
196
+ .requiredOption('--flow-id <guid>', 'GUID of the flow')
197
+ .requiredOption('--run-id <guid>', 'GUID of the failed flow run to retry')
198
+ .action(async (opts) => {
199
+ try {
200
+ const service = ctx.pp;
201
+ const result = await service.resubmitFlowRun(opts.flowId, opts.runId);
202
+ outputResult(result);
203
+ }
204
+ catch (error) {
205
+ handleCliError(error);
206
+ }
207
+ });
208
+ }
209
+ //# sourceMappingURL=flow-commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow-commands.js","sourceRoot":"","sources":["../../../src/cli/commands/flow-commands.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE5D,MAAM,UAAU,oBAAoB,CAAC,OAAgB,EAAE,GAAmB;IAExE,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,gCAAgC,CAAC,CAAC;IAEnF,IAAI;SACD,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,kDAAkD,CAAC;SAC/D,cAAc,CAAC,eAAe,EAAE,+BAA+B,CAAC;SAChE,cAAc,CAAC,2BAA2B,EAAE,wCAAwC,CAAC;SACrF,MAAM,CAAC,sBAAsB,EAAE,8BAA8B,CAAC;SAC9D,MAAM,CAAC,iBAAiB,EAAE,kDAAkD,CAAC;SAC7E,MAAM,CAAC,wCAAwC,EAAE,wDAAwD,CAAC;SAC1G,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;QACrB,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,GAAG,CAAC,EAAE,CAAC;YACvB,MAAM,2BAA2B,GAAG,IAAI,C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B,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;YACpE,YAAY,CAAC,MAAM,CAAC,CAAC;QACvB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,cAAc,CAAC,KAAK,CAAC,CAAC;QACxB,CAAC;IACH,CAAC,CAAC,CAAC;IAEL,IAAI;SACD,OAAO,CAAC,cAAc,CAAC;SACvB,WAAW,CAAC,gEAAgE,CAAC;SAC7E,cAAc,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;SACtD,cAAc,CAAC,iBAAiB,EAAE,sCAAsC,CAAC;SACzE,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;QACrB,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,GAAG,CAAC,EAAE,CAAC;YACvB,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;YACtE,YAAY,CAAC,MAAM,CAAC,CAAC;QACvB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,cAAc,CAAC,KAAK,CAAC,CAAC;QACxB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Form CLI commands: create, update, delete, activate, deactivate
3
+ */
4
+ import type { Command } from 'commander';
5
+ import type { ServiceContext } from '../../context-factory.js';
6
+ export declare function registerFormCommands(program: Command, ctx: ServiceContext): void;
7
+ //# sourceMappingURL=form-commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-commands.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/form-commands.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG/D,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,IAAI,CA6FhF"}
@@ -0,0 +1,95 @@
1
+ import { outputResult, handleCliError } from '../output.js';
2
+ export function registerFormCommands(program, ctx) {
3
+ const form = program.command('form').description('Form operations');
4
+ form
5
+ .command('create')
6
+ .description('Create a new form (Main, QuickCreate, QuickView, Card) for an entity')
7
+ .requiredOption('--name <name>', 'Form name')
8
+ .requiredOption('--entity <name>', 'Entity logical name')
9
+ .requiredOption('--form-type <type>', 'Form type: Main, QuickCreate, QuickView, Card')
10
+ .requiredOption('--form-xml <xml>', 'Form XML definition')
11
+ .option('--description <desc>', 'Form description')
12
+ .option('--solution <name>', 'Solution unique name')
13
+ .action(async (opts) => {
14
+ try {
15
+ const service = ctx.pp;
16
+ const POWERPLATFORM_DEFAULT_SOLUTION = process.env.POWERPLATFORM_DEFAULT_SOLUTION || "";
17
+ const solution = opts.solution || POWERPLATFORM_DEFAULT_SOLUTION;
18
+ const result = await service.createForm(opts.name, opts.entity, opts.formType, opts.formXml, { description: opts.description, solutionUniqueName: solution });
19
+ outputResult(result);
20
+ }
21
+ catch (error) {
22
+ handleCliError(error);
23
+ }
24
+ });
25
+ form
26
+ .command('update')
27
+ .description('Update an existing form')
28
+ .requiredOption('--form-id <guid>', 'Form ID (GUID)')
29
+ .option('--name <name>', 'New form name')
30
+ .option('--form-xml <xml>', 'New form XML definition')
31
+ .option('--description <desc>', 'New description')
32
+ .option('--solution <name>', 'Solution unique name')
33
+ .action(async (opts) => {
34
+ try {
35
+ const service = ctx.pp;
36
+ const POWERPLATFORM_DEFAULT_SOLUTION = process.env.POWERPLATFORM_DEFAULT_SOLUTION || "";
37
+ const updates = {};
38
+ if (opts.name)
39
+ updates.name = opts.name;
40
+ if (opts.formXml)
41
+ updates.formxml = opts.formXml;
42
+ if (opts.description)
43
+ updates.description = opts.description;
44
+ const solution = opts.solution || POWERPLATFORM_DEFAULT_SOLUTION;
45
+ await service.updateForm(opts.formId, updates, solution);
46
+ outputResult({ success: true, formId: opts.formId });
47
+ }
48
+ catch (error) {
49
+ handleCliError(error);
50
+ }
51
+ });
52
+ form
53
+ .command('delete')
54
+ .description('Delete a form')
55
+ .requiredOption('--form-id <guid>', 'Form ID (GUID)')
56
+ .action(async (opts) => {
57
+ try {
58
+ const service = ctx.pp;
59
+ await service.deleteForm(opts.formId);
60
+ outputResult({ success: true, deleted: opts.formId });
61
+ }
62
+ catch (error) {
63
+ handleCliError(error);
64
+ }
65
+ });
66
+ form
67
+ .command('activate')
68
+ .description('Activate a form')
69
+ .requiredOption('--form-id <guid>', 'Form ID (GUID)')
70
+ .action(async (opts) => {
71
+ try {
72
+ const service = ctx.pp;
73
+ await service.activateForm(opts.formId);
74
+ outputResult({ success: true, activated: opts.formId });
75
+ }
76
+ catch (error) {
77
+ handleCliError(error);
78
+ }
79
+ });
80
+ form
81
+ .command('deactivate')
82
+ .description('Deactivate a form')
83
+ .requiredOption('--form-id <guid>', 'Form ID (GUID)')
84
+ .action(async (opts) => {
85
+ try {
86
+ const service = ctx.pp;
87
+ await service.deactivateForm(opts.formId);
88
+ outputResult({ success: true, deactivated: opts.formId });
89
+ }
90
+ catch (error) {
91
+ handleCliError(error);
92
+ }
93
+ });
94
+ }
95
+ //# sourceMappingURL=form-commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-commands.js","sourceRoot":"","sources":["../../../src/cli/commands/form-commands.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE5D,MAAM,UAAU,oBAAoB,CAAC,OAAgB,EAAE,GAAmB;IAExE,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAEpE,IAAI;SACD,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,sEAAsE,CAAC;SACnF,cAAc,CAAC,eAAe,EAAE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EAAE,CAAC;YACf,cAAc,CAAC,KAAK,CAAC,CAAC;QACxB,CAAC;IACH,CAAC,CAAC,CAAC;IAEL,IAAI;SACD,OAAO,CAAC,UAAU,CAAC;SACnB,WAAW,CAAC,iBAAiB,CAAC;SAC9B,cAAc,CAAC,kBAAkB,EAAE,gBAAgB,CAAC;SACpD,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;QACrB,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,GAAG,CAAC,EAAE,CAAC;YACvB,MAAM,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACxC,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QAC1D,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,cAAc,CAAC,KAAK,CAAC,CAAC;QACxB,CAAC;IACH,CAAC,CAAC,CAAC;IAEL,IAAI;SACD,OAAO,CAAC,YAAY,CAAC;SACrB,WAAW,CAAC,mBAAmB,CAAC;SAChC,cAAc,CAAC,kBAAkB,EAAE,gBAAgB,CAAC;SACpD,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;QACrB,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,GAAG,CAAC,EAAE,CAAC;YACvB,MAAM,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC1C,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QAC5D,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,cAAc,CAAC,KAAK,CAAC,CAAC;QACxB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -6,4 +6,16 @@ import type { ServiceContext } from '../../context-factory.js';
6
6
  export declare function registerAllCommands(program: Command, ctx: ServiceContext): void;
7
7
  export { registerEntityCommands } from './entity-commands.js';
8
8
  export { registerAttributeCommands } from './attribute-commands.js';
9
+ export { registerAppCommands } from './app-commands.js';
10
+ export { registerIntegrationCommands } from './integration-commands.js';
11
+ export { registerWebhookCommands } from './webhook-commands.js';
12
+ export { registerOptionsetCommands } from './optionset-commands.js';
13
+ export { registerFlowCommands } from './flow-commands.js';
14
+ export { registerFormCommands } from './form-commands.js';
15
+ export { registerViewCommands } from './view-commands.js';
16
+ export { registerPluginCommands } from './plugin-commands.js';
17
+ export { registerRelationshipCommands } from './relationship-commands.js';
18
+ export { registerSolutionCommands } from './solution-commands.js';
19
+ export { registerWebresourceCommands } from './webresource-commands.js';
20
+ export { registerWorkflowCommands } from './workflow-commands.js';
9
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAI/D,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,IAAI,CAG/E;AAED,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAgB/D,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,IAAI,CAe/E;AAED,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -3,10 +3,46 @@
3
3
  */
4
4
  import { registerEntityCommands } from './entity-commands.js';
5
5
  import { registerAttributeCommands } from './attribute-commands.js';
6
+ import { registerAppCommands } from './app-commands.js';
7
+ import { registerIntegrationCommands } from './integration-commands.js';
8
+ import { registerWebhookCommands } from './webhook-commands.js';
9
+ import { registerOptionsetCommands } from './optionset-commands.js';
10
+ import { registerFlowCommands } from './flow-commands.js';
11
+ import { registerFormCommands } from './form-commands.js';
12
+ import { registerViewCommands } from './view-commands.js';
13
+ import { registerPluginCommands } from './plugin-commands.js';
14
+ import { registerRelationshipCommands } from './relationship-commands.js';
15
+ import { registerSolutionCommands } from './solution-commands.js';
16
+ import { registerWebresourceCommands } from './webresource-commands.js';
17
+ import { registerWorkflowCommands } from './workflow-commands.js';
6
18
  export function registerAllCommands(program, ctx) {
7
19
  registerEntityCommands(program, ctx);
8
20
  registerAttributeCommands(program, ctx);
21
+ registerAppCommands(program, ctx);
22
+ registerIntegrationCommands(program, ctx);
23
+ registerWebhookCommands(program, ctx);
24
+ registerOptionsetCommands(program, ctx);
25
+ registerFlowCommands(program, ctx);
26
+ registerFormCommands(program, ctx);
27
+ registerViewCommands(program, ctx);
28
+ registerPluginCommands(program, ctx);
29
+ registerRelationshipCommands(program, ctx);
30
+ registerSolutionCommands(program, ctx);
31
+ registerWebresourceCommands(program, ctx);
32
+ registerWorkflowCommands(program, ctx);
9
33
  }
10
34
  export { registerEntityCommands } from './entity-commands.js';
11
35
  export { registerAttributeCommands } from './attribute-commands.js';
36
+ export { registerAppCommands } from './app-commands.js';
37
+ export { registerIntegrationCommands } from './integration-commands.js';
38
+ export { registerWebhookCommands } from './webhook-commands.js';
39
+ export { registerOptionsetCommands } from './optionset-commands.js';
40
+ export { registerFlowCommands } from './flow-commands.js';
41
+ export { registerFormCommands } from './form-commands.js';
42
+ export { registerViewCommands } from './view-commands.js';
43
+ export { registerPluginCommands } from './plugin-commands.js';
44
+ export { registerRelationshipCommands } from './relationship-commands.js';
45
+ export { registerSolutionCommands } from './solution-commands.js';
46
+ export { registerWebresourceCommands } from './webresource-commands.js';
47
+ export { registerWorkflowCommands } from './workflow-commands.js';
12
48
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,MAAM,UAAU,mBAAmB,CAAC,OAAgB,EAAE,GAAmB;IACvE,sBAAsB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IACrC,yBAAyB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;AAC1C,CAAC;AAED,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC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update-endpoint, delete-endpoint
3
+ */
4
+ import type { Command } from 'commander';
5
+ import type { ServiceContext } from '../../context-factory.js';
6
+ export declare function registerIntegrationCommands(program: Command, ctx: ServiceContext): void;
7
+ //# sourceMappingURL=integration-commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration-commands.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/integration-commands.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG/D,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,IAAI,CAkGvF"}
@@ -0,0 +1,100 @@
1
+ import { outputResult, handleCliError } from '../output.js';
2
+ export function registerIntegrationCommands(program, ctx) {
3
+ const integration = program.command('integration').description('Service endpoint operations');
4
+ integration
5
+ .command('create-endpoint')
6
+ .description('Create a new service endpoint (webhook, Service Bus, Event Hub, etc.)')
7
+ .requiredOption('--name <name>', 'Friendly name for the service endpoint')
8
+ .requiredOption('--url <url>', 'Endpoint URL (must be HTTPS for webhooks)')
9
+ .requiredOption('--contract <type>', 'Contract type: Webhook, Queue, Topic, EventHub, EventGrid, REST, OneWay, TwoWay')
10
+ .requiredOption('--auth-type <type>', 'Auth type: Anonymous, HttpHeader, HttpQueryString, WebKey, SASKey, AzureKey, Certificate')
11
+ .option('--auth-value <value>', 'Authentication value (API key, token)')
12
+ .option('--description <desc>', 'Description of the endpoint')
13
+ .option('--message-format <format>', 'Message format: Json, BinaryXML, TextXML')
14
+ .option('--path <path>', 'Service Bus queue/topic path')
15
+ .option('--saskeyname <name>', 'Service Bus SAS key name')
16
+ .option('--saskey <key>', 'Service Bus SAS key value')
17
+ .option('--solution <name>', 'Solution unique name')
18
+ .action(async (opts) => {
19
+ try {
20
+ const service = ctx.pp;
21
+ const POWERPLATFORM_DEFAULT_SOLUTION = process.env.POWERPLATFORM_DEFAULT_SOLUTION || "";
22
+ const result = await service.createServiceEndpoint({
23
+ name: opts.name,
24
+ url: opts.url,
25
+ contract: opts.contract,
26
+ authType: opts.authType,
27
+ authValue: opts.authValue,
28
+ description: opts.description,
29
+ messageFormat: opts.messageFormat,
30
+ path: opts.path,
31
+ saskeyname: opts.saskeyname,
32
+ saskey: opts.saskey,
33
+ solutionUniqueName: opts.solution || POWERPLATFORM_DEFAULT_SOLUTION,
34
+ });
35
+ outputResult(result);
36
+ }
37
+ catch (error) {
38
+ handleCliError(error);
39
+ }
40
+ });
41
+ integration
42
+ .command('update-endpoint')
43
+ .description('Update an existing service endpoint')
44
+ .requiredOption('--service-endpoint-id <guid>', 'GUID of the service endpoint to update')
45
+ .option('--name <name>', 'New friendly name')
46
+ .option('--url <url>', 'New endpoint URL')
47
+ .option('--auth-type <type>', 'New auth type: Anonymous, HttpHeader, HttpQueryString, WebKey, SASKey, AzureKey, Certificate')
48
+ .option('--auth-value <value>', 'New authentication value')
49
+ .option('--description <desc>', 'New description')
50
+ .option('--message-format <format>', 'New message format: Json, BinaryXML, TextXML')
51
+ .option('--path <path>', 'New Service Bus queue/topic path')
52
+ .option('--namespace-address <uri>', 'Service Bus namespace URI (sb://). Runtime-authoritative for Queue/Topic/EventHub.')
53
+ .option('--sas-key <value>', 'Service Bus SAS key value')
54
+ .option('--sas-key-name <name>', 'Service Bus SAS key / policy name')
55
+ .option('--solution <name>', 'Solution unique name')
56
+ .action(async (opts) => {
57
+ try {
58
+ const service = ctx.pp;
59
+ const POWERPLATFORM_DEFAULT_SOLUTION = process.env.POWERPLATFORM_DEFAULT_SOLUTION || "";
60
+ await service.updateServiceEndpoint({
61
+ serviceEndpointId: opts.serviceEndpointId,
62
+ name: opts.name,
63
+ url: opts.url,
64
+ authType: opts.authType,
65
+ authValue: opts.authValue,
66
+ description: opts.description,
67
+ messageFormat: opts.messageFormat,
68
+ path: opts.path,
69
+ namespaceAddress: opts.namespaceAddress,
70
+ sasKey: opts.sasKey,
71
+ saskeyname: opts.sasKeyName,
72
+ solutionUniqueName: opts.solution || POWERPLATFORM_DEFAULT_SOLUTION || undefined,
73
+ });
74
+ outputResult({ success: true, serviceEndpointId: opts.serviceEndpointId });
75
+ }
76
+ catch (error) {
77
+ handleCliError(error);
78
+ }
79
+ });
80
+ integration
81
+ .command('delete-endpoint')
82
+ .description('Delete a service endpoint (also removes associated SDK steps)')
83
+ .requiredOption('--service-endpoint-id <guid>', 'GUID of the service endpoint to delete')
84
+ .option('--confirm', 'Confirm deletion (required)', false)
85
+ .action(async (opts) => {
86
+ try {
87
+ if (!opts.confirm) {
88
+ console.error('Deletion not confirmed. Use --confirm to proceed.');
89
+ process.exit(1);
90
+ }
91
+ const service = ctx.pp;
92
+ await service.deleteServiceEndpoint(opts.serviceEndpointId);
93
+ outputResult({ success: true, deleted: opts.serviceEndpointId });
94
+ }
95
+ catch (error) {
96
+ handleCliError(error);
97
+ }
98
+ });
99
+ }
100
+ //# sourceMappingURL=integration-commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration-commands.js","sourceRoot":"","sources":["../../../src/cli/commands/integration-commands.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE5D,MAAM,UAAU,2BAA2B,CAAC,OAAgB,EAAE,GAAmB;IAE/E,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,WAAW,CAAC,6BAA6B,CAAC,CAAC;IAE9F,WAAW;SACR,OAAO,CAAC,iBAAiB,CAAC;SAC1B,WAAW,CAAC,uEAAuE,CAAC;SACpF,cAAc,CAAC,eAAe,EAAE,wCAAwC,CAAC;SACzE,cAAc,CAAC,aAAa,EAAE,2CAA2C,CAAC;SAC1E,cAAc,CAAC,mBAAmB,EAAE,iFAAiF,CAAC;SACtH,cAAc,CAAC,oBAAoB,EAAE,0FAA0F,CAAC;SAChI,MAAM,C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AE,IAAI,CAAC,QAAQ,IAAI,8BAA8B,IAAI,SAAS;aACjF,CAAC,CAAC;YACH,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,EAAE,CAAC,CAAC;QAC7E,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,cAAc,CAAC,KAAK,CAAC,CAAC;QACxB,CAAC;IACH,CAAC,CAAC,CAAC;IAEL,WAAW;SACR,OAAO,CAAC,iBAAiB,CAAC;SAC1B,WAAW,CAAC,+DAA+D,CAAC;SAC5E,cAAc,CAAC,8BAA8B,EAAE,wCAAwC,CAAC;SACxF,MAAM,CAAC,WAAW,EAAE,6BAA6B,EAAE,KAAK,CAAC;SACzD,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;QACrB,IAAI,CAAC;YACH,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;gBAClB,OAAO,CAAC,KAAK,CAAC,mDAAmD,CAAC,CAAC;gBACnE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAClB,CAAC;YACD,MAAM,OAAO,GAAG,GAAG,CAAC,EAAE,CAAC;YACvB,MAAM,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;YAC5D,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,iBAAiB,EAAE,CAAC,CAAC;QACnE,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,cAAc,CAAC,KAAK,CAAC,CAAC;QACxB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Option Set CLI commands: create-global, update-global, add-value, update-value, delete-value, reorder
3
+ */
4
+ import type { Command } from 'commander';
5
+ import type { ServiceContext } from '../../context-factory.js';
6
+ export declare function registerOptionsetCommands(program: Command, ctx: ServiceContext): void;
7
+ //# sourceMappingURL=optionset-commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"optionset-commands.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/optionset-commands.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG/D,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,IAAI,CA2IrF"}