@effect-app/infra 0.209.9 → 0.209.10

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @effect-app/infra
2
2
 
3
+ ## 0.209.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [abb5332]
8
+ - effect-app@0.180.10
9
+ - @effect-app/infra-adapters@0.137.10
10
+
3
11
  ## 0.209.9
4
12
 
5
13
  ### Patch Changes
@@ -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 id: NonEmptyString255;
6
5
  readonly name: string & S.NonEmptyString255Brand;
6
+ readonly id: NonEmptyString255;
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 id: string;
15
14
  readonly name: string;
15
+ readonly id: 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 id: NonEmptyString255;
23
22
  readonly name: string & S.NonEmptyString255Brand;
23
+ readonly id: NonEmptyString255;
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 id: NonEmptyString255;
53
52
  readonly name: string & S.NonEmptyString255Brand;
53
+ readonly id: NonEmptyString255;
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 id: string;
65
64
  readonly name: string;
65
+ readonly id: 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 id: string;
75
74
  readonly name: string;
75
+ readonly id: 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 id: string;
106
105
  readonly name: string;
106
+ readonly id: 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, 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>>;
15
+ drain: <DrainE, DrainR>(handleEvent: (ks: DrainEvt) => Effect<void, DrainE, DrainR>) => Effect.Effect<never, never, RequestContextContainer | import("effect/Scope").Scope | 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 id: string;
27
26
  readonly name: string;
27
+ readonly id: 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 id: string;
37
36
  readonly name: string;
37
+ readonly id: 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, StoreMaker | ContextMapContainer | R | RInitial | R2>;
177
+ }) => Effect.Effect<Repository<T, PM, Evt, ItemType>, E, R | StoreMaker | ContextMapContainer | 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?: "or" | "and" | undefined) => Filter<PM>;
203
+ }) => Where | readonly [Where, ...Where[]], mode?: "and" | "or" | 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, StoreMaker | R | RInitial>;
252
+ }) | undefined) => Effect.Effect<import("./Store.js").Store<PM, string>, EInitial, R | StoreMaker | RInitial>;
253
253
  export interface Repos<T extends {
254
254
  id: unknown;
255
255
  }, PM extends {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-app/infra",
3
- "version": "0.209.9",
3
+ "version": "0.209.10",
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.3",
22
- "effect-app": "0.180.9",
23
21
  "@effect-app/fluent-extensions": "0.143.2",
24
- "@effect-app/schema": "0.202.3",
25
- "@effect-app/infra-adapters": "0.137.9"
22
+ "effect-app": "0.180.10",
23
+ "@effect-app/infra-adapters": "0.137.10",
24
+ "@effect-app/core": "0.150.3",
25
+ "@effect-app/schema": "0.202.3"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@babel/cli": "^7.23.9",