@owox/backend 0.25.0-next-20260514100557 → 0.25.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.
@@ -671,7 +671,8 @@ export declare enum DataMartMetadataScope {
671
671
  FIELD_ALIAS = "field_alias",
672
672
  FIELD_DESCRIPTION = "field_description",
673
673
  ALL_FIELD_DESCRIPTIONS = "all_field_descriptions",
674
- ALL_FIELD_ALIASES = "all_field_aliases"
674
+ ALL_FIELD_ALIASES = "all_field_aliases",
675
+ ALL_FIELD_METADATA = "all_field_metadata"
675
676
  }
676
677
  export interface GenerateDataMartMetadataRequest {
677
678
  projectId: string;
@@ -75,5 +75,6 @@ var DataMartMetadataScope;
75
75
  DataMartMetadataScope["FIELD_DESCRIPTION"] = "field_description";
76
76
  DataMartMetadataScope["ALL_FIELD_DESCRIPTIONS"] = "all_field_descriptions";
77
77
  DataMartMetadataScope["ALL_FIELD_ALIASES"] = "all_field_aliases";
78
+ DataMartMetadataScope["ALL_FIELD_METADATA"] = "all_field_metadata";
78
79
  })(DataMartMetadataScope || (exports.DataMartMetadataScope = DataMartMetadataScope = {}));
79
80
  //# sourceMappingURL=ai-insights-types.js.map
@@ -62,6 +62,7 @@ let GenerateDataMartMetadataOrchestratorService = GenerateDataMartMetadataOrches
62
62
  const sample = await this.dataMartSampleDataService.sampleAllRows(request.dataMartId, request.projectId, METADATA_SAMPLE_ROW_LIMIT);
63
63
  sampleColumns = sample.columns;
64
64
  sampleRows = sample.rows.map(row => this.toQueryRow(sample.columns, row));
65
+ this.logger.log(`Fetched ${sample.rows.length} sample row(s) across ${sample.columns.length} column(s) for data mart ${request.dataMartId}`);
65
66
  }
66
67
  const sharedContext = {
67
68
  aiProvider: this.aiProvider,
@@ -118,6 +119,14 @@ let GenerateDataMartMetadataOrchestratorService = GenerateDataMartMetadataOrches
118
119
  return {
119
120
  fields: aiResult.fields?.map(f => ({ name: f.name, alias: f.alias })) ?? [],
120
121
  };
122
+ case ai_insights_types_1.DataMartMetadataScope.ALL_FIELD_METADATA:
123
+ return {
124
+ fields: aiResult.fields?.map(f => ({
125
+ name: f.name,
126
+ alias: f.alias,
127
+ description: f.description,
128
+ })) ?? [],
129
+ };
121
130
  case ai_insights_types_1.DataMartMetadataScope.ALL_FIELD_DESCRIPTIONS:
122
131
  default:
123
132
  return {
@@ -94,6 +94,12 @@ function describeScopeRequirements(scope, fieldName) {
94
94
  '- "description": OMIT.',
95
95
  '- "fields": REQUIRED. Include EVERY field from the input schema. Populate "alias" for each. OMIT "description" — descriptions are not generated by this scope.',
96
96
  ].join('\n');
97
+ case types_1.DataMartMetadataScope.ALL_FIELD_METADATA:
98
+ return [
99
+ '- "title": OMIT.',
100
+ '- "description": OMIT.',
101
+ '- "fields": REQUIRED. Include EVERY field from the input schema. Populate BOTH "alias" AND "description" for each.',
102
+ ].join('\n');
97
103
  case types_1.DataMartMetadataScope.ALL_FIELD_DESCRIPTIONS:
98
104
  default:
99
105
  return [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owox/backend",
3
- "version": "0.25.0-next-20260514100557",
3
+ "version": "0.25.0",
4
4
  "description": "OWOX Data Marts Backend - Full-stack data orchestration platform",
5
5
  "author": "OWOX",
6
6
  "license": "ELv2",
@@ -78,9 +78,9 @@
78
78
  "@nestjs/schedule": "^6.0.0",
79
79
  "@nestjs/swagger": "^11.2.0",
80
80
  "@nestjs/typeorm": "^11.0.0",
81
- "@owox/connectors": "0.25.0-next-20260514100557",
82
- "@owox/idp-protocol": "0.25.0-next-20260514100557",
83
- "@owox/internal-helpers": "0.25.0-next-20260514100557",
81
+ "@owox/connectors": "0.25.0",
82
+ "@owox/idp-protocol": "0.25.0",
83
+ "@owox/internal-helpers": "0.25.0",
84
84
  "better-sqlite3": "^12.2.0",
85
85
  "class-transformer": "^0.5.1",
86
86
  "class-validator": "^0.14.2",
@@ -139,7 +139,7 @@
139
139
  "ts-node": "^10.9.2",
140
140
  "tsconfig-paths": "^4.2.0",
141
141
  "typeorm-ts-node-commonjs": "^0.3.20",
142
- "@owox/test-utils": "4.0.0-next-20260514100557"
142
+ "@owox/test-utils": "*"
143
143
  },
144
144
  "jest": {
145
145
  "moduleFileExtensions": [