effect-zero 0.4.2 → 0.5.0-beta.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/dist/client-transaction.d.ts +77 -7
- package/dist/client-transaction.d.ts.map +1 -1
- package/dist/client-transaction.js +11 -7
- package/dist/client-transaction.js.map +1 -1
- package/dist/client.d.ts +119 -7
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +7 -6
- package/dist/client.js.map +1 -1
- package/dist/internal/server-synchronization-context.d.ts +19 -0
- package/dist/internal/server-synchronization-context.d.ts.map +1 -0
- package/dist/internal/server-synchronization-context.js +46 -0
- package/dist/internal/server-synchronization-context.js.map +1 -0
- package/dist/internal/server.d.ts +5 -16
- package/dist/internal/server.d.ts.map +1 -1
- package/dist/internal/server.js +1 -38
- package/dist/internal/server.js.map +1 -1
- package/dist/internal/server.test.js +7 -8
- package/dist/internal/server.test.js.map +1 -1
- package/dist/internal/utils.d.ts +7 -0
- package/dist/internal/utils.d.ts.map +1 -1
- package/dist/internal/utils.js +7 -0
- package/dist/internal/utils.js.map +1 -1
- package/dist/mutators.d.ts +1 -1
- package/dist/mutators.d.ts.map +1 -1
- package/dist/mutators.js +1 -1
- package/dist/query.d.ts +3 -5
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +6 -12
- package/dist/query.js.map +1 -1
- package/dist/result.d.ts +15 -15
- package/dist/result.d.ts.map +1 -1
- package/dist/result.js +11 -11
- package/dist/result.js.map +1 -1
- package/dist/server-transaction.d.ts +142 -15
- package/dist/server-transaction.d.ts.map +1 -1
- package/dist/server-transaction.js +24 -19
- package/dist/server-transaction.js.map +1 -1
- package/dist/server.d.ts +247 -12
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +21 -18
- package/dist/server.js.map +1 -1
- package/dist/types/common.d.ts +1 -1
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/error.d.ts +69 -48
- package/dist/types/error.d.ts.map +1 -1
- package/dist/types/error.js +38 -30
- package/dist/types/error.js.map +1 -1
- package/dist/types/push.d.ts +149 -149
- package/dist/types/push.d.ts.map +1 -1
- package/dist/types/push.js +45 -40
- package/dist/types/push.js.map +1 -1
- package/dist/types/queries.d.ts +42 -42
- package/dist/types/queries.d.ts.map +1 -1
- package/dist/types/queries.js +7 -7
- package/dist/types/queries.js.map +1 -1
- package/dist/types.test.js +13 -15
- package/dist/types.test.js.map +1 -1
- package/package.json +5 -7
- package/src/client-transaction.ts +13 -11
- package/src/client.ts +17 -19
- package/src/internal/server-synchronization-context.ts +64 -0
- package/src/internal/server.ts +3 -59
- package/src/internal/utils.ts +8 -0
- package/src/mutators.ts +2 -2
- package/src/query.ts +8 -20
- package/src/result.ts +40 -37
- package/src/server-transaction.ts +32 -37
- package/src/server.ts +34 -37
- package/src/types/error.ts +8 -8
- package/src/types/push.ts +22 -22
- package/src/types/queries.ts +7 -7
package/dist/types/push.d.ts
CHANGED
|
@@ -1,226 +1,226 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
|
-
export declare const Mutation: Schema.Union<[Schema.Struct<{
|
|
3
|
-
type: Schema.Literal<
|
|
4
|
-
id:
|
|
5
|
-
clientID:
|
|
6
|
-
name: Schema.Literal<
|
|
7
|
-
args: Schema.Tuple<[Schema.Struct<{
|
|
8
|
-
ops: Schema
|
|
9
|
-
op: Schema.Literal<
|
|
10
|
-
tableName:
|
|
11
|
-
primaryKey: Schema
|
|
12
|
-
value: Schema
|
|
2
|
+
export declare const Mutation: Schema.Union<readonly [Schema.Struct<{
|
|
3
|
+
readonly type: Schema.Literal<"crud">;
|
|
4
|
+
readonly id: Schema.Number;
|
|
5
|
+
readonly clientID: Schema.String;
|
|
6
|
+
readonly name: Schema.Literal<"_zero_crud">;
|
|
7
|
+
readonly args: Schema.Tuple<readonly [Schema.Struct<{
|
|
8
|
+
readonly ops: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
9
|
+
readonly op: Schema.Literal<"insert">;
|
|
10
|
+
readonly tableName: Schema.String;
|
|
11
|
+
readonly primaryKey: Schema.$Array<Schema.String>;
|
|
12
|
+
readonly value: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Unknown, Schema.Undefined]>>;
|
|
13
13
|
}>, Schema.Struct<{
|
|
14
|
-
op: Schema.Literal<
|
|
15
|
-
tableName:
|
|
16
|
-
primaryKey: Schema
|
|
17
|
-
value: Schema
|
|
14
|
+
readonly op: Schema.Literal<"upsert">;
|
|
15
|
+
readonly tableName: Schema.String;
|
|
16
|
+
readonly primaryKey: Schema.$Array<Schema.String>;
|
|
17
|
+
readonly value: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Unknown, Schema.Undefined]>>;
|
|
18
18
|
}>, Schema.Struct<{
|
|
19
|
-
op: Schema.Literal<
|
|
20
|
-
tableName:
|
|
21
|
-
primaryKey: Schema
|
|
22
|
-
value: Schema
|
|
19
|
+
readonly op: Schema.Literal<"update">;
|
|
20
|
+
readonly tableName: Schema.String;
|
|
21
|
+
readonly primaryKey: Schema.$Array<Schema.String>;
|
|
22
|
+
readonly value: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Unknown, Schema.Undefined]>>;
|
|
23
23
|
}>, Schema.Struct<{
|
|
24
|
-
op: Schema.Literal<
|
|
25
|
-
tableName:
|
|
26
|
-
primaryKey: Schema
|
|
27
|
-
value: Schema
|
|
24
|
+
readonly op: Schema.Literal<"delete">;
|
|
25
|
+
readonly tableName: Schema.String;
|
|
26
|
+
readonly primaryKey: Schema.$Array<Schema.String>;
|
|
27
|
+
readonly value: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
28
28
|
}>]>>;
|
|
29
29
|
}>]>;
|
|
30
|
-
timestamp:
|
|
30
|
+
readonly timestamp: Schema.Number;
|
|
31
31
|
}>, Schema.Struct<{
|
|
32
|
-
type: Schema.Literal<
|
|
33
|
-
id:
|
|
34
|
-
clientID:
|
|
35
|
-
name:
|
|
36
|
-
args: Schema
|
|
37
|
-
timestamp:
|
|
32
|
+
readonly type: Schema.Literal<"custom">;
|
|
33
|
+
readonly id: Schema.Number;
|
|
34
|
+
readonly clientID: Schema.String;
|
|
35
|
+
readonly name: Schema.String;
|
|
36
|
+
readonly args: Schema.$Array<Schema.Unknown>;
|
|
37
|
+
readonly timestamp: Schema.Number;
|
|
38
38
|
}>]>;
|
|
39
39
|
export type Mutation = typeof Mutation.Type;
|
|
40
40
|
export declare const PushBody: Schema.Struct<{
|
|
41
|
-
clientGroupID:
|
|
42
|
-
mutations: Schema
|
|
43
|
-
type: Schema.Literal<
|
|
44
|
-
id:
|
|
45
|
-
clientID:
|
|
46
|
-
name: Schema.Literal<
|
|
47
|
-
args: Schema.Tuple<[Schema.Struct<{
|
|
48
|
-
ops: Schema
|
|
49
|
-
op: Schema.Literal<
|
|
50
|
-
tableName:
|
|
51
|
-
primaryKey: Schema
|
|
52
|
-
value: Schema
|
|
41
|
+
readonly clientGroupID: Schema.String;
|
|
42
|
+
readonly mutations: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
43
|
+
readonly type: Schema.Literal<"crud">;
|
|
44
|
+
readonly id: Schema.Number;
|
|
45
|
+
readonly clientID: Schema.String;
|
|
46
|
+
readonly name: Schema.Literal<"_zero_crud">;
|
|
47
|
+
readonly args: Schema.Tuple<readonly [Schema.Struct<{
|
|
48
|
+
readonly ops: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
49
|
+
readonly op: Schema.Literal<"insert">;
|
|
50
|
+
readonly tableName: Schema.String;
|
|
51
|
+
readonly primaryKey: Schema.$Array<Schema.String>;
|
|
52
|
+
readonly value: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Unknown, Schema.Undefined]>>;
|
|
53
53
|
}>, Schema.Struct<{
|
|
54
|
-
op: Schema.Literal<
|
|
55
|
-
tableName:
|
|
56
|
-
primaryKey: Schema
|
|
57
|
-
value: Schema
|
|
54
|
+
readonly op: Schema.Literal<"upsert">;
|
|
55
|
+
readonly tableName: Schema.String;
|
|
56
|
+
readonly primaryKey: Schema.$Array<Schema.String>;
|
|
57
|
+
readonly value: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Unknown, Schema.Undefined]>>;
|
|
58
58
|
}>, Schema.Struct<{
|
|
59
|
-
op: Schema.Literal<
|
|
60
|
-
tableName:
|
|
61
|
-
primaryKey: Schema
|
|
62
|
-
value: Schema
|
|
59
|
+
readonly op: Schema.Literal<"update">;
|
|
60
|
+
readonly tableName: Schema.String;
|
|
61
|
+
readonly primaryKey: Schema.$Array<Schema.String>;
|
|
62
|
+
readonly value: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Unknown, Schema.Undefined]>>;
|
|
63
63
|
}>, Schema.Struct<{
|
|
64
|
-
op: Schema.Literal<
|
|
65
|
-
tableName:
|
|
66
|
-
primaryKey: Schema
|
|
67
|
-
value: Schema
|
|
64
|
+
readonly op: Schema.Literal<"delete">;
|
|
65
|
+
readonly tableName: Schema.String;
|
|
66
|
+
readonly primaryKey: Schema.$Array<Schema.String>;
|
|
67
|
+
readonly value: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
68
68
|
}>]>>;
|
|
69
69
|
}>]>;
|
|
70
|
-
timestamp:
|
|
70
|
+
readonly timestamp: Schema.Number;
|
|
71
71
|
}>, Schema.Struct<{
|
|
72
|
-
type: Schema.Literal<
|
|
73
|
-
id:
|
|
74
|
-
clientID:
|
|
75
|
-
name:
|
|
76
|
-
args: Schema
|
|
77
|
-
timestamp:
|
|
72
|
+
readonly type: Schema.Literal<"custom">;
|
|
73
|
+
readonly id: Schema.Number;
|
|
74
|
+
readonly clientID: Schema.String;
|
|
75
|
+
readonly name: Schema.String;
|
|
76
|
+
readonly args: Schema.$Array<Schema.Unknown>;
|
|
77
|
+
readonly timestamp: Schema.Number;
|
|
78
78
|
}>]>>;
|
|
79
|
-
pushVersion:
|
|
80
|
-
schemaVersion: Schema.optional<
|
|
81
|
-
timestamp:
|
|
82
|
-
requestID:
|
|
79
|
+
readonly pushVersion: Schema.Number;
|
|
80
|
+
readonly schemaVersion: Schema.optional<Schema.Number>;
|
|
81
|
+
readonly timestamp: Schema.Number;
|
|
82
|
+
readonly requestID: Schema.String;
|
|
83
83
|
/**
|
|
84
84
|
* @deprecated auth is managed at client-group scope via connect/updateAuth
|
|
85
85
|
* and should not be included in push messages.
|
|
86
86
|
*/
|
|
87
|
-
auth: Schema.optional<
|
|
87
|
+
readonly auth: Schema.optional<Schema.String>;
|
|
88
88
|
}>;
|
|
89
89
|
export type PushBody = typeof PushBody.Type;
|
|
90
90
|
export declare const AppError: Schema.Struct<{
|
|
91
|
-
error: Schema.Literal<
|
|
92
|
-
message: Schema.optional<
|
|
93
|
-
details: Schema.optional<
|
|
91
|
+
readonly error: Schema.Literal<"app">;
|
|
92
|
+
readonly message: Schema.optional<Schema.String>;
|
|
93
|
+
readonly details: Schema.optional<Schema.Unknown>;
|
|
94
94
|
}>;
|
|
95
95
|
export type AppError = typeof AppError.Type;
|
|
96
96
|
export declare const ZeroError: Schema.Struct<{
|
|
97
|
-
error: Schema.
|
|
98
|
-
details: Schema.optional<
|
|
97
|
+
readonly error: Schema.Literals<readonly ["oooMutation", "alreadyProcessed"]>;
|
|
98
|
+
readonly details: Schema.optional<Schema.Unknown>;
|
|
99
99
|
}>;
|
|
100
100
|
export type ZeroError = typeof ZeroError.Type;
|
|
101
|
-
export declare const MutationResult: Schema.Union<[Schema.Union<[Schema.Struct<{
|
|
102
|
-
error: Schema.Literal<
|
|
103
|
-
message: Schema.optional<
|
|
104
|
-
details: Schema.optional<
|
|
101
|
+
export declare const MutationResult: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
102
|
+
readonly error: Schema.Literal<"app">;
|
|
103
|
+
readonly message: Schema.optional<Schema.String>;
|
|
104
|
+
readonly details: Schema.optional<Schema.Unknown>;
|
|
105
105
|
}>, Schema.Struct<{
|
|
106
|
-
error: Schema.
|
|
107
|
-
details: Schema.optional<
|
|
106
|
+
readonly error: Schema.Literals<readonly ["oooMutation", "alreadyProcessed"]>;
|
|
107
|
+
readonly details: Schema.optional<Schema.Unknown>;
|
|
108
108
|
}>]>, Schema.Struct<{
|
|
109
|
-
data: Schema.optional<
|
|
109
|
+
readonly data: Schema.optional<Schema.Unknown>;
|
|
110
110
|
}>]>;
|
|
111
111
|
export type MutationResult = typeof MutationResult.Type;
|
|
112
112
|
export declare const MutationResponse: Schema.Struct<{
|
|
113
|
-
id: Schema.Struct<{
|
|
114
|
-
id:
|
|
115
|
-
clientID:
|
|
113
|
+
readonly id: Schema.Struct<{
|
|
114
|
+
readonly id: Schema.Number;
|
|
115
|
+
readonly clientID: Schema.String;
|
|
116
116
|
}>;
|
|
117
|
-
result: Schema.Union<[Schema.Union<[Schema.Struct<{
|
|
118
|
-
error: Schema.Literal<
|
|
119
|
-
message: Schema.optional<
|
|
120
|
-
details: Schema.optional<
|
|
117
|
+
readonly result: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
118
|
+
readonly error: Schema.Literal<"app">;
|
|
119
|
+
readonly message: Schema.optional<Schema.String>;
|
|
120
|
+
readonly details: Schema.optional<Schema.Unknown>;
|
|
121
121
|
}>, Schema.Struct<{
|
|
122
|
-
error: Schema.
|
|
123
|
-
details: Schema.optional<
|
|
122
|
+
readonly error: Schema.Literals<readonly ["oooMutation", "alreadyProcessed"]>;
|
|
123
|
+
readonly details: Schema.optional<Schema.Unknown>;
|
|
124
124
|
}>]>, Schema.Struct<{
|
|
125
|
-
data: Schema.optional<
|
|
125
|
+
readonly data: Schema.optional<Schema.Unknown>;
|
|
126
126
|
}>]>;
|
|
127
127
|
}>;
|
|
128
128
|
export type MutationResponse = typeof MutationResponse.Type;
|
|
129
|
-
export declare const PushResponse: Schema.Union<[Schema.Union<[Schema.Struct<{
|
|
130
|
-
mutations: Schema
|
|
131
|
-
id: Schema.Struct<{
|
|
132
|
-
id:
|
|
133
|
-
clientID:
|
|
129
|
+
export declare const PushResponse: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
130
|
+
readonly mutations: Schema.$Array<Schema.Struct<{
|
|
131
|
+
readonly id: Schema.Struct<{
|
|
132
|
+
readonly id: Schema.Number;
|
|
133
|
+
readonly clientID: Schema.String;
|
|
134
134
|
}>;
|
|
135
|
-
result: Schema.Union<[Schema.Union<[Schema.Struct<{
|
|
136
|
-
error: Schema.Literal<
|
|
137
|
-
message: Schema.optional<
|
|
138
|
-
details: Schema.optional<
|
|
135
|
+
readonly result: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
136
|
+
readonly error: Schema.Literal<"app">;
|
|
137
|
+
readonly message: Schema.optional<Schema.String>;
|
|
138
|
+
readonly details: Schema.optional<Schema.Unknown>;
|
|
139
139
|
}>, Schema.Struct<{
|
|
140
|
-
error: Schema.
|
|
141
|
-
details: Schema.optional<
|
|
140
|
+
readonly error: Schema.Literals<readonly ["oooMutation", "alreadyProcessed"]>;
|
|
141
|
+
readonly details: Schema.optional<Schema.Unknown>;
|
|
142
142
|
}>]>, Schema.Struct<{
|
|
143
|
-
data: Schema.optional<
|
|
143
|
+
readonly data: Schema.optional<Schema.Unknown>;
|
|
144
144
|
}>]>;
|
|
145
145
|
}>>;
|
|
146
|
-
}>, Schema.Union<[Schema.Struct<{
|
|
146
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
147
147
|
/** @deprecated */
|
|
148
|
-
error: Schema.Literal<
|
|
148
|
+
readonly error: Schema.Literal<"unsupportedPushVersion">;
|
|
149
149
|
/** @deprecated */
|
|
150
|
-
mutationIDs: Schema.optional<Schema
|
|
151
|
-
id:
|
|
152
|
-
clientID:
|
|
150
|
+
readonly mutationIDs: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
151
|
+
readonly id: Schema.Number;
|
|
152
|
+
readonly clientID: Schema.String;
|
|
153
153
|
}>>>;
|
|
154
154
|
}>, Schema.Struct<{
|
|
155
155
|
/** @deprecated */
|
|
156
|
-
error: Schema.Literal<
|
|
156
|
+
readonly error: Schema.Literal<"unsupportedSchemaVersion">;
|
|
157
157
|
/** @deprecated */
|
|
158
|
-
mutationIDs: Schema.optional<Schema
|
|
159
|
-
id:
|
|
160
|
-
clientID:
|
|
158
|
+
readonly mutationIDs: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
159
|
+
readonly id: Schema.Number;
|
|
160
|
+
readonly clientID: Schema.String;
|
|
161
161
|
}>>>;
|
|
162
162
|
}>, Schema.Struct<{
|
|
163
163
|
/** @deprecated */
|
|
164
|
-
error: Schema.Literal<
|
|
164
|
+
readonly error: Schema.Literal<"http">;
|
|
165
165
|
/** @deprecated */
|
|
166
|
-
status:
|
|
166
|
+
readonly status: Schema.Number;
|
|
167
167
|
/** @deprecated */
|
|
168
|
-
details:
|
|
168
|
+
readonly details: Schema.String;
|
|
169
169
|
/** @deprecated */
|
|
170
|
-
mutationIDs: Schema.optional<Schema
|
|
171
|
-
id:
|
|
172
|
-
clientID:
|
|
170
|
+
readonly mutationIDs: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
171
|
+
readonly id: Schema.Number;
|
|
172
|
+
readonly clientID: Schema.String;
|
|
173
173
|
}>>>;
|
|
174
174
|
}>, Schema.Struct<{
|
|
175
175
|
/** @deprecated */
|
|
176
|
-
error: Schema.Literal<
|
|
176
|
+
readonly error: Schema.Literal<"zeroPusher">;
|
|
177
177
|
/** @deprecated */
|
|
178
|
-
details:
|
|
178
|
+
readonly details: Schema.String;
|
|
179
179
|
/** @deprecated */
|
|
180
|
-
mutationIDs: Schema.optional<Schema
|
|
181
|
-
id:
|
|
182
|
-
clientID:
|
|
180
|
+
readonly mutationIDs: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
181
|
+
readonly id: Schema.Number;
|
|
182
|
+
readonly clientID: Schema.String;
|
|
183
183
|
}>>>;
|
|
184
|
-
}>]>]>, Schema.Union<[Schema.Struct<{
|
|
185
|
-
origin: Schema.Literal<
|
|
186
|
-
reason: Schema.
|
|
187
|
-
kind: Schema.Literal<
|
|
188
|
-
details: Schema.optional<
|
|
189
|
-
mutationIDs: Schema
|
|
190
|
-
id:
|
|
191
|
-
clientID:
|
|
184
|
+
}>]>]>, Schema.Union<readonly [Schema.Struct<{
|
|
185
|
+
readonly origin: Schema.Literal<"server">;
|
|
186
|
+
readonly reason: Schema.Literals<readonly ["database", "parse", "oooMutation", "unsupportedPushVersion", "internal"]>;
|
|
187
|
+
readonly kind: Schema.Literal<"PushFailed">;
|
|
188
|
+
readonly details: Schema.optional<Schema.Unknown>;
|
|
189
|
+
readonly mutationIDs: Schema.$Array<Schema.Struct<{
|
|
190
|
+
readonly id: Schema.Number;
|
|
191
|
+
readonly clientID: Schema.String;
|
|
192
192
|
}>>;
|
|
193
|
-
message:
|
|
193
|
+
readonly message: Schema.String;
|
|
194
194
|
}>, Schema.Struct<{
|
|
195
|
-
origin: Schema.Literal<
|
|
196
|
-
reason: Schema.Literal<
|
|
197
|
-
status:
|
|
198
|
-
bodyPreview: Schema.optional<
|
|
199
|
-
kind: Schema.Literal<
|
|
200
|
-
details: Schema.optional<
|
|
201
|
-
mutationIDs: Schema
|
|
202
|
-
id:
|
|
203
|
-
clientID:
|
|
195
|
+
readonly origin: Schema.Literal<"zeroCache">;
|
|
196
|
+
readonly reason: Schema.Literal<"http">;
|
|
197
|
+
readonly status: Schema.Number;
|
|
198
|
+
readonly bodyPreview: Schema.optional<Schema.String>;
|
|
199
|
+
readonly kind: Schema.Literal<"PushFailed">;
|
|
200
|
+
readonly details: Schema.optional<Schema.Unknown>;
|
|
201
|
+
readonly mutationIDs: Schema.$Array<Schema.Struct<{
|
|
202
|
+
readonly id: Schema.Number;
|
|
203
|
+
readonly clientID: Schema.String;
|
|
204
204
|
}>>;
|
|
205
|
-
message:
|
|
205
|
+
readonly message: Schema.String;
|
|
206
206
|
}>, Schema.Struct<{
|
|
207
|
-
origin: Schema.Literal<
|
|
208
|
-
reason: Schema.
|
|
209
|
-
kind: Schema.Literal<
|
|
210
|
-
details: Schema.optional<
|
|
211
|
-
mutationIDs: Schema
|
|
212
|
-
id:
|
|
213
|
-
clientID:
|
|
207
|
+
readonly origin: Schema.Literal<"zeroCache">;
|
|
208
|
+
readonly reason: Schema.Literals<readonly ["timeout", "parse", "internal"]>;
|
|
209
|
+
readonly kind: Schema.Literal<"PushFailed">;
|
|
210
|
+
readonly details: Schema.optional<Schema.Unknown>;
|
|
211
|
+
readonly mutationIDs: Schema.$Array<Schema.Struct<{
|
|
212
|
+
readonly id: Schema.Number;
|
|
213
|
+
readonly clientID: Schema.String;
|
|
214
214
|
}>>;
|
|
215
|
-
message:
|
|
215
|
+
readonly message: Schema.String;
|
|
216
216
|
}>]>]>;
|
|
217
217
|
export type PushResponse = typeof PushResponse.Type;
|
|
218
218
|
/**
|
|
219
219
|
* The schema for the querystring parameters of the custom push endpoint.
|
|
220
220
|
*/
|
|
221
221
|
export declare const PushParams: Schema.Struct<{
|
|
222
|
-
schema:
|
|
223
|
-
appID:
|
|
222
|
+
readonly schema: Schema.String;
|
|
223
|
+
readonly appID: Schema.String;
|
|
224
224
|
}>;
|
|
225
225
|
export type PushParams = typeof PushParams.Type;
|
|
226
226
|
//# sourceMappingURL=push.d.ts.map
|
package/dist/types/push.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push.d.ts","sourceRoot":"","sources":["../../src/types/push.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAiHxC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"push.d.ts","sourceRoot":"","sources":["../../src/types/push.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAiHxC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAA+C,CAAC;AACrE,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC,IAAI,CAAC;AAE5C,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUnB;;;OAGG;;EAEH,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC,IAAI,CAAC;AAU5C,eAAO,MAAM,QAAQ;;;;EAKnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC,IAAI,CAAC;AAE5C,eAAO,MAAM,SAAS;;;EAOpB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,IAAI,CAAC;AAS9C,eAAO,MAAM,cAAc;;;;;;;;;IAIzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAC;AAExD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAG3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,IAAI,CAAC;AA2D5D,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;IAjDvB,kBAAkB;;IAElB,kBAAkB;;;;;;IAQlB,kBAAkB;;IAElB,kBAAkB;;;;;;IAQlB,kBAAkB;;IAElB,kBAAkB;;IAElB,kBAAkB;;IAElB,kBAAkB;;;;;;IAQlB,kBAAkB;;IAElB,kBAAkB;;IAElB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWwD,CAAC;AAC7E,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAC;AAQpD;;GAEG;AACH,eAAO,MAAM,UAAU;;;EAGrB,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,IAAI,CAAC"}
|
package/dist/types/push.js
CHANGED
|
@@ -4,34 +4,35 @@ import { PushFailedBody } from "./error.js";
|
|
|
4
4
|
// The code below was converted to Effect Schema from:
|
|
5
5
|
// https://github.com/rocicorp/mono/blob/8e0f600fb3a9185facf60cfd4971d260b266690e/packages/zero-protocol/src/push.ts
|
|
6
6
|
const PrimaryKey = Schema.Array(Schema.String);
|
|
7
|
-
const PrimaryKeyValue = Schema.Union(Schema.String, Schema.Number, Schema.Boolean);
|
|
8
|
-
const PrimaryKeyValueRecord = Schema.Record(
|
|
9
|
-
const Value = Schema.Union(JsonSchema, Schema.Undefined);
|
|
10
|
-
const Row = Schema.Record(
|
|
7
|
+
const PrimaryKeyValue = Schema.Union([Schema.String, Schema.Number, Schema.Boolean]);
|
|
8
|
+
const PrimaryKeyValueRecord = Schema.Record(Schema.String, PrimaryKeyValue);
|
|
9
|
+
const Value = Schema.Union([JsonSchema, Schema.Undefined]);
|
|
10
|
+
const Row = Schema.Record(Schema.String, Value);
|
|
11
11
|
const CRUD_MUTATION_NAME = "_zero_crud";
|
|
12
12
|
// biome-ignore lint/correctness/noUnusedVariables: borrowed code
|
|
13
13
|
const CLEANUP_RESULTS_MUTATION_NAME = "_zero_cleanupResults";
|
|
14
14
|
// biome-ignore lint/correctness/noUnusedVariables: borrowed code
|
|
15
|
-
const CleanupResultsArg = Schema.Union(
|
|
16
|
-
// Legacy format (no type field) - treat as single
|
|
17
|
-
Schema.Struct({
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}),
|
|
22
|
-
// Explicit single: delete up to a specific mutation ID for one client
|
|
23
|
-
Schema.Struct({
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}),
|
|
29
|
-
// Bulk: delete all mutations for multiple clients
|
|
30
|
-
Schema.Struct({
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
})
|
|
15
|
+
const CleanupResultsArg = Schema.Union([
|
|
16
|
+
// Legacy format (no type field) - treat as single
|
|
17
|
+
Schema.Struct({
|
|
18
|
+
clientGroupID: Schema.String,
|
|
19
|
+
clientID: Schema.String,
|
|
20
|
+
upToMutationID: Schema.Number,
|
|
21
|
+
}),
|
|
22
|
+
// Explicit single: delete up to a specific mutation ID for one client
|
|
23
|
+
Schema.Struct({
|
|
24
|
+
type: Schema.Literal("single"),
|
|
25
|
+
clientGroupID: Schema.String,
|
|
26
|
+
clientID: Schema.String,
|
|
27
|
+
upToMutationID: Schema.Number,
|
|
28
|
+
}),
|
|
29
|
+
// Bulk: delete all mutations for multiple clients
|
|
30
|
+
Schema.Struct({
|
|
31
|
+
type: Schema.Literal("bulk"),
|
|
32
|
+
clientGroupID: Schema.String,
|
|
33
|
+
clientIDs: Schema.NonEmptyArray(Schema.String),
|
|
34
|
+
}),
|
|
35
|
+
]);
|
|
35
36
|
/**
|
|
36
37
|
* Inserts if entity with id does not already exist.
|
|
37
38
|
*/
|
|
@@ -71,11 +72,11 @@ const DeleteOp = Schema.Struct({
|
|
|
71
72
|
// Partial value representing the primary key
|
|
72
73
|
value: PrimaryKeyValueRecord,
|
|
73
74
|
});
|
|
74
|
-
const CrudOp = Schema.Union(InsertOp, UpsertOp, UpdateOp, DeleteOp);
|
|
75
|
+
const CrudOp = Schema.Union([InsertOp, UpsertOp, UpdateOp, DeleteOp]);
|
|
75
76
|
const CrudArg = Schema.Struct({
|
|
76
77
|
ops: Schema.Array(CrudOp),
|
|
77
78
|
});
|
|
78
|
-
const CrudArgs = Schema.Tuple(CrudArg);
|
|
79
|
+
const CrudArgs = Schema.Tuple([CrudArg]);
|
|
79
80
|
const CrudMutation = Schema.Struct({
|
|
80
81
|
type: Schema.Literal("crud"),
|
|
81
82
|
id: Schema.Number,
|
|
@@ -92,7 +93,7 @@ const CustomMutation = Schema.Struct({
|
|
|
92
93
|
args: Schema.Array(JsonSchema),
|
|
93
94
|
timestamp: Schema.Number,
|
|
94
95
|
});
|
|
95
|
-
export const Mutation = Schema.Union(CrudMutation, CustomMutation);
|
|
96
|
+
export const Mutation = Schema.Union([CrudMutation, CustomMutation]);
|
|
96
97
|
export const PushBody = Schema.Struct({
|
|
97
98
|
clientGroupID: Schema.String,
|
|
98
99
|
mutations: Schema.Array(Mutation),
|
|
@@ -110,7 +111,7 @@ export const PushBody = Schema.Struct({
|
|
|
110
111
|
auth: Schema.optional(Schema.String),
|
|
111
112
|
});
|
|
112
113
|
// biome-ignore lint/correctness/noUnusedVariables: borrowed code
|
|
113
|
-
const PushMessage = Schema.Tuple(Schema.Literal("push"), PushBody);
|
|
114
|
+
const PushMessage = Schema.Tuple([Schema.Literal("push"), PushBody]);
|
|
114
115
|
const MutationId = Schema.Struct({
|
|
115
116
|
id: Schema.Number,
|
|
116
117
|
clientID: Schema.String,
|
|
@@ -122,19 +123,23 @@ export const AppError = Schema.Struct({
|
|
|
122
123
|
details: Schema.optional(JsonSchema),
|
|
123
124
|
});
|
|
124
125
|
export const ZeroError = Schema.Struct({
|
|
125
|
-
error: Schema.
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
error: Schema.Literals([
|
|
127
|
+
/** @deprecated push oooMutation errors are now represented as ['error', { ... }] messages */
|
|
128
|
+
"oooMutation",
|
|
129
|
+
"alreadyProcessed",
|
|
130
|
+
]),
|
|
128
131
|
details: Schema.optional(JsonSchema),
|
|
129
132
|
});
|
|
130
133
|
const MutationOk = Schema.Struct({
|
|
131
134
|
// The user can return any additional data here
|
|
132
135
|
data: Schema.optional(JsonSchema),
|
|
133
136
|
});
|
|
134
|
-
const MutationError = Schema.Union(AppError, ZeroError);
|
|
135
|
-
export const MutationResult = Schema.Union(
|
|
136
|
-
// We flip the original order here as otherwise values of type MutationError would get parsed as MutationOk with empty `data`
|
|
137
|
-
MutationError,
|
|
137
|
+
const MutationError = Schema.Union([AppError, ZeroError]);
|
|
138
|
+
export const MutationResult = Schema.Union([
|
|
139
|
+
// We flip the original order here as otherwise values of type MutationError would get parsed as MutationOk with empty `data`
|
|
140
|
+
MutationError,
|
|
141
|
+
MutationOk,
|
|
142
|
+
]);
|
|
138
143
|
export const MutationResponse = Schema.Struct({
|
|
139
144
|
id: MutationId,
|
|
140
145
|
result: MutationResult,
|
|
@@ -187,13 +192,13 @@ const ZeroPusherError = Schema.Struct({
|
|
|
187
192
|
/**
|
|
188
193
|
* @deprecated push errors are now represented as ['error', { ... }] messages
|
|
189
194
|
*/
|
|
190
|
-
const PushError = Schema.Union(UnsupportedPushVersion, UnsupportedSchemaVersion, HttpError, ZeroPusherError);
|
|
191
|
-
const PushResponseBody = Schema.Union(PushOk, PushError);
|
|
192
|
-
export const PushResponse = Schema.Union(PushResponseBody, PushFailedBody);
|
|
195
|
+
const PushError = Schema.Union([UnsupportedPushVersion, UnsupportedSchemaVersion, HttpError, ZeroPusherError]);
|
|
196
|
+
const PushResponseBody = Schema.Union([PushOk, PushError]);
|
|
197
|
+
export const PushResponse = Schema.Union([PushResponseBody, PushFailedBody]);
|
|
193
198
|
// biome-ignore lint/correctness/noUnusedVariables: borrowed code
|
|
194
|
-
const PushResponseMessage = Schema.Tuple(Schema.Literal("pushResponse"), PushResponseBody);
|
|
199
|
+
const PushResponseMessage = Schema.Tuple([Schema.Literal("pushResponse"), PushResponseBody]);
|
|
195
200
|
// biome-ignore lint/correctness/noUnusedVariables: borrowed code
|
|
196
|
-
const AckMutationResponsesMessage = Schema.Tuple(Schema.Literal("ackMutationResponses"), MutationId);
|
|
201
|
+
const AckMutationResponsesMessage = Schema.Tuple([Schema.Literal("ackMutationResponses"), MutationId]);
|
|
197
202
|
/**
|
|
198
203
|
* The schema for the querystring parameters of the custom push endpoint.
|
|
199
204
|
*/
|
package/dist/types/push.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push.js","sourceRoot":"","sources":["../../src/types/push.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,sDAAsD;AACtD,oHAAoH;AAEpH,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC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