@confect/server 9.0.0-next.8 → 9.0.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 +182 -4
- package/dist/ActionCtx.d.ts +3 -10
- package/dist/ActionCtx.d.ts.map +1 -1
- package/dist/ActionRunner.d.ts +7 -14
- package/dist/ActionRunner.d.ts.map +1 -1
- package/dist/Auth.d.ts +15 -23
- package/dist/Auth.d.ts.map +1 -1
- package/dist/BlobNotFoundError.d.ts +5 -11
- package/dist/BlobNotFoundError.d.ts.map +1 -1
- package/dist/ConvexConfigProvider.d.ts +1 -8
- package/dist/ConvexConfigProvider.d.ts.map +1 -1
- package/dist/CronJob.d.ts +12 -19
- package/dist/CronJob.d.ts.map +1 -1
- package/dist/CronJobs.d.ts +11 -18
- package/dist/CronJobs.d.ts.map +1 -1
- package/dist/DataModel.d.ts +24 -29
- package/dist/DataModel.d.ts.map +1 -1
- package/dist/DatabaseReader.d.ts +4313 -4328
- package/dist/DatabaseReader.d.ts.map +1 -1
- package/dist/DatabaseSchema.d.ts +20 -25
- package/dist/DatabaseSchema.d.ts.map +1 -1
- package/dist/DatabaseSchema.js.map +1 -1
- package/dist/DatabaseWriter.d.ts +36 -42
- package/dist/DatabaseWriter.d.ts.map +1 -1
- package/dist/Document.d.ts +26 -36
- package/dist/Document.d.ts.map +1 -1
- package/dist/FunctionImpl.d.ts +11 -20
- package/dist/FunctionImpl.d.ts.map +1 -1
- package/dist/GroupImpl.d.ts +29 -35
- package/dist/GroupImpl.d.ts.map +1 -1
- package/dist/Handler.d.ts +34 -40
- package/dist/Handler.d.ts.map +1 -1
- package/dist/HttpApi.d.ts +19 -25
- package/dist/HttpApi.d.ts.map +1 -1
- package/dist/HttpApi.js +4 -4
- package/dist/HttpApi.js.map +1 -1
- package/dist/MutationCtx.d.ts +3 -10
- package/dist/MutationCtx.d.ts.map +1 -1
- package/dist/MutationRunner.d.ts +7 -14
- package/dist/MutationRunner.d.ts.map +1 -1
- package/dist/OrderedQuery.d.ts +15 -22
- package/dist/OrderedQuery.d.ts.map +1 -1
- package/dist/QueryCtx.d.ts +3 -10
- package/dist/QueryCtx.d.ts.map +1 -1
- package/dist/QueryInitializer.d.ts +32 -38
- package/dist/QueryInitializer.d.ts.map +1 -1
- package/dist/QueryRunner.d.ts +7 -14
- package/dist/QueryRunner.d.ts.map +1 -1
- package/dist/RegisteredConvexFunction.d.ts +1099 -1121
- package/dist/RegisteredConvexFunction.d.ts.map +1 -1
- package/dist/RegisteredConvexFunction.js +4 -4
- package/dist/RegisteredConvexFunction.js.map +1 -1
- package/dist/RegisteredFunction.d.ts +46 -64
- package/dist/RegisteredFunction.d.ts.map +1 -1
- package/dist/RegisteredFunction.js +4 -4
- package/dist/RegisteredFunction.js.map +1 -1
- package/dist/RegisteredFunctions.d.ts +20 -22
- package/dist/RegisteredFunctions.d.ts.map +1 -1
- package/dist/RegisteredNodeFunction.d.ts +4 -14
- package/dist/RegisteredNodeFunction.d.ts.map +1 -1
- package/dist/RegistryItem.d.ts +17 -27
- package/dist/RegistryItem.d.ts.map +1 -1
- package/dist/Scheduler.d.ts +14 -22
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/SchemaToValidator.d.ts +68 -64
- package/dist/SchemaToValidator.d.ts.map +1 -1
- package/dist/SchemaToValidator.js +2 -2
- package/dist/SchemaToValidator.js.map +1 -1
- package/dist/StorageActionWriter.d.ts +20 -28
- package/dist/StorageActionWriter.d.ts.map +1 -1
- package/dist/StorageReader.d.ts +13 -21
- package/dist/StorageReader.d.ts.map +1 -1
- package/dist/StorageWriter.d.ts +15 -23
- package/dist/StorageWriter.d.ts.map +1 -1
- package/dist/Table.d.ts +202 -203
- package/dist/Table.d.ts.map +1 -1
- package/dist/Table.js +2 -2
- package/dist/Table.js.map +1 -1
- package/dist/TableInfo.d.ts +35 -41
- package/dist/TableInfo.d.ts.map +1 -1
- package/dist/VectorSearch.d.ts +28 -35
- package/dist/VectorSearch.d.ts.map +1 -1
- package/dist/index.d.ts +35 -35
- package/dist/index.d.ts.map +1 -0
- package/dist/internal/utils.d.ts +10 -13
- package/dist/internal/utils.d.ts.map +1 -1
- package/dist/node.d.ts +2 -2
- package/dist/node.d.ts.map +1 -0
- package/dist/tsconfig.src.tsbuildinfo +1 -0
- package/package.json +4 -12
- package/src/DatabaseSchema.ts +1 -1
package/dist/StorageWriter.d.ts
CHANGED
|
@@ -1,30 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { StorageWriter as StorageWriter$1 } from "convex/server";
|
|
4
|
-
import * as Layer from "effect/Layer";
|
|
1
|
+
import type { StorageWriter as ConvexStorageWriter } from "convex/server";
|
|
2
|
+
import type { GenericId } from "convex/values";
|
|
5
3
|
import * as Effect from "effect/Effect";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export { StorageWriter };
|
|
12
|
-
}
|
|
13
|
-
declare const StorageWriter_base: effect_Context0.TagClass<StorageWriter, "@confect/server/StorageWriter", {
|
|
14
|
-
generateUploadUrl: () => Effect.Effect<URL, never, never>;
|
|
15
|
-
delete: (storageId: GenericId<"_storage">) => Effect.Effect<void, BlobNotFoundError, never>;
|
|
4
|
+
import * as Layer from "effect/Layer";
|
|
5
|
+
import { BlobNotFoundError } from "./BlobNotFoundError";
|
|
6
|
+
declare const StorageWriter_base: import("effect/Context").TagClass<StorageWriter, "@confect/server/StorageWriter", {
|
|
7
|
+
generateUploadUrl: () => Effect.Effect<URL, never, never>;
|
|
8
|
+
delete: (storageId: GenericId<"_storage">) => Effect.Effect<void, BlobNotFoundError, never>;
|
|
16
9
|
}> & Effect.Tag.Proxy<StorageWriter, {
|
|
17
|
-
generateUploadUrl: () => Effect.Effect<URL, never, never>;
|
|
18
|
-
delete: (storageId: GenericId<"_storage">) => Effect.Effect<void, BlobNotFoundError, never>;
|
|
19
|
-
}> & {
|
|
20
|
-
use: <X>(body: (_: {
|
|
21
10
|
generateUploadUrl: () => Effect.Effect<URL, never, never>;
|
|
22
11
|
delete: (storageId: GenericId<"_storage">) => Effect.Effect<void, BlobNotFoundError, never>;
|
|
23
|
-
|
|
12
|
+
}> & {
|
|
13
|
+
use: <X>(body: (_: {
|
|
14
|
+
generateUploadUrl: () => Effect.Effect<URL, never, never>;
|
|
15
|
+
delete: (storageId: GenericId<"_storage">) => Effect.Effect<void, BlobNotFoundError, never>;
|
|
16
|
+
}) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, R | StorageWriter> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, import("effect/Cause").UnknownException, StorageWriter> : Effect.Effect<X, never, StorageWriter>;
|
|
24
17
|
};
|
|
25
|
-
declare class StorageWriter extends StorageWriter_base {
|
|
26
|
-
|
|
18
|
+
export declare class StorageWriter extends StorageWriter_base {
|
|
19
|
+
static readonly layer: (storageWriter: ConvexStorageWriter) => Layer.Layer<StorageWriter, never, never>;
|
|
27
20
|
}
|
|
28
|
-
|
|
29
|
-
export { StorageWriter, StorageWriter_d_exports };
|
|
21
|
+
export {};
|
|
30
22
|
//# sourceMappingURL=StorageWriter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageWriter.d.ts","
|
|
1
|
+
{"version":3,"file":"StorageWriter.d.ts","sourceRoot":"","sources":["../src/StorageWriter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;;;wBASlC,SAAS,CAAC,UAAU,CAAC;;;wBAArB,SAAS,CAAC,UAAU,CAAC;;;;4BAArB,SAAS,CAAC,UAAU,CAAC;;;AAO3C,qBAAa,aAAc,SAAQ,kBAGhC;IACD,MAAM,CAAC,QAAQ,CAAC,KAAK,GAAI,eAAe,mBAAmB,8CAChB;CAC5C"}
|
package/dist/Table.d.ts
CHANGED
|
@@ -1,255 +1,254 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Expand, GenericTableIndexes, GenericTableSearchIndexes, GenericTableVectorIndexes, IndexTiebreakerField, SearchIndexConfig,
|
|
1
|
+
import * as SystemFields from "@confect/core/SystemFields";
|
|
2
|
+
import { type SystemFields as ConvexSystemFields, type Expand, type GenericTableIndexes, type GenericTableSearchIndexes, type GenericTableVectorIndexes, type IndexTiebreakerField, type SearchIndexConfig, type TableDefinition, type VectorIndexConfig } from "convex/server";
|
|
3
|
+
import type { GenericValidator, Validator } from "convex/values";
|
|
3
4
|
import * as Schema from "effect/Schema";
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
import { type TableSchemaToTableValidator } from "./SchemaToValidator";
|
|
6
|
+
export declare const TypeId = "@confect/server/Table";
|
|
7
|
+
export type TypeId = typeof TypeId;
|
|
8
|
+
export declare const isTable: (u: unknown) => u is Any;
|
|
9
|
+
export declare const isUnnamedTable: (u: unknown) => u is UnnamedAny;
|
|
10
|
+
export interface Table<Name_ extends string, TableSchema_ extends Schema.Schema.AnyNoContext, TableValidator_ extends GenericValidator = TableSchemaToTableValidator<TableSchema_>, Indexes_ extends GenericTableIndexes = {}, SearchIndexes_ extends GenericTableSearchIndexes = {}, VectorIndexes_ extends GenericTableVectorIndexes = {}> {
|
|
11
|
+
readonly [TypeId]: TypeId;
|
|
12
|
+
readonly tableName: Name_;
|
|
13
|
+
readonly tableDefinition: TableDefinition<TableValidator_, Indexes_, SearchIndexes_, VectorIndexes_>;
|
|
14
|
+
readonly Fields: TableSchema_;
|
|
15
|
+
readonly Doc: SystemFields.ExtendWithSystemFields<Name_, TableSchema_>;
|
|
16
|
+
readonly indexes: Indexes_;
|
|
11
17
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
declare const isUnnamedTable: (u: unknown) => u is UnnamedAny;
|
|
16
|
-
interface Table<Name_ extends string, TableSchema_ extends Schema.Schema.AnyNoContext, TableValidator_ extends GenericValidator = TableSchemaToTableValidator<TableSchema_>, Indexes_ extends GenericTableIndexes = {}, SearchIndexes_ extends GenericTableSearchIndexes = {}, VectorIndexes_ extends GenericTableVectorIndexes = {}> {
|
|
17
|
-
readonly [TypeId]: TypeId;
|
|
18
|
-
readonly tableName: Name_;
|
|
19
|
-
readonly tableDefinition: TableDefinition<TableValidator_, Indexes_, SearchIndexes_, VectorIndexes_>;
|
|
20
|
-
readonly Fields: TableSchema_;
|
|
21
|
-
readonly Doc: SystemFields$1.ExtendWithSystemFields<Name_, TableSchema_>;
|
|
22
|
-
readonly indexes: Indexes_;
|
|
18
|
+
export interface Any {
|
|
19
|
+
readonly [TypeId]: TypeId;
|
|
20
|
+
readonly tableName: string;
|
|
23
21
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
export type AnyWithProps = Table<any, Schema.Schema.AnyNoContext, GenericValidator, GenericTableIndexes, GenericTableSearchIndexes, GenericTableVectorIndexes>;
|
|
23
|
+
export interface UnnamedTable<TableSchema_ extends Schema.Schema.AnyNoContext, TableValidator_ extends GenericValidator = TableSchemaToTableValidator<TableSchema_>, Indexes_ extends GenericTableIndexes = {}, SearchIndexes_ extends GenericTableSearchIndexes = {}, VectorIndexes_ extends GenericTableVectorIndexes = {}> {
|
|
24
|
+
<const Name_ extends string>(tableName: Name_): Table<Name_, TableSchema_, TableValidator_, Indexes_, SearchIndexes_, VectorIndexes_>;
|
|
25
|
+
readonly [TypeId]: TypeId;
|
|
26
|
+
readonly indexes: Indexes_;
|
|
27
|
+
index<IndexName extends string, FirstFieldPath extends ExtractFieldPaths<TableValidator_>, RestFieldPaths extends ExtractFieldPaths<TableValidator_>[]>(name: IndexName, fields: [FirstFieldPath, ...RestFieldPaths]): UnnamedTable<TableSchema_, TableValidator_, Expand<Indexes_ & Record<IndexName, [
|
|
28
|
+
FirstFieldPath,
|
|
29
|
+
...RestFieldPaths,
|
|
30
|
+
IndexTiebreakerField
|
|
31
|
+
]>>, SearchIndexes_, VectorIndexes_>;
|
|
32
|
+
searchIndex<IndexName extends string, SearchField extends ExtractFieldPaths<TableValidator_>, FilterFields extends ExtractFieldPaths<TableValidator_> = never>(name: IndexName, indexConfig: Expand<SearchIndexConfig<SearchField, FilterFields>>): UnnamedTable<TableSchema_, TableValidator_, Indexes_, Expand<SearchIndexes_ & Record<IndexName, {
|
|
33
|
+
searchField: SearchField;
|
|
34
|
+
filterFields: FilterFields;
|
|
35
|
+
}>>, VectorIndexes_>;
|
|
36
|
+
vectorIndex<IndexName extends string, VectorField extends ExtractFieldPaths<TableValidator_>, FilterFields extends ExtractFieldPaths<TableValidator_> = never>(name: IndexName, indexConfig: Expand<VectorIndexConfig<VectorField, FilterFields>>): UnnamedTable<TableSchema_, TableValidator_, Indexes_, SearchIndexes_, Expand<VectorIndexes_ & Record<IndexName, {
|
|
37
|
+
vectorField: VectorField;
|
|
38
|
+
dimensions: number;
|
|
39
|
+
filterFields: FilterFields;
|
|
40
|
+
}>>>;
|
|
27
41
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
<const Name_ extends string>(tableName: Name_): Table<Name_, TableSchema_, TableValidator_, Indexes_, SearchIndexes_, VectorIndexes_>;
|
|
31
|
-
readonly [TypeId]: TypeId;
|
|
32
|
-
readonly indexes: Indexes_;
|
|
33
|
-
index<IndexName extends string, FirstFieldPath extends ExtractFieldPaths<TableValidator_>, RestFieldPaths extends ExtractFieldPaths<TableValidator_>[]>(name: IndexName, fields: [FirstFieldPath, ...RestFieldPaths]): UnnamedTable<TableSchema_, TableValidator_, Expand<Indexes_ & Record<IndexName, [FirstFieldPath, ...RestFieldPaths, IndexTiebreakerField]>>, SearchIndexes_, VectorIndexes_>;
|
|
34
|
-
searchIndex<IndexName extends string, SearchField extends ExtractFieldPaths<TableValidator_>, FilterFields extends ExtractFieldPaths<TableValidator_> = never>(name: IndexName, indexConfig: Expand<SearchIndexConfig<SearchField, FilterFields>>): UnnamedTable<TableSchema_, TableValidator_, Indexes_, Expand<SearchIndexes_ & Record<IndexName, {
|
|
35
|
-
searchField: SearchField;
|
|
36
|
-
filterFields: FilterFields;
|
|
37
|
-
}>>, VectorIndexes_>;
|
|
38
|
-
vectorIndex<IndexName extends string, VectorField extends ExtractFieldPaths<TableValidator_>, FilterFields extends ExtractFieldPaths<TableValidator_> = never>(name: IndexName, indexConfig: Expand<VectorIndexConfig<VectorField, FilterFields>>): UnnamedTable<TableSchema_, TableValidator_, Indexes_, SearchIndexes_, Expand<VectorIndexes_ & Record<IndexName, {
|
|
39
|
-
vectorField: VectorField;
|
|
40
|
-
dimensions: number;
|
|
41
|
-
filterFields: FilterFields;
|
|
42
|
-
}>>>;
|
|
42
|
+
export interface UnnamedAny {
|
|
43
|
+
readonly [TypeId]: TypeId;
|
|
43
44
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
type
|
|
48
|
-
type
|
|
49
|
-
type
|
|
50
|
-
type
|
|
51
|
-
type
|
|
52
|
-
type
|
|
53
|
-
type
|
|
54
|
-
|
|
55
|
-
type Fields<TableDef extends AnyWithProps> = TableDef extends Table<infer _TableName, infer TableSchema_, infer _TableValidator, infer _Indexes, infer _SearchIndexes, infer _VectorIndexes> ? TableSchema_ : never;
|
|
56
|
-
type WithName<TableDef extends AnyWithProps, Name_ extends string> = TableDef extends {
|
|
57
|
-
readonly tableName: Name_;
|
|
45
|
+
export type UnnamedAnyWithProps = UnnamedTable<Schema.Schema.AnyNoContext, GenericValidator, GenericTableIndexes, GenericTableSearchIndexes, GenericTableVectorIndexes>;
|
|
46
|
+
export type Name<TableDef extends AnyWithProps> = TableDef extends Table<infer TableName, infer _TableSchema, infer _TableValidator, infer _Indexes, infer _SearchIndexes, infer _VectorIndexes> ? TableName & string : never;
|
|
47
|
+
export type TableSchema<TableDef extends AnyWithProps> = TableDef extends Table<infer _TableName, infer TableSchema_, infer _TableValidator, infer _Indexes, infer _SearchIndexes, infer _VectorIndexes> ? TableSchema_ : never;
|
|
48
|
+
export type TableValidator<TableDef extends AnyWithProps> = TableDef extends Table<infer _TableName, infer _TableSchema, infer TableValidator_, infer _Indexes, infer _SearchIndexes, infer _VectorIndexes> ? TableValidator_ : never;
|
|
49
|
+
export type Indexes<TableDef extends AnyWithProps> = TableDef extends Table<infer _TableName, infer _TableSchema, infer _TableValidator, infer Indexes_, infer _SearchIndexes, infer _VectorIndexes> ? Indexes_ : never;
|
|
50
|
+
export type SearchIndexes<TableDef extends AnyWithProps> = TableDef extends Table<infer _TableName, infer _TableSchema, infer _TableValidator, infer _Indexes, infer SearchIndexes_, infer _VectorIndexes> ? SearchIndexes_ : never;
|
|
51
|
+
export type VectorIndexes<TableDef extends AnyWithProps> = TableDef extends Table<infer _TableName, infer _TableSchema, infer _TableValidator, infer _Indexes, infer _SearchIndexes, infer VectorIndexes_> ? VectorIndexes_ : never;
|
|
52
|
+
export type Doc<TableDef extends AnyWithProps> = TableDef extends Table<infer TableName, infer TableSchema_, infer _TableValidator, infer _Indexes, infer _SearchIndexes, infer _VectorIndexes> ? SystemFields.ExtendWithSystemFields<TableName, TableSchema_> : never;
|
|
53
|
+
export type Fields<TableDef extends AnyWithProps> = TableDef extends Table<infer _TableName, infer TableSchema_, infer _TableValidator, infer _Indexes, infer _SearchIndexes, infer _VectorIndexes> ? TableSchema_ : never;
|
|
54
|
+
export type WithName<TableDef extends AnyWithProps, Name_ extends string> = TableDef extends {
|
|
55
|
+
readonly tableName: Name_;
|
|
58
56
|
} ? TableDef : never;
|
|
59
|
-
type TablesRecord<Tables extends AnyWithProps> = {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
scheduledTime: typeof Schema.Number;
|
|
65
|
-
completedTime: Schema.optionalWith<typeof Schema.Number, {
|
|
66
|
-
exact: true;
|
|
67
|
-
}>;
|
|
68
|
-
state: Schema.Union<[Schema.Struct<{
|
|
69
|
-
kind: Schema.Literal<["pending"]>;
|
|
70
|
-
}>, Schema.Struct<{
|
|
71
|
-
kind: Schema.Literal<["inProgress"]>;
|
|
72
|
-
}>, Schema.Struct<{
|
|
73
|
-
kind: Schema.Literal<["success"]>;
|
|
74
|
-
}>, Schema.Struct<{
|
|
75
|
-
kind: Schema.Literal<["failed"]>;
|
|
76
|
-
error: typeof Schema.String;
|
|
77
|
-
}>, Schema.Struct<{
|
|
78
|
-
kind: Schema.Literal<["canceled"]>;
|
|
79
|
-
}>]>;
|
|
80
|
-
}>, convex_values0.VObject<{
|
|
81
|
-
name: string;
|
|
82
|
-
args: any[];
|
|
83
|
-
scheduledTime: number;
|
|
84
|
-
state: {
|
|
85
|
-
kind: "pending";
|
|
86
|
-
} | {
|
|
87
|
-
kind: "inProgress";
|
|
88
|
-
} | {
|
|
89
|
-
kind: "success";
|
|
90
|
-
} | {
|
|
91
|
-
kind: "failed";
|
|
92
|
-
error: string;
|
|
93
|
-
} | {
|
|
94
|
-
kind: "canceled";
|
|
95
|
-
};
|
|
96
|
-
completedTime?: number;
|
|
97
|
-
}, {
|
|
98
|
-
name: convex_values0.VString<string, "required">;
|
|
99
|
-
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
100
|
-
scheduledTime: convex_values0.VFloat64<number, "required">;
|
|
101
|
-
state: convex_values0.VUnion<{
|
|
102
|
-
kind: "pending";
|
|
103
|
-
} | {
|
|
104
|
-
kind: "inProgress";
|
|
105
|
-
} | {
|
|
106
|
-
kind: "success";
|
|
107
|
-
} | {
|
|
108
|
-
kind: "failed";
|
|
109
|
-
error: string;
|
|
110
|
-
} | {
|
|
111
|
-
kind: "canceled";
|
|
112
|
-
}, [convex_values0.VObject<{
|
|
113
|
-
kind: "pending";
|
|
114
|
-
}, {
|
|
115
|
-
kind: convex_values0.VLiteral<"pending", "required">;
|
|
116
|
-
}, "required", "kind">, convex_values0.VObject<{
|
|
117
|
-
kind: "inProgress";
|
|
118
|
-
}, {
|
|
119
|
-
kind: convex_values0.VLiteral<"inProgress", "required">;
|
|
120
|
-
}, "required", "kind">, convex_values0.VObject<{
|
|
121
|
-
kind: "success";
|
|
122
|
-
}, {
|
|
123
|
-
kind: convex_values0.VLiteral<"success", "required">;
|
|
124
|
-
}, "required", "kind">, convex_values0.VObject<{
|
|
125
|
-
kind: "failed";
|
|
126
|
-
error: string;
|
|
127
|
-
}, {
|
|
128
|
-
kind: convex_values0.VLiteral<"failed", "required">;
|
|
129
|
-
error: convex_values0.VString<string, "required">;
|
|
130
|
-
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
131
|
-
kind: "canceled";
|
|
132
|
-
}, {
|
|
133
|
-
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
134
|
-
}, "required", "kind">], "required", "kind" | "error">;
|
|
135
|
-
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
136
|
-
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>;
|
|
137
|
-
declare const storageTable: Table<"_storage", Schema.Struct<{
|
|
138
|
-
sha256: typeof Schema.String;
|
|
139
|
-
size: typeof Schema.Number;
|
|
140
|
-
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
141
|
-
exact: true;
|
|
142
|
-
}>;
|
|
143
|
-
}>, convex_values0.VObject<{
|
|
144
|
-
sha256: string;
|
|
145
|
-
size: number;
|
|
146
|
-
contentType?: string;
|
|
147
|
-
}, {
|
|
148
|
-
sha256: convex_values0.VString<string, "required">;
|
|
149
|
-
size: convex_values0.VFloat64<number, "required">;
|
|
150
|
-
contentType: convex_values0.VString<string | undefined, "optional">;
|
|
151
|
-
}, "required", "sha256" | "size" | "contentType">, {}, {}, {}>;
|
|
152
|
-
declare const systemTables: {
|
|
153
|
-
readonly _scheduled_functions: Table<"_scheduled_functions", Schema.Struct<{
|
|
57
|
+
export type TablesRecord<Tables extends AnyWithProps> = {
|
|
58
|
+
readonly [TableName_ in Name<Tables>]: WithName<Tables, TableName_>;
|
|
59
|
+
};
|
|
60
|
+
export declare const make: <const TableSchema_ extends Schema.Schema.AnyNoContext>(lazyFields: () => TableSchema_) => UnnamedTable<TableSchema_, TableSchemaToTableValidator<TableSchema_>>;
|
|
61
|
+
export declare const scheduledFunctionsTable: Table<"_scheduled_functions", Schema.Struct<{
|
|
154
62
|
name: typeof Schema.String;
|
|
155
63
|
args: Schema.Array$<typeof Schema.Any>;
|
|
156
64
|
scheduledTime: typeof Schema.Number;
|
|
157
65
|
completedTime: Schema.optionalWith<typeof Schema.Number, {
|
|
158
|
-
|
|
66
|
+
exact: true;
|
|
159
67
|
}>;
|
|
160
68
|
state: Schema.Union<[Schema.Struct<{
|
|
161
|
-
|
|
69
|
+
kind: Schema.Literal<["pending"]>;
|
|
162
70
|
}>, Schema.Struct<{
|
|
163
|
-
|
|
71
|
+
kind: Schema.Literal<["inProgress"]>;
|
|
164
72
|
}>, Schema.Struct<{
|
|
165
|
-
|
|
73
|
+
kind: Schema.Literal<["success"]>;
|
|
166
74
|
}>, Schema.Struct<{
|
|
167
|
-
|
|
168
|
-
|
|
75
|
+
kind: Schema.Literal<["failed"]>;
|
|
76
|
+
error: typeof Schema.String;
|
|
169
77
|
}>, Schema.Struct<{
|
|
170
|
-
|
|
78
|
+
kind: Schema.Literal<["canceled"]>;
|
|
171
79
|
}>]>;
|
|
172
|
-
|
|
80
|
+
}>, import("convex/values").VObject<{
|
|
173
81
|
name: string;
|
|
174
82
|
args: any[];
|
|
175
83
|
scheduledTime: number;
|
|
176
84
|
state: {
|
|
177
|
-
|
|
85
|
+
kind: "pending";
|
|
178
86
|
} | {
|
|
179
|
-
|
|
87
|
+
kind: "inProgress";
|
|
180
88
|
} | {
|
|
181
|
-
|
|
89
|
+
kind: "success";
|
|
182
90
|
} | {
|
|
183
|
-
|
|
184
|
-
|
|
91
|
+
kind: "failed";
|
|
92
|
+
error: string;
|
|
185
93
|
} | {
|
|
186
|
-
|
|
94
|
+
kind: "canceled";
|
|
187
95
|
};
|
|
188
96
|
completedTime?: number;
|
|
189
|
-
|
|
190
|
-
name:
|
|
191
|
-
args:
|
|
192
|
-
scheduledTime:
|
|
193
|
-
state:
|
|
194
|
-
|
|
97
|
+
}, {
|
|
98
|
+
name: import("convex/values").VString<string, "required">;
|
|
99
|
+
args: import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">;
|
|
100
|
+
scheduledTime: import("convex/values").VFloat64<number, "required">;
|
|
101
|
+
state: import("convex/values").VUnion<{
|
|
102
|
+
kind: "pending";
|
|
195
103
|
} | {
|
|
196
|
-
|
|
104
|
+
kind: "inProgress";
|
|
197
105
|
} | {
|
|
198
|
-
|
|
106
|
+
kind: "success";
|
|
199
107
|
} | {
|
|
200
|
-
|
|
201
|
-
|
|
108
|
+
kind: "failed";
|
|
109
|
+
error: string;
|
|
202
110
|
} | {
|
|
203
|
-
|
|
204
|
-
}, [
|
|
205
|
-
|
|
111
|
+
kind: "canceled";
|
|
112
|
+
}, [import("convex/values").VObject<{
|
|
113
|
+
kind: "pending";
|
|
206
114
|
}, {
|
|
207
|
-
|
|
208
|
-
}, "required", "kind">,
|
|
209
|
-
|
|
115
|
+
kind: import("convex/values").VLiteral<"pending", "required">;
|
|
116
|
+
}, "required", "kind">, import("convex/values").VObject<{
|
|
117
|
+
kind: "inProgress";
|
|
210
118
|
}, {
|
|
211
|
-
|
|
212
|
-
}, "required", "kind">,
|
|
213
|
-
|
|
119
|
+
kind: import("convex/values").VLiteral<"inProgress", "required">;
|
|
120
|
+
}, "required", "kind">, import("convex/values").VObject<{
|
|
121
|
+
kind: "success";
|
|
214
122
|
}, {
|
|
215
|
-
|
|
216
|
-
}, "required", "kind">,
|
|
217
|
-
|
|
218
|
-
|
|
123
|
+
kind: import("convex/values").VLiteral<"success", "required">;
|
|
124
|
+
}, "required", "kind">, import("convex/values").VObject<{
|
|
125
|
+
kind: "failed";
|
|
126
|
+
error: string;
|
|
219
127
|
}, {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}, "required", "kind" | "error">,
|
|
223
|
-
|
|
128
|
+
kind: import("convex/values").VLiteral<"failed", "required">;
|
|
129
|
+
error: import("convex/values").VString<string, "required">;
|
|
130
|
+
}, "required", "kind" | "error">, import("convex/values").VObject<{
|
|
131
|
+
kind: "canceled";
|
|
224
132
|
}, {
|
|
225
|
-
|
|
133
|
+
kind: import("convex/values").VLiteral<"canceled", "required">;
|
|
226
134
|
}, "required", "kind">], "required", "kind" | "error">;
|
|
227
|
-
completedTime:
|
|
228
|
-
|
|
229
|
-
|
|
135
|
+
completedTime: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
136
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>;
|
|
137
|
+
export declare const storageTable: Table<"_storage", Schema.Struct<{
|
|
230
138
|
sha256: typeof Schema.String;
|
|
231
139
|
size: typeof Schema.Number;
|
|
232
140
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
233
|
-
|
|
141
|
+
exact: true;
|
|
234
142
|
}>;
|
|
235
|
-
|
|
143
|
+
}>, import("convex/values").VObject<{
|
|
236
144
|
sha256: string;
|
|
237
145
|
size: number;
|
|
238
146
|
contentType?: string;
|
|
239
|
-
|
|
240
|
-
sha256:
|
|
241
|
-
size:
|
|
242
|
-
contentType:
|
|
243
|
-
|
|
147
|
+
}, {
|
|
148
|
+
sha256: import("convex/values").VString<string, "required">;
|
|
149
|
+
size: import("convex/values").VFloat64<number, "required">;
|
|
150
|
+
contentType: import("convex/values").VString<string | undefined, "optional">;
|
|
151
|
+
}, "required", "sha256" | "size" | "contentType">, {}, {}, {}>;
|
|
152
|
+
export declare const systemTables: {
|
|
153
|
+
readonly _scheduled_functions: Table<"_scheduled_functions", Schema.Struct<{
|
|
154
|
+
name: typeof Schema.String;
|
|
155
|
+
args: Schema.Array$<typeof Schema.Any>;
|
|
156
|
+
scheduledTime: typeof Schema.Number;
|
|
157
|
+
completedTime: Schema.optionalWith<typeof Schema.Number, {
|
|
158
|
+
exact: true;
|
|
159
|
+
}>;
|
|
160
|
+
state: Schema.Union<[Schema.Struct<{
|
|
161
|
+
kind: Schema.Literal<["pending"]>;
|
|
162
|
+
}>, Schema.Struct<{
|
|
163
|
+
kind: Schema.Literal<["inProgress"]>;
|
|
164
|
+
}>, Schema.Struct<{
|
|
165
|
+
kind: Schema.Literal<["success"]>;
|
|
166
|
+
}>, Schema.Struct<{
|
|
167
|
+
kind: Schema.Literal<["failed"]>;
|
|
168
|
+
error: typeof Schema.String;
|
|
169
|
+
}>, Schema.Struct<{
|
|
170
|
+
kind: Schema.Literal<["canceled"]>;
|
|
171
|
+
}>]>;
|
|
172
|
+
}>, import("convex/values").VObject<{
|
|
173
|
+
name: string;
|
|
174
|
+
args: any[];
|
|
175
|
+
scheduledTime: number;
|
|
176
|
+
state: {
|
|
177
|
+
kind: "pending";
|
|
178
|
+
} | {
|
|
179
|
+
kind: "inProgress";
|
|
180
|
+
} | {
|
|
181
|
+
kind: "success";
|
|
182
|
+
} | {
|
|
183
|
+
kind: "failed";
|
|
184
|
+
error: string;
|
|
185
|
+
} | {
|
|
186
|
+
kind: "canceled";
|
|
187
|
+
};
|
|
188
|
+
completedTime?: number;
|
|
189
|
+
}, {
|
|
190
|
+
name: import("convex/values").VString<string, "required">;
|
|
191
|
+
args: import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">;
|
|
192
|
+
scheduledTime: import("convex/values").VFloat64<number, "required">;
|
|
193
|
+
state: import("convex/values").VUnion<{
|
|
194
|
+
kind: "pending";
|
|
195
|
+
} | {
|
|
196
|
+
kind: "inProgress";
|
|
197
|
+
} | {
|
|
198
|
+
kind: "success";
|
|
199
|
+
} | {
|
|
200
|
+
kind: "failed";
|
|
201
|
+
error: string;
|
|
202
|
+
} | {
|
|
203
|
+
kind: "canceled";
|
|
204
|
+
}, [import("convex/values").VObject<{
|
|
205
|
+
kind: "pending";
|
|
206
|
+
}, {
|
|
207
|
+
kind: import("convex/values").VLiteral<"pending", "required">;
|
|
208
|
+
}, "required", "kind">, import("convex/values").VObject<{
|
|
209
|
+
kind: "inProgress";
|
|
210
|
+
}, {
|
|
211
|
+
kind: import("convex/values").VLiteral<"inProgress", "required">;
|
|
212
|
+
}, "required", "kind">, import("convex/values").VObject<{
|
|
213
|
+
kind: "success";
|
|
214
|
+
}, {
|
|
215
|
+
kind: import("convex/values").VLiteral<"success", "required">;
|
|
216
|
+
}, "required", "kind">, import("convex/values").VObject<{
|
|
217
|
+
kind: "failed";
|
|
218
|
+
error: string;
|
|
219
|
+
}, {
|
|
220
|
+
kind: import("convex/values").VLiteral<"failed", "required">;
|
|
221
|
+
error: import("convex/values").VString<string, "required">;
|
|
222
|
+
}, "required", "kind" | "error">, import("convex/values").VObject<{
|
|
223
|
+
kind: "canceled";
|
|
224
|
+
}, {
|
|
225
|
+
kind: import("convex/values").VLiteral<"canceled", "required">;
|
|
226
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
227
|
+
completedTime: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
228
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>;
|
|
229
|
+
readonly _storage: Table<"_storage", Schema.Struct<{
|
|
230
|
+
sha256: typeof Schema.String;
|
|
231
|
+
size: typeof Schema.Number;
|
|
232
|
+
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
233
|
+
exact: true;
|
|
234
|
+
}>;
|
|
235
|
+
}>, import("convex/values").VObject<{
|
|
236
|
+
sha256: string;
|
|
237
|
+
size: number;
|
|
238
|
+
contentType?: string;
|
|
239
|
+
}, {
|
|
240
|
+
sha256: import("convex/values").VString<string, "required">;
|
|
241
|
+
size: import("convex/values").VFloat64<number, "required">;
|
|
242
|
+
contentType: import("convex/values").VString<string | undefined, "optional">;
|
|
243
|
+
}, "required", "sha256" | "size" | "contentType">, {}, {}, {}>;
|
|
244
244
|
};
|
|
245
|
-
type SystemTables = typeof scheduledFunctionsTable | typeof storageTable;
|
|
245
|
+
export type SystemTables = typeof scheduledFunctionsTable | typeof storageTable;
|
|
246
246
|
/**
|
|
247
247
|
* Extract all of the index field paths within a {@link Validator}.
|
|
248
248
|
*
|
|
249
249
|
* This is used within {@link defineTable}.
|
|
250
250
|
* @public
|
|
251
251
|
*/
|
|
252
|
-
type ExtractFieldPaths<T extends Validator<any, any, any>> = T["fieldPaths"] | keyof
|
|
253
|
-
|
|
254
|
-
export { Any, AnyWithProps, Doc, Fields, Indexes, Name, SearchIndexes, SystemTables, Table, TableSchema, TableValidator, Table_d_exports, TablesRecord, TypeId, UnnamedAny, UnnamedAnyWithProps, UnnamedTable, VectorIndexes, WithName, isTable, isUnnamedTable, make, scheduledFunctionsTable, storageTable, systemTables };
|
|
252
|
+
type ExtractFieldPaths<T extends Validator<any, any, any>> = T["fieldPaths"] | keyof ConvexSystemFields;
|
|
253
|
+
export {};
|
|
255
254
|
//# sourceMappingURL=Table.d.ts.map
|
package/dist/Table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../src/Table.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,YAAY,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAEL,KAAK,YAAY,IAAI,kBAAkB,EACvC,KAAK,MAAM,EACX,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACvB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,g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,GAAG,EAAE,GAAG,CAAC,IAIvD,CAAC,CAAC,YAAY,CAAC,GAAG,MAAM,kBAAkB,CAAC"}
|
package/dist/Table.js
CHANGED
|
@@ -3,7 +3,7 @@ import { compileTableSchema } from "./SchemaToValidator.js";
|
|
|
3
3
|
import { defineTable } from "convex/server";
|
|
4
4
|
import * as Schema from "effect/Schema";
|
|
5
5
|
import * as Predicate from "effect/Predicate";
|
|
6
|
-
import * as SystemFields
|
|
6
|
+
import * as SystemFields from "@confect/core/SystemFields";
|
|
7
7
|
import * as Lazy from "@confect/core/Lazy";
|
|
8
8
|
|
|
9
9
|
//#region src/Table.ts
|
|
@@ -26,7 +26,7 @@ const makeBound = (tableName, state) => {
|
|
|
26
26
|
indexes: state.indexes
|
|
27
27
|
};
|
|
28
28
|
Lazy.defineProperty(bound, "Fields", () => state.lazyFields());
|
|
29
|
-
Lazy.defineProperty(bound, "Doc", () => SystemFields
|
|
29
|
+
Lazy.defineProperty(bound, "Doc", () => SystemFields.extendWithSystemFields(tableName, bound.Fields));
|
|
30
30
|
Lazy.defineProperty(bound, "tableDefinition", () => {
|
|
31
31
|
const fields = bound.Fields;
|
|
32
32
|
let definition = defineTable(compileTableSchema(fields));
|