effect-app 4.0.0-beta.303 → 4.0.0-beta.304
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 +6 -0
- package/dist/DataDependencies.d.ts +173 -310
- package/dist/DataDependencies.d.ts.map +1 -1
- package/dist/DataDependencies.js +51 -8
- package/dist/Model/Repository/internal/internal.d.ts +2 -0
- package/dist/Model/Repository/internal/internal.d.ts.map +1 -1
- package/dist/Model/Repository/internal/internal.js +27 -10
- package/dist/Model/Repository/makeRepo.d.ts +2 -0
- package/dist/Model/Repository/makeRepo.d.ts.map +1 -1
- package/dist/Model/Repository/makeRepo.js +1 -1
- package/dist/rpc/Invalidation.d.ts +1506 -2586
- package/dist/rpc/Invalidation.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/DataDependencies.ts +57 -8
- package/src/Model/Repository/internal/internal.ts +32 -9
- package/src/Model/Repository/makeRepo.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @effect-app/prelude
|
|
2
2
|
|
|
3
|
+
## 4.0.0-beta.304
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 412f08b: Include changed entity IDs in repository data dependencies, with explicit query scopes and configurable write aliases, while retaining coarse collection dependencies.
|
|
8
|
+
|
|
3
9
|
## 4.0.0-beta.303
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -1,360 +1,221 @@
|
|
|
1
|
+
import type { NonEmptyReadonlyArray } from "effect/Array";
|
|
1
2
|
import * as Ref from "effect/Ref";
|
|
2
3
|
import * as Stream from "effect/Stream";
|
|
3
4
|
import * as Effect from "./Effect.js";
|
|
4
5
|
import * as RequestScopedDependencies from "./RequestScopedDependencies.js";
|
|
5
6
|
import * as S from "./Schema.js";
|
|
6
|
-
export declare const DataDependency: S.Struct<{
|
|
7
|
-
readonly type:
|
|
8
|
-
changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
|
|
9
|
-
Default: A;
|
|
10
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
11
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
12
|
-
};
|
|
13
|
-
Default: "repo";
|
|
14
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
15
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
16
|
-
};
|
|
7
|
+
export declare const DataDependency: S.Union<readonly [S.Struct<{
|
|
8
|
+
readonly type: S.Literal<"repo">;
|
|
17
9
|
readonly name: S.String;
|
|
18
|
-
|
|
10
|
+
readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
|
|
11
|
+
}>, S.Struct<{
|
|
12
|
+
readonly type: S.Literal<"signal">;
|
|
13
|
+
readonly name: S.String;
|
|
14
|
+
}>]>;
|
|
19
15
|
export type DataDependency = S.Schema.Type<typeof DataDependency>;
|
|
20
16
|
export declare const DataDependencies: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
|
|
21
|
-
readonly type:
|
|
22
|
-
changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
|
|
23
|
-
Default: A;
|
|
24
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
25
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
26
|
-
};
|
|
27
|
-
Default: "repo";
|
|
28
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
29
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
30
|
-
};
|
|
17
|
+
readonly type: S.Literal<"signal">;
|
|
31
18
|
readonly name: S.String;
|
|
32
|
-
}, "Type"
|
|
33
|
-
readonly type:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
};
|
|
39
|
-
Default: "repo";
|
|
40
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
41
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
42
|
-
};
|
|
19
|
+
}, "Type"> | {
|
|
20
|
+
readonly type: "repo";
|
|
21
|
+
readonly name: string;
|
|
22
|
+
readonly ids?: readonly [string, ...string[]] | undefined;
|
|
23
|
+
}>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
|
|
24
|
+
readonly type: S.Literal<"signal">;
|
|
43
25
|
readonly name: S.String;
|
|
44
|
-
}, "Type"
|
|
45
|
-
readonly type:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
};
|
|
51
|
-
Default: "repo";
|
|
52
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
53
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
54
|
-
};
|
|
26
|
+
}, "Type"> | {
|
|
27
|
+
readonly type: "repo";
|
|
28
|
+
readonly name: string;
|
|
29
|
+
readonly ids?: readonly [string, ...string[]] | undefined;
|
|
30
|
+
}>>, S.$Array<S.Union<readonly [S.Struct<{
|
|
31
|
+
readonly type: S.Literal<"repo">;
|
|
55
32
|
readonly name: S.String;
|
|
56
|
-
|
|
33
|
+
readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
|
|
34
|
+
}>, S.Struct<{
|
|
35
|
+
readonly type: S.Literal<"signal">;
|
|
36
|
+
readonly name: S.String;
|
|
37
|
+
}>]>>, never, never> & {
|
|
57
38
|
withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
|
|
58
|
-
readonly type:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
67
|
-
};
|
|
39
|
+
readonly type: S.Literal<"signal">;
|
|
40
|
+
readonly name: S.String;
|
|
41
|
+
}, "Type"> | {
|
|
42
|
+
readonly type: "repo";
|
|
43
|
+
readonly name: string;
|
|
44
|
+
readonly ids?: readonly [string, ...string[]] | undefined;
|
|
45
|
+
}>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
|
|
46
|
+
readonly type: S.Literal<"signal">;
|
|
68
47
|
readonly name: S.String;
|
|
69
|
-
}, "Type"
|
|
70
|
-
readonly type:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
};
|
|
76
|
-
Default: "repo";
|
|
77
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
78
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
79
|
-
};
|
|
48
|
+
}, "Type"> | {
|
|
49
|
+
readonly type: "repo";
|
|
50
|
+
readonly name: string;
|
|
51
|
+
readonly ids?: readonly [string, ...string[]] | undefined;
|
|
52
|
+
}>>, S.$Array<S.Union<readonly [S.Struct<{
|
|
53
|
+
readonly type: S.Literal<"repo">;
|
|
80
54
|
readonly name: S.String;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
Default: A;
|
|
85
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
86
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
87
|
-
};
|
|
88
|
-
Default: "repo";
|
|
89
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
90
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
91
|
-
};
|
|
55
|
+
readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
|
|
56
|
+
}>, S.Struct<{
|
|
57
|
+
readonly type: S.Literal<"signal">;
|
|
92
58
|
readonly name: S.String;
|
|
93
|
-
}>>, never, never>>;
|
|
59
|
+
}>]>>, never, never>>;
|
|
94
60
|
withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
|
|
95
|
-
readonly type:
|
|
96
|
-
changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
|
|
97
|
-
Default: A;
|
|
98
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
99
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
100
|
-
};
|
|
101
|
-
Default: "repo";
|
|
102
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
103
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
104
|
-
};
|
|
61
|
+
readonly type: S.Literal<"signal">;
|
|
105
62
|
readonly name: S.String;
|
|
106
|
-
}, "Type"
|
|
107
|
-
readonly type:
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
};
|
|
113
|
-
Default: "repo";
|
|
114
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
115
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
116
|
-
};
|
|
63
|
+
}, "Type"> | {
|
|
64
|
+
readonly type: "repo";
|
|
65
|
+
readonly name: string;
|
|
66
|
+
readonly ids?: readonly [string, ...string[]] | undefined;
|
|
67
|
+
}>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
|
|
68
|
+
readonly type: S.Literal<"signal">;
|
|
117
69
|
readonly name: S.String;
|
|
118
|
-
}, "Type"
|
|
119
|
-
readonly type:
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
};
|
|
125
|
-
Default: "repo";
|
|
126
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
127
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
128
|
-
};
|
|
70
|
+
}, "Type"> | {
|
|
71
|
+
readonly type: "repo";
|
|
72
|
+
readonly name: string;
|
|
73
|
+
readonly ids?: readonly [string, ...string[]] | undefined;
|
|
74
|
+
}>>, S.$Array<S.Union<readonly [S.Struct<{
|
|
75
|
+
readonly type: S.Literal<"repo">;
|
|
129
76
|
readonly name: S.String;
|
|
130
|
-
|
|
77
|
+
readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
|
|
78
|
+
}>, S.Struct<{
|
|
79
|
+
readonly type: S.Literal<"signal">;
|
|
80
|
+
readonly name: S.String;
|
|
81
|
+
}>]>>, never, never>, never>;
|
|
131
82
|
};
|
|
132
83
|
export type DataDependencies = S.Schema.Type<typeof DataDependencies>;
|
|
133
84
|
export declare const empty: () => DataDependencies;
|
|
134
85
|
export declare const DataDependencySet: S.Struct<{
|
|
135
86
|
readonly reads: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
|
|
136
|
-
readonly type:
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
145
|
-
};
|
|
87
|
+
readonly type: S.Literal<"signal">;
|
|
88
|
+
readonly name: S.String;
|
|
89
|
+
}, "Type"> | {
|
|
90
|
+
readonly type: "repo";
|
|
91
|
+
readonly name: string;
|
|
92
|
+
readonly ids?: readonly [string, ...string[]] | undefined;
|
|
93
|
+
}>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
|
|
94
|
+
readonly type: S.Literal<"signal">;
|
|
146
95
|
readonly name: S.String;
|
|
147
|
-
}, "Type"
|
|
148
|
-
readonly type:
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
};
|
|
154
|
-
Default: "repo";
|
|
155
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
156
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
157
|
-
};
|
|
96
|
+
}, "Type"> | {
|
|
97
|
+
readonly type: "repo";
|
|
98
|
+
readonly name: string;
|
|
99
|
+
readonly ids?: readonly [string, ...string[]] | undefined;
|
|
100
|
+
}>>, S.$Array<S.Union<readonly [S.Struct<{
|
|
101
|
+
readonly type: S.Literal<"repo">;
|
|
158
102
|
readonly name: S.String;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
Default: A;
|
|
163
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
164
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
165
|
-
};
|
|
166
|
-
Default: "repo";
|
|
167
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
168
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
169
|
-
};
|
|
103
|
+
readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
|
|
104
|
+
}>, S.Struct<{
|
|
105
|
+
readonly type: S.Literal<"signal">;
|
|
170
106
|
readonly name: S.String;
|
|
171
|
-
}>>, never, never> & {
|
|
107
|
+
}>]>>, never, never> & {
|
|
172
108
|
withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
|
|
173
|
-
readonly type:
|
|
174
|
-
changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
|
|
175
|
-
Default: A;
|
|
176
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
177
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
178
|
-
};
|
|
179
|
-
Default: "repo";
|
|
180
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
181
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
182
|
-
};
|
|
109
|
+
readonly type: S.Literal<"signal">;
|
|
183
110
|
readonly name: S.String;
|
|
184
|
-
}, "Type"
|
|
185
|
-
readonly type:
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
};
|
|
191
|
-
Default: "repo";
|
|
192
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
193
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
194
|
-
};
|
|
111
|
+
}, "Type"> | {
|
|
112
|
+
readonly type: "repo";
|
|
113
|
+
readonly name: string;
|
|
114
|
+
readonly ids?: readonly [string, ...string[]] | undefined;
|
|
115
|
+
}>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
|
|
116
|
+
readonly type: S.Literal<"signal">;
|
|
195
117
|
readonly name: S.String;
|
|
196
|
-
}, "Type"
|
|
197
|
-
readonly type:
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
};
|
|
203
|
-
Default: "repo";
|
|
204
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
205
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
206
|
-
};
|
|
118
|
+
}, "Type"> | {
|
|
119
|
+
readonly type: "repo";
|
|
120
|
+
readonly name: string;
|
|
121
|
+
readonly ids?: readonly [string, ...string[]] | undefined;
|
|
122
|
+
}>>, S.$Array<S.Union<readonly [S.Struct<{
|
|
123
|
+
readonly type: S.Literal<"repo">;
|
|
207
124
|
readonly name: S.String;
|
|
208
|
-
|
|
125
|
+
readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
|
|
126
|
+
}>, S.Struct<{
|
|
127
|
+
readonly type: S.Literal<"signal">;
|
|
128
|
+
readonly name: S.String;
|
|
129
|
+
}>]>>, never, never>>;
|
|
209
130
|
withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
|
|
210
|
-
readonly type:
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
219
|
-
};
|
|
131
|
+
readonly type: S.Literal<"signal">;
|
|
132
|
+
readonly name: S.String;
|
|
133
|
+
}, "Type"> | {
|
|
134
|
+
readonly type: "repo";
|
|
135
|
+
readonly name: string;
|
|
136
|
+
readonly ids?: readonly [string, ...string[]] | undefined;
|
|
137
|
+
}>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
|
|
138
|
+
readonly type: S.Literal<"signal">;
|
|
220
139
|
readonly name: S.String;
|
|
221
|
-
}, "Type"
|
|
222
|
-
readonly type:
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
};
|
|
228
|
-
Default: "repo";
|
|
229
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
230
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
231
|
-
};
|
|
140
|
+
}, "Type"> | {
|
|
141
|
+
readonly type: "repo";
|
|
142
|
+
readonly name: string;
|
|
143
|
+
readonly ids?: readonly [string, ...string[]] | undefined;
|
|
144
|
+
}>>, S.$Array<S.Union<readonly [S.Struct<{
|
|
145
|
+
readonly type: S.Literal<"repo">;
|
|
232
146
|
readonly name: S.String;
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
Default: A;
|
|
237
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
238
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
239
|
-
};
|
|
240
|
-
Default: "repo";
|
|
241
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
242
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
243
|
-
};
|
|
147
|
+
readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
|
|
148
|
+
}>, S.Struct<{
|
|
149
|
+
readonly type: S.Literal<"signal">;
|
|
244
150
|
readonly name: S.String;
|
|
245
|
-
}>>, never, never>, never>;
|
|
151
|
+
}>]>>, never, never>, never>;
|
|
246
152
|
};
|
|
247
153
|
readonly writes: S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
|
|
248
|
-
readonly type:
|
|
249
|
-
changeDefault: <A extends "repo" | "signal">(a: A) => import("effect/Schema").Literals<readonly ["repo", "signal"]> & {
|
|
250
|
-
Default: A;
|
|
251
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
252
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
253
|
-
};
|
|
254
|
-
Default: "repo";
|
|
255
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
256
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
257
|
-
};
|
|
154
|
+
readonly type: S.Literal<"signal">;
|
|
258
155
|
readonly name: S.String;
|
|
259
|
-
}, "Type"
|
|
260
|
-
readonly type:
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
};
|
|
266
|
-
Default: "repo";
|
|
267
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
268
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
269
|
-
};
|
|
156
|
+
}, "Type"> | {
|
|
157
|
+
readonly type: "repo";
|
|
158
|
+
readonly name: string;
|
|
159
|
+
readonly ids?: readonly [string, ...string[]] | undefined;
|
|
160
|
+
}>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
|
|
161
|
+
readonly type: S.Literal<"signal">;
|
|
270
162
|
readonly name: S.String;
|
|
271
|
-
}, "Type"
|
|
272
|
-
readonly type:
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
};
|
|
278
|
-
Default: "repo";
|
|
279
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
280
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
281
|
-
};
|
|
163
|
+
}, "Type"> | {
|
|
164
|
+
readonly type: "repo";
|
|
165
|
+
readonly name: string;
|
|
166
|
+
readonly ids?: readonly [string, ...string[]] | undefined;
|
|
167
|
+
}>>, S.$Array<S.Union<readonly [S.Struct<{
|
|
168
|
+
readonly type: S.Literal<"repo">;
|
|
282
169
|
readonly name: S.String;
|
|
283
|
-
|
|
170
|
+
readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
|
|
171
|
+
}>, S.Struct<{
|
|
172
|
+
readonly type: S.Literal<"signal">;
|
|
173
|
+
readonly name: S.String;
|
|
174
|
+
}>]>>, never, never> & {
|
|
284
175
|
withConstructorDefault: S.withConstructorDefault<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
|
|
285
|
-
readonly type:
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
294
|
-
};
|
|
176
|
+
readonly type: S.Literal<"signal">;
|
|
177
|
+
readonly name: S.String;
|
|
178
|
+
}, "Type"> | {
|
|
179
|
+
readonly type: "repo";
|
|
180
|
+
readonly name: string;
|
|
181
|
+
readonly ids?: readonly [string, ...string[]] | undefined;
|
|
182
|
+
}>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
|
|
183
|
+
readonly type: S.Literal<"signal">;
|
|
295
184
|
readonly name: S.String;
|
|
296
|
-
}, "Type"
|
|
297
|
-
readonly type:
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
};
|
|
303
|
-
Default: "repo";
|
|
304
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
305
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
306
|
-
};
|
|
185
|
+
}, "Type"> | {
|
|
186
|
+
readonly type: "repo";
|
|
187
|
+
readonly name: string;
|
|
188
|
+
readonly ids?: readonly [string, ...string[]] | undefined;
|
|
189
|
+
}>>, S.$Array<S.Union<readonly [S.Struct<{
|
|
190
|
+
readonly type: S.Literal<"repo">;
|
|
307
191
|
readonly name: S.String;
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
Default: A;
|
|
312
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
313
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
314
|
-
};
|
|
315
|
-
Default: "repo";
|
|
316
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
317
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
318
|
-
};
|
|
192
|
+
readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
|
|
193
|
+
}>, S.Struct<{
|
|
194
|
+
readonly type: S.Literal<"signal">;
|
|
319
195
|
readonly name: S.String;
|
|
320
|
-
}>>, never, never>>;
|
|
196
|
+
}>]>>, never, never>>;
|
|
321
197
|
withDecodingDefaultType: S.withDecodingDefaultType<S.decodeTo<S.instanceOf<ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
|
|
322
|
-
readonly type:
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
331
|
-
};
|
|
198
|
+
readonly type: S.Literal<"signal">;
|
|
199
|
+
readonly name: S.String;
|
|
200
|
+
}, "Type"> | {
|
|
201
|
+
readonly type: "repo";
|
|
202
|
+
readonly name: string;
|
|
203
|
+
readonly ids?: readonly [string, ...string[]] | undefined;
|
|
204
|
+
}>, ReadonlySet<import("effect/Schema").Struct.ReadonlySide<{
|
|
205
|
+
readonly type: S.Literal<"signal">;
|
|
332
206
|
readonly name: S.String;
|
|
333
|
-
}, "Type"
|
|
334
|
-
readonly type:
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
};
|
|
340
|
-
Default: "repo";
|
|
341
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
342
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
343
|
-
};
|
|
207
|
+
}, "Type"> | {
|
|
208
|
+
readonly type: "repo";
|
|
209
|
+
readonly name: string;
|
|
210
|
+
readonly ids?: readonly [string, ...string[]] | undefined;
|
|
211
|
+
}>>, S.$Array<S.Union<readonly [S.Struct<{
|
|
212
|
+
readonly type: S.Literal<"repo">;
|
|
344
213
|
readonly name: S.String;
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
Default: A;
|
|
349
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
350
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
351
|
-
};
|
|
352
|
-
Default: "repo";
|
|
353
|
-
withConstructorDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["repo", "signal"]>>;
|
|
354
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["repo", "signal"]>, never>;
|
|
355
|
-
};
|
|
214
|
+
readonly ids: S.optional<import("effect/Schema").NonEmptyArray<S.String>>;
|
|
215
|
+
}>, S.Struct<{
|
|
216
|
+
readonly type: S.Literal<"signal">;
|
|
356
217
|
readonly name: S.String;
|
|
357
|
-
}>>, never, never>, never>;
|
|
218
|
+
}>]>>, never, never>, never>;
|
|
358
219
|
};
|
|
359
220
|
}>;
|
|
360
221
|
export type DataDependencySet = S.Schema.Type<typeof DataDependencySet>;
|
|
@@ -378,8 +239,10 @@ export declare const ensureDataDependencyRecorder: <A, E, R>(self: Effect.Effect
|
|
|
378
239
|
/** Stream variant of {@link ensureDataDependencyRecorder}. */
|
|
379
240
|
export declare const ensureDataDependencyRecorderStream: <A, E, R>(self: Stream.Stream<A, E, R>) => Stream.Stream<A, E, R>;
|
|
380
241
|
export declare const makeDataDependencyRecorder: (readsRef: Ref.Ref<DataDependencies>, writesRef: Ref.Ref<DataDependencies>) => DataDependencyRecorderService;
|
|
381
|
-
export declare const repo: (name: string) => DataDependency;
|
|
242
|
+
export declare const repo: (name: string, ids?: NonEmptyReadonlyArray<string>) => DataDependency;
|
|
382
243
|
export declare const signal: (name: string) => DataDependency;
|
|
244
|
+
export declare const readRepo: (name: string) => Effect.Effect<void, RequestScopedDependencies.RequestScopedDependencyNotStartedError, never>;
|
|
245
|
+
export declare const withRepoReadScope: (name: string, ids: NonEmptyReadonlyArray<string>) => <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
|
|
383
246
|
export declare const QueryReadDependenciesMetaKey = "effect-app.query.readDependencies";
|
|
384
247
|
export declare const read: (dependency: DataDependency) => Effect.Effect<void, RequestScopedDependencies.RequestScopedDependencyNotStartedError, never>;
|
|
385
248
|
export declare const write: (dependency: DataDependency) => Effect.Effect<void, RequestScopedDependencies.RequestScopedDependencyNotStartedError, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataDependencies.d.ts","sourceRoot":"","sources":["../src/DataDependencies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,YAAY,CAAA;AACjC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"DataDependencies.d.ts","sourceRoot":"","sources":["../src/DataDependencies.ts"],"names":[],"mappings":"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"}
|