@mesh-sync/worker-backend-client 1.0.4 → 1.0.5
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.
- package/README.md +5 -3
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/types.d.ts +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -227,6 +227,8 @@ await client.sendToQueue(MessageTypes.FILE_DOWNLOAD_REQUEST, {
|
|
|
227
227
|
|
|
228
228
|
- `libraryId` (string) [✗]: The library containing this metamodel
|
|
229
229
|
|
|
230
|
+
- `constituentModels` (array) [✗]: Enriched metadata for constituent models (includes storage items)
|
|
231
|
+
|
|
230
232
|
- `webhookUrl` (string) [✗]: Optional webhook URL for async completion notification
|
|
231
233
|
|
|
232
234
|
|
|
@@ -367,7 +369,7 @@ await client.sendToQueue(MessageTypes.FILE_DOWNLOAD_REQUEST, {
|
|
|
367
369
|
|
|
368
370
|
### model-metamodel-detection-found
|
|
369
371
|
|
|
370
|
-
**Description:** Handles model metamodel detection found.
|
|
372
|
+
**Description:** Handles model metamodel detection found with hierarchical relationships.
|
|
371
373
|
|
|
372
374
|
**Method:** `client.modelMetamodelDetectionFound(data)`
|
|
373
375
|
|
|
@@ -375,7 +377,7 @@ await client.sendToQueue(MessageTypes.FILE_DOWNLOAD_REQUEST, {
|
|
|
375
377
|
|
|
376
378
|
**Fields:**
|
|
377
379
|
|
|
378
|
-
- `
|
|
380
|
+
- `metamodels` (array) [✓]: List of metamodel nodes in hierarchical structure (roots and children).
|
|
379
381
|
|
|
380
382
|
|
|
381
383
|
|
|
@@ -633,7 +635,7 @@ new WorkerClient(config: WorkerClientConfig)
|
|
|
633
635
|
- Handles model metadata generation requests.
|
|
634
636
|
|
|
635
637
|
- `modelMetamodelDetectionFound(data: ModelMetamodelDetectionFoundMessage): Promise<JobResponse>`
|
|
636
|
-
- Handles model metamodel detection found.
|
|
638
|
+
- Handles model metamodel detection found with hierarchical relationships.
|
|
637
639
|
|
|
638
640
|
- `modelMetamodelDetectionRequest(data: ModelMetamodelDetectionRequestMessage): Promise<JobResponse>`
|
|
639
641
|
- Handles model metamodel detection requests.
|
package/dist/client.d.ts
CHANGED
|
@@ -111,7 +111,7 @@ export declare class WorkerClient {
|
|
|
111
111
|
*/
|
|
112
112
|
modelMetadataGenerationRequest(data: types.ModelMetadataGenerationRequestMessage): Promise<JobResponse>;
|
|
113
113
|
/**
|
|
114
|
-
* Handles model metamodel detection found.
|
|
114
|
+
* Handles model metamodel detection found with hierarchical relationships.
|
|
115
115
|
* @param data - The message payload
|
|
116
116
|
* @returns Job response with job ID
|
|
117
117
|
*/
|
package/dist/client.js
CHANGED
|
@@ -158,7 +158,7 @@ export class WorkerClient {
|
|
|
158
158
|
return this.sendToQueue(types.MessageTypes.MODEL_METADATA_GENERATION_REQUEST, data);
|
|
159
159
|
}
|
|
160
160
|
/**
|
|
161
|
-
* Handles model metamodel detection found.
|
|
161
|
+
* Handles model metamodel detection found with hierarchical relationships.
|
|
162
162
|
* @param data - The message payload
|
|
163
163
|
* @returns Job response with job ID
|
|
164
164
|
*/
|
package/dist/types.d.ts
CHANGED
|
@@ -108,6 +108,8 @@ export interface MetamodelMetadataGenerationRequestMessage {
|
|
|
108
108
|
ownerId?: string;
|
|
109
109
|
/** The library containing this metamodel */
|
|
110
110
|
libraryId?: string;
|
|
111
|
+
/** Enriched metadata for constituent models (includes storage items) */
|
|
112
|
+
constituentModels?: Array<Record<string, string | number | boolean>>;
|
|
111
113
|
/** Optional webhook URL for async completion notification */
|
|
112
114
|
webhookUrl?: string;
|
|
113
115
|
}
|
|
@@ -204,11 +206,11 @@ export interface ModelMetadataGenerationRequestMessage {
|
|
|
204
206
|
metamodel?: Record<string, string | number | boolean>;
|
|
205
207
|
}
|
|
206
208
|
/**
|
|
207
|
-
* Handles model metamodel detection found.
|
|
209
|
+
* Handles model metamodel detection found with hierarchical relationships.
|
|
208
210
|
*/
|
|
209
211
|
export interface ModelMetamodelDetectionFoundMessage {
|
|
210
|
-
/** List of metamodel
|
|
211
|
-
|
|
212
|
+
/** List of metamodel nodes in hierarchical structure (roots and children). */
|
|
213
|
+
metamodels: Array<Record<string, string | number | boolean>>;
|
|
212
214
|
}
|
|
213
215
|
/**
|
|
214
216
|
* Handles model metamodel detection requests.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mesh-sync/worker-backend-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Auto-generated TypeScript client for worker-backend - provides type-safe methods for enqueueing jobs",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|