@effect-app/infra 4.0.0-beta.95 → 4.0.0-beta.96
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,5 @@
|
|
|
1
1
|
import { S } from "effect-app";
|
|
2
|
-
declare const ValidationError_base: S.EnhancedClass<ValidationError,
|
|
2
|
+
declare const ValidationError_base: S.EnhancedClass<ValidationError, S.Struct<{
|
|
3
3
|
/** the id of the item that failed validation */
|
|
4
4
|
id: S.Unknown;
|
|
5
5
|
/** the raw data from the database before jitM */
|
|
@@ -15,7 +15,7 @@ declare const ValidationError_base: S.EnhancedClass<ValidationError, import("eff
|
|
|
15
15
|
*/
|
|
16
16
|
export declare class ValidationError extends ValidationError_base {
|
|
17
17
|
}
|
|
18
|
-
declare const ValidationResult_base: S.EnhancedClass<ValidationResult,
|
|
18
|
+
declare const ValidationResult_base: S.EnhancedClass<ValidationResult, S.Struct<{
|
|
19
19
|
/** total number of items in the repository */
|
|
20
20
|
total: S.WithDefaults<S.brand<import("effect/Schema").Int, "NonNegativeInt" | "Int" | "NonNegativeNumber">> & S.brand<import("effect/Schema").Int, "NonNegativeInt" | "Int" | "NonNegativeNumber"> & {
|
|
21
21
|
withDefault: S.withConstructorDefault<S.WithDefaults<S.brand<import("effect/Schema").Int, "NonNegativeInt" | "Int" | "NonNegativeNumber">> & S.brand<import("effect/Schema").Int, "NonNegativeInt" | "Int" | "NonNegativeNumber">>;
|
package/dist/RequestContext.d.ts
CHANGED
|
@@ -13,18 +13,11 @@ export type Locale = typeof Locale.Type;
|
|
|
13
13
|
declare const LocaleRef_base: Context.Reference<"en" | "de">;
|
|
14
14
|
export declare class LocaleRef extends LocaleRef_base {
|
|
15
15
|
}
|
|
16
|
-
declare const RequestContext_base: S.EnhancedClass<RequestContext,
|
|
17
|
-
span:
|
|
18
|
-
traceId: S.String;
|
|
19
|
-
spanId: S.String;
|
|
20
|
-
sampled: import("effect/Schema").Boolean & {
|
|
21
|
-
withDefault: S.withConstructorDefault<import("effect/Schema").Boolean>;
|
|
22
|
-
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Boolean>;
|
|
23
|
-
};
|
|
24
|
-
}> & S.PropsExtensions<{
|
|
25
|
-
traceId: S.String;
|
|
26
|
-
spanId: S.String;
|
|
27
|
-
sampled: import("effect/Schema").Boolean & {
|
|
16
|
+
declare const RequestContext_base: S.EnhancedClass<RequestContext, S.Struct<{
|
|
17
|
+
span: S.Struct<{
|
|
18
|
+
readonly traceId: S.String;
|
|
19
|
+
readonly spanId: S.String;
|
|
20
|
+
readonly sampled: import("effect/Schema").Boolean & {
|
|
28
21
|
withDefault: S.withConstructorDefault<import("effect/Schema").Boolean>;
|
|
29
22
|
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Boolean>;
|
|
30
23
|
};
|
|
@@ -43,16 +36,8 @@ declare const RequestContext_base: S.EnhancedClass<RequestContext, import("effec
|
|
|
43
36
|
sourceId: S.optional<S.WithDefaults<S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString64k" | "NonEmptyString2k" | "NonEmptyString255">> & S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString64k" | "NonEmptyString2k" | "NonEmptyString255">>;
|
|
44
37
|
namespace: S.WithDefaults<S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString64k" | "NonEmptyString2k" | "NonEmptyString255">> & S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString64k" | "NonEmptyString2k" | "NonEmptyString255">;
|
|
45
38
|
/** @deprecated */
|
|
46
|
-
userProfile: S.optional<
|
|
47
|
-
sub: S.WithDefaults<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never> & {
|
|
48
|
-
make: () => string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand;
|
|
49
|
-
withDefault: S.withConstructorDefault<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never> & S.WithoutConstructorDefault>;
|
|
50
|
-
} & S.WithDefaults<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never>>> & S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never> & {
|
|
51
|
-
make: () => string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand;
|
|
52
|
-
withDefault: S.withConstructorDefault<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never> & S.WithoutConstructorDefault>;
|
|
53
|
-
} & S.WithDefaults<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never>>;
|
|
54
|
-
}> & S.PropsExtensions<{
|
|
55
|
-
sub: S.WithDefaults<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never> & {
|
|
39
|
+
userProfile: S.optional<S.Struct<{
|
|
40
|
+
readonly sub: S.WithDefaults<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never> & {
|
|
56
41
|
make: () => string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand;
|
|
57
42
|
withDefault: S.withConstructorDefault<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never> & S.WithoutConstructorDefault>;
|
|
58
43
|
} & S.WithDefaults<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never>>> & S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestContext.d.ts","sourceRoot":"","sources":["../src/RequestContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,YAAY,CAAA;AAIvC,eAAO,MAAM,MAAM;;;;;;;;;CAA2B,CAAA;AAC9C,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAA;;AAEvC,qBAAa,SAAU,SAAQ,cAAiE;CAAG
|
|
1
|
+
{"version":3,"file":"RequestContext.d.ts","sourceRoot":"","sources":["../src/RequestContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,YAAY,CAAA;AAIvC,eAAO,MAAM,MAAM;;;;;;;;;CAA2B,CAAA;AAC9C,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAA;;AAEvC,qBAAa,SAAU,SAAQ,cAAiE;CAAG;;;;;;;;;;;;;;;;;;;;;;;IAejG,kBAAkB;;;;;;;;;;;AAbpB,qBAAa,cAAe,SAAQ,mBAelC;IAGA,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc;;;;CAMrD;AAED,eAAO,MAAM,cAAc,GAAI,KAAK,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,WAAW,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC;;;;;;;CAgBxG,CAAA;AAKF,yBAAiB,cAAc,CAAC;IAC9B,UAAiB,OAAQ,SAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,cAAc,CAAC,QAAQ,CAAC,CAAC;KAAG;CACtF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Context, Effect, Layer, RequestResolver } from "effect-app";
|
|
2
2
|
import type * as Request from "effect/Request";
|
|
3
3
|
import { ContextMap } from "./service.js";
|
|
4
|
-
declare const ContextMapContainer_base: Context.Reference<
|
|
4
|
+
declare const ContextMapContainer_base: Context.Reference<"root" | ContextMap>;
|
|
5
5
|
export declare class ContextMapContainer extends ContextMapContainer_base {
|
|
6
6
|
static readonly layer: Layer.Layer<never, never, never>;
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/infra",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.96",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"proper-lockfile": "^4.1.2",
|
|
14
14
|
"pure-rand": "7.0.1",
|
|
15
15
|
"query-string": "^9.3.1",
|
|
16
|
-
"effect-app": "4.0.0-beta.
|
|
16
|
+
"effect-app": "4.0.0-beta.96"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@azure/cosmos": "^4.9.2",
|