@effect-app/infra 0.210.3 → 0.210.5
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 +20 -0
- package/dist/RequestContext.d.ts +7 -7
- package/dist/services/QueueMaker/sbqueue.d.ts +1 -1
- package/dist/services/QueueMaker/service.d.ts +2 -2
- package/dist/services/RepositoryBase.d.ts +3 -3
- package/dist/services/RequestContextContainer.d.ts +1 -1
- package/dist/services/Store/service.d.ts +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @effect-app/infra
|
|
2
2
|
|
|
3
|
+
## 0.210.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [e355a45]
|
|
8
|
+
- @effect-app/schema@0.203.0
|
|
9
|
+
- @effect-app/infra-adapters@0.137.15
|
|
10
|
+
- effect-app@0.181.4
|
|
11
|
+
|
|
12
|
+
## 0.210.4
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [f4bea89]
|
|
17
|
+
- @effect-app/fluent-extensions@0.143.4
|
|
18
|
+
- @effect-app/core@0.150.5
|
|
19
|
+
- @effect-app/infra-adapters@0.137.14
|
|
20
|
+
- effect-app@0.181.3
|
|
21
|
+
- @effect-app/schema@0.202.5
|
|
22
|
+
|
|
3
23
|
## 0.210.3
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/RequestContext.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { NonEmptyString255 } from "@effect-app/schema";
|
|
|
2
2
|
import { S } from "effect-app";
|
|
3
3
|
declare const RequestContextParent_base: S.EnhancedClass<{
|
|
4
4
|
readonly _tag: "RequestContext";
|
|
5
|
-
readonly name: string & S.NonEmptyString255Brand;
|
|
6
5
|
readonly id: NonEmptyString255;
|
|
6
|
+
readonly name: string & S.NonEmptyString255Brand;
|
|
7
7
|
readonly locale: "en" | "de";
|
|
8
8
|
readonly createdAt: Date;
|
|
9
9
|
readonly userProfile?: {
|
|
@@ -11,16 +11,16 @@ declare const RequestContextParent_base: S.EnhancedClass<{
|
|
|
11
11
|
} | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
readonly _tag: "RequestContext";
|
|
14
|
-
readonly name: string;
|
|
15
14
|
readonly id: string;
|
|
15
|
+
readonly name: string;
|
|
16
16
|
readonly locale: "en" | "de";
|
|
17
17
|
readonly createdAt: string;
|
|
18
18
|
readonly userProfile?: {
|
|
19
19
|
readonly sub: string;
|
|
20
20
|
} | undefined;
|
|
21
21
|
}, never, {
|
|
22
|
-
readonly name: string & S.NonEmptyString255Brand;
|
|
23
22
|
readonly id: NonEmptyString255;
|
|
23
|
+
readonly name: string & S.NonEmptyString255Brand;
|
|
24
24
|
readonly locale: "en" | "de";
|
|
25
25
|
readonly userProfile?: {
|
|
26
26
|
readonly sub: string & import("effect-app/ids").UserProfileIdBrand;
|
|
@@ -49,8 +49,8 @@ export declare class RequestContextParent extends RequestContextParent_base {
|
|
|
49
49
|
}
|
|
50
50
|
declare const RequestContext_base: S.EnhancedClass<{
|
|
51
51
|
readonly _tag: "RequestContext";
|
|
52
|
-
readonly name: string & S.NonEmptyString255Brand;
|
|
53
52
|
readonly id: NonEmptyString255;
|
|
53
|
+
readonly name: string & S.NonEmptyString255Brand;
|
|
54
54
|
readonly locale: "en" | "de";
|
|
55
55
|
readonly createdAt: Date;
|
|
56
56
|
readonly rootId: NonEmptyString255;
|
|
@@ -61,8 +61,8 @@ declare const RequestContext_base: S.EnhancedClass<{
|
|
|
61
61
|
readonly namespace?: (string & S.NonEmptyString255Brand) | undefined;
|
|
62
62
|
}, {
|
|
63
63
|
readonly _tag: "RequestContext";
|
|
64
|
-
readonly name: string;
|
|
65
64
|
readonly id: string;
|
|
65
|
+
readonly name: string;
|
|
66
66
|
readonly locale: "en" | "de";
|
|
67
67
|
readonly createdAt: string;
|
|
68
68
|
readonly rootId: string;
|
|
@@ -71,8 +71,8 @@ declare const RequestContext_base: S.EnhancedClass<{
|
|
|
71
71
|
} | undefined;
|
|
72
72
|
readonly parent?: {
|
|
73
73
|
readonly _tag: "RequestContext";
|
|
74
|
-
readonly name: string;
|
|
75
74
|
readonly id: string;
|
|
75
|
+
readonly name: string;
|
|
76
76
|
readonly locale: "en" | "de";
|
|
77
77
|
readonly createdAt: string;
|
|
78
78
|
readonly userProfile?: {
|
|
@@ -102,8 +102,8 @@ declare const RequestContext_base: S.EnhancedClass<{
|
|
|
102
102
|
};
|
|
103
103
|
parent: S.PropertySignature<{
|
|
104
104
|
readonly _tag: "RequestContext";
|
|
105
|
-
readonly name: string;
|
|
106
105
|
readonly id: string;
|
|
106
|
+
readonly name: string;
|
|
107
107
|
readonly locale: "en" | "de";
|
|
108
108
|
readonly createdAt: string;
|
|
109
109
|
readonly userProfile?: {
|
|
@@ -12,7 +12,7 @@ export declare function makeServiceBusQueue<Evt extends {
|
|
|
12
12
|
id: StringId;
|
|
13
13
|
_tag: string;
|
|
14
14
|
}, EvtE, DrainEvtE>(_queueName: string, queueDrainName: string, schema: S.Schema<Evt, EvtE>, drainSchema: S.Schema<DrainEvt, DrainEvtE>): Effect.Effect<{
|
|
15
|
-
drain: <DrainE, DrainR>(handleEvent: (ks: DrainEvt) => Effect<void, DrainE, DrainR>) => Effect.Effect<never, never,
|
|
15
|
+
drain: <DrainE, DrainR>(handleEvent: (ks: DrainEvt) => Effect<void, DrainE, DrainR>) => Effect.Effect<never, never, import("effect/Scope").Scope | RequestContextContainer | import("../Store/ContextMapContainer.js").ContextMapContainer | Exclude<Exclude<Exclude<Exclude<DrainR, Tracer.ParentSpan>, never>, Tracer.ParentSpan>, import("@azure/service-bus").ServiceBusReceiver>>;
|
|
16
16
|
publish: (messages_0: Evt, ...messages_1: Evt[]) => Effect.Effect<void, never, never>;
|
|
17
17
|
}, never, RequestContextContainer | import("@azure/service-bus").ServiceBusReceiver | import("@azure/service-bus").ServiceBusSender>;
|
|
18
18
|
/**
|
|
@@ -23,8 +23,8 @@ export declare const QueueMeta: S.Schema<{
|
|
|
23
23
|
}, {
|
|
24
24
|
readonly requestContext: {
|
|
25
25
|
readonly _tag: "RequestContext";
|
|
26
|
-
readonly name: string;
|
|
27
26
|
readonly id: string;
|
|
27
|
+
readonly name: string;
|
|
28
28
|
readonly locale: "en" | "de";
|
|
29
29
|
readonly createdAt: string;
|
|
30
30
|
readonly rootId: string;
|
|
@@ -33,8 +33,8 @@ export declare const QueueMeta: S.Schema<{
|
|
|
33
33
|
} | undefined;
|
|
34
34
|
readonly parent?: {
|
|
35
35
|
readonly _tag: "RequestContext";
|
|
36
|
-
readonly name: string;
|
|
37
36
|
readonly id: string;
|
|
37
|
+
readonly name: string;
|
|
38
38
|
readonly locale: "en" | "de";
|
|
39
39
|
readonly createdAt: string;
|
|
40
40
|
readonly userProfile?: {
|
|
@@ -174,7 +174,7 @@ export declare function makeRepo<PM extends {
|
|
|
174
174
|
config?: Omit<StoreConfig<PM>, "partitionValue"> & {
|
|
175
175
|
partitionValue?: (a: PM) => string;
|
|
176
176
|
};
|
|
177
|
-
}) => Effect.Effect<Repository<T, PM, Evt, ItemType>, E,
|
|
177
|
+
}) => Effect.Effect<Repository<T, PM, Evt, ItemType>, E, StoreMaker | ContextMapContainer | R | RInitial | R2>;
|
|
178
178
|
Where: (makeWhere: (f: {
|
|
179
179
|
<TFieldName extends import("../filter/types/path/eager.js").Path<PM>, A extends import("../filter/types/path/eager.js").PathValue<PM, TFieldName>, Val>(path: TFieldName, value: (v: A) => Val): {
|
|
180
180
|
key: string;
|
|
@@ -200,7 +200,7 @@ export declare function makeRepo<PM extends {
|
|
|
200
200
|
value: A_1;
|
|
201
201
|
readonly S: PM;
|
|
202
202
|
};
|
|
203
|
-
}) => Where | readonly [Where, ...Where[]], mode?: "
|
|
203
|
+
}) => Where | readonly [Where, ...Where[]], mode?: "or" | "and" | undefined) => Filter<PM>;
|
|
204
204
|
Query: (fn: (f: QB.FilterTest<PM>, fields: QB.Filter<PM, never>) => QB.QueryBuilder<PM>) => QB.QueryBuilder<PM>;
|
|
205
205
|
Q: Query<Omit<PM, "_etag">>;
|
|
206
206
|
};
|
|
@@ -249,7 +249,7 @@ export declare function makeStore<PM extends {
|
|
|
249
249
|
id: unknown;
|
|
250
250
|
}>(name: ItemType, schema: Schema<T, E, R>, mapTo: (e: E, etag: string | undefined) => PM) => <RInitial = never, EInitial = never>(makeInitial?: Effect<readonly T[], EInitial, RInitial> | undefined, config?: (Omit<StoreConfig<PM>, "partitionValue"> & {
|
|
251
251
|
partitionValue?: (a: PM) => string;
|
|
252
|
-
}) | undefined) => Effect.Effect<import("./Store.js").Store<PM, string>, EInitial,
|
|
252
|
+
}) | undefined) => Effect.Effect<import("./Store.js").Store<PM, string>, EInitial, StoreMaker | R | RInitial>;
|
|
253
253
|
export interface Repos<T extends {
|
|
254
254
|
id: unknown;
|
|
255
255
|
}, PM extends {
|
|
@@ -39,7 +39,7 @@ declare const RequestContextContainer_base: {
|
|
|
39
39
|
requestContext: Effect<RequestContext>;
|
|
40
40
|
update: (f: (rc: RequestContext) => RequestContext) => Effect<RequestContext>;
|
|
41
41
|
start: (f: RequestContext) => Effect<void>;
|
|
42
|
-
}) => X) => X extends Effect<infer A_3, infer E_4, infer R_4> ? Effect<A_3, E_4,
|
|
42
|
+
}) => X) => X extends Effect<infer A_3, infer E_4, infer R_4> ? Effect<A_3, E_4, R_4 | RequestContextContainer> : Effect<X, never, RequestContextContainer>;
|
|
43
43
|
};
|
|
44
44
|
/**
|
|
45
45
|
* @tsplus type RequestContextContainer
|
|
@@ -116,7 +116,7 @@ declare const StoreMaker_base: {
|
|
|
116
116
|
} & import("effect/Context").Tag<StoreMaker, StoreMaker> & {} & {
|
|
117
117
|
use: <X>(body: (_: {
|
|
118
118
|
make: <PM extends PersistenceModelType<Id>, Id extends string, R = never, E = never>(name: string, seed?: Effect<Iterable<PM>, E, R> | undefined, config?: StoreConfig<PM> | undefined) => Effect<Store<PM, Id>, E, R>;
|
|
119
|
-
}) => X) => X extends Effect<infer A_3, infer E_4, infer R_4> ? Effect<A_3, E_4,
|
|
119
|
+
}) => X) => X extends Effect<infer A_3, infer E_4, infer R_4> ? Effect<A_3, E_4, StoreMaker | R_4> : Effect<X, never, StoreMaker>;
|
|
120
120
|
};
|
|
121
121
|
/**
|
|
122
122
|
* @tsplus type StoreMaker
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/infra",
|
|
3
|
-
"version": "0.210.
|
|
3
|
+
"version": "0.210.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"proper-lockfile": "^4.1.2",
|
|
19
19
|
"pure-rand": "6.0.4",
|
|
20
20
|
"redlock": "^4.2.0",
|
|
21
|
-
"@effect-app/core": "0.150.
|
|
22
|
-
"@effect-app/fluent-extensions": "0.143.
|
|
23
|
-
"@effect-app/infra-adapters": "0.137.
|
|
24
|
-
"effect-app": "0.181.
|
|
25
|
-
"@effect-app/schema": "0.
|
|
21
|
+
"@effect-app/core": "0.150.5",
|
|
22
|
+
"@effect-app/fluent-extensions": "0.143.4",
|
|
23
|
+
"@effect-app/infra-adapters": "0.137.15",
|
|
24
|
+
"effect-app": "0.181.4",
|
|
25
|
+
"@effect-app/schema": "0.203.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/cli": "^7.23.9",
|