@okf/ootils 1.15.1 → 1.15.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 CHANGED
@@ -942,12 +942,12 @@ interface IAnnotation extends Document {
942
942
  displayTitle: string;
943
943
  getMainField(fieldPath?: string): any;
944
944
  }
945
- declare const AnnotationSchema: mongoose.Schema<IAnnotation, mongoose.Model<IAnnotation, any, any, any, mongoose.Document<unknown, any, IAnnotation, any> & IAnnotation & Required<{
946
- _id: unknown;
945
+ declare const AnnotationSchema: mongoose.Schema<IAnnotation, mongoose.Model<IAnnotation, any, any, any, mongoose.Document<unknown, any, IAnnotation, any, {}> & IAnnotation & Required<{
946
+ _id: Types.ObjectId;
947
947
  }> & {
948
948
  __v: number;
949
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IAnnotation, mongoose.Document<unknown, {}, mongoose.FlatRecord<IAnnotation>, {}> & mongoose.FlatRecord<IAnnotation> & Required<{
950
- _id: unknown;
949
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IAnnotation, mongoose.Document<unknown, {}, mongoose.FlatRecord<IAnnotation>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<IAnnotation> & Required<{
950
+ _id: Types.ObjectId;
951
951
  }> & {
952
952
  __v: number;
953
953
  }>;
@@ -980,12 +980,12 @@ interface IAIChat extends Document {
980
980
  lastActivity: Date;
981
981
  messages: IMessage[];
982
982
  }
983
- declare const AIChatSchema: mongoose.Schema<IAIChat, mongoose.Model<IAIChat, any, any, any, mongoose.Document<unknown, any, IAIChat, any> & IAIChat & Required<{
984
- _id: unknown;
983
+ declare const AIChatSchema: mongoose.Schema<IAIChat, mongoose.Model<IAIChat, any, any, any, mongoose.Document<unknown, any, IAIChat, any, {}> & IAIChat & Required<{
984
+ _id: mongoose.Types.ObjectId;
985
985
  }> & {
986
986
  __v: number;
987
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IAIChat, mongoose.Document<unknown, {}, mongoose.FlatRecord<IAIChat>, {}> & mongoose.FlatRecord<IAIChat> & Required<{
988
- _id: unknown;
987
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IAIChat, mongoose.Document<unknown, {}, mongoose.FlatRecord<IAIChat>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<IAIChat> & Required<{
988
+ _id: mongoose.Types.ObjectId;
989
989
  }> & {
990
990
  __v: number;
991
991
  }>;
@@ -998,12 +998,12 @@ interface IPlatformConfig extends Document {
998
998
  roles?: any[];
999
999
  data?: any;
1000
1000
  }
1001
- declare const PlatformConfigsSchema: mongoose.Schema<IPlatformConfig, mongoose.Model<IPlatformConfig, any, any, any, mongoose.Document<unknown, any, IPlatformConfig, any> & IPlatformConfig & Required<{
1002
- _id: unknown;
1001
+ declare const PlatformConfigsSchema: mongoose.Schema<IPlatformConfig, mongoose.Model<IPlatformConfig, any, any, any, mongoose.Document<unknown, any, IPlatformConfig, any, {}> & IPlatformConfig & Required<{
1002
+ _id: mongoose.Types.ObjectId;
1003
1003
  }> & {
1004
1004
  __v: number;
1005
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IPlatformConfig, mongoose.Document<unknown, {}, mongoose.FlatRecord<IPlatformConfig>, {}> & mongoose.FlatRecord<IPlatformConfig> & Required<{
1006
- _id: unknown;
1005
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IPlatformConfig, mongoose.Document<unknown, {}, mongoose.FlatRecord<IPlatformConfig>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<IPlatformConfig> & Required<{
1006
+ _id: mongoose.Types.ObjectId;
1007
1007
  }> & {
1008
1008
  __v: number;
1009
1009
  }>;
@@ -1082,14 +1082,15 @@ interface ITplDocument extends Document {
1082
1082
  rollbacks?: object;
1083
1083
  listing?: object;
1084
1084
  general?: IGeneral;
1085
+ directDataImportOutline?: object[];
1085
1086
  layout: string;
1086
1087
  }
1087
- declare const TplSchema: mongoose.Schema<ITplDocument, mongoose.Model<ITplDocument, any, any, any, mongoose.Document<unknown, any, ITplDocument, any> & ITplDocument & Required<{
1088
- _id: unknown;
1088
+ declare const TplSchema: mongoose.Schema<ITplDocument, mongoose.Model<ITplDocument, any, any, any, mongoose.Document<unknown, any, ITplDocument, any, {}> & ITplDocument & Required<{
1089
+ _id: mongoose.Types.ObjectId;
1089
1090
  }> & {
1090
1091
  __v: number;
1091
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ITplDocument, mongoose.Document<unknown, {}, mongoose.FlatRecord<ITplDocument>, {}> & mongoose.FlatRecord<ITplDocument> & Required<{
1092
- _id: unknown;
1092
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ITplDocument, mongoose.Document<unknown, {}, mongoose.FlatRecord<ITplDocument>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ITplDocument> & Required<{
1093
+ _id: mongoose.Types.ObjectId;
1093
1094
  }> & {
1094
1095
  __v: number;
1095
1096
  }>;
@@ -1159,29 +1160,29 @@ declare class BaseProducer {
1159
1160
  }>;
1160
1161
  getJobDetails(limit?: number): Promise<{
1161
1162
  waiting: {
1162
- id: any;
1163
+ id: string | undefined;
1163
1164
  batchIndex: any;
1164
1165
  totalBatches: any;
1165
1166
  rawRecordsCount: any;
1166
1167
  }[];
1167
1168
  active: {
1168
- id: any;
1169
+ id: string | undefined;
1169
1170
  batchIndex: any;
1170
1171
  totalBatches: any;
1171
- progress: any;
1172
+ progress: bullmq.JobProgress;
1172
1173
  rawRecordsCount: any;
1173
1174
  }[];
1174
1175
  completed: {
1175
- id: any;
1176
+ id: string | undefined;
1176
1177
  batchIndex: any;
1177
1178
  totalProcessed: any;
1178
1179
  summary: any;
1179
1180
  }[];
1180
1181
  failed: {
1181
- id: any;
1182
+ id: string | undefined;
1182
1183
  batchIndex: any;
1183
- error: any;
1184
- attempts: any;
1184
+ error: string;
1185
+ attempts: number;
1185
1186
  }[];
1186
1187
  }>;
1187
1188
  stop(): Promise<void>;
package/dist/node.d.ts CHANGED
@@ -942,12 +942,12 @@ interface IAnnotation extends Document {
942
942
  displayTitle: string;
943
943
  getMainField(fieldPath?: string): any;
944
944
  }
945
- declare const AnnotationSchema: mongoose.Schema<IAnnotation, mongoose.Model<IAnnotation, any, any, any, mongoose.Document<unknown, any, IAnnotation, any> & IAnnotation & Required<{
946
- _id: unknown;
945
+ declare const AnnotationSchema: mongoose.Schema<IAnnotation, mongoose.Model<IAnnotation, any, any, any, mongoose.Document<unknown, any, IAnnotation, any, {}> & IAnnotation & Required<{
946
+ _id: Types.ObjectId;
947
947
  }> & {
948
948
  __v: number;
949
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IAnnotation, mongoose.Document<unknown, {}, mongoose.FlatRecord<IAnnotation>, {}> & mongoose.FlatRecord<IAnnotation> & Required<{
950
- _id: unknown;
949
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IAnnotation, mongoose.Document<unknown, {}, mongoose.FlatRecord<IAnnotation>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<IAnnotation> & Required<{
950
+ _id: Types.ObjectId;
951
951
  }> & {
952
952
  __v: number;
953
953
  }>;
@@ -980,12 +980,12 @@ interface IAIChat extends Document {
980
980
  lastActivity: Date;
981
981
  messages: IMessage[];
982
982
  }
983
- declare const AIChatSchema: mongoose.Schema<IAIChat, mongoose.Model<IAIChat, any, any, any, mongoose.Document<unknown, any, IAIChat, any> & IAIChat & Required<{
984
- _id: unknown;
983
+ declare const AIChatSchema: mongoose.Schema<IAIChat, mongoose.Model<IAIChat, any, any, any, mongoose.Document<unknown, any, IAIChat, any, {}> & IAIChat & Required<{
984
+ _id: mongoose.Types.ObjectId;
985
985
  }> & {
986
986
  __v: number;
987
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IAIChat, mongoose.Document<unknown, {}, mongoose.FlatRecord<IAIChat>, {}> & mongoose.FlatRecord<IAIChat> & Required<{
988
- _id: unknown;
987
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IAIChat, mongoose.Document<unknown, {}, mongoose.FlatRecord<IAIChat>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<IAIChat> & Required<{
988
+ _id: mongoose.Types.ObjectId;
989
989
  }> & {
990
990
  __v: number;
991
991
  }>;
@@ -998,12 +998,12 @@ interface IPlatformConfig extends Document {
998
998
  roles?: any[];
999
999
  data?: any;
1000
1000
  }
1001
- declare const PlatformConfigsSchema: mongoose.Schema<IPlatformConfig, mongoose.Model<IPlatformConfig, any, any, any, mongoose.Document<unknown, any, IPlatformConfig, any> & IPlatformConfig & Required<{
1002
- _id: unknown;
1001
+ declare const PlatformConfigsSchema: mongoose.Schema<IPlatformConfig, mongoose.Model<IPlatformConfig, any, any, any, mongoose.Document<unknown, any, IPlatformConfig, any, {}> & IPlatformConfig & Required<{
1002
+ _id: mongoose.Types.ObjectId;
1003
1003
  }> & {
1004
1004
  __v: number;
1005
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IPlatformConfig, mongoose.Document<unknown, {}, mongoose.FlatRecord<IPlatformConfig>, {}> & mongoose.FlatRecord<IPlatformConfig> & Required<{
1006
- _id: unknown;
1005
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IPlatformConfig, mongoose.Document<unknown, {}, mongoose.FlatRecord<IPlatformConfig>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<IPlatformConfig> & Required<{
1006
+ _id: mongoose.Types.ObjectId;
1007
1007
  }> & {
1008
1008
  __v: number;
1009
1009
  }>;
@@ -1082,14 +1082,15 @@ interface ITplDocument extends Document {
1082
1082
  rollbacks?: object;
1083
1083
  listing?: object;
1084
1084
  general?: IGeneral;
1085
+ directDataImportOutline?: object[];
1085
1086
  layout: string;
1086
1087
  }
1087
- declare const TplSchema: mongoose.Schema<ITplDocument, mongoose.Model<ITplDocument, any, any, any, mongoose.Document<unknown, any, ITplDocument, any> & ITplDocument & Required<{
1088
- _id: unknown;
1088
+ declare const TplSchema: mongoose.Schema<ITplDocument, mongoose.Model<ITplDocument, any, any, any, mongoose.Document<unknown, any, ITplDocument, any, {}> & ITplDocument & Required<{
1089
+ _id: mongoose.Types.ObjectId;
1089
1090
  }> & {
1090
1091
  __v: number;
1091
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ITplDocument, mongoose.Document<unknown, {}, mongoose.FlatRecord<ITplDocument>, {}> & mongoose.FlatRecord<ITplDocument> & Required<{
1092
- _id: unknown;
1092
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ITplDocument, mongoose.Document<unknown, {}, mongoose.FlatRecord<ITplDocument>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ITplDocument> & Required<{
1093
+ _id: mongoose.Types.ObjectId;
1093
1094
  }> & {
1094
1095
  __v: number;
1095
1096
  }>;
@@ -1159,29 +1160,29 @@ declare class BaseProducer {
1159
1160
  }>;
1160
1161
  getJobDetails(limit?: number): Promise<{
1161
1162
  waiting: {
1162
- id: any;
1163
+ id: string | undefined;
1163
1164
  batchIndex: any;
1164
1165
  totalBatches: any;
1165
1166
  rawRecordsCount: any;
1166
1167
  }[];
1167
1168
  active: {
1168
- id: any;
1169
+ id: string | undefined;
1169
1170
  batchIndex: any;
1170
1171
  totalBatches: any;
1171
- progress: any;
1172
+ progress: bullmq.JobProgress;
1172
1173
  rawRecordsCount: any;
1173
1174
  }[];
1174
1175
  completed: {
1175
- id: any;
1176
+ id: string | undefined;
1176
1177
  batchIndex: any;
1177
1178
  totalProcessed: any;
1178
1179
  summary: any;
1179
1180
  }[];
1180
1181
  failed: {
1181
- id: any;
1182
+ id: string | undefined;
1182
1183
  batchIndex: any;
1183
- error: any;
1184
- attempts: any;
1184
+ error: string;
1185
+ attempts: number;
1185
1186
  }[];
1186
1187
  }>;
1187
1188
  stop(): Promise<void>;
package/dist/node.js CHANGED
@@ -558,6 +558,12 @@ var init_Tpl = __esm({
558
558
  },
559
559
  rollbacks: Object,
560
560
  //for 'remembering' hidden configurations
561
+ /**
562
+ * Stores the schemaExtractor outline from direct data import.
563
+ * Used to return the same field configuration when users "import more data"
564
+ * to this dataset, improving UX by not requiring re-configuration.
565
+ */
566
+ directDataImportOutline: [{ type: Object }],
561
567
  // OTHER CONFIGS
562
568
  listing: Object,
563
569
  //listing page configurations. this is new, currently only used in nct
package/dist/node.mjs CHANGED
@@ -563,6 +563,12 @@ var init_Tpl = __esm({
563
563
  },
564
564
  rollbacks: Object,
565
565
  //for 'remembering' hidden configurations
566
+ /**
567
+ * Stores the schemaExtractor outline from direct data import.
568
+ * Used to return the same field configuration when users "import more data"
569
+ * to this dataset, improving UX by not requiring re-configuration.
570
+ */
571
+ directDataImportOutline: [{ type: Object }],
566
572
  // OTHER CONFIGS
567
573
  listing: Object,
568
574
  //listing page configurations. this is new, currently only used in nct
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.15.1",
6
+ "version": "1.15.2",
7
7
  "description": "Utility functions for both browser and Node.js",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",
@@ -11,35 +11,35 @@
11
11
  "exports": {
12
12
  ".": {
13
13
  "browser": {
14
+ "types": "./dist/browser.d.ts",
14
15
  "import": "./dist/browser.mjs",
15
- "require": "./dist/browser.js",
16
- "types": "./dist/browser.d.ts"
16
+ "require": "./dist/browser.js"
17
17
  },
18
18
  "node": {
19
+ "types": "./dist/node.d.ts",
19
20
  "import": "./dist/node.mjs",
20
- "require": "./dist/node.js",
21
- "types": "./dist/node.d.ts"
21
+ "require": "./dist/node.js"
22
22
  },
23
23
  "default": {
24
+ "types": "./dist/universal.d.ts",
24
25
  "import": "./dist/universal.mjs",
25
- "require": "./dist/universal.js",
26
- "types": "./dist/universal.d.ts"
26
+ "require": "./dist/universal.js"
27
27
  }
28
28
  },
29
29
  "./browser": {
30
+ "types": "./dist/browser.d.ts",
30
31
  "import": "./dist/browser.mjs",
31
- "require": "./dist/browser.js",
32
- "types": "./dist/browser.d.ts"
32
+ "require": "./dist/browser.js"
33
33
  },
34
34
  "./node": {
35
+ "types": "./dist/node.d.ts",
35
36
  "import": "./dist/node.mjs",
36
- "require": "./dist/node.js",
37
- "types": "./dist/node.d.ts"
37
+ "require": "./dist/node.js"
38
38
  },
39
39
  "./universal": {
40
+ "types": "./dist/universal.d.ts",
40
41
  "import": "./dist/universal.mjs",
41
- "require": "./dist/universal.js",
42
- "types": "./dist/universal.d.ts"
42
+ "require": "./dist/universal.js"
43
43
  }
44
44
  },
45
45
  "files": [
@@ -62,14 +62,14 @@
62
62
  "@semantic-release/changelog": "^6.0.3",
63
63
  "@semantic-release/commit-analyzer": "^13.0.1",
64
64
  "@semantic-release/github": "^11.0.1",
65
- "@semantic-release/npm": "^12.0.1",
65
+ "@semantic-release/npm": "^13.1.3",
66
66
  "@semantic-release/release-notes-generator": "^14.0.3",
67
67
  "@types/ioredis": "^4.28.10",
68
68
  "@types/mongoose": "^5.11.97",
69
69
  "@types/node": "^22.13.10",
70
70
  "commitizen": "^4.3.1",
71
71
  "cz-conventional-changelog": "^3.3.0",
72
- "semantic-release": "^24.2.3",
72
+ "semantic-release": "^25.0.2",
73
73
  "tsup": "^8.4.0",
74
74
  "typescript": "^5.8.2"
75
75
  },