@gaganref/confect-server 10.3.1-fork.4 → 10.3.1-fork.5
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/ActionCtx.d.ts +1 -1
- package/dist/ActionCtx.d.ts.map +1 -1
- package/dist/ActionCtx.js.map +1 -1
- package/dist/AiGatewayDecisionClient.d.ts +2 -2
- package/dist/AiGatewayDecisionClient.d.ts.map +1 -1
- package/dist/AiGatewayDecisionClient.js.map +1 -1
- package/dist/AiGatewayLanguageClient.d.ts +2 -2
- package/dist/AiGatewayLanguageClient.d.ts.map +1 -1
- package/dist/AiGatewayLanguageClient.js.map +1 -1
- package/dist/Auth.d.ts +1 -1
- package/dist/Auth.d.ts.map +1 -1
- package/dist/Auth.js.map +1 -1
- package/dist/ComponentCtx.d.ts +1 -1
- package/dist/ComponentCtx.d.ts.map +1 -1
- package/dist/ConvexFunctionDefinitions.d.ts +4 -4
- package/dist/ConvexFunctionDefinitions.d.ts.map +1 -1
- package/dist/ConvexFunctionDefinitions.js.map +1 -1
- package/dist/CronJobs.d.ts +1 -1
- package/dist/CronJobs.d.ts.map +1 -1
- package/dist/CronJobs.js.map +1 -1
- package/dist/DataModel.d.ts +3 -3
- package/dist/DataModel.d.ts.map +1 -1
- package/dist/DataModel.js.map +1 -1
- package/dist/DatabaseReader.d.ts +4 -4
- package/dist/DatabaseReader.d.ts.map +1 -1
- package/dist/DatabaseReader.js.map +1 -1
- package/dist/DatabaseSchema.d.ts +1 -1
- package/dist/DatabaseSchema.d.ts.map +1 -1
- package/dist/DatabaseSchema.js.map +1 -1
- package/dist/DatabaseWriter.d.ts +5 -5
- package/dist/DatabaseWriter.d.ts.map +1 -1
- package/dist/DatabaseWriter.js.map +1 -1
- package/dist/Document.d.ts +4 -4
- package/dist/Document.d.ts.map +1 -1
- package/dist/Document.js.map +1 -1
- package/dist/FunctionImpl.d.ts +2 -2
- package/dist/FunctionImpl.d.ts.map +1 -1
- package/dist/FunctionImpl.js.map +1 -1
- package/dist/FunctionRegistryItem.d.ts +1 -1
- package/dist/FunctionRegistryItem.d.ts.map +1 -1
- package/dist/FunctionRegistryItem.js.map +1 -1
- package/dist/GroupImpl.d.ts +3 -3
- package/dist/GroupImpl.d.ts.map +1 -1
- package/dist/GroupImpl.js.map +1 -1
- package/dist/GroupRegistry.d.ts +2 -2
- package/dist/GroupRegistry.d.ts.map +1 -1
- package/dist/GroupRegistry.js.map +1 -1
- package/dist/Handler.d.ts +23 -23
- package/dist/Handler.d.ts.map +1 -1
- package/dist/Handler.js.map +1 -1
- package/dist/HttpRouter.d.ts +13 -13
- package/dist/HttpRouter.d.ts.map +1 -1
- package/dist/HttpRouter.js.map +1 -1
- package/dist/MiddlewareImpl.d.ts +14 -14
- package/dist/MiddlewareImpl.d.ts.map +1 -1
- package/dist/MiddlewareImpl.js.map +1 -1
- package/dist/MutationCtx.d.ts +1 -1
- package/dist/MutationCtx.d.ts.map +1 -1
- package/dist/MutationCtx.js.map +1 -1
- package/dist/MutationRunner.d.ts +1 -1
- package/dist/MutationRunner.d.ts.map +1 -1
- package/dist/MutationRunner.js.map +1 -1
- package/dist/MutationTransactionContext.d.ts +2 -2
- package/dist/MutationTransactionContext.d.ts.map +1 -1
- package/dist/MutationTransactionContext.js.map +1 -1
- package/dist/OrderedQuery.d.ts +4 -4
- package/dist/OrderedQuery.d.ts.map +1 -1
- package/dist/OrderedQuery.js.map +1 -1
- package/dist/QueryCtx.d.ts +1 -1
- package/dist/QueryCtx.d.ts.map +1 -1
- package/dist/QueryCtx.js.map +1 -1
- package/dist/QueryInitializer.d.ts +10 -10
- package/dist/QueryInitializer.d.ts.map +1 -1
- package/dist/QueryInitializer.js.map +1 -1
- package/dist/QueryRunner.d.ts +2 -2
- package/dist/QueryRunner.d.ts.map +1 -1
- package/dist/QueryRunner.js.map +1 -1
- package/dist/QueryStream.d.ts +11 -11
- package/dist/QueryStream.d.ts.map +1 -1
- package/dist/QueryStream.js.map +1 -1
- package/dist/QueryStreamCursor.d.ts +2 -2
- package/dist/QueryStreamCursor.d.ts.map +1 -1
- package/dist/QueryStreamCursor.js.map +1 -1
- package/dist/QueryStreamIndexPrefix.d.ts +2 -2
- package/dist/QueryStreamIndexPrefix.d.ts.map +1 -1
- package/dist/QueryStreamIndexPrefix.js.map +1 -1
- package/dist/QueryStreamIndexRange.d.ts +4 -4
- package/dist/QueryStreamIndexRange.d.ts.map +1 -1
- package/dist/QueryStreamIndexRange.js.map +1 -1
- package/dist/QueryStreamKey.d.ts +2 -2
- package/dist/QueryStreamKey.d.ts.map +1 -1
- package/dist/QueryStreamKey.js.map +1 -1
- package/dist/QueryStreamKeyBounds.d.ts +3 -3
- package/dist/QueryStreamKeyBounds.d.ts.map +1 -1
- package/dist/QueryStreamKeyBounds.js.map +1 -1
- package/dist/QueryStreamKeyLayout.d.ts +1 -1
- package/dist/QueryStreamKeyLayout.d.ts.map +1 -1
- package/dist/QueryStreamKeyLayout.js.map +1 -1
- package/dist/QueryStreamKeyValues.d.ts +1 -1
- package/dist/QueryStreamKeyValues.d.ts.map +1 -1
- package/dist/QueryStreamKeyValues.js.map +1 -1
- package/dist/QueryStreamPagination.d.ts +1 -1
- package/dist/QueryStreamPagination.d.ts.map +1 -1
- package/dist/QueryStreamPagination.js.map +1 -1
- package/dist/RegisteredConvexFunction.d.ts +20 -20
- package/dist/RegisteredConvexFunction.d.ts.map +1 -1
- package/dist/RegisteredConvexFunction.js.map +1 -1
- package/dist/RegisteredFunction.d.ts +26 -26
- package/dist/RegisteredFunction.d.ts.map +1 -1
- package/dist/RegisteredFunction.js.map +1 -1
- package/dist/RegisteredFunctions.d.ts +3 -3
- package/dist/RegisteredFunctions.d.ts.map +1 -1
- package/dist/RegisteredFunctions.js.map +1 -1
- package/dist/RegisteredNodeFunction.d.ts +6 -6
- package/dist/RegisteredNodeFunction.d.ts.map +1 -1
- package/dist/RegisteredNodeFunction.js.map +1 -1
- package/dist/Registry.d.ts +1 -1
- package/dist/Registry.d.ts.map +1 -1
- package/dist/Registry.js.map +1 -1
- package/dist/RegistryItems.js.map +1 -1
- package/dist/ResolvedMiddleware.d.ts +2 -2
- package/dist/ResolvedMiddleware.d.ts.map +1 -1
- package/dist/ResolvedMiddleware.js.map +1 -1
- package/dist/Storage.d.ts +6 -6
- package/dist/Storage.d.ts.map +1 -1
- package/dist/Storage.js.map +1 -1
- package/dist/StorageActionWriter.d.ts +1 -1
- package/dist/StorageActionWriter.d.ts.map +1 -1
- package/dist/StorageActionWriter.js.map +1 -1
- package/dist/StorageReader.d.ts +1 -1
- package/dist/StorageReader.d.ts.map +1 -1
- package/dist/StorageReader.js.map +1 -1
- package/dist/StorageWriter.d.ts +1 -1
- package/dist/StorageWriter.d.ts.map +1 -1
- package/dist/StorageWriter.js.map +1 -1
- package/dist/TableInfo.d.ts +2 -2
- package/dist/TableInfo.d.ts.map +1 -1
- package/dist/TableInfo.js.map +1 -1
- package/dist/VectorSearch.d.ts +1 -1
- package/dist/VectorSearch.d.ts.map +1 -1
- package/dist/VectorSearch.js.map +1 -1
- package/dist/index.d.ts +60 -60
- package/dist/index.d.ts.map +1 -1
- package/dist/internal/AiGatewayDecisionClient.d.ts +1 -1
- package/dist/internal/AiGatewayDecisionClient.d.ts.map +1 -1
- package/dist/internal/AiGatewayDecisionClient.js.map +1 -1
- package/dist/internal/AiGatewayLanguageClient.d.ts +1 -1
- package/dist/internal/AiGatewayLanguageClient.d.ts.map +1 -1
- package/dist/internal/AiGatewayLanguageClient.js.map +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/ActionCtx.ts +1 -1
- package/src/AiGatewayDecisionClient.ts +3 -3
- package/src/AiGatewayLanguageClient.ts +3 -3
- package/src/Auth.ts +1 -1
- package/src/ComponentCtx.ts +1 -1
- package/src/ConvexFunctionDefinitions.ts +8 -8
- package/src/CronJobs.ts +1 -1
- package/src/DataModel.ts +3 -3
- package/src/DatabaseReader.ts +4 -4
- package/src/DatabaseSchema.ts +1 -1
- package/src/DatabaseWriter.ts +6 -6
- package/src/Document.ts +4 -4
- package/src/FunctionImpl.ts +5 -5
- package/src/FunctionRegistryItem.ts +1 -1
- package/src/GroupImpl.ts +5 -5
- package/src/GroupRegistry.ts +4 -4
- package/src/Handler.ts +23 -23
- package/src/HttpRouter.ts +17 -17
- package/src/MiddlewareImpl.ts +17 -17
- package/src/MutationCtx.ts +1 -1
- package/src/MutationRunner.ts +1 -1
- package/src/MutationTransactionContext.ts +2 -2
- package/src/OrderedQuery.ts +4 -4
- package/src/QueryCtx.ts +1 -1
- package/src/QueryInitializer.ts +9 -9
- package/src/QueryRunner.ts +2 -2
- package/src/QueryStream.ts +15 -15
- package/src/QueryStreamCursor.ts +3 -3
- package/src/QueryStreamIndexPrefix.ts +2 -2
- package/src/QueryStreamIndexRange.ts +4 -4
- package/src/QueryStreamKey.ts +2 -2
- package/src/QueryStreamKeyBounds.ts +3 -3
- package/src/QueryStreamKeyLayout.ts +1 -1
- package/src/QueryStreamKeyValues.ts +1 -1
- package/src/QueryStreamPagination.ts +2 -2
- package/src/RegisteredConvexFunction.ts +21 -21
- package/src/RegisteredFunction.ts +18 -18
- package/src/RegisteredFunctions.ts +4 -4
- package/src/RegisteredNodeFunction.ts +8 -8
- package/src/Registry.ts +1 -1
- package/src/RegistryItems.ts +2 -2
- package/src/ResolvedMiddleware.ts +2 -2
- package/src/Storage.ts +3 -3
- package/src/StorageActionWriter.ts +1 -1
- package/src/StorageReader.ts +1 -1
- package/src/StorageWriter.ts +1 -1
- package/src/TableInfo.ts +2 -2
- package/src/VectorSearch.ts +1 -1
- package/src/index.ts +60 -60
- package/src/internal/AiGatewayDecisionClient.ts +2 -2
- package/src/internal/AiGatewayLanguageClient.ts +2 -2
- package/src/node.ts +1 -1
|
@@ -3,14 +3,14 @@ import * as Match from "effect/Match";
|
|
|
3
3
|
import * as Record from "effect/Record";
|
|
4
4
|
import type * as GroupSpec from "@confect/core/GroupSpec";
|
|
5
5
|
import type * as FunctionSpec from "@confect/core/FunctionSpec";
|
|
6
|
-
import type * as DatabaseSchema from "./DatabaseSchema";
|
|
7
|
-
import type * as GroupImpl from "./GroupImpl";
|
|
8
|
-
import * as GroupRegistry from "./GroupRegistry";
|
|
9
|
-
import * as FunctionRegistryItem from "./FunctionRegistryItem";
|
|
10
|
-
import * as RegisteredConvexFunction from "./RegisteredConvexFunction";
|
|
11
|
-
import type * as RegisteredFunctions from "./RegisteredFunctions";
|
|
12
|
-
import * as ResolvedMiddleware from "./ResolvedMiddleware";
|
|
13
|
-
import { mapLeaves } from "./internal/utils";
|
|
6
|
+
import type * as DatabaseSchema from "./DatabaseSchema.js";
|
|
7
|
+
import type * as GroupImpl from "./GroupImpl.js";
|
|
8
|
+
import * as GroupRegistry from "./GroupRegistry.js";
|
|
9
|
+
import * as FunctionRegistryItem from "./FunctionRegistryItem.js";
|
|
10
|
+
import * as RegisteredConvexFunction from "./RegisteredConvexFunction.js";
|
|
11
|
+
import type * as RegisteredFunctions from "./RegisteredFunctions.js";
|
|
12
|
+
import * as ResolvedMiddleware from "./ResolvedMiddleware.js";
|
|
13
|
+
import { mapLeaves } from "./internal/utils.js";
|
|
14
14
|
|
|
15
15
|
export interface Definitions {
|
|
16
16
|
readonly [name: string]: RegisteredConvexFunction.Definition | Definitions;
|
package/src/CronJobs.ts
CHANGED
|
@@ -11,7 +11,7 @@ import * as Option from "effect/Option";
|
|
|
11
11
|
import * as Order from "effect/Order";
|
|
12
12
|
import * as Predicate from "effect/Predicate";
|
|
13
13
|
import * as Record from "effect/Record";
|
|
14
|
-
import type * as CronJob from "./CronJob";
|
|
14
|
+
import type * as CronJob from "./CronJob.js";
|
|
15
15
|
|
|
16
16
|
export const TypeId = "~@confect/server/CronJobs";
|
|
17
17
|
export type TypeId = typeof TypeId;
|
package/src/DataModel.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type * as DatabaseSchema from "./DatabaseSchema";
|
|
2
|
-
import type * as Table from "./Table";
|
|
3
|
-
import type * as TableInfo from "./TableInfo";
|
|
1
|
+
import type * as DatabaseSchema from "./DatabaseSchema.js";
|
|
2
|
+
import type * as Table from "./Table.js";
|
|
3
|
+
import type * as TableInfo from "./TableInfo.js";
|
|
4
4
|
import type * as GenericId from "@confect/core/GenericId";
|
|
5
5
|
|
|
6
6
|
export declare const TypeId: "~@confect/server/DataModel";
|
package/src/DatabaseReader.ts
CHANGED
|
@@ -2,10 +2,10 @@ import type { GenericDatabaseReader } from "convex/server";
|
|
|
2
2
|
import * as Context from "effect/Context";
|
|
3
3
|
import * as Layer from "effect/Layer";
|
|
4
4
|
import type { BaseDatabaseReader } from "@confect/core/Types";
|
|
5
|
-
import * as DatabaseSchema from "./DatabaseSchema";
|
|
6
|
-
import type * as DataModel from "./DataModel";
|
|
7
|
-
import * as QueryInitializer from "./QueryInitializer";
|
|
8
|
-
import * as Table from "./Table";
|
|
5
|
+
import * as DatabaseSchema from "./DatabaseSchema.js";
|
|
6
|
+
import type * as DataModel from "./DataModel.js";
|
|
7
|
+
import * as QueryInitializer from "./QueryInitializer.js";
|
|
8
|
+
import * as Table from "./Table.js";
|
|
9
9
|
|
|
10
10
|
type IncludedTables<DatabaseSchema_ extends DatabaseSchema.AnyWithProps> =
|
|
11
11
|
| DatabaseSchema.Tables<DatabaseSchema_>
|
package/src/DatabaseSchema.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as Data from "effect/Data";
|
|
|
3
3
|
import * as Result from "effect/Result";
|
|
4
4
|
import * as Predicate from "effect/Predicate";
|
|
5
5
|
import * as Record from "effect/Record";
|
|
6
|
-
import type * as Table from "./Table";
|
|
6
|
+
import type * as Table from "./Table.js";
|
|
7
7
|
|
|
8
8
|
export class EmptyDatabaseScopeError extends Data.TaggedError(
|
|
9
9
|
"EmptyDatabaseScopeError",
|
package/src/DatabaseWriter.ts
CHANGED
|
@@ -11,12 +11,12 @@ import * as Context from "effect/Context";
|
|
|
11
11
|
import * as Effect from "effect/Effect";
|
|
12
12
|
import * as Layer from "effect/Layer";
|
|
13
13
|
import * as Record from "effect/Record";
|
|
14
|
-
import * as DatabaseSchema from "./DatabaseSchema";
|
|
15
|
-
import type * as DataModel from "./DataModel";
|
|
16
|
-
import type { DocumentByName as DocumentByName_ } from "./DataModel";
|
|
17
|
-
import * as Document from "./Document";
|
|
18
|
-
import * as QueryInitializer from "./QueryInitializer";
|
|
19
|
-
import type * as Table from "./Table";
|
|
14
|
+
import * as DatabaseSchema from "./DatabaseSchema.js";
|
|
15
|
+
import type * as DataModel from "./DataModel.js";
|
|
16
|
+
import type { DocumentByName as DocumentByName_ } from "./DataModel.js";
|
|
17
|
+
import * as Document from "./Document.js";
|
|
18
|
+
import * as QueryInitializer from "./QueryInitializer.js";
|
|
19
|
+
import type * as Table from "./Table.js";
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* The argument accepted by `patch`: like `Partial<Doc>` without system fields,
|
package/src/Document.ts
CHANGED
|
@@ -4,10 +4,10 @@ import * as Effect from "effect/Effect";
|
|
|
4
4
|
import * as Function from "effect/Function";
|
|
5
5
|
import * as Schema from "effect/Schema";
|
|
6
6
|
import type { ReadonlyRecord } from "effect/Record";
|
|
7
|
-
import type * as DatabaseSchema from "./DatabaseSchema";
|
|
8
|
-
import type * as DataModel from "./DataModel";
|
|
9
|
-
import type * as TableInfo from "./TableInfo";
|
|
10
|
-
import type * as Table from "./Table";
|
|
7
|
+
import type * as DatabaseSchema from "./DatabaseSchema.js";
|
|
8
|
+
import type * as DataModel from "./DataModel.js";
|
|
9
|
+
import type * as TableInfo from "./TableInfo.js";
|
|
10
|
+
import type * as Table from "./Table.js";
|
|
11
11
|
|
|
12
12
|
export type Document<
|
|
13
13
|
Schema_ extends DatabaseSchema.AnyWithProps,
|
package/src/FunctionImpl.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type * as FunctionSpec from "@confect/core/FunctionSpec";
|
|
2
2
|
import type * as GroupSpec from "@confect/core/GroupSpec";
|
|
3
3
|
import type * as MiddlewareSpec from "@confect/core/MiddlewareSpec";
|
|
4
|
-
import * as Registry from "./Registry";
|
|
4
|
+
import * as Registry from "./Registry.js";
|
|
5
5
|
import * as Context from "effect/Context";
|
|
6
6
|
import * as Effect from "effect/Effect";
|
|
7
7
|
import * as Layer from "effect/Layer";
|
|
8
8
|
import * as Ref from "effect/Ref";
|
|
9
|
-
import type * as DatabaseSchema from "./DatabaseSchema";
|
|
10
|
-
import type * as Handler from "./Handler";
|
|
11
|
-
import { setNestedProperty } from "./internal/utils";
|
|
12
|
-
import * as FunctionRegistryItem from "./FunctionRegistryItem";
|
|
9
|
+
import type * as DatabaseSchema from "./DatabaseSchema.js";
|
|
10
|
+
import type * as Handler from "./Handler.js";
|
|
11
|
+
import { setNestedProperty } from "./internal/utils.js";
|
|
12
|
+
import * as FunctionRegistryItem from "./FunctionRegistryItem.js";
|
|
13
13
|
|
|
14
14
|
export interface FunctionImpl<Name_ extends string> {
|
|
15
15
|
readonly name: Name_;
|
|
@@ -5,7 +5,7 @@ import type { FunctionType, FunctionVisibility } from "convex/server";
|
|
|
5
5
|
import * as Match from "effect/Match";
|
|
6
6
|
import * as Predicate from "effect/Predicate";
|
|
7
7
|
import type * as Schema from "effect/Schema";
|
|
8
|
-
import type * as Handler from "./Handler";
|
|
8
|
+
import type * as Handler from "./Handler.js";
|
|
9
9
|
|
|
10
10
|
export const TypeId = "~@confect/server/FunctionRegistryItem";
|
|
11
11
|
export type TypeId = typeof TypeId;
|
package/src/GroupImpl.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as GroupSpec from "@confect/core/GroupSpec";
|
|
2
2
|
import type * as MiddlewareSpec from "@confect/core/MiddlewareSpec";
|
|
3
|
-
import * as Registry from "./Registry";
|
|
4
|
-
import * as RegistryItems from "./RegistryItems";
|
|
3
|
+
import * as Registry from "./Registry.js";
|
|
4
|
+
import * as RegistryItems from "./RegistryItems.js";
|
|
5
5
|
import * as Array from "effect/Array";
|
|
6
6
|
import * as Context from "effect/Context";
|
|
7
7
|
import * as Effect from "effect/Effect";
|
|
@@ -9,9 +9,9 @@ import * as Layer from "effect/Layer";
|
|
|
9
9
|
import * as Option from "effect/Option";
|
|
10
10
|
import * as Predicate from "effect/Predicate";
|
|
11
11
|
import * as Ref from "effect/Ref";
|
|
12
|
-
import type * as DatabaseSchema from "./DatabaseSchema";
|
|
13
|
-
import type * as FunctionImpl from "./FunctionImpl";
|
|
14
|
-
import type * as MiddlewareImpl from "./MiddlewareImpl";
|
|
12
|
+
import type * as DatabaseSchema from "./DatabaseSchema.js";
|
|
13
|
+
import type * as FunctionImpl from "./FunctionImpl.js";
|
|
14
|
+
import type * as MiddlewareImpl from "./MiddlewareImpl.js";
|
|
15
15
|
|
|
16
16
|
export const TypeId = "~@confect/server/GroupImpl";
|
|
17
17
|
export type TypeId = typeof TypeId;
|
package/src/GroupRegistry.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect";
|
|
2
2
|
import type * as Layer from "effect/Layer";
|
|
3
3
|
import * as Ref from "effect/Ref";
|
|
4
|
-
import * as Registry from "./Registry";
|
|
5
|
-
import type * as RegistryItems from "./RegistryItems";
|
|
6
|
-
import type * as GroupImpl from "./GroupImpl";
|
|
7
|
-
import * as MiddlewareRegistryItem from "./MiddlewareRegistryItem";
|
|
4
|
+
import * as Registry from "./Registry.js";
|
|
5
|
+
import type * as RegistryItems from "./RegistryItems.js";
|
|
6
|
+
import type * as GroupImpl from "./GroupImpl.js";
|
|
7
|
+
import * as MiddlewareRegistryItem from "./MiddlewareRegistryItem.js";
|
|
8
8
|
|
|
9
9
|
export const make = (
|
|
10
10
|
groupLayer: Layer.Layer<GroupImpl.GroupImpl<"Finalized">>,
|
package/src/Handler.ts
CHANGED
|
@@ -2,29 +2,29 @@ import type { FunctionSpec, RuntimeAndFunctionType } from "@confect/core";
|
|
|
2
2
|
import type * as FunctionProvenance from "@confect/core/FunctionProvenance";
|
|
3
3
|
import type * as NodeServices from "@effect/platform-node/NodeServices";
|
|
4
4
|
import type { Effect } from "effect";
|
|
5
|
-
import type * as ActionCtx from "./ActionCtx";
|
|
6
|
-
import type * as ActionRunner from "./ActionRunner";
|
|
7
|
-
import type * as Auth from "./Auth";
|
|
8
|
-
import type * as DatabaseReader from "./DatabaseReader";
|
|
9
|
-
import type * as DatabaseSchema from "./DatabaseSchema";
|
|
10
|
-
import type * as DatabaseWriter from "./DatabaseWriter";
|
|
11
|
-
import type * as DataModel from "./DataModel";
|
|
12
|
-
import type { ExecutionMetadata } from "./ExecutionMetadata";
|
|
13
|
-
import type { RequestMetadata } from "./RequestMetadata";
|
|
14
|
-
import type { TransactionMetadata } from "./TransactionMetadata";
|
|
15
|
-
import type * as MutationCtx from "./MutationCtx";
|
|
16
|
-
import type * as MutationRunner from "./MutationRunner";
|
|
17
|
-
import type { MutationTransactionContext } from "./MutationTransactionContext";
|
|
18
|
-
import type * as QueryCtx from "./QueryCtx";
|
|
19
|
-
import type * as QueryRunner from "./QueryRunner";
|
|
20
|
-
import type { QueryTransactionContext } from "./QueryTransactionContext";
|
|
21
|
-
import type * as RegisteredFunction from "./RegisteredFunction";
|
|
22
|
-
import type * as Scheduler from "./Scheduler";
|
|
23
|
-
import type { Storage } from "./Storage";
|
|
24
|
-
import type * as StorageActionWriter from "./StorageActionWriter";
|
|
25
|
-
import type * as StorageReader from "./StorageReader";
|
|
26
|
-
import type * as StorageWriter from "./StorageWriter";
|
|
27
|
-
import type * as VectorSearch from "./VectorSearch";
|
|
5
|
+
import type * as ActionCtx from "./ActionCtx.js";
|
|
6
|
+
import type * as ActionRunner from "./ActionRunner.js";
|
|
7
|
+
import type * as Auth from "./Auth.js";
|
|
8
|
+
import type * as DatabaseReader from "./DatabaseReader.js";
|
|
9
|
+
import type * as DatabaseSchema from "./DatabaseSchema.js";
|
|
10
|
+
import type * as DatabaseWriter from "./DatabaseWriter.js";
|
|
11
|
+
import type * as DataModel from "./DataModel.js";
|
|
12
|
+
import type { ExecutionMetadata } from "./ExecutionMetadata.js";
|
|
13
|
+
import type { RequestMetadata } from "./RequestMetadata.js";
|
|
14
|
+
import type { TransactionMetadata } from "./TransactionMetadata.js";
|
|
15
|
+
import type * as MutationCtx from "./MutationCtx.js";
|
|
16
|
+
import type * as MutationRunner from "./MutationRunner.js";
|
|
17
|
+
import type { MutationTransactionContext } from "./MutationTransactionContext.js";
|
|
18
|
+
import type * as QueryCtx from "./QueryCtx.js";
|
|
19
|
+
import type * as QueryRunner from "./QueryRunner.js";
|
|
20
|
+
import type { QueryTransactionContext } from "./QueryTransactionContext.js";
|
|
21
|
+
import type * as RegisteredFunction from "./RegisteredFunction.js";
|
|
22
|
+
import type * as Scheduler from "./Scheduler.js";
|
|
23
|
+
import type { Storage } from "./Storage.js";
|
|
24
|
+
import type * as StorageActionWriter from "./StorageActionWriter.js";
|
|
25
|
+
import type * as StorageReader from "./StorageReader.js";
|
|
26
|
+
import type * as StorageWriter from "./StorageWriter.js";
|
|
27
|
+
import type * as VectorSearch from "./VectorSearch.js";
|
|
28
28
|
|
|
29
29
|
export type Handler<
|
|
30
30
|
DatabaseSchema_ extends DatabaseSchema.AnyWithProps,
|
package/src/HttpRouter.ts
CHANGED
|
@@ -25,23 +25,23 @@ import type * as Etag from "effect/http/Etag";
|
|
|
25
25
|
import type * as HttpPlatform from "effect/http/HttpPlatform";
|
|
26
26
|
import * as HttpRouter from "effect/http/HttpRouter";
|
|
27
27
|
import * as HttpServer from "effect/http/HttpServer";
|
|
28
|
-
import type * as ActionRunner from "./ActionRunner";
|
|
29
|
-
import type * as Auth from "./Auth";
|
|
30
|
-
import type { ExecutionMetadata } from "./ExecutionMetadata";
|
|
31
|
-
import type { RequestMetadata } from "./RequestMetadata";
|
|
32
|
-
import type * as DatabaseSchema from "./DatabaseSchema";
|
|
33
|
-
import type * as DataModel from "./DataModel";
|
|
34
|
-
import type * as Handler from "./Handler";
|
|
35
|
-
import * as ConvexConfigProvider from "./ConvexConfigProvider";
|
|
36
|
-
import * as ConvexLogger from "./ConvexLogger";
|
|
37
|
-
import type * as MutationRunner from "./MutationRunner";
|
|
38
|
-
import type * as QueryRunner from "./QueryRunner";
|
|
39
|
-
import * as RegisteredFunction from "./RegisteredFunction";
|
|
40
|
-
import type * as Scheduler from "./Scheduler";
|
|
41
|
-
import type { Storage } from "./Storage";
|
|
42
|
-
import type { StorageActionWriter } from "./StorageActionWriter";
|
|
43
|
-
import type { StorageReader } from "./StorageReader";
|
|
44
|
-
import type { StorageWriter } from "./StorageWriter";
|
|
28
|
+
import type * as ActionRunner from "./ActionRunner.js";
|
|
29
|
+
import type * as Auth from "./Auth.js";
|
|
30
|
+
import type { ExecutionMetadata } from "./ExecutionMetadata.js";
|
|
31
|
+
import type { RequestMetadata } from "./RequestMetadata.js";
|
|
32
|
+
import type * as DatabaseSchema from "./DatabaseSchema.js";
|
|
33
|
+
import type * as DataModel from "./DataModel.js";
|
|
34
|
+
import type * as Handler from "./Handler.js";
|
|
35
|
+
import * as ConvexConfigProvider from "./ConvexConfigProvider.js";
|
|
36
|
+
import * as ConvexLogger from "./ConvexLogger.js";
|
|
37
|
+
import type * as MutationRunner from "./MutationRunner.js";
|
|
38
|
+
import type * as QueryRunner from "./QueryRunner.js";
|
|
39
|
+
import * as RegisteredFunction from "./RegisteredFunction.js";
|
|
40
|
+
import type * as Scheduler from "./Scheduler.js";
|
|
41
|
+
import type { Storage } from "./Storage.js";
|
|
42
|
+
import type { StorageActionWriter } from "./StorageActionWriter.js";
|
|
43
|
+
import type { StorageReader } from "./StorageReader.js";
|
|
44
|
+
import type { StorageWriter } from "./StorageWriter.js";
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
47
|
* The Confect services available to HTTP route handlers and middleware,
|
package/src/MiddlewareImpl.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import type * as FunctionSpec from "@confect/core/FunctionSpec";
|
|
2
2
|
import type * as GroupSpec from "@confect/core/GroupSpec";
|
|
3
3
|
import * as MiddlewareSpec from "@confect/core/MiddlewareSpec";
|
|
4
|
-
import * as Registry from "./Registry";
|
|
4
|
+
import * as Registry from "./Registry.js";
|
|
5
5
|
import type { FunctionType } from "convex/server";
|
|
6
6
|
import * as Context from "effect/Context";
|
|
7
7
|
import * as Effect from "effect/Effect";
|
|
8
8
|
import * as Layer from "effect/Layer";
|
|
9
9
|
import * as Ref from "effect/Ref";
|
|
10
|
-
import type * as Auth from "./Auth";
|
|
11
|
-
import type * as DatabaseReader from "./DatabaseReader";
|
|
12
|
-
import type * as DatabaseSchema from "./DatabaseSchema";
|
|
13
|
-
import type * as Handler from "./Handler";
|
|
14
|
-
import type { ExecutionMetadata } from "./ExecutionMetadata";
|
|
15
|
-
import type { RequestMetadata } from "./RequestMetadata";
|
|
16
|
-
import type { TransactionMetadata } from "./TransactionMetadata";
|
|
17
|
-
import type * as MutationRunner from "./MutationRunner";
|
|
18
|
-
import type * as QueryRunner from "./QueryRunner";
|
|
19
|
-
import type { QueryTransactionContext } from "./QueryTransactionContext";
|
|
20
|
-
import type * as Scheduler from "./Scheduler";
|
|
21
|
-
import type { Storage } from "./Storage";
|
|
22
|
-
import type * as StorageReader from "./StorageReader";
|
|
23
|
-
import type * as StorageWriter from "./StorageWriter";
|
|
24
|
-
import * as MiddlewareRegistryItem from "./MiddlewareRegistryItem";
|
|
25
|
-
import { setNestedProperty } from "./internal/utils";
|
|
10
|
+
import type * as Auth from "./Auth.js";
|
|
11
|
+
import type * as DatabaseReader from "./DatabaseReader.js";
|
|
12
|
+
import type * as DatabaseSchema from "./DatabaseSchema.js";
|
|
13
|
+
import type * as Handler from "./Handler.js";
|
|
14
|
+
import type { ExecutionMetadata } from "./ExecutionMetadata.js";
|
|
15
|
+
import type { RequestMetadata } from "./RequestMetadata.js";
|
|
16
|
+
import type { TransactionMetadata } from "./TransactionMetadata.js";
|
|
17
|
+
import type * as MutationRunner from "./MutationRunner.js";
|
|
18
|
+
import type * as QueryRunner from "./QueryRunner.js";
|
|
19
|
+
import type { QueryTransactionContext } from "./QueryTransactionContext.js";
|
|
20
|
+
import type * as Scheduler from "./Scheduler.js";
|
|
21
|
+
import type { Storage } from "./Storage.js";
|
|
22
|
+
import type * as StorageReader from "./StorageReader.js";
|
|
23
|
+
import type * as StorageWriter from "./StorageWriter.js";
|
|
24
|
+
import * as MiddlewareRegistryItem from "./MiddlewareRegistryItem.js";
|
|
25
|
+
import { setNestedProperty } from "./internal/utils.js";
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Marker service produced by providing a middleware's implementation to a
|
package/src/MutationCtx.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as IdScope from "@confect/core/IdScope";
|
|
2
2
|
import type { GenericDataModel, GenericMutationCtx } from "convex/server";
|
|
3
3
|
import * as Context from "effect/Context";
|
|
4
|
-
import type * as ComponentCtx from "./ComponentCtx";
|
|
4
|
+
import type * as ComponentCtx from "./ComponentCtx.js";
|
|
5
5
|
import * as Layer from "effect/Layer";
|
|
6
6
|
|
|
7
7
|
export type MutationCtxTag<
|
package/src/MutationRunner.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as Context from "effect/Context";
|
|
|
4
4
|
import * as Effect from "effect/Effect";
|
|
5
5
|
import * as Layer from "effect/Layer";
|
|
6
6
|
import type * as Schema from "effect/Schema";
|
|
7
|
-
import * as MutationTransactionContext from "./MutationTransactionContext";
|
|
7
|
+
import * as MutationTransactionContext from "./MutationTransactionContext.js";
|
|
8
8
|
|
|
9
9
|
export type Options = MutationTransactionContext.MutationOptions;
|
|
10
10
|
|
|
@@ -7,10 +7,10 @@ import type {
|
|
|
7
7
|
import * as Context from "effect/Context";
|
|
8
8
|
import * as Effect from "effect/Effect";
|
|
9
9
|
import * as Layer from "effect/Layer";
|
|
10
|
-
import type { Options as MutationOptions } from "./QueryTransactionContext";
|
|
10
|
+
import type { Options as MutationOptions } from "./QueryTransactionContext.js";
|
|
11
11
|
|
|
12
12
|
export type { TransactionLimits } from "convex/server";
|
|
13
|
-
export type { Options as MutationOptions } from "./QueryTransactionContext";
|
|
13
|
+
export type { Options as MutationOptions } from "./QueryTransactionContext.js";
|
|
14
14
|
export type QueryOptions = AdvancedRunQueryOptions;
|
|
15
15
|
|
|
16
16
|
const make = (
|
package/src/OrderedQuery.ts
CHANGED
|
@@ -10,10 +10,10 @@ import { identity, pipe } from "effect/Function";
|
|
|
10
10
|
import type { Option } from "effect";
|
|
11
11
|
import * as Effect from "effect/Effect";
|
|
12
12
|
import * as Stream from "effect/Stream";
|
|
13
|
-
import type * as DatabaseSchema from "./DatabaseSchema";
|
|
14
|
-
import * as Document from "./Document";
|
|
15
|
-
import type * as TableInfo from "./TableInfo";
|
|
16
|
-
import type * as Table from "./Table";
|
|
13
|
+
import type * as DatabaseSchema from "./DatabaseSchema.js";
|
|
14
|
+
import * as Document from "./Document.js";
|
|
15
|
+
import type * as TableInfo from "./TableInfo.js";
|
|
16
|
+
import type * as Table from "./Table.js";
|
|
17
17
|
|
|
18
18
|
type NativePaginate<TableInfo_ extends TableInfo.AnyWithProps, Doc> = (
|
|
19
19
|
options: PaginationOptions,
|
package/src/QueryCtx.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as IdScope from "@confect/core/IdScope";
|
|
2
2
|
import type { GenericDataModel, GenericQueryCtx } from "convex/server";
|
|
3
3
|
import * as Context from "effect/Context";
|
|
4
|
-
import type * as ComponentCtx from "./ComponentCtx";
|
|
4
|
+
import type * as ComponentCtx from "./ComponentCtx.js";
|
|
5
5
|
import * as Layer from "effect/Layer";
|
|
6
6
|
|
|
7
7
|
export type QueryCtxTag<
|
package/src/QueryInitializer.ts
CHANGED
|
@@ -28,15 +28,15 @@ import type {
|
|
|
28
28
|
BaseDatabaseReader,
|
|
29
29
|
IndexFieldTypesForEq,
|
|
30
30
|
} from "@confect/core/Types";
|
|
31
|
-
import type * as DataModel from "./DataModel";
|
|
32
|
-
import type * as DatabaseSchema from "./DatabaseSchema";
|
|
33
|
-
import * as Document from "./Document";
|
|
34
|
-
import * as OrderedQuery from "./OrderedQuery";
|
|
35
|
-
import * as QueryStream from "./QueryStream";
|
|
36
|
-
import type * as QueryStreamKeyLabels from "./QueryStreamKeyLabels";
|
|
37
|
-
import * as QueryStreamIndexRange from "./QueryStreamIndexRange";
|
|
38
|
-
import type { QueryStreamOrderDirection as OrderDirection } from "./QueryStreamOrderDirection";
|
|
39
|
-
import type * as Table from "./Table";
|
|
31
|
+
import type * as DataModel from "./DataModel.js";
|
|
32
|
+
import type * as DatabaseSchema from "./DatabaseSchema.js";
|
|
33
|
+
import * as Document from "./Document.js";
|
|
34
|
+
import * as OrderedQuery from "./OrderedQuery.js";
|
|
35
|
+
import * as QueryStream from "./QueryStream.js";
|
|
36
|
+
import type * as QueryStreamKeyLabels from "./QueryStreamKeyLabels.js";
|
|
37
|
+
import * as QueryStreamIndexRange from "./QueryStreamIndexRange.js";
|
|
38
|
+
import type { QueryStreamOrderDirection as OrderDirection } from "./QueryStreamOrderDirection.js";
|
|
39
|
+
import type * as Table from "./Table.js";
|
|
40
40
|
|
|
41
41
|
type ConvexTableInfoFor<
|
|
42
42
|
DataModel_ extends DataModel.AnyWithProps,
|
package/src/QueryRunner.ts
CHANGED
|
@@ -4,8 +4,8 @@ import * as Context from "effect/Context";
|
|
|
4
4
|
import * as Effect from "effect/Effect";
|
|
5
5
|
import * as Layer from "effect/Layer";
|
|
6
6
|
import type * as Schema from "effect/Schema";
|
|
7
|
-
import * as MutationTransactionContext from "./MutationTransactionContext";
|
|
8
|
-
import * as QueryTransactionContext from "./QueryTransactionContext";
|
|
7
|
+
import * as MutationTransactionContext from "./MutationTransactionContext.js";
|
|
8
|
+
import * as QueryTransactionContext from "./QueryTransactionContext.js";
|
|
9
9
|
|
|
10
10
|
export type Options = MutationTransactionContext.QueryOptions;
|
|
11
11
|
|
package/src/QueryStream.ts
CHANGED
|
@@ -55,19 +55,19 @@ import * as String from "effect/String";
|
|
|
55
55
|
import * as Result from "effect/Result";
|
|
56
56
|
import * as Tuple from "effect/Tuple";
|
|
57
57
|
import type * as Types from "effect/Types";
|
|
58
|
-
import * as Document from "./Document";
|
|
59
|
-
import type * as Table from "./Table";
|
|
60
|
-
import * as QueryStreamCursor from "./QueryStreamCursor";
|
|
61
|
-
import * as QueryStreamKeyLabels from "./QueryStreamKeyLabels";
|
|
62
|
-
import * as QueryStreamKeyLayout from "./QueryStreamKeyLayout";
|
|
63
|
-
import * as QueryStreamOrderDirection from "./QueryStreamOrderDirection";
|
|
64
|
-
import * as QueryStreamKeyValues from "./QueryStreamKeyValues";
|
|
65
|
-
import * as QueryStreamIndexPrefix from "./QueryStreamIndexPrefix";
|
|
66
|
-
import * as QueryStreamKey from "./QueryStreamKey";
|
|
67
|
-
import * as QueryStreamKeyBounds from "./QueryStreamKeyBounds";
|
|
68
|
-
import * as QueryStreamIndexRange from "./QueryStreamIndexRange";
|
|
69
|
-
import * as QueryStreamPagination from "./QueryStreamPagination";
|
|
70
|
-
import * as QueryStreamReadBudget from "./QueryStreamReadBudget";
|
|
58
|
+
import * as Document from "./Document.js";
|
|
59
|
+
import type * as Table from "./Table.js";
|
|
60
|
+
import * as QueryStreamCursor from "./QueryStreamCursor.js";
|
|
61
|
+
import * as QueryStreamKeyLabels from "./QueryStreamKeyLabels.js";
|
|
62
|
+
import * as QueryStreamKeyLayout from "./QueryStreamKeyLayout.js";
|
|
63
|
+
import * as QueryStreamOrderDirection from "./QueryStreamOrderDirection.js";
|
|
64
|
+
import * as QueryStreamKeyValues from "./QueryStreamKeyValues.js";
|
|
65
|
+
import * as QueryStreamIndexPrefix from "./QueryStreamIndexPrefix.js";
|
|
66
|
+
import * as QueryStreamKey from "./QueryStreamKey.js";
|
|
67
|
+
import * as QueryStreamKeyBounds from "./QueryStreamKeyBounds.js";
|
|
68
|
+
import * as QueryStreamIndexRange from "./QueryStreamIndexRange.js";
|
|
69
|
+
import * as QueryStreamPagination from "./QueryStreamPagination.js";
|
|
70
|
+
import * as QueryStreamReadBudget from "./QueryStreamReadBudget.js";
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* A page exhausted its read budget without a safe logical continuation.
|
|
@@ -165,14 +165,14 @@ export class MissingReversalRecipeError extends Data.TaggedError(
|
|
|
165
165
|
export {
|
|
166
166
|
EmptyInitialPageError,
|
|
167
167
|
InvalidPageSizeError,
|
|
168
|
-
} from "./QueryStreamPagination";
|
|
168
|
+
} from "./QueryStreamPagination.js";
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
171
|
* Invalid numeric read limits.
|
|
172
172
|
*
|
|
173
173
|
* @experimental
|
|
174
174
|
*/
|
|
175
|
-
export { InvalidReadLimitError } from "./QueryStreamReadBudget";
|
|
175
|
+
export { InvalidReadLimitError } from "./QueryStreamReadBudget.js";
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
178
|
* Runtime identifier used to distinguish query streams from plain streams.
|
package/src/QueryStreamCursor.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as Array from "effect/Array";
|
|
2
2
|
import * as Effect from "effect/Effect";
|
|
3
|
-
import * as QueryStreamKey from "./QueryStreamKey";
|
|
3
|
+
import * as QueryStreamKey from "./QueryStreamKey.js";
|
|
4
4
|
import * as SchemaIssue from "effect/SchemaIssue";
|
|
5
5
|
import * as Match from "effect/Match";
|
|
6
6
|
import * as Schema from "effect/Schema";
|
|
7
7
|
import * as SchemaGetter from "effect/SchemaGetter";
|
|
8
|
-
import * as QueryStreamKeyLayout from "./QueryStreamKeyLayout";
|
|
9
|
-
import * as QueryStreamKeyValues from "./QueryStreamKeyValues";
|
|
8
|
+
import * as QueryStreamKeyLayout from "./QueryStreamKeyLayout.js";
|
|
9
|
+
import * as QueryStreamKeyValues from "./QueryStreamKeyValues.js";
|
|
10
10
|
|
|
11
11
|
// Serialized labels are a cursor boundary representation. They include every
|
|
12
12
|
// runtime position but do not preserve implicitness.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as Array from "effect/Array";
|
|
2
2
|
import * as Data from "effect/Data";
|
|
3
3
|
import * as Result from "effect/Result";
|
|
4
|
-
import type * as QueryStreamKey from "./QueryStreamKey";
|
|
5
|
-
import type * as QueryStreamKeyValues from "./QueryStreamKeyValues";
|
|
4
|
+
import type * as QueryStreamKey from "./QueryStreamKey.js";
|
|
5
|
+
import type * as QueryStreamKeyValues from "./QueryStreamKeyValues.js";
|
|
6
6
|
|
|
7
7
|
const TypeId = "~@confect/server/QueryStreamIndexPrefix";
|
|
8
8
|
|
|
@@ -11,10 +11,10 @@ import * as Match from "effect/Match";
|
|
|
11
11
|
import * as Option from "effect/Option";
|
|
12
12
|
import * as Result from "effect/Result";
|
|
13
13
|
import type * as Types from "effect/Types";
|
|
14
|
-
import * as QueryStreamIndexPrefix from "./QueryStreamIndexPrefix";
|
|
15
|
-
import * as QueryStreamKeyBounds from "./QueryStreamKeyBounds";
|
|
16
|
-
import * as QueryStreamKeyValues from "./QueryStreamKeyValues";
|
|
17
|
-
import type * as QueryStreamOrderDirection from "./QueryStreamOrderDirection";
|
|
14
|
+
import * as QueryStreamIndexPrefix from "./QueryStreamIndexPrefix.js";
|
|
15
|
+
import * as QueryStreamKeyBounds from "./QueryStreamKeyBounds.js";
|
|
16
|
+
import * as QueryStreamKeyValues from "./QueryStreamKeyValues.js";
|
|
17
|
+
import type * as QueryStreamOrderDirection from "./QueryStreamOrderDirection.js";
|
|
18
18
|
|
|
19
19
|
type Head<FieldPaths extends ReadonlyArray<string>> =
|
|
20
20
|
FieldPaths extends readonly [infer H extends string, ...ReadonlyArray<string>]
|
package/src/QueryStreamKey.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as Data from "effect/Data";
|
|
2
2
|
import * as Predicate from "effect/Predicate";
|
|
3
3
|
import * as Result from "effect/Result";
|
|
4
|
-
import * as QueryStreamKeyLayout from "./QueryStreamKeyLayout";
|
|
5
|
-
import type * as QueryStreamKeyValues from "./QueryStreamKeyValues";
|
|
4
|
+
import * as QueryStreamKeyLayout from "./QueryStreamKeyLayout.js";
|
|
5
|
+
import type * as QueryStreamKeyValues from "./QueryStreamKeyValues.js";
|
|
6
6
|
|
|
7
7
|
const TypeId = "~@confect/server/QueryStreamKey";
|
|
8
8
|
|
|
@@ -3,9 +3,9 @@ import * as Data from "effect/Data";
|
|
|
3
3
|
import * as Option from "effect/Option";
|
|
4
4
|
import * as Order from "effect/Order";
|
|
5
5
|
import * as Result from "effect/Result";
|
|
6
|
-
import * as QueryStreamKey from "./QueryStreamKey";
|
|
7
|
-
import * as QueryStreamKeyLayout from "./QueryStreamKeyLayout";
|
|
8
|
-
import * as QueryStreamKeyValues from "./QueryStreamKeyValues";
|
|
6
|
+
import * as QueryStreamKey from "./QueryStreamKey.js";
|
|
7
|
+
import * as QueryStreamKeyLayout from "./QueryStreamKeyLayout.js";
|
|
8
|
+
import * as QueryStreamKeyValues from "./QueryStreamKeyValues.js";
|
|
9
9
|
|
|
10
10
|
// A bound's key may be a *prefix* of the full key: bounding by `["a"]` means
|
|
11
11
|
// bounding by the whole family of keys that start with `"a"`. To compare
|
|
@@ -6,7 +6,7 @@ import * as Option from "effect/Option";
|
|
|
6
6
|
import * as Result from "effect/Result";
|
|
7
7
|
import type * as Types from "effect/Types";
|
|
8
8
|
|
|
9
|
-
import * as QueryStreamKeyLabels from "./QueryStreamKeyLabels";
|
|
9
|
+
import * as QueryStreamKeyLabels from "./QueryStreamKeyLabels.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* One runtime position of a stream key. Explicit IDs and their aliases are
|
|
@@ -12,7 +12,7 @@ import * as Result from "effect/Result";
|
|
|
12
12
|
import * as Schema from "effect/Schema";
|
|
13
13
|
import * as SchemaGetter from "effect/SchemaGetter";
|
|
14
14
|
import * as SchemaIssue from "effect/SchemaIssue";
|
|
15
|
-
import type * as QueryStreamOrderDirection from "./QueryStreamOrderDirection";
|
|
15
|
+
import type * as QueryStreamOrderDirection from "./QueryStreamOrderDirection.js";
|
|
16
16
|
|
|
17
17
|
const UNDEFINED_SENTINEL = { $undefined: true } as const;
|
|
18
18
|
const KeyValue = Schema.Json.pipe(
|
|
@@ -4,8 +4,8 @@ import * as Match from "effect/Match";
|
|
|
4
4
|
import * as Option from "effect/Option";
|
|
5
5
|
import * as Result from "effect/Result";
|
|
6
6
|
import * as Schema from "effect/Schema";
|
|
7
|
-
import type * as QueryStreamKey from "./QueryStreamKey";
|
|
8
|
-
import * as QueryStreamKeyValues from "./QueryStreamKeyValues";
|
|
7
|
+
import type * as QueryStreamKey from "./QueryStreamKey.js";
|
|
8
|
+
import * as QueryStreamKeyValues from "./QueryStreamKeyValues.js";
|
|
9
9
|
|
|
10
10
|
const PageSize = Schema.Natural.pipe(
|
|
11
11
|
Schema.brand("~@confect/server/QueryStreamPagination/PageSize"),
|