@geonosis/document 0.9.1 → 0.9.3
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 +18 -0
- package/dist/core/actor.cjs +48 -0
- package/dist/core/actor.d.cts +3 -0
- package/dist/core/actor.d.ts +3 -0
- package/dist/core/actor.js +8 -0
- package/dist/core/body-version.cjs +75 -0
- package/dist/core/body-version.d.cts +25 -0
- package/dist/core/body-version.d.ts +25 -0
- package/dist/core/body-version.js +35 -0
- package/dist/core/canonical.cjs +55 -0
- package/dist/core/canonical.d.cts +5 -0
- package/dist/core/canonical.d.ts +5 -0
- package/dist/core/canonical.js +15 -0
- package/dist/core/document.cjs +136 -0
- package/dist/core/document.d.cts +137 -0
- package/dist/core/document.d.ts +137 -0
- package/dist/core/document.js +96 -0
- package/dist/core/entities.cjs +68 -0
- package/dist/core/entities.d.cts +42 -0
- package/dist/core/entities.d.ts +42 -0
- package/dist/core/entities.js +28 -0
- package/dist/core/naming.cjs +56 -0
- package/dist/core/naming.d.cts +17 -0
- package/dist/core/naming.d.ts +17 -0
- package/dist/core/naming.js +16 -0
- package/dist/core/numbering.cjs +41 -0
- package/dist/core/numbering.d.cts +12 -0
- package/dist/core/numbering.d.ts +12 -0
- package/dist/core/numbering.js +0 -0
- package/dist/core/ports.cjs +41 -0
- package/dist/core/ports.d.cts +29 -0
- package/dist/core/ports.d.ts +29 -0
- package/dist/core/ports.js +0 -0
- package/dist/core/schema.cjs +173 -0
- package/dist/core/schema.d.cts +33 -0
- package/dist/core/schema.d.ts +33 -0
- package/dist/{chunk-NA3DLROL.js → core/schema.js} +34 -72
- package/dist/core/status.cjs +47 -0
- package/dist/core/status.d.cts +8 -0
- package/dist/core/status.d.ts +8 -0
- package/dist/core/status.js +7 -0
- package/dist/index.cjs +70 -398
- package/dist/index.d.cts +11 -32
- package/dist/index.d.ts +11 -32
- package/dist/index.js +13 -25
- package/dist/store/ddl.cjs +209 -0
- package/dist/store/ddl.d.cts +56 -0
- package/dist/store/ddl.d.ts +56 -0
- package/dist/store/ddl.js +175 -0
- package/dist/store/hash.cjs +50 -0
- package/dist/store/hash.d.cts +2 -0
- package/dist/store/hash.d.ts +2 -0
- package/dist/store/hash.js +10 -0
- package/dist/store/store.cjs +606 -0
- package/dist/store/store.d.cts +169 -0
- package/dist/store/store.d.ts +169 -0
- package/dist/store/store.js +578 -0
- package/dist/store.cjs +51 -1358
- package/dist/store.d.cts +4 -277
- package/dist/store.d.ts +4 -277
- package/dist/store.js +17 -1114
- package/dist/surface/table.cjs +326 -0
- package/dist/surface/table.d.cts +70 -0
- package/dist/surface/table.d.ts +70 -0
- package/dist/surface/table.js +296 -0
- package/dist/workflows/document-workflows.cjs +314 -0
- package/dist/workflows/document-workflows.d.cts +112 -0
- package/dist/workflows/document-workflows.d.ts +112 -0
- package/dist/workflows/document-workflows.js +281 -0
- package/dist/workflows/effects.cjs +41 -0
- package/dist/workflows/effects.d.cts +68 -0
- package/dist/workflows/effects.d.ts +68 -0
- package/dist/workflows/effects.js +0 -0
- package/dist/workflows/ports.cjs +50 -0
- package/dist/workflows/ports.d.cts +72 -0
- package/dist/workflows/ports.d.ts +72 -0
- package/dist/workflows/ports.js +10 -0
- package/dist/workflows/refusals.cjs +80 -0
- package/dist/workflows/refusals.d.cts +59 -0
- package/dist/workflows/refusals.d.ts +59 -0
- package/dist/workflows/refusals.js +40 -0
- package/dist/workflows.cjs +52 -504
- package/dist/workflows.d.cts +4 -310
- package/dist/workflows.d.ts +4 -310
- package/dist/workflows.js +21 -368
- package/package.json +8 -8
- package/dist/chunk-A6ZU4QU3.js +0 -171
- package/dist/entities-DTNJMeVf.d.cts +0 -205
- package/dist/entities-DTNJMeVf.d.ts +0 -205
- package/dist/ports-C_OfflMQ.d.cts +0 -66
- package/dist/ports-C_OfflMQ.d.ts +0 -66
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { type AggregateRow, type DrizzleHandle, type EntityListing, type EntityPage, type EntityUndo, type Projection, type Query, type SessionSeam } from '@geonosis/db';
|
|
2
|
+
import { type DocumentBodyMigrations } from '../core/body-version.cjs';
|
|
3
|
+
import { type DocumentHead, type DocumentInstance } from '../core/document.cjs';
|
|
4
|
+
import { type AnyDocumentEntity, documentEntities } from '../core/entities.cjs';
|
|
5
|
+
import type { ArchivePort } from '../core/ports.cjs';
|
|
6
|
+
import { type DocumentColumns, type DocumentRevisionsOptions, type HeadField } from './ddl.cjs';
|
|
7
|
+
type StorableDocumentEntity = AnyDocumentEntity & {
|
|
8
|
+
bodyVersion?: number;
|
|
9
|
+
headOf: (body: never) => DocumentHead;
|
|
10
|
+
migrations?: DocumentBodyMigrations<Record<string, unknown>>;
|
|
11
|
+
prepare: (body: never) => unknown;
|
|
12
|
+
};
|
|
13
|
+
type Registry<Map extends Readonly<Record<string, StorableDocumentEntity>>> = ReturnType<typeof documentEntities<Map>>;
|
|
14
|
+
export type DocumentStoreOptions<Map extends Readonly<Record<string, StorableDocumentEntity>>, Key extends string, Handle extends DrizzleHandle = DrizzleHandle> = {
|
|
15
|
+
archive?: ArchivePort;
|
|
16
|
+
columns?: DocumentColumns;
|
|
17
|
+
registry: Registry<Map>;
|
|
18
|
+
revisions?: DocumentRevisionsOptions | false;
|
|
19
|
+
schema?: string;
|
|
20
|
+
seam: SessionSeam<Key, Handle>;
|
|
21
|
+
table?: string;
|
|
22
|
+
};
|
|
23
|
+
/** What a head projection may carry: the business head, the entity, the number, and the record's clocks. */
|
|
24
|
+
export type HeadColumn = HeadField | 'createdAt' | 'entity' | 'number' | 'updatedAt';
|
|
25
|
+
export type DocumentSortColumn = HeadField | 'createdAt' | 'number' | 'updatedAt';
|
|
26
|
+
export type HeadsOrder = {
|
|
27
|
+
column: DocumentSortColumn | 'entity';
|
|
28
|
+
direction?: 'asc' | 'desc';
|
|
29
|
+
};
|
|
30
|
+
export type HeadsWhere = Readonly<Partial<Record<HeadField | 'createdAt' | 'updatedAt', unknown | readonly unknown[] | {
|
|
31
|
+
from: unknown;
|
|
32
|
+
to: unknown;
|
|
33
|
+
}>>>;
|
|
34
|
+
export type HeadRow<Columns extends readonly HeadColumn[]> = Pick<DocumentHead & {
|
|
35
|
+
createdAt: number;
|
|
36
|
+
entity: string;
|
|
37
|
+
number: string;
|
|
38
|
+
updatedAt: number;
|
|
39
|
+
}, Columns[number]>;
|
|
40
|
+
export type HeadsArgs<Columns extends readonly HeadColumn[] = readonly HeadColumn[]> = {
|
|
41
|
+
columns: Columns;
|
|
42
|
+
entity?: string | readonly string[];
|
|
43
|
+
order: readonly HeadsOrder[];
|
|
44
|
+
where?: HeadsWhere;
|
|
45
|
+
};
|
|
46
|
+
export type AggregateMeasure = 'count' | 'sum:total';
|
|
47
|
+
export type AggregateBy = HeadField | 'entity' | {
|
|
48
|
+
bucket: 'day' | 'month' | 'week';
|
|
49
|
+
of: 'dueDate' | 'issueDate';
|
|
50
|
+
};
|
|
51
|
+
export type AggregateWhere = HeadsWhere;
|
|
52
|
+
export type { AggregateRow };
|
|
53
|
+
export type AggregateArgs = {
|
|
54
|
+
by?: AggregateBy;
|
|
55
|
+
entities?: readonly string[];
|
|
56
|
+
entity?: string;
|
|
57
|
+
measures: readonly AggregateMeasure[];
|
|
58
|
+
where?: AggregateWhere;
|
|
59
|
+
};
|
|
60
|
+
type Item = DocumentInstance<string, unknown>;
|
|
61
|
+
export type DocumentKind = 'committed' | 'reinstated' | 'retired';
|
|
62
|
+
export type CommitOutput = {
|
|
63
|
+
archived?: undefined;
|
|
64
|
+
committed: false;
|
|
65
|
+
hash?: undefined;
|
|
66
|
+
lineage: number;
|
|
67
|
+
previous?: undefined;
|
|
68
|
+
ref: string;
|
|
69
|
+
version: number;
|
|
70
|
+
} | {
|
|
71
|
+
archived?: boolean;
|
|
72
|
+
committed: true;
|
|
73
|
+
hash: string;
|
|
74
|
+
lineage: number;
|
|
75
|
+
previous: {
|
|
76
|
+
hash: string;
|
|
77
|
+
version: number;
|
|
78
|
+
} | null;
|
|
79
|
+
ref: string;
|
|
80
|
+
version: number;
|
|
81
|
+
};
|
|
82
|
+
export type RetireOutput = {
|
|
83
|
+
hash: string;
|
|
84
|
+
lineage: number;
|
|
85
|
+
ref: string;
|
|
86
|
+
version: number;
|
|
87
|
+
};
|
|
88
|
+
export type ReinstateOutput = {
|
|
89
|
+
hash: string;
|
|
90
|
+
lineage: number;
|
|
91
|
+
ref: string;
|
|
92
|
+
version: number;
|
|
93
|
+
};
|
|
94
|
+
export type HistoryEntry = {
|
|
95
|
+
actor: string;
|
|
96
|
+
at: number;
|
|
97
|
+
body: unknown;
|
|
98
|
+
hash: string;
|
|
99
|
+
kind: DocumentKind;
|
|
100
|
+
reason: string | null;
|
|
101
|
+
version: number;
|
|
102
|
+
};
|
|
103
|
+
export type VerifyResult = {
|
|
104
|
+
brokenAt: number;
|
|
105
|
+
expected: string;
|
|
106
|
+
found: string;
|
|
107
|
+
ok: false;
|
|
108
|
+
} | {
|
|
109
|
+
ok: true;
|
|
110
|
+
versions: number;
|
|
111
|
+
};
|
|
112
|
+
type DocumentEntityStore<Key extends string, Handle extends DrizzleHandle> = Pick<Projection<unknown, Item, Key, 'ref', Handle, string, string>, 'get' | 'listAll'> & {
|
|
113
|
+
asOf: Query<Readonly<Record<Key, string>> & {
|
|
114
|
+
at: number;
|
|
115
|
+
ref: string;
|
|
116
|
+
}, Item | null, Handle>;
|
|
117
|
+
at: Query<Readonly<Record<Key, string>> & {
|
|
118
|
+
ref: string;
|
|
119
|
+
version: number;
|
|
120
|
+
}, Item | null, Handle>;
|
|
121
|
+
commit: Query<Readonly<Record<Key, string>> & {
|
|
122
|
+
actor: string;
|
|
123
|
+
body: unknown;
|
|
124
|
+
reason?: string;
|
|
125
|
+
ref: string;
|
|
126
|
+
}, CommitOutput, Handle>;
|
|
127
|
+
history: Query<Readonly<Record<Key, string>> & {
|
|
128
|
+
lineage?: number;
|
|
129
|
+
ref: string;
|
|
130
|
+
}, HistoryEntry[], Handle>;
|
|
131
|
+
list: Query<Readonly<Record<Key, string>> & EntityListing<DocumentSortColumn, HeadField>, EntityPage<Item>, Handle>;
|
|
132
|
+
reinstate: Query<Readonly<Record<Key, string>> & {
|
|
133
|
+
actor: string;
|
|
134
|
+
reason?: string;
|
|
135
|
+
ref: string;
|
|
136
|
+
}, ReinstateOutput, Handle>;
|
|
137
|
+
retire: Query<Readonly<Record<Key, string>> & {
|
|
138
|
+
actor: string;
|
|
139
|
+
reason?: string;
|
|
140
|
+
ref: string;
|
|
141
|
+
}, RetireOutput, Handle>;
|
|
142
|
+
succeed: Query<Readonly<Record<Key, string>> & {
|
|
143
|
+
actor: string;
|
|
144
|
+
body: unknown;
|
|
145
|
+
reason?: string;
|
|
146
|
+
ref: string;
|
|
147
|
+
}, CommitOutput, Handle>;
|
|
148
|
+
undos: {
|
|
149
|
+
commit: EntityUndo<CommitOutput, Handle>;
|
|
150
|
+
retire: EntityUndo<RetireOutput, Handle>;
|
|
151
|
+
};
|
|
152
|
+
verify: Query<Readonly<Record<Key, string>> & {
|
|
153
|
+
lineage?: number;
|
|
154
|
+
ref: string;
|
|
155
|
+
}, VerifyResult, Handle>;
|
|
156
|
+
};
|
|
157
|
+
export type DocumentStore<Map extends Readonly<Record<string, StorableDocumentEntity>>, Key extends string, Handle extends DrizzleHandle = DrizzleHandle> = {
|
|
158
|
+
[Name in keyof Map & string]: DocumentEntityStore<Key, Handle>;
|
|
159
|
+
} & {
|
|
160
|
+
aggregate: Query<Readonly<Record<Key, string>> & AggregateArgs, AggregateRow[], Handle>;
|
|
161
|
+
heads: <Columns extends readonly HeadColumn[]>(handle: Handle, params: Readonly<Record<Key, string>> & HeadsArgs<Columns>) => Promise<HeadRow<Columns>[]>;
|
|
162
|
+
rebuild: Query<Readonly<Record<Key, string>> & {
|
|
163
|
+
entity?: string;
|
|
164
|
+
}, {
|
|
165
|
+
rows: number;
|
|
166
|
+
}, Handle>;
|
|
167
|
+
};
|
|
168
|
+
export declare const documentStore: <Map extends Readonly<Record<string, StorableDocumentEntity>>, Key extends string, Handle extends DrizzleHandle = DrizzleHandle>(options: DocumentStoreOptions<Map, Key, Handle>) => DocumentStore<Map, Key, Handle>;
|
|
169
|
+
export type { DrizzleHandle as DocumentStoreHandle };
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { type AggregateRow, type DrizzleHandle, type EntityListing, type EntityPage, type EntityUndo, type Projection, type Query, type SessionSeam } from '@geonosis/db';
|
|
2
|
+
import { type DocumentBodyMigrations } from '../core/body-version.js';
|
|
3
|
+
import { type DocumentHead, type DocumentInstance } from '../core/document.js';
|
|
4
|
+
import { type AnyDocumentEntity, documentEntities } from '../core/entities.js';
|
|
5
|
+
import type { ArchivePort } from '../core/ports.js';
|
|
6
|
+
import { type DocumentColumns, type DocumentRevisionsOptions, type HeadField } from './ddl.js';
|
|
7
|
+
type StorableDocumentEntity = AnyDocumentEntity & {
|
|
8
|
+
bodyVersion?: number;
|
|
9
|
+
headOf: (body: never) => DocumentHead;
|
|
10
|
+
migrations?: DocumentBodyMigrations<Record<string, unknown>>;
|
|
11
|
+
prepare: (body: never) => unknown;
|
|
12
|
+
};
|
|
13
|
+
type Registry<Map extends Readonly<Record<string, StorableDocumentEntity>>> = ReturnType<typeof documentEntities<Map>>;
|
|
14
|
+
export type DocumentStoreOptions<Map extends Readonly<Record<string, StorableDocumentEntity>>, Key extends string, Handle extends DrizzleHandle = DrizzleHandle> = {
|
|
15
|
+
archive?: ArchivePort;
|
|
16
|
+
columns?: DocumentColumns;
|
|
17
|
+
registry: Registry<Map>;
|
|
18
|
+
revisions?: DocumentRevisionsOptions | false;
|
|
19
|
+
schema?: string;
|
|
20
|
+
seam: SessionSeam<Key, Handle>;
|
|
21
|
+
table?: string;
|
|
22
|
+
};
|
|
23
|
+
/** What a head projection may carry: the business head, the entity, the number, and the record's clocks. */
|
|
24
|
+
export type HeadColumn = HeadField | 'createdAt' | 'entity' | 'number' | 'updatedAt';
|
|
25
|
+
export type DocumentSortColumn = HeadField | 'createdAt' | 'number' | 'updatedAt';
|
|
26
|
+
export type HeadsOrder = {
|
|
27
|
+
column: DocumentSortColumn | 'entity';
|
|
28
|
+
direction?: 'asc' | 'desc';
|
|
29
|
+
};
|
|
30
|
+
export type HeadsWhere = Readonly<Partial<Record<HeadField | 'createdAt' | 'updatedAt', unknown | readonly unknown[] | {
|
|
31
|
+
from: unknown;
|
|
32
|
+
to: unknown;
|
|
33
|
+
}>>>;
|
|
34
|
+
export type HeadRow<Columns extends readonly HeadColumn[]> = Pick<DocumentHead & {
|
|
35
|
+
createdAt: number;
|
|
36
|
+
entity: string;
|
|
37
|
+
number: string;
|
|
38
|
+
updatedAt: number;
|
|
39
|
+
}, Columns[number]>;
|
|
40
|
+
export type HeadsArgs<Columns extends readonly HeadColumn[] = readonly HeadColumn[]> = {
|
|
41
|
+
columns: Columns;
|
|
42
|
+
entity?: string | readonly string[];
|
|
43
|
+
order: readonly HeadsOrder[];
|
|
44
|
+
where?: HeadsWhere;
|
|
45
|
+
};
|
|
46
|
+
export type AggregateMeasure = 'count' | 'sum:total';
|
|
47
|
+
export type AggregateBy = HeadField | 'entity' | {
|
|
48
|
+
bucket: 'day' | 'month' | 'week';
|
|
49
|
+
of: 'dueDate' | 'issueDate';
|
|
50
|
+
};
|
|
51
|
+
export type AggregateWhere = HeadsWhere;
|
|
52
|
+
export type { AggregateRow };
|
|
53
|
+
export type AggregateArgs = {
|
|
54
|
+
by?: AggregateBy;
|
|
55
|
+
entities?: readonly string[];
|
|
56
|
+
entity?: string;
|
|
57
|
+
measures: readonly AggregateMeasure[];
|
|
58
|
+
where?: AggregateWhere;
|
|
59
|
+
};
|
|
60
|
+
type Item = DocumentInstance<string, unknown>;
|
|
61
|
+
export type DocumentKind = 'committed' | 'reinstated' | 'retired';
|
|
62
|
+
export type CommitOutput = {
|
|
63
|
+
archived?: undefined;
|
|
64
|
+
committed: false;
|
|
65
|
+
hash?: undefined;
|
|
66
|
+
lineage: number;
|
|
67
|
+
previous?: undefined;
|
|
68
|
+
ref: string;
|
|
69
|
+
version: number;
|
|
70
|
+
} | {
|
|
71
|
+
archived?: boolean;
|
|
72
|
+
committed: true;
|
|
73
|
+
hash: string;
|
|
74
|
+
lineage: number;
|
|
75
|
+
previous: {
|
|
76
|
+
hash: string;
|
|
77
|
+
version: number;
|
|
78
|
+
} | null;
|
|
79
|
+
ref: string;
|
|
80
|
+
version: number;
|
|
81
|
+
};
|
|
82
|
+
export type RetireOutput = {
|
|
83
|
+
hash: string;
|
|
84
|
+
lineage: number;
|
|
85
|
+
ref: string;
|
|
86
|
+
version: number;
|
|
87
|
+
};
|
|
88
|
+
export type ReinstateOutput = {
|
|
89
|
+
hash: string;
|
|
90
|
+
lineage: number;
|
|
91
|
+
ref: string;
|
|
92
|
+
version: number;
|
|
93
|
+
};
|
|
94
|
+
export type HistoryEntry = {
|
|
95
|
+
actor: string;
|
|
96
|
+
at: number;
|
|
97
|
+
body: unknown;
|
|
98
|
+
hash: string;
|
|
99
|
+
kind: DocumentKind;
|
|
100
|
+
reason: string | null;
|
|
101
|
+
version: number;
|
|
102
|
+
};
|
|
103
|
+
export type VerifyResult = {
|
|
104
|
+
brokenAt: number;
|
|
105
|
+
expected: string;
|
|
106
|
+
found: string;
|
|
107
|
+
ok: false;
|
|
108
|
+
} | {
|
|
109
|
+
ok: true;
|
|
110
|
+
versions: number;
|
|
111
|
+
};
|
|
112
|
+
type DocumentEntityStore<Key extends string, Handle extends DrizzleHandle> = Pick<Projection<unknown, Item, Key, 'ref', Handle, string, string>, 'get' | 'listAll'> & {
|
|
113
|
+
asOf: Query<Readonly<Record<Key, string>> & {
|
|
114
|
+
at: number;
|
|
115
|
+
ref: string;
|
|
116
|
+
}, Item | null, Handle>;
|
|
117
|
+
at: Query<Readonly<Record<Key, string>> & {
|
|
118
|
+
ref: string;
|
|
119
|
+
version: number;
|
|
120
|
+
}, Item | null, Handle>;
|
|
121
|
+
commit: Query<Readonly<Record<Key, string>> & {
|
|
122
|
+
actor: string;
|
|
123
|
+
body: unknown;
|
|
124
|
+
reason?: string;
|
|
125
|
+
ref: string;
|
|
126
|
+
}, CommitOutput, Handle>;
|
|
127
|
+
history: Query<Readonly<Record<Key, string>> & {
|
|
128
|
+
lineage?: number;
|
|
129
|
+
ref: string;
|
|
130
|
+
}, HistoryEntry[], Handle>;
|
|
131
|
+
list: Query<Readonly<Record<Key, string>> & EntityListing<DocumentSortColumn, HeadField>, EntityPage<Item>, Handle>;
|
|
132
|
+
reinstate: Query<Readonly<Record<Key, string>> & {
|
|
133
|
+
actor: string;
|
|
134
|
+
reason?: string;
|
|
135
|
+
ref: string;
|
|
136
|
+
}, ReinstateOutput, Handle>;
|
|
137
|
+
retire: Query<Readonly<Record<Key, string>> & {
|
|
138
|
+
actor: string;
|
|
139
|
+
reason?: string;
|
|
140
|
+
ref: string;
|
|
141
|
+
}, RetireOutput, Handle>;
|
|
142
|
+
succeed: Query<Readonly<Record<Key, string>> & {
|
|
143
|
+
actor: string;
|
|
144
|
+
body: unknown;
|
|
145
|
+
reason?: string;
|
|
146
|
+
ref: string;
|
|
147
|
+
}, CommitOutput, Handle>;
|
|
148
|
+
undos: {
|
|
149
|
+
commit: EntityUndo<CommitOutput, Handle>;
|
|
150
|
+
retire: EntityUndo<RetireOutput, Handle>;
|
|
151
|
+
};
|
|
152
|
+
verify: Query<Readonly<Record<Key, string>> & {
|
|
153
|
+
lineage?: number;
|
|
154
|
+
ref: string;
|
|
155
|
+
}, VerifyResult, Handle>;
|
|
156
|
+
};
|
|
157
|
+
export type DocumentStore<Map extends Readonly<Record<string, StorableDocumentEntity>>, Key extends string, Handle extends DrizzleHandle = DrizzleHandle> = {
|
|
158
|
+
[Name in keyof Map & string]: DocumentEntityStore<Key, Handle>;
|
|
159
|
+
} & {
|
|
160
|
+
aggregate: Query<Readonly<Record<Key, string>> & AggregateArgs, AggregateRow[], Handle>;
|
|
161
|
+
heads: <Columns extends readonly HeadColumn[]>(handle: Handle, params: Readonly<Record<Key, string>> & HeadsArgs<Columns>) => Promise<HeadRow<Columns>[]>;
|
|
162
|
+
rebuild: Query<Readonly<Record<Key, string>> & {
|
|
163
|
+
entity?: string;
|
|
164
|
+
}, {
|
|
165
|
+
rows: number;
|
|
166
|
+
}, Handle>;
|
|
167
|
+
};
|
|
168
|
+
export declare const documentStore: <Map extends Readonly<Record<string, StorableDocumentEntity>>, Key extends string, Handle extends DrizzleHandle = DrizzleHandle>(options: DocumentStoreOptions<Map, Key, Handle>) => DocumentStore<Map, Key, Handle>;
|
|
169
|
+
export type { DrizzleHandle as DocumentStoreHandle };
|