@procedures/mongo 0.46.0 → 0.47.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/CHANGELOG.md +46 -8
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/procedures/collections.create.js +1 -1
- package/dist/procedures/collections.create.js.map +1 -1
- package/dist/procedures/collections.drop.js +1 -1
- package/dist/procedures/collections.drop.js.map +1 -1
- package/dist/procedures/collections.list.js +1 -1
- package/dist/procedures/collections.list.js.map +1 -1
- package/dist/procedures/collections.stats.js +1 -1
- package/dist/procedures/collections.stats.js.map +1 -1
- package/dist/procedures/database.info.js +1 -1
- package/dist/procedures/database.info.js.map +1 -1
- package/dist/procedures/database.ping.js +1 -1
- package/dist/procedures/database.ping.js.map +1 -1
- package/dist/procedures/documents.aggregate.js +1 -1
- package/dist/procedures/documents.aggregate.js.map +1 -1
- package/dist/procedures/documents.bulk.js +1 -1
- package/dist/procedures/documents.bulk.js.map +1 -1
- package/dist/procedures/documents.count.js +1 -1
- package/dist/procedures/documents.count.js.map +1 -1
- package/dist/procedures/documents.delete.js +1 -1
- package/dist/procedures/documents.delete.js.map +1 -1
- package/dist/procedures/documents.distinct.js +1 -1
- package/dist/procedures/documents.distinct.js.map +1 -1
- package/dist/procedures/documents.explain.js +1 -1
- package/dist/procedures/documents.explain.js.map +1 -1
- package/dist/procedures/documents.find.js +1 -1
- package/dist/procedures/documents.find.js.map +1 -1
- package/dist/procedures/documents.get.js +1 -1
- package/dist/procedures/documents.get.js.map +1 -1
- package/dist/procedures/documents.insert.js +1 -1
- package/dist/procedures/documents.insert.js.map +1 -1
- package/dist/procedures/documents.update.js +1 -1
- package/dist/procedures/documents.update.js.map +1 -1
- package/dist/procedures/indexes.create.js +1 -1
- package/dist/procedures/indexes.create.js.map +1 -1
- package/dist/procedures/indexes.drop.js +1 -1
- package/dist/procedures/indexes.drop.js.map +1 -1
- package/dist/procedures/indexes.list.js +1 -1
- package/dist/procedures/indexes.list.js.map +1 -1
- package/dist/procedures/input-schemas.d.ts +1 -1
- package/dist/procedures/input-schemas.d.ts.map +1 -1
- package/dist/procedures/input-schemas.js +1 -1
- package/dist/procedures/input-schemas.js.map +1 -1
- package/dist/procedures/watch.js +1 -1
- package/dist/procedures/watch.js.map +1 -1
- package/dist/storage/index.js +1 -1
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/materializer.d.ts +1 -1
- package/dist/storage/materializer.js +1 -1
- package/dist/storage/pipeline-scope.d.ts +1 -1
- package/dist/storage/pipeline-scope.js +1 -1
- package/package.json +5 -5
- package/src/index.ts +2 -2
- package/src/procedures/collections.create.ts +1 -1
- package/src/procedures/collections.drop.ts +1 -1
- package/src/procedures/collections.list.ts +1 -1
- package/src/procedures/collections.stats.ts +1 -1
- package/src/procedures/database.info.ts +1 -1
- package/src/procedures/database.ping.ts +1 -1
- package/src/procedures/documents.aggregate.ts +1 -1
- package/src/procedures/documents.bulk.ts +1 -1
- package/src/procedures/documents.count.ts +1 -1
- package/src/procedures/documents.delete.ts +1 -1
- package/src/procedures/documents.distinct.ts +1 -1
- package/src/procedures/documents.explain.ts +1 -1
- package/src/procedures/documents.find.ts +1 -1
- package/src/procedures/documents.get.ts +1 -1
- package/src/procedures/documents.insert.ts +1 -1
- package/src/procedures/documents.update.ts +1 -1
- package/src/procedures/indexes.create.ts +1 -1
- package/src/procedures/indexes.drop.ts +1 -1
- package/src/procedures/indexes.list.ts +1 -1
- package/src/procedures/input-schemas.ts +1 -1
- package/src/procedures/watch.ts +1 -1
- package/src/storage/index.ts +1 -1
- package/src/storage/materializer.ts +1 -1
- package/src/storage/pipeline-scope.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watch.js","sourceRoot":"","sources":["../../src/procedures/watch.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,eAAe,EAAuD,MAAM,oBAAoB,CAAC;A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W,EAAE,6GAA6G;IAC1H,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE;IACpD,sEAAsE;IACtE,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;IAC3B,MAAM,EAAE,WAAW;CACpB,CAAC;IACF,gGAAgG;IAChG,yBAAyB;KACxB,OAAO,CAAC,CAAC,CAAC,KAAiB,EAAE,GAAqB,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,EAAE,GAAG,CAAC,CAAU,CAAC;KAC1F,KAAK,EAAE,CAAC"}
|
package/dist/storage/index.js
CHANGED
|
@@ -9,7 +9,7 @@ export { watchStorageChanges, storageChangeOf } from "./storage-hints.js";
|
|
|
9
9
|
// One change watcher for a whole database, with resume and backoff (roadmap CLI-88)
|
|
10
10
|
export { watchDatabaseChanges } from "./database-changes.js";
|
|
11
11
|
export { BLOCKED_PIPELINE_OPERATORS, ALLOWED_PIPELINE_STAGES, DEFAULT_PIPELINE_LIMITS, assertNoBlockedOperators, boundPipeline, cutResults, isTimeLimitError, scopePipeline, } from "./pipeline-scope.js";
|
|
12
|
-
// Materialized views driven by change streams
|
|
12
|
+
// Materialized views driven by change streams
|
|
13
13
|
export { ViewMaterializer, identityPartition, defaultStorageRowId, partitionTargetId, viewFilter, VIEW_GENERATION_FIELD, VIEW_HASH_FIELD } from "./materializer.js";
|
|
14
14
|
// A read-only storage of a view for the collection procedures: one generation for each read (roadmap CLI-38)
|
|
15
15
|
export { MongoViewStorage } from "./view-storage.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/storage/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,0EAA0E;AAC1E,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAE/B,mFAAmF;AACnF,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1E,oFAAoF;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EACL,0BAA0B,EAC1B,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,aAAa,GACd,MAAM,qBAAqB,CAAC;AAE7B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/storage/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,0EAA0E;AAC1E,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAE/B,mFAAmF;AACnF,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1E,oFAAoF;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EACL,0BAA0B,EAC1B,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,aAAa,GACd,MAAM,qBAAqB,CAAC;AAE7B,8CAA8C;AAC9C,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,UAAU,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpK,6GAA6G;AAC7G,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Materialized views driven by change streams
|
|
2
|
+
* Materialized views driven by change streams. A view is a document
|
|
3
3
|
* of a views collection: an aggregation pipeline over source collections whose result goes into a
|
|
4
4
|
* target collection, for one partition (for example one tenant). The materializer runs each view
|
|
5
5
|
* when its sources change, and keeps the target equal to the result of the pipeline.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Materialized views driven by change streams
|
|
2
|
+
* Materialized views driven by change streams. A view is a document
|
|
3
3
|
* of a views collection: an aggregation pipeline over source collections whose result goes into a
|
|
4
4
|
* target collection, for one partition (for example one tenant). The materializer runs each view
|
|
5
5
|
* when its sources change, and keeps the target equal to the result of the pipeline.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The guard of an aggregation pipeline over shared collections
|
|
2
|
+
* The guard of an aggregation pipeline over shared collections. A
|
|
3
3
|
* pipeline of a caller reads only the documents of a filter (for example of one tenant or one
|
|
4
4
|
* partition), on each collection that it reads, and a write stamps its fields.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The guard of an aggregation pipeline over shared collections
|
|
2
|
+
* The guard of an aggregation pipeline over shared collections. A
|
|
3
3
|
* pipeline of a caller reads only the documents of a filter (for example of one tenant or one
|
|
4
4
|
* partition), on each collection that it reads, and a write stamps its fields.
|
|
5
5
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@procedures/mongo",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.47.2",
|
|
5
5
|
"description": "MongoDB as typed procedures: documents, bulk writes, distinct, explain, collections, indexes, aggregation, change streams and database info, with safe update and delete targets.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"mongodb",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"provenance": true
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@mark1russell7/cue": "^1.
|
|
66
|
+
"@mark1russell7/cue": "^1.1.0",
|
|
67
67
|
"@types/node": "^22.0.0",
|
|
68
68
|
"typescript": "^7.0.2",
|
|
69
69
|
"vitest": "^5.0.3"
|
|
@@ -72,14 +72,14 @@
|
|
|
72
72
|
"procedures": "./dist/register.js"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@procedures/client": "0.
|
|
76
|
-
"@procedures/collections": "0.
|
|
75
|
+
"@procedures/client": "0.47.2",
|
|
76
|
+
"@procedures/collections": "0.47.2",
|
|
77
77
|
"mongodb": "^7.0.0",
|
|
78
78
|
"zod": "^4.6.5"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"build": "tsc -b",
|
|
82
|
-
"typecheck": "tsc --noEmit",
|
|
82
|
+
"typecheck": "tsc --noEmit && tsc -p tsconfig.test.json",
|
|
83
83
|
"clean": "rm -rf dist .tsbuildinfo",
|
|
84
84
|
"test": "vitest run",
|
|
85
85
|
"test:watch": "vitest"
|
package/src/index.ts
CHANGED
|
@@ -155,7 +155,7 @@ export type { StorageChange, StorageChangeHint, StorageChangesWatch, StorageHint
|
|
|
155
155
|
// One change watcher for a whole database, with resume and backoff (roadmap CLI-88)
|
|
156
156
|
export { watchDatabaseChanges } from "./storage/index.js";
|
|
157
157
|
export type { DatabaseChangesWatch, WatchDatabaseChangesOptions } from "./storage/index.js";
|
|
158
|
-
// The guard of an aggregation pipeline over shared collections, and its limits
|
|
158
|
+
// The guard of an aggregation pipeline over shared collections, and its limits
|
|
159
159
|
export {
|
|
160
160
|
BLOCKED_PIPELINE_OPERATORS,
|
|
161
161
|
ALLOWED_PIPELINE_STAGES,
|
|
@@ -194,7 +194,7 @@ export type {
|
|
|
194
194
|
FindOptions,
|
|
195
195
|
AggregateOptions,
|
|
196
196
|
} from "mongodb";
|
|
197
|
-
// Materialized views driven by change streams
|
|
197
|
+
// Materialized views driven by change streams
|
|
198
198
|
export { ViewMaterializer, identityPartition, partitionTargetId, viewFilter, VIEW_GENERATION_FIELD, VIEW_HASH_FIELD } from "./storage/index.js";
|
|
199
199
|
export type { MaterializedView, MaterializedViewStatus, ViewMaterializerOptions, ViewPartitionOf, ViewPipelineScope, ViewStorageSource, ViewTargetId } from "./storage/index.js";
|
|
200
200
|
// A read-only storage of a view for the collection procedures: one generation for each read (roadmap CLI-38)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { databaseFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields, documentObject } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
import type { CreateCollectionOptions } from "mongodb";
|
|
11
11
|
import { type CollectionOptions } from "../types.js";
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { collectionName, databaseFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
|
|
11
11
|
// Input/Output types
|
|
12
12
|
interface DropInput extends ScopeInput {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { databaseFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
|
|
11
11
|
// Input/Output types
|
|
12
12
|
/** The input: only the scope fields. */
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { collectionFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
import type { CollectionStats } from "../types.js";
|
|
11
11
|
|
|
12
12
|
// Input/Output types
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { databaseFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
import { type DatabaseInfo } from "../types.js";
|
|
11
11
|
|
|
12
12
|
// Input/Output types
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { databaseFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
|
|
11
11
|
// Input/Output types
|
|
12
12
|
/** The input: only the scope fields. */
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { collectionFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields, documentObject } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
import type { AggregateOptions } from "mongodb";
|
|
11
11
|
import {
|
|
12
12
|
type AggregationStage,
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
14
14
|
import type { AnyBulkWriteOperation, Document } from "mongodb";
|
|
15
|
-
import
|
|
15
|
+
import * as z from "zod";
|
|
16
16
|
import { collectionFor, copyScope, SCOPE_FIELDS, type ScopeInput } from "../scope.js";
|
|
17
17
|
import { described, documentObject, scopeFields } from "./input-schemas.js";
|
|
18
18
|
import type { BulkOperation, DocumentQuery, DocumentUpdate } from "../types.js";
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { collectionFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields, documentObject } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
import { type DocumentQuery } from "../types.js";
|
|
11
11
|
|
|
12
12
|
// Input/Output types
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { collectionFor } from "../scope.js";
|
|
8
8
|
import { described, scopeFields, targetFields } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
import { parseTarget, targetFilter, type TargetInput } from "./target.js";
|
|
11
11
|
|
|
12
12
|
// Input/Output types
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { collectionFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields, documentObject } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
import { type DocumentQuery } from "../types.js";
|
|
11
11
|
|
|
12
12
|
// Input/Output types
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
11
11
|
import type { Document, ExplainVerbosityLike, FindOptions } from "mongodb";
|
|
12
|
-
import
|
|
12
|
+
import * as z from "zod";
|
|
13
13
|
import { collectionFor, copyScope, SCOPE_FIELDS, type ScopeInput } from "../scope.js";
|
|
14
14
|
import { described, documentObject, scopeFields } from "./input-schemas.js";
|
|
15
15
|
import { writingStage } from "./documents.aggregate.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "@procedures/client";
|
|
12
12
|
import { collectionFor, copyScope, type ScopeInput } from "../scope.js";
|
|
13
13
|
import { described, documentObject, scopeFields } from "./input-schemas.js";
|
|
14
|
-
import
|
|
14
|
+
import * as z from "zod";
|
|
15
15
|
import {
|
|
16
16
|
type PaginationOutput,
|
|
17
17
|
type DocumentQuery,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "@procedures/client";
|
|
12
12
|
import { collectionFor, copyScope, type ScopeInput } from "../scope.js";
|
|
13
13
|
import { described, idTypeField, scopeFields } from "./input-schemas.js";
|
|
14
|
-
import
|
|
14
|
+
import * as z from "zod";
|
|
15
15
|
import {
|
|
16
16
|
buildIdFilter,
|
|
17
17
|
type IdType,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { collectionFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields, documentObject } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
import { type MongoDocument } from "../types.js";
|
|
11
11
|
|
|
12
12
|
// Input/Output types
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { collectionFor } from "../scope.js";
|
|
8
8
|
import { described, documentObject, scopeFields, targetFields } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
import type { DocumentUpdate } from "../types.js";
|
|
11
11
|
import { parseTarget, targetFilter, upsertFilter, type TargetInput } from "./target.js";
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { collectionFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
import type { CreateIndexesOptions } from "mongodb";
|
|
11
11
|
import { type IndexSpec, type IndexOptions } from "../types.js";
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { collectionFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
|
|
11
11
|
// Input/Output types
|
|
12
12
|
interface DropIndexInput extends ScopeInput {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
7
7
|
import { collectionFor, type ScopeInput } from "../scope.js";
|
|
8
8
|
import { scopeFields } from "./input-schemas.js";
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
import { type IndexInfo } from "../types.js";
|
|
11
11
|
|
|
12
12
|
// Input/Output types
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* a zod object that names the same fields.
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
import
|
|
14
|
+
import * as z from "zod";
|
|
15
15
|
import { jsonSchemaOf, typed, type ZodLikeSchema } from "@procedures/client";
|
|
16
16
|
|
|
17
17
|
/** The fields that select the database and the collection. */
|
package/src/procedures/watch.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
import { createProcedure, type Effects, type Procedure, type ProcedureContext } from "@procedures/client";
|
|
11
11
|
import type { ChangeStream, ChangeStreamOptions, Document } from "mongodb";
|
|
12
|
-
import
|
|
12
|
+
import * as z from "zod";
|
|
13
13
|
import { collectionFor, databaseFor, copyScope, SCOPE_FIELDS, type ScopeInput } from "../scope.js";
|
|
14
14
|
import { described, documentObject } from "./input-schemas.js";
|
|
15
15
|
|
package/src/storage/index.ts
CHANGED
|
@@ -32,7 +32,7 @@ export {
|
|
|
32
32
|
scopePipeline,
|
|
33
33
|
} from "./pipeline-scope.js";
|
|
34
34
|
export type { PipelineLimits, PipelineScope } from "./pipeline-scope.js";
|
|
35
|
-
// Materialized views driven by change streams
|
|
35
|
+
// Materialized views driven by change streams
|
|
36
36
|
export { ViewMaterializer, identityPartition, defaultStorageRowId, partitionTargetId, viewFilter, VIEW_GENERATION_FIELD, VIEW_HASH_FIELD } from "./materializer.js";
|
|
37
37
|
export type { MaterializedView, MaterializedViewStatus, ViewMaterializerOptions, ViewPartitionOf, ViewPipelineScope, ViewStorageSource, ViewStorageTarget, ViewStorageTargetEntry, ViewTargetId } from "./materializer.js";
|
|
38
38
|
// A read-only storage of a view for the collection procedures: one generation for each read (roadmap CLI-38)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Materialized views driven by change streams
|
|
2
|
+
* Materialized views driven by change streams. A view is a document
|
|
3
3
|
* of a views collection: an aggregation pipeline over source collections whose result goes into a
|
|
4
4
|
* target collection, for one partition (for example one tenant). The materializer runs each view
|
|
5
5
|
* when its sources change, and keeps the target equal to the result of the pipeline.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The guard of an aggregation pipeline over shared collections
|
|
2
|
+
* The guard of an aggregation pipeline over shared collections. A
|
|
3
3
|
* pipeline of a caller reads only the documents of a filter (for example of one tenant or one
|
|
4
4
|
* partition), on each collection that it reads, and a write stamps its fields.
|
|
5
5
|
*
|