@mcp-consultant-tools/powerplatform-customization 28.0.0-beta.7 → 28.0.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.
Files changed (92) hide show
  1. package/build/PowerPlatformService.d.ts +14 -0
  2. package/build/PowerPlatformService.d.ts.map +1 -1
  3. package/build/PowerPlatformService.js +64 -0
  4. package/build/PowerPlatformService.js.map +1 -1
  5. package/build/cli/commands/app-commands.d.ts +7 -0
  6. package/build/cli/commands/app-commands.d.ts.map +1 -0
  7. package/build/cli/commands/app-commands.js +49 -0
  8. package/build/cli/commands/app-commands.js.map +1 -0
  9. package/build/cli/commands/attribute-commands.d.ts +7 -0
  10. package/build/cli/commands/attribute-commands.d.ts.map +1 -0
  11. package/build/cli/commands/attribute-commands.js +208 -0
  12. package/build/cli/commands/attribute-commands.js.map +1 -0
  13. package/build/cli/commands/entity-commands.d.ts +7 -0
  14. package/build/cli/commands/entity-commands.d.ts.map +1 -0
  15. package/build/cli/commands/entity-commands.js +134 -0
  16. package/build/cli/commands/entity-commands.js.map +1 -0
  17. package/build/cli/commands/flow-commands.d.ts +8 -0
  18. package/build/cli/commands/flow-commands.d.ts.map +1 -0
  19. package/build/cli/commands/flow-commands.js +209 -0
  20. package/build/cli/commands/flow-commands.js.map +1 -0
  21. package/build/cli/commands/form-commands.d.ts +7 -0
  22. package/build/cli/commands/form-commands.d.ts.map +1 -0
  23. package/build/cli/commands/form-commands.js +95 -0
  24. package/build/cli/commands/form-commands.js.map +1 -0
  25. package/build/cli/commands/index.d.ts +21 -0
  26. package/build/cli/commands/index.d.ts.map +1 -0
  27. package/build/cli/commands/index.js +48 -0
  28. package/build/cli/commands/index.js.map +1 -0
  29. package/build/cli/commands/integration-commands.d.ts +7 -0
  30. package/build/cli/commands/integration-commands.d.ts.map +1 -0
  31. package/build/cli/commands/integration-commands.js +100 -0
  32. package/build/cli/commands/integration-commands.js.map +1 -0
  33. package/build/cli/commands/optionset-commands.d.ts +7 -0
  34. package/build/cli/commands/optionset-commands.d.ts.map +1 -0
  35. package/build/cli/commands/optionset-commands.js +133 -0
  36. package/build/cli/commands/optionset-commands.js.map +1 -0
  37. package/build/cli/commands/plugin-commands.d.ts +8 -0
  38. package/build/cli/commands/plugin-commands.d.ts.map +1 -0
  39. package/build/cli/commands/plugin-commands.js +278 -0
  40. package/build/cli/commands/plugin-commands.js.map +1 -0
  41. package/build/cli/commands/relationship-commands.d.ts +7 -0
  42. package/build/cli/commands/relationship-commands.d.ts.map +1 -0
  43. package/build/cli/commands/relationship-commands.js +102 -0
  44. package/build/cli/commands/relationship-commands.js.map +1 -0
  45. package/build/cli/commands/solution-commands.d.ts +8 -0
  46. package/build/cli/commands/solution-commands.d.ts.map +1 -0
  47. package/build/cli/commands/solution-commands.js +132 -0
  48. package/build/cli/commands/solution-commands.js.map +1 -0
  49. package/build/cli/commands/view-commands.d.ts +7 -0
  50. package/build/cli/commands/view-commands.d.ts.map +1 -0
  51. package/build/cli/commands/view-commands.js +94 -0
  52. package/build/cli/commands/view-commands.js.map +1 -0
  53. package/build/cli/commands/webhook-commands.d.ts +7 -0
  54. package/build/cli/commands/webhook-commands.d.ts.map +1 -0
  55. package/build/cli/commands/webhook-commands.js +46 -0
  56. package/build/cli/commands/webhook-commands.js.map +1 -0
  57. package/build/cli/commands/webresource-commands.d.ts +7 -0
  58. package/build/cli/commands/webresource-commands.d.ts.map +1 -0
  59. package/build/cli/commands/webresource-commands.js +96 -0
  60. package/build/cli/commands/webresource-commands.js.map +1 -0
  61. package/build/cli/commands/workflow-commands.d.ts +8 -0
  62. package/build/cli/commands/workflow-commands.d.ts.map +1 -0
  63. package/build/cli/commands/workflow-commands.js +107 -0
  64. package/build/cli/commands/workflow-commands.js.map +1 -0
  65. package/build/cli/output.d.ts +20 -0
  66. package/build/cli/output.d.ts.map +1 -0
  67. package/build/cli/output.js +45 -0
  68. package/build/cli/output.js.map +1 -0
  69. package/build/cli.d.ts +9 -0
  70. package/build/cli.d.ts.map +1 -0
  71. package/build/cli.js +27 -0
  72. package/build/cli.js.map +1 -0
  73. package/build/context-factory.d.ts +8 -0
  74. package/build/context-factory.d.ts.map +1 -0
  75. package/build/context-factory.js +36 -0
  76. package/build/context-factory.js.map +1 -0
  77. package/build/index.js +0 -0
  78. package/build/tool-examples.d.ts +4 -0
  79. package/build/tool-examples.d.ts.map +1 -1
  80. package/build/tool-examples.js +7 -0
  81. package/build/tool-examples.js.map +1 -1
  82. package/build/tools/app-endpoint-tools.d.ts.map +1 -1
  83. package/build/tools/app-endpoint-tools.js +9 -0
  84. package/build/tools/app-endpoint-tools.js.map +1 -1
  85. package/build/tools/entity-tools.d.ts.map +1 -1
  86. package/build/tools/entity-tools.js +18 -1
  87. package/build/tools/entity-tools.js.map +1 -1
  88. package/build/tools/index.js +3 -3
  89. package/build/tools/web-resource-tools.d.ts.map +1 -1
  90. package/build/tools/web-resource-tools.js +36 -3
  91. package/build/tools/web-resource-tools.js.map +1 -1
  92. package/package.json +6 -4
