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