@@ -120,36 +120,19 @@ export interface DiagramsListRequest {
120120 * {
121121 * landscapeId: "landscapeId",
122122 * versionId: "versionId",
123- * index: 1.1,
124- * modelId: "modelId",
125- * name: "name",
126- * type: "app-diagram"
123+ * body: {
124+ * index: 1.1,
125+ * modelId: "modelId",
126+ * name: "name",
127+ * type: "app-diagram"
128+ * }
127129 * }
128130 */
129131export interface DiagramCreateRequest {
130132 landscapeId : string ;
131133 versionId : string ;
132134 updateViewedAt ?: boolean ;
133- commit ?: number ;
134- description ?: string ;
135- groupId ?: string | null ;
136- index : number ;
137- labels ?: Record < string , string > ;
138- /** model object id this object belongs to */
139- modelId : string ;
140- name : string ;
141- parentId ?: string | null ;
142- pinned ?: boolean ;
143- pinnedAt ?: string ;
144- pinnedIndex ?: number ;
145- status ?: IcePanel . DiagramStatus ;
146- /** Custom zoom levels for specific model objects within the diagram. The key is the modelObjectId and the value is the diagram id. */
147- zoomOverrides ?: Record < string , string | null > | null ;
148- handleId ?: string ;
149- type : IcePanel . DiagramType ;
150- comments ?: Record < string , IcePanel . DiagramComment > ;
151- connections ?: Record < string , IcePanel . DiagramConnection > ;
152- objects ?: Record < string , IcePanel . DiagramObject > ;
135+ body : IcePanel . DiagramCreate ;
153136}
154137
155138/**
@@ -173,37 +156,20 @@ export interface DiagramFindRequest {
173156 * landscapeId: "landscapeId",
174157 * versionId: "versionId",
175158 * diagramId: "diagramId",
176- * index: 1.1,
177- * modelId: "modelId",
178- * name: "name",
179- * type: "app-diagram"
159+ * body: {
160+ * index: 1.1,
161+ * modelId: "modelId",
162+ * name: "name",
163+ * type: "app-diagram"
164+ * }
180165 * }
181166 */
182167export interface DiagramUpsertRequest {
183168 landscapeId : string ;
184169 versionId : string ;
185170 diagramId : string ;
186171 updateViewedAt ?: boolean ;
187- commit ?: number ;
188- description ?: string ;
189- groupId ?: string | null ;
190- index : number ;
191- labels ?: Record < string , string > ;
192- /** model object id this object belongs to */
193- modelId : string ;
194- name : string ;
195- parentId ?: string | null ;
196- pinned ?: boolean ;
197- pinnedAt ?: string ;
198- pinnedIndex ?: number ;
199- status ?: IcePanel . DiagramStatus ;
200- /** Custom zoom levels for specific model objects within the diagram. The key is the modelObjectId and the value is the diagram id. */
201- zoomOverrides ?: Record < string , string | null > | null ;
202- handleId ?: string ;
203- type : IcePanel . DiagramType ;
204- comments ?: Record < string , IcePanel . DiagramComment > ;
205- connections ?: Record < string , IcePanel . DiagramConnection > ;
206- objects ?: Record < string , IcePanel . DiagramObject > ;
172+ body : IcePanel . DiagramCreate ;
207173}
208174
209175/**
0 commit comments