@@ -0,0 +1,134 @@
1
+ import { outputResult, handleCliError } from '../output.js';
2
+ export function registerEntityCommands(program, ctx) {
3
+ program
4
+ .command('create-entity')
5
+ .description('Create a new custom entity (table)')
6
+ .requiredOption('--schema-name <name>', 'Schema name (e.g., sic_application)')
7
+ .requiredOption('--display-name <name>', 'Display name')
8
+ .requiredOption('--plural-display-name <name>', 'Plural display name')
9
+ .requiredOption('--description <desc>', 'Description')
10
+ .requiredOption('--ownership-type <type>', 'Ownership: UserOwned, TeamOwned, OrganizationOwned')
11
+ .option('--has-activities', 'Enable activities', false)
12
+ .option('--has-notes', 'Enable notes', false)
13
+ .option('--is-activity-party', 'Can be party in activities', false)
14
+ .option('--primary-attr-schema <name>', 'Primary attribute schema name')
15
+ .option('--primary-attr-display <name>', 'Primary attribute display name')
16
+ .option('--primary-attr-max-length <n>', 'Primary attribute max length', parseInt)
17
+ .option('--solution <name>', 'Solution unique name')
18
+ .action(async (opts) => {
19
+ try {
20
+ const service = ctx.pp;
21
+ const entityDefinition = {
22
+ "@odata.type": "Microsoft.Dynamics.CRM.EntityMetadata",
23
+ SchemaName: opts.schemaName,
24
+ DisplayName: {
25
+ "@odata.type": "Microsoft.Dynamics.CRM.Label",
26
+ LocalizedLabels: [{ "@odata.type": "Microsoft.Dynamics.CRM.LocalizedLabel", Label: opts.displayName, LanguageCode: 1033 }]
27
+ },
28
+ DisplayCollectionName: {
29
+ "@odata.type": "Microsoft.Dynamics.CRM.Label",
30
+ LocalizedLabels: [{ "@odata.type": "Microsoft.Dynamics.CRM.LocalizedLabel", Label: opts.pluralDisplayName, LanguageCode: 1033 }]
31
+ },
32
+ Description: {
33
+ "@odata.type": "Microsoft.Dynamics.CRM.Label",
34
+ LocalizedLabels: [{ "@odata.type": "Microsoft.Dynamics.CRM.LocalizedLabel", Label: opts.description, LanguageCode: 1033 }]
35
+ },
36
+ OwnershipType: opts.ownershipType,
37
+ IsActivity: false,
38
+ HasActivities: opts.hasActivities,
39
+ HasNotes: opts.hasNotes,
40
+ IsActivityParty: opts.isActivityParty,
41
+ IsDuplicateDetectionEnabled: { Value: false, CanBeChanged: true },
42
+ IsMailMergeEnabled: { Value: false, CanBeChanged: true },
43
+ Attributes: [{
44
+ "@odata.type": "Microsoft.Dynamics.CRM.StringAttributeMetadata",
45
+ SchemaName: opts.primaryAttrSchema || "name",
46
+ IsPrimaryName: true,
47
+ RequiredLevel: { Value: "None", CanBeChanged: true },
48
+ MaxLength: opts.primaryAttrMaxLength || 850,
49
+ FormatName: { Value: "Text" },
50
+ DisplayName: {
51
+ "@odata.type": "Microsoft.Dynamics.CRM.Label",
52
+ LocalizedLabels: [{ "@odata.type": "Microsoft.Dynamics.CRM.LocalizedLabel", Label: opts.primaryAttrDisplay || "Name", LanguageCode: 1033 }]
53
+ },
54
+ Description: {
55
+ "@odata.type": "Microsoft.Dynamics.CRM.Label",
56
+ LocalizedLabels: [{ "@odata.type": "Microsoft.Dynamics.CRM.LocalizedLabel", Label: "The primary attribute for the entity", LanguageCode: 1033 }]
57
+ }
58
+ }],
59
+ HasFeedback: false
60
+ };
61
+ const solutionName = opts.solution || process.env.POWERPLATFORM_DEFAULT_SOLUTION || undefined;
62
+ const result = await service.createEntity(entityDefinition, solutionName);
63
+ outputResult(result);
64
+ }
65
+ catch (error) {
66
+ handleCliError(error);
67
+ }
68
+ });
69
+ program
70
+ .command('update-entity')
71
+ .description('Update an existing custom entity')
72
+ .requiredOption('--metadata-id <guid>', 'Entity MetadataId (GUID)')
73
+ .option('--display-name <name>', 'New display name')
74
+ .option('--plural-display-name <name>', 'New plural display name')
75
+ .option('--description <desc>', 'New description')
76
+ .option('--has-activities', 'Enable activities')
77
+ .option('--has-notes', 'Enable notes')
78
+ .option('--solution <name>', 'Solution context')
79
+ .action(async (opts) => {
80
+ try {
81
+ const service = ctx.pp;
82
+ const updates = {};
83
+ if (opts.displayName) {
84
+ updates.DisplayName = { "@odata.type": "Microsoft.Dynamics.CRM.Label", LocalizedLabels: [{ "@odata.type": "Microsoft.Dynamics.CRM.LocalizedLabel", Label: opts.displayName, LanguageCode: 1033 }] };
85
+ }
86
+ if (opts.pluralDisplayName) {
87
+ updates.DisplayCollectionName = { "@odata.type": "Microsoft.Dynamics.CRM.Label", LocalizedLabels: [{ "@odata.type": "Microsoft.Dynamics.CRM.LocalizedLabel", Label: opts.pluralDisplayName, LanguageCode: 1033 }] };
88
+ }
89
+ if (opts.description) {
90
+ updates.Description = { "@odata.type": "Microsoft.Dynamics.CRM.Label", LocalizedLabels: [{ "@odata.type": "Microsoft.Dynamics.CRM.LocalizedLabel", Label: opts.description, LanguageCode: 1033 }] };
91
+ }
92
+ if (opts.hasActivities !== undefined)
93
+ updates.HasActivities = opts.hasActivities;
94
+ if (opts.hasNotes !== undefined)
95
+ updates.HasNotes = opts.hasNotes;
96
+ await service.updateEntity(opts.metadataId, updates, opts.solution);
97
+ outputResult({ success: true, metadataId: opts.metadataId });
98
+ }
99
+ catch (error) {
100
+ handleCliError(error);
101
+ }
102
+ });
103
+ program
104
+ .command('update-entity-icon')
105
+ .description('Update entity icon using Fluent UI System Icons')
106
+ .requiredOption('--entity <name>', 'Entity logical name')
107
+ .requiredOption('--icon-file <name>', 'Fluent UI icon file name (e.g., people_community_24_filled.svg)')
108
+ .option('--solution <name>', 'Solution unique name')
109
+ .action(async (opts) => {
110
+ try {
111
+ const service = ctx.pp;
112
+ const result = await service.updateEntityIcon(opts.entity, opts.iconFile, opts.solution);
113
+ outputResult(result);
114
+ }
115
+ catch (error) {
116
+ handleCliError(error);
117
+ }
118
+ });
119
+ program
120
+ .command('delete-entity')
121
+ .description('Delete a custom entity')
122
+ .requiredOption('--metadata-id <guid>', 'Entity MetadataId (GUID)')
123
+ .action(async (opts) => {
124
+ try {
125
+ const service = ctx.pp;
126
+ await service.deleteEntity(opts.metadataId);
127
+ outputResult({ success: true, deleted: opts.metadataId });
128
+ }
129
+ catch (error) {
130
+ handleCliError(error);
131
+ }
132
+ });
133
+ }
134
+ //# sourceMappingURL=entity-commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-commands.js","sourceRoot":"","sources":["../../../src/cli/commands/entity-commands.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE5D,MAAM,UAAU,sBAAsB,CAAC,OAAgB,EAAE,GAAmB;IAE1E,OAAO;SACJ,OAAO,CAAC,eAAe,CAAC;SACxB,WAAW,CAAC,oCAAoC,CAAC;SACjD,cAAc,CAAC,sBAAsB,EAAE,qCAAqC,CAAC;SAC7E,cAAc,CAAC,uBAAuB,EAAE,cAAc,CAAC;SACvD,cAAc,CAAC,8BAA8B,EAAE,qBAAqB,CAAC;SACrE,cAAc,CAAC,sBAAsB,EAAE,aAAa,CAAC;SACrD,cAAc,CAAC,yBAAyB,EAAE,oDAAoD,CAAC;SAC/F,MAAM,CAAC,kBAAkB,EAAE,mBAAmB,EAAE,KAAK,CAAC;SACtD,MAAM,CAAC,a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,cAAc,CAAC,sBAAsB,EAAE,0BAA0B,CAAC;SAClE,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,UAAU,CAAC,CAAC;YAC5C,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;QAC5D,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,CAAC,2BAA2B;gBAClE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,C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AAM,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,WAAW,CAAC;SAC5C,cAAc,CAAC,iBAAiB,EAAE,qBAAqB,CAAC;SAC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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"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * CLI Commands barrel export + combined registration
3
+ */
4
+ import type { Command } from 'commander';
5
+ import type { ServiceContext } from '../../context-factory.js';
6
+ export declare function registerAllCommands(program: Command, ctx: ServiceContext): void;
7
+ export { registerEntityCommands } from './entity-commands.js';
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';
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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;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"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * CLI Commands barrel export + combined registration
3
+ */
4
+ import { registerEntityCommands } from './entity-commands.js';
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';
18
+ export function registerAllCommands(program, ctx) {
19
+ registerEntityCommands(program, ctx);
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);
33
+ }
34
+ export { registerEntityCommands } from './entity-commands.js';
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';
48
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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;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,O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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"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Integration CLI commands: create-endpoint, 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"}