dynamodb-reactive 0.7.2 → 0.7.4
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/core.d.cts +156 -3
- package/dist/core.d.ts +156 -3
- package/dist/index.d.cts +3 -156
- package/dist/index.d.ts +3 -156
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/package.json +8 -8
package/dist/core.d.cts
CHANGED
|
@@ -1,4 +1,157 @@
|
|
|
1
|
-
export { FilterConditionSchema, PendingDeliverySchema, QueryMetadataSchema, SYSTEM_TABLE_PROTOCOL_VERSION, SystemSchemas, SystemTableNames } from './index.cjs';
|
|
2
1
|
export { D as DynamoTable } from './table-BijJ73pX.js';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { a as FilterCondition } from './types-LMLk8JVC.js';
|
|
3
|
+
export { A as AnyDynamoTable, C as ConnectionEntry, b as DependencyEntry, D as DynamoTableConfig, F as FieldRef, I as IndexDefinition, J as JsonPatch, P as PendingDelivery, c as QueryEntry, Q as QueryMetadata, S as SupportedSchema } from './types-LMLk8JVC.js';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
|
|
6
|
+
declare const FilterConditionSchema: z.ZodType<FilterCondition>;
|
|
7
|
+
declare const QueryMetadataSchema: z.ZodObject<{
|
|
8
|
+
planVersion: z.ZodLiteral<1>;
|
|
9
|
+
tableName: z.ZodString;
|
|
10
|
+
indexName: z.ZodOptional<z.ZodString>;
|
|
11
|
+
indexPkField: z.ZodOptional<z.ZodString>;
|
|
12
|
+
indexSkField: z.ZodOptional<z.ZodString>;
|
|
13
|
+
filterConditions: z.ZodArray<z.ZodType<FilterCondition, unknown, z.core.$ZodTypeInternals<FilterCondition, unknown>>>;
|
|
14
|
+
sortField: z.ZodOptional<z.ZodString>;
|
|
15
|
+
sortOrder: z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
asc: "asc";
|
|
17
|
+
desc: "desc";
|
|
18
|
+
}>>;
|
|
19
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
}, z.core.$strict>;
|
|
21
|
+
declare const PendingDeliverySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22
|
+
generation: z.ZodNumber;
|
|
23
|
+
fromVersion: z.ZodNumber;
|
|
24
|
+
toVersion: z.ZodNumber;
|
|
25
|
+
messageId: z.ZodString;
|
|
26
|
+
type: z.ZodLiteral<"patch">;
|
|
27
|
+
patches: z.ZodArray<z.ZodObject<{
|
|
28
|
+
op: z.ZodEnum<{
|
|
29
|
+
add: "add";
|
|
30
|
+
remove: "remove";
|
|
31
|
+
replace: "replace";
|
|
32
|
+
move: "move";
|
|
33
|
+
copy: "copy";
|
|
34
|
+
test: "test";
|
|
35
|
+
}>;
|
|
36
|
+
path: z.ZodString;
|
|
37
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
38
|
+
from: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
+
generation: z.ZodNumber;
|
|
42
|
+
fromVersion: z.ZodNumber;
|
|
43
|
+
toVersion: z.ZodNumber;
|
|
44
|
+
messageId: z.ZodString;
|
|
45
|
+
type: z.ZodLiteral<"resync">;
|
|
46
|
+
}, z.core.$strict>], "type">;
|
|
47
|
+
/**
|
|
48
|
+
* System table schemas for the reactive engine
|
|
49
|
+
*/
|
|
50
|
+
declare const SystemSchemas: {
|
|
51
|
+
/**
|
|
52
|
+
* ReactiveConnectionsV2 - Tracks active WebSocket connections
|
|
53
|
+
*/
|
|
54
|
+
connections: z.ZodObject<{
|
|
55
|
+
connectionId: z.ZodString;
|
|
56
|
+
status: z.ZodEnum<{
|
|
57
|
+
open: "open";
|
|
58
|
+
closed: "closed";
|
|
59
|
+
}>;
|
|
60
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
61
|
+
authorizerContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
62
|
+
requestIdentity: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
63
|
+
connectedAt: z.ZodNumber;
|
|
64
|
+
ttl: z.ZodNumber;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
/**
|
|
67
|
+
* ReactiveDependenciesV2 - The inverted index for O(1) lookups
|
|
68
|
+
*/
|
|
69
|
+
dependencies: z.ZodObject<{
|
|
70
|
+
pk: z.ZodString;
|
|
71
|
+
sk: z.ZodString;
|
|
72
|
+
connectionId: z.ZodString;
|
|
73
|
+
subscriptionId: z.ZodString;
|
|
74
|
+
tableName: z.ZodString;
|
|
75
|
+
fieldName: z.ZodString;
|
|
76
|
+
fieldValue: z.ZodString;
|
|
77
|
+
generation: z.ZodNumber;
|
|
78
|
+
registrationId: z.ZodString;
|
|
79
|
+
ttl: z.ZodNumber;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
/**
|
|
82
|
+
* ReactiveConnectionQueriesV2 - Stores subscription state for diffing
|
|
83
|
+
*/
|
|
84
|
+
queries: z.ZodObject<{
|
|
85
|
+
pk: z.ZodString;
|
|
86
|
+
sk: z.ZodString;
|
|
87
|
+
connectionId: z.ZodString;
|
|
88
|
+
subscriptionId: z.ZodString;
|
|
89
|
+
status: z.ZodEnum<{
|
|
90
|
+
registering: "registering";
|
|
91
|
+
active: "active";
|
|
92
|
+
cancelled: "cancelled";
|
|
93
|
+
faulted: "faulted";
|
|
94
|
+
}>;
|
|
95
|
+
generation: z.ZodNumber;
|
|
96
|
+
registrationId: z.ZodString;
|
|
97
|
+
queryMetadata: z.ZodObject<{
|
|
98
|
+
planVersion: z.ZodLiteral<1>;
|
|
99
|
+
tableName: z.ZodString;
|
|
100
|
+
indexName: z.ZodOptional<z.ZodString>;
|
|
101
|
+
indexPkField: z.ZodOptional<z.ZodString>;
|
|
102
|
+
indexSkField: z.ZodOptional<z.ZodString>;
|
|
103
|
+
filterConditions: z.ZodArray<z.ZodType<FilterCondition, unknown, z.core.$ZodTypeInternals<FilterCondition, unknown>>>;
|
|
104
|
+
sortField: z.ZodOptional<z.ZodString>;
|
|
105
|
+
sortOrder: z.ZodOptional<z.ZodEnum<{
|
|
106
|
+
asc: "asc";
|
|
107
|
+
desc: "desc";
|
|
108
|
+
}>>;
|
|
109
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
110
|
+
}, z.core.$strict>;
|
|
111
|
+
lastResult: z.ZodArray<z.ZodUnknown>;
|
|
112
|
+
dependencies: z.ZodArray<z.ZodString>;
|
|
113
|
+
version: z.ZodNumber;
|
|
114
|
+
pendingDelivery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
115
|
+
generation: z.ZodNumber;
|
|
116
|
+
fromVersion: z.ZodNumber;
|
|
117
|
+
toVersion: z.ZodNumber;
|
|
118
|
+
messageId: z.ZodString;
|
|
119
|
+
type: z.ZodLiteral<"patch">;
|
|
120
|
+
patches: z.ZodArray<z.ZodObject<{
|
|
121
|
+
op: z.ZodEnum<{
|
|
122
|
+
add: "add";
|
|
123
|
+
remove: "remove";
|
|
124
|
+
replace: "replace";
|
|
125
|
+
move: "move";
|
|
126
|
+
copy: "copy";
|
|
127
|
+
test: "test";
|
|
128
|
+
}>;
|
|
129
|
+
path: z.ZodString;
|
|
130
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
131
|
+
from: z.ZodOptional<z.ZodString>;
|
|
132
|
+
}, z.core.$strip>>;
|
|
133
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
134
|
+
generation: z.ZodNumber;
|
|
135
|
+
fromVersion: z.ZodNumber;
|
|
136
|
+
toVersion: z.ZodNumber;
|
|
137
|
+
messageId: z.ZodString;
|
|
138
|
+
type: z.ZodLiteral<"resync">;
|
|
139
|
+
}, z.core.$strict>], "type">>;
|
|
140
|
+
createdAt: z.ZodNumber;
|
|
141
|
+
updatedAt: z.ZodNumber;
|
|
142
|
+
ttl: z.ZodNumber;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
};
|
|
145
|
+
/** Storage/protocol generation used by all reactive system tables. */
|
|
146
|
+
declare const SYSTEM_TABLE_PROTOCOL_VERSION: 2;
|
|
147
|
+
/**
|
|
148
|
+
* Versioned system table names. The V2 suffix intentionally prevents state
|
|
149
|
+
* written by the incompatible 0.1.x dependency protocol from being reused.
|
|
150
|
+
*/
|
|
151
|
+
declare const SystemTableNames: {
|
|
152
|
+
readonly connections: "ReactiveConnectionsV2";
|
|
153
|
+
readonly dependencies: "ReactiveDependenciesV2";
|
|
154
|
+
readonly queries: "ReactiveConnectionQueriesV2";
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
export { FilterCondition, FilterConditionSchema, PendingDeliverySchema, QueryMetadataSchema, SYSTEM_TABLE_PROTOCOL_VERSION, SystemSchemas, SystemTableNames };
|
package/dist/core.d.ts
CHANGED
|
@@ -1,4 +1,157 @@
|
|
|
1
|
-
export { FilterConditionSchema, PendingDeliverySchema, QueryMetadataSchema, SYSTEM_TABLE_PROTOCOL_VERSION, SystemSchemas, SystemTableNames } from './index.js';
|
|
2
1
|
export { D as DynamoTable } from './table-BijJ73pX.js';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { a as FilterCondition } from './types-LMLk8JVC.js';
|
|
3
|
+
export { A as AnyDynamoTable, C as ConnectionEntry, b as DependencyEntry, D as DynamoTableConfig, F as FieldRef, I as IndexDefinition, J as JsonPatch, P as PendingDelivery, c as QueryEntry, Q as QueryMetadata, S as SupportedSchema } from './types-LMLk8JVC.js';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
|
|
6
|
+
declare const FilterConditionSchema: z.ZodType<FilterCondition>;
|
|
7
|
+
declare const QueryMetadataSchema: z.ZodObject<{
|
|
8
|
+
planVersion: z.ZodLiteral<1>;
|
|
9
|
+
tableName: z.ZodString;
|
|
10
|
+
indexName: z.ZodOptional<z.ZodString>;
|
|
11
|
+
indexPkField: z.ZodOptional<z.ZodString>;
|
|
12
|
+
indexSkField: z.ZodOptional<z.ZodString>;
|
|
13
|
+
filterConditions: z.ZodArray<z.ZodType<FilterCondition, unknown, z.core.$ZodTypeInternals<FilterCondition, unknown>>>;
|
|
14
|
+
sortField: z.ZodOptional<z.ZodString>;
|
|
15
|
+
sortOrder: z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
asc: "asc";
|
|
17
|
+
desc: "desc";
|
|
18
|
+
}>>;
|
|
19
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
}, z.core.$strict>;
|
|
21
|
+
declare const PendingDeliverySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22
|
+
generation: z.ZodNumber;
|
|
23
|
+
fromVersion: z.ZodNumber;
|
|
24
|
+
toVersion: z.ZodNumber;
|
|
25
|
+
messageId: z.ZodString;
|
|
26
|
+
type: z.ZodLiteral<"patch">;
|
|
27
|
+
patches: z.ZodArray<z.ZodObject<{
|
|
28
|
+
op: z.ZodEnum<{
|
|
29
|
+
add: "add";
|
|
30
|
+
remove: "remove";
|
|
31
|
+
replace: "replace";
|
|
32
|
+
move: "move";
|
|
33
|
+
copy: "copy";
|
|
34
|
+
test: "test";
|
|
35
|
+
}>;
|
|
36
|
+
path: z.ZodString;
|
|
37
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
38
|
+
from: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
+
generation: z.ZodNumber;
|
|
42
|
+
fromVersion: z.ZodNumber;
|
|
43
|
+
toVersion: z.ZodNumber;
|
|
44
|
+
messageId: z.ZodString;
|
|
45
|
+
type: z.ZodLiteral<"resync">;
|
|
46
|
+
}, z.core.$strict>], "type">;
|
|
47
|
+
/**
|
|
48
|
+
* System table schemas for the reactive engine
|
|
49
|
+
*/
|
|
50
|
+
declare const SystemSchemas: {
|
|
51
|
+
/**
|
|
52
|
+
* ReactiveConnectionsV2 - Tracks active WebSocket connections
|
|
53
|
+
*/
|
|
54
|
+
connections: z.ZodObject<{
|
|
55
|
+
connectionId: z.ZodString;
|
|
56
|
+
status: z.ZodEnum<{
|
|
57
|
+
open: "open";
|
|
58
|
+
closed: "closed";
|
|
59
|
+
}>;
|
|
60
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
61
|
+
authorizerContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
62
|
+
requestIdentity: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
63
|
+
connectedAt: z.ZodNumber;
|
|
64
|
+
ttl: z.ZodNumber;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
/**
|
|
67
|
+
* ReactiveDependenciesV2 - The inverted index for O(1) lookups
|
|
68
|
+
*/
|
|
69
|
+
dependencies: z.ZodObject<{
|
|
70
|
+
pk: z.ZodString;
|
|
71
|
+
sk: z.ZodString;
|
|
72
|
+
connectionId: z.ZodString;
|
|
73
|
+
subscriptionId: z.ZodString;
|
|
74
|
+
tableName: z.ZodString;
|
|
75
|
+
fieldName: z.ZodString;
|
|
76
|
+
fieldValue: z.ZodString;
|
|
77
|
+
generation: z.ZodNumber;
|
|
78
|
+
registrationId: z.ZodString;
|
|
79
|
+
ttl: z.ZodNumber;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
/**
|
|
82
|
+
* ReactiveConnectionQueriesV2 - Stores subscription state for diffing
|
|
83
|
+
*/
|
|
84
|
+
queries: z.ZodObject<{
|
|
85
|
+
pk: z.ZodString;
|
|
86
|
+
sk: z.ZodString;
|
|
87
|
+
connectionId: z.ZodString;
|
|
88
|
+
subscriptionId: z.ZodString;
|
|
89
|
+
status: z.ZodEnum<{
|
|
90
|
+
registering: "registering";
|
|
91
|
+
active: "active";
|
|
92
|
+
cancelled: "cancelled";
|
|
93
|
+
faulted: "faulted";
|
|
94
|
+
}>;
|
|
95
|
+
generation: z.ZodNumber;
|
|
96
|
+
registrationId: z.ZodString;
|
|
97
|
+
queryMetadata: z.ZodObject<{
|
|
98
|
+
planVersion: z.ZodLiteral<1>;
|
|
99
|
+
tableName: z.ZodString;
|
|
100
|
+
indexName: z.ZodOptional<z.ZodString>;
|
|
101
|
+
indexPkField: z.ZodOptional<z.ZodString>;
|
|
102
|
+
indexSkField: z.ZodOptional<z.ZodString>;
|
|
103
|
+
filterConditions: z.ZodArray<z.ZodType<FilterCondition, unknown, z.core.$ZodTypeInternals<FilterCondition, unknown>>>;
|
|
104
|
+
sortField: z.ZodOptional<z.ZodString>;
|
|
105
|
+
sortOrder: z.ZodOptional<z.ZodEnum<{
|
|
106
|
+
asc: "asc";
|
|
107
|
+
desc: "desc";
|
|
108
|
+
}>>;
|
|
109
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
110
|
+
}, z.core.$strict>;
|
|
111
|
+
lastResult: z.ZodArray<z.ZodUnknown>;
|
|
112
|
+
dependencies: z.ZodArray<z.ZodString>;
|
|
113
|
+
version: z.ZodNumber;
|
|
114
|
+
pendingDelivery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
115
|
+
generation: z.ZodNumber;
|
|
116
|
+
fromVersion: z.ZodNumber;
|
|
117
|
+
toVersion: z.ZodNumber;
|
|
118
|
+
messageId: z.ZodString;
|
|
119
|
+
type: z.ZodLiteral<"patch">;
|
|
120
|
+
patches: z.ZodArray<z.ZodObject<{
|
|
121
|
+
op: z.ZodEnum<{
|
|
122
|
+
add: "add";
|
|
123
|
+
remove: "remove";
|
|
124
|
+
replace: "replace";
|
|
125
|
+
move: "move";
|
|
126
|
+
copy: "copy";
|
|
127
|
+
test: "test";
|
|
128
|
+
}>;
|
|
129
|
+
path: z.ZodString;
|
|
130
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
131
|
+
from: z.ZodOptional<z.ZodString>;
|
|
132
|
+
}, z.core.$strip>>;
|
|
133
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
134
|
+
generation: z.ZodNumber;
|
|
135
|
+
fromVersion: z.ZodNumber;
|
|
136
|
+
toVersion: z.ZodNumber;
|
|
137
|
+
messageId: z.ZodString;
|
|
138
|
+
type: z.ZodLiteral<"resync">;
|
|
139
|
+
}, z.core.$strict>], "type">>;
|
|
140
|
+
createdAt: z.ZodNumber;
|
|
141
|
+
updatedAt: z.ZodNumber;
|
|
142
|
+
ttl: z.ZodNumber;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
};
|
|
145
|
+
/** Storage/protocol generation used by all reactive system tables. */
|
|
146
|
+
declare const SYSTEM_TABLE_PROTOCOL_VERSION: 2;
|
|
147
|
+
/**
|
|
148
|
+
* Versioned system table names. The V2 suffix intentionally prevents state
|
|
149
|
+
* written by the incompatible 0.1.x dependency protocol from being reused.
|
|
150
|
+
*/
|
|
151
|
+
declare const SystemTableNames: {
|
|
152
|
+
readonly connections: "ReactiveConnectionsV2";
|
|
153
|
+
readonly dependencies: "ReactiveDependenciesV2";
|
|
154
|
+
readonly queries: "ReactiveConnectionQueriesV2";
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
export { FilterCondition, FilterConditionSchema, PendingDeliverySchema, QueryMetadataSchema, SYSTEM_TABLE_PROTOCOL_VERSION, SystemSchemas, SystemTableNames };
|
package/dist/index.d.cts
CHANGED
|
@@ -1,157 +1,4 @@
|
|
|
1
|
+
export { FilterConditionSchema, PendingDeliverySchema, QueryMetadataSchema, SYSTEM_TABLE_PROTOCOL_VERSION, SystemSchemas, SystemTableNames } from './core.cjs';
|
|
1
2
|
export { D as DynamoTable } from './table-BijJ73pX.js';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
|
|
6
|
-
declare const FilterConditionSchema: z.ZodType<FilterCondition>;
|
|
7
|
-
declare const QueryMetadataSchema: z.ZodObject<{
|
|
8
|
-
planVersion: z.ZodLiteral<1>;
|
|
9
|
-
tableName: z.ZodString;
|
|
10
|
-
indexName: z.ZodOptional<z.ZodString>;
|
|
11
|
-
indexPkField: z.ZodOptional<z.ZodString>;
|
|
12
|
-
indexSkField: z.ZodOptional<z.ZodString>;
|
|
13
|
-
filterConditions: z.ZodArray<z.ZodType<FilterCondition, unknown, z.core.$ZodTypeInternals<FilterCondition, unknown>>>;
|
|
14
|
-
sortField: z.ZodOptional<z.ZodString>;
|
|
15
|
-
sortOrder: z.ZodOptional<z.ZodEnum<{
|
|
16
|
-
asc: "asc";
|
|
17
|
-
desc: "desc";
|
|
18
|
-
}>>;
|
|
19
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
20
|
-
}, z.core.$strict>;
|
|
21
|
-
declare const PendingDeliverySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22
|
-
generation: z.ZodNumber;
|
|
23
|
-
fromVersion: z.ZodNumber;
|
|
24
|
-
toVersion: z.ZodNumber;
|
|
25
|
-
messageId: z.ZodString;
|
|
26
|
-
type: z.ZodLiteral<"patch">;
|
|
27
|
-
patches: z.ZodArray<z.ZodObject<{
|
|
28
|
-
op: z.ZodEnum<{
|
|
29
|
-
add: "add";
|
|
30
|
-
remove: "remove";
|
|
31
|
-
replace: "replace";
|
|
32
|
-
move: "move";
|
|
33
|
-
copy: "copy";
|
|
34
|
-
test: "test";
|
|
35
|
-
}>;
|
|
36
|
-
path: z.ZodString;
|
|
37
|
-
value: z.ZodOptional<z.ZodUnknown>;
|
|
38
|
-
from: z.ZodOptional<z.ZodString>;
|
|
39
|
-
}, z.core.$strip>>;
|
|
40
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
-
generation: z.ZodNumber;
|
|
42
|
-
fromVersion: z.ZodNumber;
|
|
43
|
-
toVersion: z.ZodNumber;
|
|
44
|
-
messageId: z.ZodString;
|
|
45
|
-
type: z.ZodLiteral<"resync">;
|
|
46
|
-
}, z.core.$strict>], "type">;
|
|
47
|
-
/**
|
|
48
|
-
* System table schemas for the reactive engine
|
|
49
|
-
*/
|
|
50
|
-
declare const SystemSchemas: {
|
|
51
|
-
/**
|
|
52
|
-
* ReactiveConnectionsV2 - Tracks active WebSocket connections
|
|
53
|
-
*/
|
|
54
|
-
connections: z.ZodObject<{
|
|
55
|
-
connectionId: z.ZodString;
|
|
56
|
-
status: z.ZodEnum<{
|
|
57
|
-
open: "open";
|
|
58
|
-
closed: "closed";
|
|
59
|
-
}>;
|
|
60
|
-
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
61
|
-
authorizerContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
62
|
-
requestIdentity: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
63
|
-
connectedAt: z.ZodNumber;
|
|
64
|
-
ttl: z.ZodNumber;
|
|
65
|
-
}, z.core.$strip>;
|
|
66
|
-
/**
|
|
67
|
-
* ReactiveDependenciesV2 - The inverted index for O(1) lookups
|
|
68
|
-
*/
|
|
69
|
-
dependencies: z.ZodObject<{
|
|
70
|
-
pk: z.ZodString;
|
|
71
|
-
sk: z.ZodString;
|
|
72
|
-
connectionId: z.ZodString;
|
|
73
|
-
subscriptionId: z.ZodString;
|
|
74
|
-
tableName: z.ZodString;
|
|
75
|
-
fieldName: z.ZodString;
|
|
76
|
-
fieldValue: z.ZodString;
|
|
77
|
-
generation: z.ZodNumber;
|
|
78
|
-
registrationId: z.ZodString;
|
|
79
|
-
ttl: z.ZodNumber;
|
|
80
|
-
}, z.core.$strip>;
|
|
81
|
-
/**
|
|
82
|
-
* ReactiveConnectionQueriesV2 - Stores subscription state for diffing
|
|
83
|
-
*/
|
|
84
|
-
queries: z.ZodObject<{
|
|
85
|
-
pk: z.ZodString;
|
|
86
|
-
sk: z.ZodString;
|
|
87
|
-
connectionId: z.ZodString;
|
|
88
|
-
subscriptionId: z.ZodString;
|
|
89
|
-
status: z.ZodEnum<{
|
|
90
|
-
registering: "registering";
|
|
91
|
-
active: "active";
|
|
92
|
-
cancelled: "cancelled";
|
|
93
|
-
faulted: "faulted";
|
|
94
|
-
}>;
|
|
95
|
-
generation: z.ZodNumber;
|
|
96
|
-
registrationId: z.ZodString;
|
|
97
|
-
queryMetadata: z.ZodObject<{
|
|
98
|
-
planVersion: z.ZodLiteral<1>;
|
|
99
|
-
tableName: z.ZodString;
|
|
100
|
-
indexName: z.ZodOptional<z.ZodString>;
|
|
101
|
-
indexPkField: z.ZodOptional<z.ZodString>;
|
|
102
|
-
indexSkField: z.ZodOptional<z.ZodString>;
|
|
103
|
-
filterConditions: z.ZodArray<z.ZodType<FilterCondition, unknown, z.core.$ZodTypeInternals<FilterCondition, unknown>>>;
|
|
104
|
-
sortField: z.ZodOptional<z.ZodString>;
|
|
105
|
-
sortOrder: z.ZodOptional<z.ZodEnum<{
|
|
106
|
-
asc: "asc";
|
|
107
|
-
desc: "desc";
|
|
108
|
-
}>>;
|
|
109
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
110
|
-
}, z.core.$strict>;
|
|
111
|
-
lastResult: z.ZodArray<z.ZodUnknown>;
|
|
112
|
-
dependencies: z.ZodArray<z.ZodString>;
|
|
113
|
-
version: z.ZodNumber;
|
|
114
|
-
pendingDelivery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
115
|
-
generation: z.ZodNumber;
|
|
116
|
-
fromVersion: z.ZodNumber;
|
|
117
|
-
toVersion: z.ZodNumber;
|
|
118
|
-
messageId: z.ZodString;
|
|
119
|
-
type: z.ZodLiteral<"patch">;
|
|
120
|
-
patches: z.ZodArray<z.ZodObject<{
|
|
121
|
-
op: z.ZodEnum<{
|
|
122
|
-
add: "add";
|
|
123
|
-
remove: "remove";
|
|
124
|
-
replace: "replace";
|
|
125
|
-
move: "move";
|
|
126
|
-
copy: "copy";
|
|
127
|
-
test: "test";
|
|
128
|
-
}>;
|
|
129
|
-
path: z.ZodString;
|
|
130
|
-
value: z.ZodOptional<z.ZodUnknown>;
|
|
131
|
-
from: z.ZodOptional<z.ZodString>;
|
|
132
|
-
}, z.core.$strip>>;
|
|
133
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
134
|
-
generation: z.ZodNumber;
|
|
135
|
-
fromVersion: z.ZodNumber;
|
|
136
|
-
toVersion: z.ZodNumber;
|
|
137
|
-
messageId: z.ZodString;
|
|
138
|
-
type: z.ZodLiteral<"resync">;
|
|
139
|
-
}, z.core.$strict>], "type">>;
|
|
140
|
-
createdAt: z.ZodNumber;
|
|
141
|
-
updatedAt: z.ZodNumber;
|
|
142
|
-
ttl: z.ZodNumber;
|
|
143
|
-
}, z.core.$strip>;
|
|
144
|
-
};
|
|
145
|
-
/** Storage/protocol generation used by all reactive system tables. */
|
|
146
|
-
declare const SYSTEM_TABLE_PROTOCOL_VERSION: 2;
|
|
147
|
-
/**
|
|
148
|
-
* Versioned system table names. The V2 suffix intentionally prevents state
|
|
149
|
-
* written by the incompatible 0.1.x dependency protocol from being reused.
|
|
150
|
-
*/
|
|
151
|
-
declare const SystemTableNames: {
|
|
152
|
-
readonly connections: "ReactiveConnectionsV2";
|
|
153
|
-
readonly dependencies: "ReactiveDependenciesV2";
|
|
154
|
-
readonly queries: "ReactiveConnectionQueriesV2";
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
export { FilterCondition, FilterConditionSchema, PendingDeliverySchema, QueryMetadataSchema, SYSTEM_TABLE_PROTOCOL_VERSION, SystemSchemas, SystemTableNames };
|
|
3
|
+
export { A as AnyDynamoTable, C as ConnectionEntry, b as DependencyEntry, D as DynamoTableConfig, F as FieldRef, a as FilterCondition, I as IndexDefinition, J as JsonPatch, P as PendingDelivery, c as QueryEntry, Q as QueryMetadata, S as SupportedSchema } from './types-LMLk8JVC.js';
|
|
4
|
+
import 'zod';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,157 +1,4 @@
|
|
|
1
|
+
export { FilterConditionSchema, PendingDeliverySchema, QueryMetadataSchema, SYSTEM_TABLE_PROTOCOL_VERSION, SystemSchemas, SystemTableNames } from './core.js';
|
|
1
2
|
export { D as DynamoTable } from './table-BijJ73pX.js';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
|
|
6
|
-
declare const FilterConditionSchema: z.ZodType<FilterCondition>;
|
|
7
|
-
declare const QueryMetadataSchema: z.ZodObject<{
|
|
8
|
-
planVersion: z.ZodLiteral<1>;
|
|
9
|
-
tableName: z.ZodString;
|
|
10
|
-
indexName: z.ZodOptional<z.ZodString>;
|
|
11
|
-
indexPkField: z.ZodOptional<z.ZodString>;
|
|
12
|
-
indexSkField: z.ZodOptional<z.ZodString>;
|
|
13
|
-
filterConditions: z.ZodArray<z.ZodType<FilterCondition, unknown, z.core.$ZodTypeInternals<FilterCondition, unknown>>>;
|
|
14
|
-
sortField: z.ZodOptional<z.ZodString>;
|
|
15
|
-
sortOrder: z.ZodOptional<z.ZodEnum<{
|
|
16
|
-
asc: "asc";
|
|
17
|
-
desc: "desc";
|
|
18
|
-
}>>;
|
|
19
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
20
|
-
}, z.core.$strict>;
|
|
21
|
-
declare const PendingDeliverySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22
|
-
generation: z.ZodNumber;
|
|
23
|
-
fromVersion: z.ZodNumber;
|
|
24
|
-
toVersion: z.ZodNumber;
|
|
25
|
-
messageId: z.ZodString;
|
|
26
|
-
type: z.ZodLiteral<"patch">;
|
|
27
|
-
patches: z.ZodArray<z.ZodObject<{
|
|
28
|
-
op: z.ZodEnum<{
|
|
29
|
-
add: "add";
|
|
30
|
-
remove: "remove";
|
|
31
|
-
replace: "replace";
|
|
32
|
-
move: "move";
|
|
33
|
-
copy: "copy";
|
|
34
|
-
test: "test";
|
|
35
|
-
}>;
|
|
36
|
-
path: z.ZodString;
|
|
37
|
-
value: z.ZodOptional<z.ZodUnknown>;
|
|
38
|
-
from: z.ZodOptional<z.ZodString>;
|
|
39
|
-
}, z.core.$strip>>;
|
|
40
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
-
generation: z.ZodNumber;
|
|
42
|
-
fromVersion: z.ZodNumber;
|
|
43
|
-
toVersion: z.ZodNumber;
|
|
44
|
-
messageId: z.ZodString;
|
|
45
|
-
type: z.ZodLiteral<"resync">;
|
|
46
|
-
}, z.core.$strict>], "type">;
|
|
47
|
-
/**
|
|
48
|
-
* System table schemas for the reactive engine
|
|
49
|
-
*/
|
|
50
|
-
declare const SystemSchemas: {
|
|
51
|
-
/**
|
|
52
|
-
* ReactiveConnectionsV2 - Tracks active WebSocket connections
|
|
53
|
-
*/
|
|
54
|
-
connections: z.ZodObject<{
|
|
55
|
-
connectionId: z.ZodString;
|
|
56
|
-
status: z.ZodEnum<{
|
|
57
|
-
open: "open";
|
|
58
|
-
closed: "closed";
|
|
59
|
-
}>;
|
|
60
|
-
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
61
|
-
authorizerContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
62
|
-
requestIdentity: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
63
|
-
connectedAt: z.ZodNumber;
|
|
64
|
-
ttl: z.ZodNumber;
|
|
65
|
-
}, z.core.$strip>;
|
|
66
|
-
/**
|
|
67
|
-
* ReactiveDependenciesV2 - The inverted index for O(1) lookups
|
|
68
|
-
*/
|
|
69
|
-
dependencies: z.ZodObject<{
|
|
70
|
-
pk: z.ZodString;
|
|
71
|
-
sk: z.ZodString;
|
|
72
|
-
connectionId: z.ZodString;
|
|
73
|
-
subscriptionId: z.ZodString;
|
|
74
|
-
tableName: z.ZodString;
|
|
75
|
-
fieldName: z.ZodString;
|
|
76
|
-
fieldValue: z.ZodString;
|
|
77
|
-
generation: z.ZodNumber;
|
|
78
|
-
registrationId: z.ZodString;
|
|
79
|
-
ttl: z.ZodNumber;
|
|
80
|
-
}, z.core.$strip>;
|
|
81
|
-
/**
|
|
82
|
-
* ReactiveConnectionQueriesV2 - Stores subscription state for diffing
|
|
83
|
-
*/
|
|
84
|
-
queries: z.ZodObject<{
|
|
85
|
-
pk: z.ZodString;
|
|
86
|
-
sk: z.ZodString;
|
|
87
|
-
connectionId: z.ZodString;
|
|
88
|
-
subscriptionId: z.ZodString;
|
|
89
|
-
status: z.ZodEnum<{
|
|
90
|
-
registering: "registering";
|
|
91
|
-
active: "active";
|
|
92
|
-
cancelled: "cancelled";
|
|
93
|
-
faulted: "faulted";
|
|
94
|
-
}>;
|
|
95
|
-
generation: z.ZodNumber;
|
|
96
|
-
registrationId: z.ZodString;
|
|
97
|
-
queryMetadata: z.ZodObject<{
|
|
98
|
-
planVersion: z.ZodLiteral<1>;
|
|
99
|
-
tableName: z.ZodString;
|
|
100
|
-
indexName: z.ZodOptional<z.ZodString>;
|
|
101
|
-
indexPkField: z.ZodOptional<z.ZodString>;
|
|
102
|
-
indexSkField: z.ZodOptional<z.ZodString>;
|
|
103
|
-
filterConditions: z.ZodArray<z.ZodType<FilterCondition, unknown, z.core.$ZodTypeInternals<FilterCondition, unknown>>>;
|
|
104
|
-
sortField: z.ZodOptional<z.ZodString>;
|
|
105
|
-
sortOrder: z.ZodOptional<z.ZodEnum<{
|
|
106
|
-
asc: "asc";
|
|
107
|
-
desc: "desc";
|
|
108
|
-
}>>;
|
|
109
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
110
|
-
}, z.core.$strict>;
|
|
111
|
-
lastResult: z.ZodArray<z.ZodUnknown>;
|
|
112
|
-
dependencies: z.ZodArray<z.ZodString>;
|
|
113
|
-
version: z.ZodNumber;
|
|
114
|
-
pendingDelivery: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
115
|
-
generation: z.ZodNumber;
|
|
116
|
-
fromVersion: z.ZodNumber;
|
|
117
|
-
toVersion: z.ZodNumber;
|
|
118
|
-
messageId: z.ZodString;
|
|
119
|
-
type: z.ZodLiteral<"patch">;
|
|
120
|
-
patches: z.ZodArray<z.ZodObject<{
|
|
121
|
-
op: z.ZodEnum<{
|
|
122
|
-
add: "add";
|
|
123
|
-
remove: "remove";
|
|
124
|
-
replace: "replace";
|
|
125
|
-
move: "move";
|
|
126
|
-
copy: "copy";
|
|
127
|
-
test: "test";
|
|
128
|
-
}>;
|
|
129
|
-
path: z.ZodString;
|
|
130
|
-
value: z.ZodOptional<z.ZodUnknown>;
|
|
131
|
-
from: z.ZodOptional<z.ZodString>;
|
|
132
|
-
}, z.core.$strip>>;
|
|
133
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
134
|
-
generation: z.ZodNumber;
|
|
135
|
-
fromVersion: z.ZodNumber;
|
|
136
|
-
toVersion: z.ZodNumber;
|
|
137
|
-
messageId: z.ZodString;
|
|
138
|
-
type: z.ZodLiteral<"resync">;
|
|
139
|
-
}, z.core.$strict>], "type">>;
|
|
140
|
-
createdAt: z.ZodNumber;
|
|
141
|
-
updatedAt: z.ZodNumber;
|
|
142
|
-
ttl: z.ZodNumber;
|
|
143
|
-
}, z.core.$strip>;
|
|
144
|
-
};
|
|
145
|
-
/** Storage/protocol generation used by all reactive system tables. */
|
|
146
|
-
declare const SYSTEM_TABLE_PROTOCOL_VERSION: 2;
|
|
147
|
-
/**
|
|
148
|
-
* Versioned system table names. The V2 suffix intentionally prevents state
|
|
149
|
-
* written by the incompatible 0.1.x dependency protocol from being reused.
|
|
150
|
-
*/
|
|
151
|
-
declare const SystemTableNames: {
|
|
152
|
-
readonly connections: "ReactiveConnectionsV2";
|
|
153
|
-
readonly dependencies: "ReactiveDependenciesV2";
|
|
154
|
-
readonly queries: "ReactiveConnectionQueriesV2";
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
export { FilterCondition, FilterConditionSchema, PendingDeliverySchema, QueryMetadataSchema, SYSTEM_TABLE_PROTOCOL_VERSION, SystemSchemas, SystemTableNames };
|
|
3
|
+
export { A as AnyDynamoTable, C as ConnectionEntry, b as DependencyEntry, D as DynamoTableConfig, F as FieldRef, a as FilterCondition, I as IndexDefinition, J as JsonPatch, P as PendingDelivery, c as QueryEntry, Q as QueryMetadata, S as SupportedSchema } from './types-LMLk8JVC.js';
|
|
4
|
+
import 'zod';
|
package/dist/react.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { ReactiveClientConfig, ReactiveClient,
|
|
3
|
+
import { ReactiveClientConfig, ReactiveClient, SubscriptionOptions, MutationOptions, ConnectionState } from './client.cjs';
|
|
4
4
|
|
|
5
5
|
declare function ReactiveClientProvider({ children, config, client: externalClient, }: {
|
|
6
6
|
children: ReactNode;
|
package/dist/react.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { ReactiveClientConfig, ReactiveClient,
|
|
3
|
+
import { ReactiveClientConfig, ReactiveClient, SubscriptionOptions, MutationOptions, ConnectionState } from './client.js';
|
|
4
4
|
|
|
5
5
|
declare function ReactiveClientProvider({ children, config, client: externalClient, }: {
|
|
6
6
|
children: ReactNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dynamodb-reactive",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"description": "A Serverless, Reactive tRPC replacement for AWS DynamoDB",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -131,20 +131,20 @@
|
|
|
131
131
|
"access": "public"
|
|
132
132
|
},
|
|
133
133
|
"dependencies": {
|
|
134
|
-
"@aws-sdk/client-apigatewaymanagementapi": "^3.
|
|
135
|
-
"@aws-sdk/client-dynamodb": "^3.
|
|
136
|
-
"@aws-sdk/lib-dynamodb": "^3.
|
|
134
|
+
"@aws-sdk/client-apigatewaymanagementapi": "^3.1161.0",
|
|
135
|
+
"@aws-sdk/client-dynamodb": "^3.1161.0",
|
|
136
|
+
"@aws-sdk/lib-dynamodb": "^3.1161.0",
|
|
137
137
|
"@aws-sdk/util-dynamodb": "^3.996.9",
|
|
138
|
-
"@types/aws-lambda": "^8.10.
|
|
138
|
+
"@types/aws-lambda": "^8.10.164",
|
|
139
139
|
"fast-json-patch": "^3.1.1"
|
|
140
140
|
},
|
|
141
141
|
"devDependencies": {
|
|
142
|
-
"@types/react": "^19.
|
|
142
|
+
"@types/react": "^19.3.0",
|
|
143
143
|
"@typescript/typescript6": "^6.0.2",
|
|
144
144
|
"rimraf": "^6.1.3",
|
|
145
|
-
"rollup": "^4.
|
|
145
|
+
"rollup": "^4.67.2",
|
|
146
146
|
"rollup-plugin-dts": "^6.5.1",
|
|
147
|
-
"tsup": "^
|
|
147
|
+
"tsup": "^9.0.0",
|
|
148
148
|
"typescript": "^7.0.2"
|
|
149
149
|
},
|
|
150
150
|
"peerDependencies": {
|