@okf/ootils 1.17.0 → 1.17.2
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 +6 -1
- package/dist/node.mjs +6 -1
- package/package.json +1 -1
package/dist/node.d.mts
CHANGED
package/dist/node.d.ts
CHANGED
package/dist/node.js
CHANGED
|
@@ -432,6 +432,7 @@ 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({ "meta.contentType": 1, "meta.valuePath": 1, topicId: 1 });
|
|
435
436
|
AnnotationSchema.pre("save", function(next) {
|
|
436
437
|
this.updatedAt = /* @__PURE__ */ new Date();
|
|
437
438
|
next();
|
|
@@ -956,7 +957,11 @@ var init_GeneratedTopics = __esm({
|
|
|
956
957
|
type: String,
|
|
957
958
|
required: true
|
|
958
959
|
},
|
|
959
|
-
parentTopic:
|
|
960
|
+
parentTopic: {
|
|
961
|
+
type: import_mongoose5.Schema.Types.ObjectId,
|
|
962
|
+
ref: "generatedtopics",
|
|
963
|
+
default: null
|
|
964
|
+
},
|
|
960
965
|
embeddings: {
|
|
961
966
|
type: [Number],
|
|
962
967
|
required: true
|
package/dist/node.mjs
CHANGED
|
@@ -437,6 +437,7 @@ 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({ "meta.contentType": 1, "meta.valuePath": 1, topicId: 1 });
|
|
440
441
|
AnnotationSchema.pre("save", function(next) {
|
|
441
442
|
this.updatedAt = /* @__PURE__ */ new Date();
|
|
442
443
|
next();
|
|
@@ -961,7 +962,11 @@ var init_GeneratedTopics = __esm({
|
|
|
961
962
|
type: String,
|
|
962
963
|
required: true
|
|
963
964
|
},
|
|
964
|
-
parentTopic:
|
|
965
|
+
parentTopic: {
|
|
966
|
+
type: Schema2.Types.ObjectId,
|
|
967
|
+
ref: "generatedtopics",
|
|
968
|
+
default: null
|
|
969
|
+
},
|
|
965
970
|
embeddings: {
|
|
966
971
|
type: [Number],
|
|
967
972
|
required: true
|