@okf/ootils 1.17.1 → 1.18.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.
- package/dist/node.d.mts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +9 -2
- package/dist/node.mjs +9 -2
- package/package.json +1 -1
package/dist/node.d.mts
CHANGED
package/dist/node.d.ts
CHANGED
package/dist/node.js
CHANGED
|
@@ -432,7 +432,10 @@ var init_Annotations = __esm({
|
|
|
432
432
|
AnnotationSchema.index({ createdAt: -1 });
|
|
433
433
|
AnnotationSchema.index({ "annotations.annoKey": 1 });
|
|
434
434
|
AnnotationSchema.index({ "kp_date_published": -1 });
|
|
435
|
-
AnnotationSchema.index(
|
|
435
|
+
AnnotationSchema.index(
|
|
436
|
+
{ "meta.contentType": 1, "meta.valuePath": 1, topicId: 1 },
|
|
437
|
+
{ collation: { locale: "en" } }
|
|
438
|
+
);
|
|
436
439
|
AnnotationSchema.pre("save", function(next) {
|
|
437
440
|
this.updatedAt = /* @__PURE__ */ new Date();
|
|
438
441
|
next();
|
|
@@ -957,7 +960,11 @@ var init_GeneratedTopics = __esm({
|
|
|
957
960
|
type: String,
|
|
958
961
|
required: true
|
|
959
962
|
},
|
|
960
|
-
parentTopic:
|
|
963
|
+
parentTopic: {
|
|
964
|
+
type: import_mongoose5.Schema.Types.ObjectId,
|
|
965
|
+
ref: "generatedtopics",
|
|
966
|
+
default: null
|
|
967
|
+
},
|
|
961
968
|
embeddings: {
|
|
962
969
|
type: [Number],
|
|
963
970
|
required: true
|
package/dist/node.mjs
CHANGED
|
@@ -437,7 +437,10 @@ var init_Annotations = __esm({
|
|
|
437
437
|
AnnotationSchema.index({ createdAt: -1 });
|
|
438
438
|
AnnotationSchema.index({ "annotations.annoKey": 1 });
|
|
439
439
|
AnnotationSchema.index({ "kp_date_published": -1 });
|
|
440
|
-
AnnotationSchema.index(
|
|
440
|
+
AnnotationSchema.index(
|
|
441
|
+
{ "meta.contentType": 1, "meta.valuePath": 1, topicId: 1 },
|
|
442
|
+
{ collation: { locale: "en" } }
|
|
443
|
+
);
|
|
441
444
|
AnnotationSchema.pre("save", function(next) {
|
|
442
445
|
this.updatedAt = /* @__PURE__ */ new Date();
|
|
443
446
|
next();
|
|
@@ -962,7 +965,11 @@ var init_GeneratedTopics = __esm({
|
|
|
962
965
|
type: String,
|
|
963
966
|
required: true
|
|
964
967
|
},
|
|
965
|
-
parentTopic:
|
|
968
|
+
parentTopic: {
|
|
969
|
+
type: Schema2.Types.ObjectId,
|
|
970
|
+
ref: "generatedtopics",
|
|
971
|
+
default: null
|
|
972
|
+
},
|
|
966
973
|
embeddings: {
|
|
967
974
|
type: [Number],
|
|
968
975
|
required: true
|