@routier/core 0.2.0 → 0.3.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/LICENSE +21 -0
- package/{readme.md → README.md} +2 -2
- package/dist/assertions/index.cjs +191 -0
- package/dist/assertions/index.cjs.map +1 -0
- package/dist/assertions/index.d.ts +30 -0
- package/dist/assertions/index.js +94 -30
- package/dist/assertions/index.js.map +1 -1
- package/dist/capabilities/index.cjs +820 -0
- package/dist/capabilities/index.cjs.map +1 -0
- package/dist/capabilities/index.js +580 -545
- package/dist/capabilities/index.js.map +1 -1
- package/dist/codegen/handlers/CloneHandlerBuilder.d.ts +10 -1
- package/dist/codegen/handlers/SetHandlerBuilder.d.ts +4 -0
- package/dist/codegen/handlers/clone/CloneArrayHandler.d.ts +3 -0
- package/dist/codegen/handlers/clone/CloneDateHandler.d.ts +13 -0
- package/dist/codegen/handlers/clone/CloneValueHandler.d.ts +16 -0
- package/dist/codegen/handlers/compare/CompareComputedHandler.d.ts +10 -0
- package/dist/codegen/handlers/compare/CompareFunctionHandler.d.ts +10 -0
- package/dist/codegen/handlers/deserialize/DeserializeArrayHandler.d.ts +14 -0
- package/dist/codegen/handlers/enableChangeTracking/EnableChangeTrackingArrayHandler.d.ts +11 -0
- package/dist/codegen/handlers/enrichment/EnrichmentArrayHandler.d.ts +11 -0
- package/dist/codegen/handlers/freeze/FreezeArrayHandler.d.ts +6 -0
- package/dist/codegen/handlers/hash/HashArrayHandler.d.ts +10 -0
- package/dist/codegen/handlers/hash/HashFileHandler.d.ts +24 -0
- package/dist/codegen/handlers/hash/HashObjectHandler.d.ts +10 -0
- package/dist/codegen/handlers/hash/HashTransformHandler.d.ts +23 -0
- package/dist/codegen/handlers/index.d.ts +1 -0
- package/dist/codegen/handlers/merge/MergeArrayHandler.d.ts +20 -0
- package/dist/codegen/handlers/merge/MergeObjectHandler.d.ts +10 -0
- package/dist/codegen/handlers/serialize/SerializeArrayHandler.d.ts +19 -0
- package/dist/codegen/handlers/serialize/SerializeComputedHandler.d.ts +6 -0
- package/dist/codegen/handlers/set/SetComplexHandler.d.ts +6 -0
- package/dist/codegen/handlers/strip/StripComputedHandler.d.ts +10 -0
- package/dist/codegen/handlers/strip/StripFunctionHandler.d.ts +9 -0
- package/dist/codegen/handlers/types.d.ts +55 -1
- package/dist/codegen/index.cjs +618 -0
- package/dist/codegen/index.cjs.map +1 -0
- package/dist/codegen/index.js +100 -127
- package/dist/codegen/index.js.map +1 -1
- package/dist/collections/Changes.d.ts +2 -2
- package/dist/collections/MemoryDataCollection.d.ts +15 -1
- package/dist/collections/TagCollection.d.ts +7 -8
- package/dist/collections/index.cjs +702 -0
- package/dist/collections/index.cjs.map +1 -0
- package/dist/collections/index.js +282 -276
- package/dist/collections/index.js.map +1 -1
- package/dist/errors/OptimisticConcurrencyError.d.ts +18 -0
- package/dist/errors/PluginDestroyedError.d.ts +10 -0
- package/dist/errors/index.cjs +132 -0
- package/dist/errors/index.cjs.map +1 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +61 -19
- package/dist/errors/index.js.map +1 -1
- package/dist/expressions/constants.d.ts +2 -0
- package/dist/expressions/evaluate.d.ts +53 -0
- package/dist/expressions/index.cjs +2087 -0
- package/dist/expressions/index.cjs.map +1 -0
- package/dist/expressions/index.d.ts +2 -0
- package/dist/expressions/index.js +1784 -772
- package/dist/expressions/index.js.map +1 -1
- package/dist/expressions/parser.d.ts +19 -0
- package/dist/expressions/types.d.ts +87 -2
- package/dist/expressions/utils.d.ts +1 -2
- package/dist/index.cjs +13925 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +12094 -7049
- package/dist/index.js.map +1 -1
- package/dist/performance/index.cjs +217 -0
- package/dist/performance/index.cjs.map +1 -0
- package/dist/performance/index.js +126 -50
- package/dist/performance/index.js.map +1 -1
- package/dist/pipeline/index.cjs +576 -0
- package/dist/pipeline/index.cjs.map +1 -0
- package/dist/pipeline/index.js +229 -156
- package/dist/pipeline/index.js.map +1 -1
- package/dist/plugins/BatchingDbPlugin.d.ts +139 -0
- package/dist/plugins/CacheDbPlugin.d.ts +70 -0
- package/dist/plugins/ConcurrencyDbPlugin.d.ts +78 -0
- package/dist/plugins/EphemeralDataPlugin.d.ts +57 -1
- package/dist/plugins/RetryDbPlugin.d.ts +77 -0
- package/dist/plugins/index.cjs +6104 -0
- package/dist/plugins/index.cjs.map +1 -0
- package/dist/plugins/index.d.ts +5 -1
- package/dist/plugins/index.js +5572 -1491
- package/dist/plugins/index.js.map +1 -1
- package/dist/plugins/query/QueryOptionsCollection.d.ts +22 -0
- package/dist/plugins/query/index.d.ts +2 -0
- package/dist/plugins/query/join.d.ts +210 -0
- package/dist/plugins/query/similarity.d.ts +38 -0
- package/dist/plugins/query/types.d.ts +64 -1
- package/dist/plugins/translators/DataTranslator.d.ts +28 -0
- package/dist/plugins/translators/JsonTranslator.d.ts +27 -0
- package/dist/plugins/translators/SqlTranslator.d.ts +45 -0
- package/dist/plugins/translators/TranslatedArrayValue.d.ts +3 -1
- package/dist/plugins/translators/TranslatedGroupValue.d.ts +3 -1
- package/dist/plugins/translators/TranslatedSingleValue.d.ts +3 -1
- package/dist/plugins/translators/TupleTranslator.d.ts +45 -0
- package/dist/plugins/translators/index.d.ts +1 -0
- package/dist/plugins/translators/types.d.ts +8 -1
- package/dist/plugins/types.d.ts +87 -11
- package/dist/plugins/wire/handler.d.ts +122 -0
- package/dist/plugins/wire/index.d.ts +4 -0
- package/dist/plugins/wire/persist.d.ts +43 -0
- package/dist/plugins/wire/query.d.ts +49 -0
- package/dist/plugins/wire/types.d.ts +123 -0
- package/dist/results/Result.d.ts +2 -2
- package/dist/results/index.cjs +174 -0
- package/dist/results/index.cjs.map +1 -0
- package/dist/results/index.js +29 -44
- package/dist/results/index.js.map +1 -1
- package/dist/schema/PropertyInfo.d.ts +35 -2
- package/dist/schema/SchemaDefinition.d.ts +51 -1
- package/dist/schema/builder.d.ts +35 -1
- package/dist/schema/communication/broadcast.d.ts +17 -1
- package/dist/schema/index.cjs +6911 -0
- package/dist/schema/index.cjs.map +1 -0
- package/dist/schema/index.d.ts +4 -0
- package/dist/schema/index.js +5781 -3973
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/property/base/SchemaBase.d.ts +50 -2
- package/dist/schema/property/modifiers/SchemaDeserialize.d.ts +5 -1
- package/dist/schema/property/modifiers/SchemaForeignKey.d.ts +15 -0
- package/dist/schema/property/modifiers/SchemaKey.d.ts +2 -0
- package/dist/schema/property/modifiers/SchemaNullable.d.ts +15 -1
- package/dist/schema/property/modifiers/SchemaOptional.d.ts +22 -1
- package/dist/schema/property/modifiers/SchemaSearchable.d.ts +34 -0
- package/dist/schema/property/modifiers/SchemaTag.d.ts +27 -0
- package/dist/schema/property/modifiers/SchemaTracked.d.ts +5 -1
- package/dist/schema/property/modifiers/index.d.ts +3 -0
- package/dist/schema/property/types/SchemaArray.d.ts +2 -0
- package/dist/schema/property/types/SchemaBoolean.d.ts +2 -0
- package/dist/schema/property/types/SchemaDate.d.ts +2 -0
- package/dist/schema/property/types/SchemaFile.d.ts +60 -0
- package/dist/schema/property/types/SchemaNumber.d.ts +5 -1
- package/dist/schema/property/types/SchemaObject.d.ts +2 -0
- package/dist/schema/property/types/SchemaString.d.ts +25 -1
- package/dist/schema/property/types/SchemaVector.d.ts +61 -0
- package/dist/schema/property/types/index.d.ts +2 -0
- package/dist/schema/table/SchemaTransform.d.ts +40 -0
- package/dist/schema/table/index.d.ts +1 -0
- package/dist/schema/types.d.ts +200 -32
- package/dist/schema/utils/propertyKind.d.ts +4 -0
- package/dist/schema/utils/standardJsonSchema.d.ts +90 -0
- package/dist/types/index.cjs +23 -0
- package/dist/types/index.cjs.map +1 -0
- package/dist/types/index.js +0 -14
- package/dist/types/index.js.map +1 -1
- package/dist/utilities/functions.d.ts +1 -1
- package/dist/utilities/index.cjs +982 -0
- package/dist/utilities/index.cjs.map +1 -0
- package/dist/utilities/index.js +590 -321
- package/dist/utilities/index.js.map +1 -1
- package/dist/utilities/logger.d.ts +48 -0
- package/package.json +152 -98
- package/dist/collections/Changes.test.d.ts +0 -1
- package/dist/collections/MemoryDataCollection.test.d.ts +0 -1
- package/dist/collections/TagCollection.test.d.ts +0 -1
- package/dist/expressions/parser.test.d.ts +0 -1
- package/dist/expressions/utils.test.d.ts +0 -1
- package/dist/pipeline/SyncronousQueue.test.d.ts +0 -1
- package/dist/pipeline/WorkPipeline.test.d.ts +0 -1
- package/dist/plugins/EphemeralDataPlugin.test.d.ts +0 -1
- package/dist/plugins/query/QueryOptionsCollection.test.d.ts +0 -1
- package/dist/plugins/replication/OptimisticReplicationDbPlugin.d.ts +0 -23
- package/dist/plugins/replication/ReplicationDbPlugin.d.ts +0 -22
- package/dist/plugins/replication/index.d.ts +0 -3
- package/dist/plugins/replication/types.d.ts +0 -5
- package/dist/plugins/translators/JsonTranslator.test.d.ts +0 -1
- package/dist/schema/PropertyInfo.test.d.ts +0 -1
- package/dist/schema/schemaGeneration.test.d.ts +0 -1
- package/dist/schema/testSchemas.test.d.ts +0 -314
- package/dist/utilities/arrays.test.d.ts +0 -1
- package/dist/utilities/dates.test.d.ts +0 -1
- package/dist/utilities/strings.test.d.ts +0 -1
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { PluginEventCallbackPartialResult, PluginEventCallbackResult } from '../../results';
|
|
2
|
-
import { DbPluginBulkPersistEvent, DbPluginEvent, DbPluginQueryEvent, IDbPlugin, ReplicationPluginOptions } from '../types';
|
|
3
|
-
import { BulkPersistResult } from '../../collections';
|
|
4
|
-
import { ITranslatedValue } from '../translators';
|
|
5
|
-
export declare class ReplicationDbPlugin implements IDbPlugin {
|
|
6
|
-
plugins: ReplicationPluginOptions;
|
|
7
|
-
/**
|
|
8
|
-
* Creates a new DbPluginReplicator that coordinates operations between a source database and its replicas.
|
|
9
|
-
*
|
|
10
|
-
* @param plugins Configuration object containing the source, read (optional), and replica database plugins
|
|
11
|
-
* @param plugins.source The primary database plugin that will receive all operations first
|
|
12
|
-
* @param plugins.read Optional read-optimized plugin (typically a memory plugin) used for fast queries
|
|
13
|
-
* @param plugins.replicas Additional database plugins that will replicate operations from the source
|
|
14
|
-
*/
|
|
15
|
-
constructor(plugins: ReplicationPluginOptions);
|
|
16
|
-
/**
|
|
17
|
-
* Will query the read plugin if there is one, otherwise the source plugin will be queried
|
|
18
|
-
*/
|
|
19
|
-
query<TEntity extends {}, TShape extends any = TEntity>(event: DbPluginQueryEvent<TEntity, TShape>, done: PluginEventCallbackResult<ITranslatedValue<TShape>>): void;
|
|
20
|
-
destroy(event: DbPluginEvent, done: PluginEventCallbackResult<never>): void;
|
|
21
|
-
bulkPersist(event: DbPluginBulkPersistEvent, done: PluginEventCallbackPartialResult<BulkPersistResult>): void;
|
|
22
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IDbPlugin, ReplicationPluginOptions, OptimisticReplicationPluginOptions } from '../types';
|
|
2
|
-
export type IDbPluginReplicator = IDbPlugin & {
|
|
3
|
-
plugins: ReplicationPluginOptions | OptimisticReplicationPluginOptions;
|
|
4
|
-
};
|
|
5
|
-
export type HydrationStatus = "pending" | "fulfilled" | "rejected";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
declare const __brand: unique symbol;
|
|
2
|
-
export type UUID = string & {
|
|
3
|
-
readonly [__brand]: 'UUID';
|
|
4
|
-
};
|
|
5
|
-
export declare const optionalObjectSchemaFactory: () => import("./types").CompiledSchema<{
|
|
6
|
-
id: import(".").SchemaKey<string, "key">;
|
|
7
|
-
user: import(".").SchemaOptional<{
|
|
8
|
-
name: import(".").SchemaString<string, never>;
|
|
9
|
-
}, "optional">;
|
|
10
|
-
content: import(".").SchemaString<string, never>;
|
|
11
|
-
replies: import(".").SchemaDefault<number, never, "default">;
|
|
12
|
-
createdAt: import(".").SchemaDeserialize<Date, "default" | "deserialize">;
|
|
13
|
-
}>;
|
|
14
|
-
export declare const usersSchemaOneFactory: () => import("./types").CompiledSchema<{
|
|
15
|
-
documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
|
|
16
|
-
} & {
|
|
17
|
-
id: import(".").SchemaDefault<UUID, {
|
|
18
|
-
uuid: () => string;
|
|
19
|
-
}, "key" | "default">;
|
|
20
|
-
firstName: import(".").SchemaString<string, never>;
|
|
21
|
-
lastName: import(".").SchemaString<string, never>;
|
|
22
|
-
age: import(".").SchemaNumber<number, never>;
|
|
23
|
-
createdDate: import(".").SchemaDefault<Date, never, "default">;
|
|
24
|
-
address: import(".").SchemaObject<{
|
|
25
|
-
street: import(".").SchemaString<string, never>;
|
|
26
|
-
city: import(".").SchemaString<string, never>;
|
|
27
|
-
state: import(".").SchemaString<string, never>;
|
|
28
|
-
zip: import(".").SchemaString<string, never>;
|
|
29
|
-
}, never>;
|
|
30
|
-
}>;
|
|
31
|
-
export declare const usersSchemaTwoFactory: () => import("./types").CompiledSchema<{
|
|
32
|
-
documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
|
|
33
|
-
} & {
|
|
34
|
-
id: import(".").SchemaDefault<string, {
|
|
35
|
-
uuid: () => string;
|
|
36
|
-
}, "key" | "default">;
|
|
37
|
-
firstName: import(".").SchemaString<string, never>;
|
|
38
|
-
lastName: import(".").SchemaString<string, never>;
|
|
39
|
-
age: import(".").SchemaNumber<1, never>;
|
|
40
|
-
createdDate: import(".").SchemaDefault<Date, never, "default">;
|
|
41
|
-
address: import(".").SchemaObject<{
|
|
42
|
-
street: import(".").SchemaString<string, never>;
|
|
43
|
-
city: import(".").SchemaString<string, never>;
|
|
44
|
-
state: import(".").SchemaObject<{
|
|
45
|
-
id: import(".").SchemaString<string, never>;
|
|
46
|
-
name: import(".").SchemaString<string, never>;
|
|
47
|
-
abbreviation: import(".").SchemaString<string, never>;
|
|
48
|
-
}, never>;
|
|
49
|
-
zip: import(".").SchemaString<string, never>;
|
|
50
|
-
}, never>;
|
|
51
|
-
}>;
|
|
52
|
-
export declare const oneComputedPropertySchemaFactory: () => import("./types").CompiledSchema<{
|
|
53
|
-
documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
|
|
54
|
-
} & {
|
|
55
|
-
id: import(".").SchemaIdentity<string, "key" | "identity">;
|
|
56
|
-
title: import(".").SchemaString<string, never>;
|
|
57
|
-
authorId: import(".").SchemaString<string, never>;
|
|
58
|
-
content: import(".").SchemaString<string, never>;
|
|
59
|
-
tags: import(".").SchemaArray<import(".").SchemaString<string, never>, never>;
|
|
60
|
-
isPublished: import(".").SchemaBoolean<boolean, never>;
|
|
61
|
-
publishedAt: import(".").SchemaDate<Date, never>;
|
|
62
|
-
}>;
|
|
63
|
-
export declare const oneDefaultFunctionSchemaFactory: () => import("./types").CompiledSchema<{
|
|
64
|
-
id: import(".").SchemaKey<string, "key">;
|
|
65
|
-
content: import(".").SchemaString<string, never>;
|
|
66
|
-
replies: import(".").SchemaDefault<number, never, "default">;
|
|
67
|
-
createdAt: import(".").SchemaDeserialize<Date, "default" | "deserialize">;
|
|
68
|
-
}>;
|
|
69
|
-
export declare const oneSerializeDeserializeSchemaFactory: () => import("./types").CompiledSchema<{
|
|
70
|
-
id: import(".").SchemaKey<string, "key">;
|
|
71
|
-
content: import(".").SchemaString<string, never>;
|
|
72
|
-
replies: import(".").SchemaDefault<number, never, "default">;
|
|
73
|
-
createdAt: import(".").SchemaDeserialize<Date, "deserialize">;
|
|
74
|
-
}>;
|
|
75
|
-
export declare const oneDefaultWithInjectionSchemaFactory: () => import("./types").CompiledSchema<{
|
|
76
|
-
_id: import(".").SchemaIdentity<string, "key" | "identity">;
|
|
77
|
-
_rev: import(".").SchemaIdentity<string, "identity" | "readonly">;
|
|
78
|
-
name: import(".").SchemaDefault<string, {
|
|
79
|
-
name: string;
|
|
80
|
-
}, "default">;
|
|
81
|
-
location: import(".").SchemaOptional<string, "optional">;
|
|
82
|
-
startTime: import(".").SchemaDate<Date, never>;
|
|
83
|
-
endTime: import(".").SchemaOptional<Date, "optional">;
|
|
84
|
-
description: import(".").SchemaOptional<string, "optional">;
|
|
85
|
-
isOnline: import(".").SchemaBoolean<boolean, never>;
|
|
86
|
-
}>;
|
|
87
|
-
export declare const remap: () => import("./types").CompiledSchema<{
|
|
88
|
-
id: import(".").SchemaIdentity<string, "key" | "identity" | "readonly">;
|
|
89
|
-
_rev: import(".").SchemaIdentity<string, "identity" | "readonly">;
|
|
90
|
-
name: import(".").SchemaDefault<string, {
|
|
91
|
-
name: string;
|
|
92
|
-
}, "default">;
|
|
93
|
-
location: import(".").SchemaOptional<string, "optional">;
|
|
94
|
-
startTime: import(".").SchemaDeserialize<Date, "deserialize" | "serialize">;
|
|
95
|
-
endTime: import(".").SchemaOptional<Date, "optional">;
|
|
96
|
-
description: import(".").SchemaOptional<string, "optional">;
|
|
97
|
-
isOnline: import(".").SchemaBoolean<boolean, never>;
|
|
98
|
-
}>;
|
|
99
|
-
export declare const computedId: () => import("./types").CompiledSchema<{
|
|
100
|
-
id: import(".").SchemaKey<import("./types").CollectionName, "key" | "computed">;
|
|
101
|
-
} & {
|
|
102
|
-
name: import(".").SchemaDefault<string, {
|
|
103
|
-
name: string;
|
|
104
|
-
}, "default">;
|
|
105
|
-
location: import(".").SchemaOptional<string, "optional">;
|
|
106
|
-
startTime: import(".").SchemaDeserialize<Date, "deserialize" | "serialize">;
|
|
107
|
-
endTime: import(".").SchemaOptional<Date, "optional">;
|
|
108
|
-
description: import(".").SchemaOptional<string, "optional">;
|
|
109
|
-
isOnline: import(".").SchemaBoolean<boolean, never>;
|
|
110
|
-
}>;
|
|
111
|
-
export declare const computedAndFunctionPropertiesSchemaFactory: () => import("./types").CompiledSchema<{
|
|
112
|
-
hasCollectionName: import(".").SchemaTracked<boolean, "computed">;
|
|
113
|
-
wasRestocked: import("./table").SchemaFunction<boolean, {
|
|
114
|
-
isNullOrEmpty: (value: unknown) => boolean;
|
|
115
|
-
}, "unmapped">;
|
|
116
|
-
} & {
|
|
117
|
-
sku: import(".").SchemaIdentity<string, "key" | "identity">;
|
|
118
|
-
name: import(".").SchemaString<string, never>;
|
|
119
|
-
quantity: import(".").SchemaNumber<number, never>;
|
|
120
|
-
warehouseLocation: import(".").SchemaOptional<string, "optional">;
|
|
121
|
-
restockDate: import(".").SchemaOptional<Date, "optional">;
|
|
122
|
-
discontinued: import(".").SchemaBoolean<boolean, never>;
|
|
123
|
-
}>;
|
|
124
|
-
export declare const deeplyNestedSchemaFactory: () => import("./types").CompiledSchema<{
|
|
125
|
-
documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
|
|
126
|
-
} & {
|
|
127
|
-
id: import(".").SchemaDefault<string, {
|
|
128
|
-
uuid: () => string;
|
|
129
|
-
}, "key" | "default">;
|
|
130
|
-
firstName: import(".").SchemaString<string, never>;
|
|
131
|
-
lastName: import(".").SchemaString<string, never>;
|
|
132
|
-
age: import(".").SchemaNumber<number, never>;
|
|
133
|
-
createdDate: import(".").SchemaDefault<Date, never, "default">;
|
|
134
|
-
address: import(".").SchemaObject<{
|
|
135
|
-
street: import(".").SchemaString<string, never>;
|
|
136
|
-
city: import(".").SchemaString<string, never>;
|
|
137
|
-
state: import(".").SchemaObject<{
|
|
138
|
-
id: import(".").SchemaString<string, never>;
|
|
139
|
-
name: import(".").SchemaString<string, never>;
|
|
140
|
-
abbreviation: import(".").SchemaString<string, never>;
|
|
141
|
-
}, never>;
|
|
142
|
-
zip: import(".").SchemaString<string, never>;
|
|
143
|
-
}, never>;
|
|
144
|
-
}>;
|
|
145
|
-
export declare const complexOneSchemaFactory: () => import("./types").CompiledSchema<{
|
|
146
|
-
documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
|
|
147
|
-
} & {
|
|
148
|
-
id: import(".").SchemaDefault<string, {
|
|
149
|
-
uuid: () => string;
|
|
150
|
-
}, "key" | "default">;
|
|
151
|
-
firstName: import(".").SchemaString<string, never>;
|
|
152
|
-
lastName: import(".").SchemaString<string, never>;
|
|
153
|
-
age: import(".").SchemaNumber<number, never>;
|
|
154
|
-
createdDate: import(".").SchemaDefault<Date, never, "default">;
|
|
155
|
-
address: import(".").SchemaObject<{
|
|
156
|
-
street: import(".").SchemaString<string, never>;
|
|
157
|
-
city: import(".").SchemaString<string, never>;
|
|
158
|
-
state: import(".").SchemaString<string, never>;
|
|
159
|
-
zip: import(".").SchemaString<string, never>;
|
|
160
|
-
}, never>;
|
|
161
|
-
}>;
|
|
162
|
-
export declare const complexTwoSchemaFactory: () => import("./types").CompiledSchema<{
|
|
163
|
-
documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
|
|
164
|
-
} & {
|
|
165
|
-
fullName: import("./table").SchemaComputed<string, never, "unmapped" | "computed">;
|
|
166
|
-
age: import("./table").SchemaComputed<number, never, "unmapped" | "computed">;
|
|
167
|
-
formattedAddress: import("./table").SchemaComputed<string, never, "unmapped" | "computed">;
|
|
168
|
-
isActive: import("./table").SchemaComputed<boolean, never, "unmapped" | "computed">;
|
|
169
|
-
getDisplayName: import("./table").SchemaFunction<(format: "short" | "full") => string, never, "unmapped">;
|
|
170
|
-
documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
|
|
171
|
-
} & {
|
|
172
|
-
_id: import(".").SchemaIdentity<string, "key" | "identity">;
|
|
173
|
-
_rev: import(".").SchemaIdentity<string, "identity" | "readonly">;
|
|
174
|
-
firstName: import(".").SchemaString<string, never>;
|
|
175
|
-
lastName: import(".").SchemaString<string, never>;
|
|
176
|
-
email: import(".").SchemaString<string, never>;
|
|
177
|
-
dateOfBirth: import(".").SchemaDate<Date, never>;
|
|
178
|
-
address: import(".").SchemaObject<{
|
|
179
|
-
street: import(".").SchemaString<string, never>;
|
|
180
|
-
city: import(".").SchemaString<string, never>;
|
|
181
|
-
state: import(".").SchemaString<string, never>;
|
|
182
|
-
zipCode: import(".").SchemaString<string, never>;
|
|
183
|
-
country: import(".").SchemaString<string, never>;
|
|
184
|
-
}, never>;
|
|
185
|
-
preferences: import(".").SchemaObject<{
|
|
186
|
-
theme: import(".").SchemaString<"light" | "dark", never>;
|
|
187
|
-
notifications: import(".").SchemaBoolean<boolean, never>;
|
|
188
|
-
language: import(".").SchemaString<string, never>;
|
|
189
|
-
}, never>;
|
|
190
|
-
lastLoginAt: import(".").SchemaOptional<Date, "optional">;
|
|
191
|
-
createdAt: import(".").SchemaDefault<Date, never, "default">;
|
|
192
|
-
}>;
|
|
193
|
-
export declare const factories: ((() => import("./types").CompiledSchema<{
|
|
194
|
-
documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
|
|
195
|
-
} & {
|
|
196
|
-
id: import(".").SchemaDefault<UUID, {
|
|
197
|
-
uuid: () => string;
|
|
198
|
-
}, "key" | "default">;
|
|
199
|
-
firstName: import(".").SchemaString<string, never>;
|
|
200
|
-
lastName: import(".").SchemaString<string, never>;
|
|
201
|
-
age: import(".").SchemaNumber<number, never>;
|
|
202
|
-
createdDate: import(".").SchemaDefault<Date, never, "default">;
|
|
203
|
-
address: import(".").SchemaObject<{
|
|
204
|
-
street: import(".").SchemaString<string, never>;
|
|
205
|
-
city: import(".").SchemaString<string, never>;
|
|
206
|
-
state: import(".").SchemaString<string, never>;
|
|
207
|
-
zip: import(".").SchemaString<string, never>;
|
|
208
|
-
}, never>;
|
|
209
|
-
}>) | (() => import("./types").CompiledSchema<{
|
|
210
|
-
documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
|
|
211
|
-
} & {
|
|
212
|
-
id: import(".").SchemaIdentity<string, "key" | "identity">;
|
|
213
|
-
title: import(".").SchemaString<string, never>;
|
|
214
|
-
authorId: import(".").SchemaString<string, never>;
|
|
215
|
-
content: import(".").SchemaString<string, never>;
|
|
216
|
-
tags: import(".").SchemaArray<import(".").SchemaString<string, never>, never>;
|
|
217
|
-
isPublished: import(".").SchemaBoolean<boolean, never>;
|
|
218
|
-
publishedAt: import(".").SchemaDate<Date, never>;
|
|
219
|
-
}>) | (() => import("./types").CompiledSchema<{
|
|
220
|
-
id: import(".").SchemaKey<string, "key">;
|
|
221
|
-
content: import(".").SchemaString<string, never>;
|
|
222
|
-
replies: import(".").SchemaDefault<number, never, "default">;
|
|
223
|
-
createdAt: import(".").SchemaDeserialize<Date, "default" | "deserialize">;
|
|
224
|
-
}>) | (() => import("./types").CompiledSchema<{
|
|
225
|
-
_id: import(".").SchemaIdentity<string, "key" | "identity">;
|
|
226
|
-
_rev: import(".").SchemaIdentity<string, "identity" | "readonly">;
|
|
227
|
-
name: import(".").SchemaDefault<string, {
|
|
228
|
-
name: string;
|
|
229
|
-
}, "default">;
|
|
230
|
-
location: import(".").SchemaOptional<string, "optional">;
|
|
231
|
-
startTime: import(".").SchemaDate<Date, never>;
|
|
232
|
-
endTime: import(".").SchemaOptional<Date, "optional">;
|
|
233
|
-
description: import(".").SchemaOptional<string, "optional">;
|
|
234
|
-
isOnline: import(".").SchemaBoolean<boolean, never>;
|
|
235
|
-
}>) | (() => import("./types").CompiledSchema<{
|
|
236
|
-
hasCollectionName: import(".").SchemaTracked<boolean, "computed">;
|
|
237
|
-
wasRestocked: import("./table").SchemaFunction<boolean, {
|
|
238
|
-
isNullOrEmpty: (value: unknown) => boolean;
|
|
239
|
-
}, "unmapped">;
|
|
240
|
-
} & {
|
|
241
|
-
sku: import(".").SchemaIdentity<string, "key" | "identity">;
|
|
242
|
-
name: import(".").SchemaString<string, never>;
|
|
243
|
-
quantity: import(".").SchemaNumber<number, never>;
|
|
244
|
-
warehouseLocation: import(".").SchemaOptional<string, "optional">;
|
|
245
|
-
restockDate: import(".").SchemaOptional<Date, "optional">;
|
|
246
|
-
discontinued: import(".").SchemaBoolean<boolean, never>;
|
|
247
|
-
}>) | (() => import("./types").CompiledSchema<{
|
|
248
|
-
documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
|
|
249
|
-
} & {
|
|
250
|
-
id: import(".").SchemaDefault<string, {
|
|
251
|
-
uuid: () => string;
|
|
252
|
-
}, "key" | "default">;
|
|
253
|
-
firstName: import(".").SchemaString<string, never>;
|
|
254
|
-
lastName: import(".").SchemaString<string, never>;
|
|
255
|
-
age: import(".").SchemaNumber<number, never>;
|
|
256
|
-
createdDate: import(".").SchemaDefault<Date, never, "default">;
|
|
257
|
-
address: import(".").SchemaObject<{
|
|
258
|
-
street: import(".").SchemaString<string, never>;
|
|
259
|
-
city: import(".").SchemaString<string, never>;
|
|
260
|
-
state: import(".").SchemaObject<{
|
|
261
|
-
id: import(".").SchemaString<string, never>;
|
|
262
|
-
name: import(".").SchemaString<string, never>;
|
|
263
|
-
abbreviation: import(".").SchemaString<string, never>;
|
|
264
|
-
}, never>;
|
|
265
|
-
zip: import(".").SchemaString<string, never>;
|
|
266
|
-
}, never>;
|
|
267
|
-
}>) | (() => import("./types").CompiledSchema<{
|
|
268
|
-
documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
|
|
269
|
-
} & {
|
|
270
|
-
id: import(".").SchemaDefault<string, {
|
|
271
|
-
uuid: () => string;
|
|
272
|
-
}, "key" | "default">;
|
|
273
|
-
firstName: import(".").SchemaString<string, never>;
|
|
274
|
-
lastName: import(".").SchemaString<string, never>;
|
|
275
|
-
age: import(".").SchemaNumber<number, never>;
|
|
276
|
-
createdDate: import(".").SchemaDefault<Date, never, "default">;
|
|
277
|
-
address: import(".").SchemaObject<{
|
|
278
|
-
street: import(".").SchemaString<string, never>;
|
|
279
|
-
city: import(".").SchemaString<string, never>;
|
|
280
|
-
state: import(".").SchemaString<string, never>;
|
|
281
|
-
zip: import(".").SchemaString<string, never>;
|
|
282
|
-
}, never>;
|
|
283
|
-
}>) | (() => import("./types").CompiledSchema<{
|
|
284
|
-
documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
|
|
285
|
-
} & {
|
|
286
|
-
fullName: import("./table").SchemaComputed<string, never, "unmapped" | "computed">;
|
|
287
|
-
age: import("./table").SchemaComputed<number, never, "unmapped" | "computed">;
|
|
288
|
-
formattedAddress: import("./table").SchemaComputed<string, never, "unmapped" | "computed">;
|
|
289
|
-
isActive: import("./table").SchemaComputed<boolean, never, "unmapped" | "computed">;
|
|
290
|
-
getDisplayName: import("./table").SchemaFunction<(format: "short" | "full") => string, never, "unmapped">;
|
|
291
|
-
documentType: import(".").SchemaTracked<import("./types").CollectionName, "computed">;
|
|
292
|
-
} & {
|
|
293
|
-
_id: import(".").SchemaIdentity<string, "key" | "identity">;
|
|
294
|
-
_rev: import(".").SchemaIdentity<string, "identity" | "readonly">;
|
|
295
|
-
firstName: import(".").SchemaString<string, never>;
|
|
296
|
-
lastName: import(".").SchemaString<string, never>;
|
|
297
|
-
email: import(".").SchemaString<string, never>;
|
|
298
|
-
dateOfBirth: import(".").SchemaDate<Date, never>;
|
|
299
|
-
address: import(".").SchemaObject<{
|
|
300
|
-
street: import(".").SchemaString<string, never>;
|
|
301
|
-
city: import(".").SchemaString<string, never>;
|
|
302
|
-
state: import(".").SchemaString<string, never>;
|
|
303
|
-
zipCode: import(".").SchemaString<string, never>;
|
|
304
|
-
country: import(".").SchemaString<string, never>;
|
|
305
|
-
}, never>;
|
|
306
|
-
preferences: import(".").SchemaObject<{
|
|
307
|
-
theme: import(".").SchemaString<"light" | "dark", never>;
|
|
308
|
-
notifications: import(".").SchemaBoolean<boolean, never>;
|
|
309
|
-
language: import(".").SchemaString<string, never>;
|
|
310
|
-
}, never>;
|
|
311
|
-
lastLoginAt: import(".").SchemaOptional<Date, "optional">;
|
|
312
|
-
createdAt: import(".").SchemaDefault<Date, never, "default">;
|
|
313
|
-
}>))[];
|
|
314
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|