@okf/ootils 1.5.2 → 1.5.4

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/dist/node.d.mts CHANGED
@@ -322,7 +322,7 @@ interface IAnnotation extends Document {
322
322
  meta: IMeta;
323
323
  main?: any;
324
324
  annotations?: IAnnotations;
325
- embeddings?: any[];
325
+ embeddings?: number[] | undefined;
326
326
  contentEnhancedText?: string;
327
327
  clusterId?: string;
328
328
  kp_date_published?: Date;
package/dist/node.d.ts CHANGED
@@ -322,7 +322,7 @@ interface IAnnotation extends Document {
322
322
  meta: IMeta;
323
323
  main?: any;
324
324
  annotations?: IAnnotations;
325
- embeddings?: any[];
325
+ embeddings?: number[] | undefined;
326
326
  contentEnhancedText?: string;
327
327
  clusterId?: string;
328
328
  kp_date_published?: Date;
package/dist/node.js CHANGED
@@ -108,7 +108,10 @@ var init_Annotations = __esm({
108
108
  name: String
109
109
  }
110
110
  },
111
- embeddings: Array,
111
+ embeddings: {
112
+ type: [Number],
113
+ default: void 0
114
+ },
112
115
  contentEnhancedText: String,
113
116
  // // Optional chunk related fields
114
117
  // chunk: {
@@ -1468,7 +1471,7 @@ var getTpl = async ({ name, tenant }) => {
1468
1471
  throw new Error("Missing required parameters: name or tenant");
1469
1472
  }
1470
1473
  return await findInCache({
1471
- modelName: "tpls",
1474
+ modelName: "tpl",
1472
1475
  type: name,
1473
1476
  tenant,
1474
1477
  query: {
package/dist/node.mjs CHANGED
@@ -113,7 +113,10 @@ var init_Annotations = __esm({
113
113
  name: String
114
114
  }
115
115
  },
116
- embeddings: Array,
116
+ embeddings: {
117
+ type: [Number],
118
+ default: void 0
119
+ },
117
120
  contentEnhancedText: String,
118
121
  // // Optional chunk related fields
119
122
  // chunk: {
@@ -1439,7 +1442,7 @@ var getTpl = async ({ name, tenant }) => {
1439
1442
  throw new Error("Missing required parameters: name or tenant");
1440
1443
  }
1441
1444
  return await findInCache({
1442
- modelName: "tpls",
1445
+ modelName: "tpl",
1443
1446
  type: name,
1444
1447
  tenant,
1445
1448
  query: {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.5.2",
6
+ "version": "1.5.4",
7
7
  "description": "Utility functions for both browser and Node.js",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",