@okf/ootils 1.17.2 → 1.18.1

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
@@ -1108,6 +1108,7 @@ interface IMeta {
1108
1108
  interface IGeneratedTopic {
1109
1109
  name: string;
1110
1110
  summary: string;
1111
+ isParent: boolean;
1111
1112
  parentTopic?: Schema.Types.ObjectId | null;
1112
1113
  embeddings: number[];
1113
1114
  meta: IMeta;
package/dist/node.d.ts CHANGED
@@ -1108,6 +1108,7 @@ interface IMeta {
1108
1108
  interface IGeneratedTopic {
1109
1109
  name: string;
1110
1110
  summary: string;
1111
+ isParent: boolean;
1111
1112
  parentTopic?: Schema.Types.ObjectId | null;
1112
1113
  embeddings: number[];
1113
1114
  meta: IMeta;
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({ "meta.contentType": 1, "meta.valuePath": 1, topicId: 1 });
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,6 +960,11 @@ var init_GeneratedTopics = __esm({
957
960
  type: String,
958
961
  required: true
959
962
  },
963
+ isParent: {
964
+ type: Boolean,
965
+ required: true,
966
+ default: false
967
+ },
960
968
  parentTopic: {
961
969
  type: import_mongoose5.Schema.Types.ObjectId,
962
970
  ref: "generatedtopics",
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({ "meta.contentType": 1, "meta.valuePath": 1, topicId: 1 });
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,6 +965,11 @@ var init_GeneratedTopics = __esm({
962
965
  type: String,
963
966
  required: true
964
967
  },
968
+ isParent: {
969
+ type: Boolean,
970
+ required: true,
971
+ default: false
972
+ },
965
973
  parentTopic: {
966
974
  type: Schema2.Types.ObjectId,
967
975
  ref: "generatedtopics",
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.17.2",
6
+ "version": "1.18.1",
7
7
  "description": "Utility functions for both browser and Node.js",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",