@badger_badger/badger_hq 1.6.0 → 1.7.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/CHANGELOG.md +17 -0
- package/dist/{agent-session-oZI9RyQ_.d.cts → agent-session-BKq7mARI.d.cts} +8 -2
- package/dist/{agent-session-oZI9RyQ_.d.ts → agent-session-BKq7mARI.d.ts} +8 -2
- package/dist/index.cjs +77 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +269 -4
- package/dist/index.d.ts +269 -4
- package/dist/index.js +66 -4
- package/dist/index.js.map +1 -1
- package/dist/mongo/index.cjs +3 -0
- package/dist/mongo/index.cjs.map +1 -1
- package/dist/mongo/index.d.cts +16 -2
- package/dist/mongo/index.d.ts +16 -2
- package/dist/mongo/index.js +3 -0
- package/dist/mongo/index.js.map +1 -1
- package/package.json +1 -1
package/dist/mongo/index.cjs
CHANGED
|
@@ -247,6 +247,8 @@ var INDEXES = {
|
|
|
247
247
|
options: { unique: true, partialFilterExpression: NOT_SOFT_DELETED_FILTER }
|
|
248
248
|
},
|
|
249
249
|
{ key: { orgId: 1, route: 1, status: 1 } },
|
|
250
|
+
// Multikey: the sources attached to a Monitor task (cap counts, agents' version polls).
|
|
251
|
+
{ key: { orgId: 1, taskIds: 1 } },
|
|
250
252
|
// Partition key of the shared database; drives the future split into physical databases.
|
|
251
253
|
{ key: { orgId: 1, databaseId: 1 } }
|
|
252
254
|
],
|
|
@@ -1133,6 +1135,7 @@ var sourceSchema = new mongoose.Schema(
|
|
|
1133
1135
|
discoveredBy: { type: discoveredBySchema, required: true },
|
|
1134
1136
|
lastCollectedAt: { type: Date },
|
|
1135
1137
|
nextVisitAt: { type: Date },
|
|
1138
|
+
visitIntervalMs: { type: Number, min: 1 },
|
|
1136
1139
|
deletedAt: { type: Date }
|
|
1137
1140
|
},
|
|
1138
1141
|
collectionOptions(COLLECTIONS.sources)
|