@dataclouder/nest-vertex 0.0.28 → 0.0.29

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.
@@ -12,7 +12,7 @@ export declare class ComfyVideoService {
12
12
  runVideoGenerationFromWorkflow(videoRequest: VideoGenRequest, assetId?: string): Promise<{
13
13
  prompt_id: string;
14
14
  }>;
15
- runVideoGenerationForAssetId(assetId: string): Promise<{
15
+ runVideoGenerationForAssetId(assetId: string, metadata?: any): Promise<{
16
16
  prompt_id: string;
17
17
  }>;
18
18
  }
@@ -57,8 +57,12 @@ let ComfyVideoService = ComfyVideoService_1 = class ComfyVideoService {
57
57
  }
58
58
  return response;
59
59
  }
60
- async runVideoGenerationForAssetId(assetId) {
60
+ async runVideoGenerationForAssetId(assetId, metadata = null) {
61
61
  const genAsset = await this.generatedAssetService.findOne(assetId);
62
+ if (metadata) {
63
+ console.log('Updating asset metadata for future retrieval:', metadata);
64
+ await this.generatedAssetService.partialUpdate(assetId, metadata);
65
+ }
62
66
  if (!genAsset || !genAsset.assets?.firstFrame?.url) {
63
67
  throw new common_1.NotFoundException(`Asset with id ${assetId} not found or does not have a valid image url.`);
64
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataclouder/nest-vertex",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "description": "NestJS Vertex AI library for Dataclouder",
5
5
  "author": "dataclouder",
6
6
  "license": "MIT",