You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(proposal): replace IMPORT with contract browsing + MDL generation workflow
- Remove IMPORT EXTERNAL ENTITY (redundant with CREATE EXTERNAL ENTITY)
- Add DESCRIBE CONTRACT ENTITY/ACTION with FORMAT mdl to generate ready-to-use
CREATE statements from the cached $metadata
- Show full workflow: browse → inspect → generate → customize
- Actions still need NPE generation for complex type parameters/return values
- Addresses #44
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/11-proposals/integration-pane-proposal.md
+60-12Lines changed: 60 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -362,25 +362,73 @@ Catalog tables:
362
362
-`contract_entities` — entity types from cached `$metadata` (name, properties, key, service ref)
363
363
-`contract_actions` — function imports / actions from cached `$metadata` (name, parameters, return type)
364
364
365
-
### Auto-Import from Contract ([mendixlabs/mxcli#44](https://github.com/mendixlabs/mxcli/issues/44))
365
+
### Generating CREATE EXTERNAL ENTITY from Contracts ([mendixlabs/mxcli#44](https://github.com/mendixlabs/mxcli/issues/44))
366
366
367
-
Once contracts are parsed, support importing assets into the project:
367
+
For **entities**, there's no new command needed — `CREATE EXTERNAL ENTITY` already exists. The contract parsing enables a workflow where the user browses available entities and the tool generates the correct `CREATE EXTERNAL ENTITY` with attributes mapped from Edm types:
368
368
369
369
```sql
370
-
-- Import a specific entity from the OData contract as an external entity
For **actions**, there IS new functionality needed — action definitions and their request/response NPEs (non-persistent entities) don't have a `CREATE` equivalent today:
406
+
407
+
```sql
408
+
-- Browse available actions
409
+
SHOW CONTRACT ACTIONS FROMMyModule.SalesforceAPI;
372
410
373
-
-- Import an action and its request/response NPEs (non-persistent entities)
4.A comment showing the `CALL EXTERNAL ACTION` syntax with the correct parameter names
382
430
383
-
This addresses the core request in issue #44: users want to browse available actions and auto-import them with their payload entities, rather than manually creating the domain model.
431
+
This addresses the core request in issue #44: users want to browse available actions and generate the domain model entities needed to call them.
0 commit comments