@effect-app/infra 4.0.0-beta.107 → 4.0.0-beta.108
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 +7 -0
- package/dist/CUPS.d.ts +3 -3
- package/dist/Model/query/new-kid-interpreter.d.ts +2 -2
- package/dist/RequestContext.d.ts +7 -7
- package/dist/Store/ContextMapContainer.d.ts +1 -1
- package/dist/api/internal/RequestContextMiddleware.d.ts +1 -1
- package/package.json +2 -2
- package/test/dist/date-query.test.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
package/dist/CUPS.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type FileOptions } from "@effect-app/infra/fileUtil";
|
|
2
2
|
import { Config, Context, Effect, Layer, Option, S } from "effect-app";
|
|
3
|
-
export declare const PrinterId: S.WithDefaults<S.brand<import("effect/Schema").NonEmptyString, "
|
|
3
|
+
export declare const PrinterId: S.WithDefaults<S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString64k" | "NonEmptyString2k" | "NonEmptyString255">> & S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString64k" | "NonEmptyString2k" | "NonEmptyString255">;
|
|
4
4
|
export type PrinterId = S.NonEmptyString255;
|
|
5
5
|
export declare const prepareTempDir: Effect.Effect<void, never, never>;
|
|
6
6
|
export declare const makePrintJobTempFile: (data: string | import("node:stream") | NodeJS.ArrayBufferView<ArrayBufferLike> | Iterable<string | NodeJS.ArrayBufferView<ArrayBufferLike>> | AsyncIterable<string | NodeJS.ArrayBufferView<ArrayBufferLike>>, options?: FileOptions) => Effect.Effect<string, import("effect/Cause").UnknownError, import("effect/Scope").Scope>;
|
|
@@ -17,7 +17,7 @@ declare const CUPS_base: Context.ServiceClass<CUPS, "effect-app/CUPS", {
|
|
|
17
17
|
stdout: string;
|
|
18
18
|
stderr: string;
|
|
19
19
|
}, import("effect/Cause").UnknownError, never>;
|
|
20
|
-
getAvailablePrinters: Effect.Effect<(string & S.B.Brand<"
|
|
20
|
+
getAvailablePrinters: Effect.Effect<(string & S.B.Brand<"NonEmptyString"> & S.B.Brand<"NonEmptyString64k"> & S.B.Brand<"NonEmptyString2k"> & S.B.Brand<"NonEmptyString255">)[], import("effect/Cause").UnknownError, never>;
|
|
21
21
|
}> & {
|
|
22
22
|
readonly make: Effect.Effect<{
|
|
23
23
|
print: (buffer: ArrayBuffer, printerId: PrinterId, ...options: string[]) => Effect.Effect<{
|
|
@@ -28,7 +28,7 @@ declare const CUPS_base: Context.ServiceClass<CUPS, "effect-app/CUPS", {
|
|
|
28
28
|
stdout: string;
|
|
29
29
|
stderr: string;
|
|
30
30
|
}, import("effect/Cause").UnknownError, never>;
|
|
31
|
-
getAvailablePrinters: Effect.Effect<(string & S.B.Brand<"
|
|
31
|
+
getAvailablePrinters: Effect.Effect<(string & S.B.Brand<"NonEmptyString"> & S.B.Brand<"NonEmptyString64k"> & S.B.Brand<"NonEmptyString2k"> & S.B.Brand<"NonEmptyString255">)[], import("effect/Cause").UnknownError, never>;
|
|
32
32
|
}, Config.ConfigError, never>;
|
|
33
33
|
};
|
|
34
34
|
export declare class CUPS extends CUPS_base {
|
|
@@ -21,8 +21,8 @@ export declare const toFilter: <TFieldValues extends FieldValues, A, R, TFieldVa
|
|
|
21
21
|
key: import("../filter/types/path/eager.js").Path<TFieldValues>;
|
|
22
22
|
direction: "ASC" | "DESC";
|
|
23
23
|
}[]];
|
|
24
|
-
ttype: "
|
|
25
|
-
mode: "
|
|
24
|
+
ttype: "one" | "many" | "count";
|
|
25
|
+
mode: "project" | "collect" | "transform";
|
|
26
26
|
filter: FilterResult[];
|
|
27
27
|
};
|
|
28
28
|
//# sourceMappingURL=new-kid-interpreter.d.ts.map
|
package/dist/RequestContext.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ declare const RequestContext_base: S.EnhancedClass<RequestContext, S.Struct<{
|
|
|
22
22
|
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Boolean>;
|
|
23
23
|
};
|
|
24
24
|
}>;
|
|
25
|
-
name: S.WithDefaults<S.brand<import("effect/Schema").NonEmptyString, "
|
|
25
|
+
name: S.WithDefaults<S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString64k" | "NonEmptyString2k" | "NonEmptyString255">> & S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString64k" | "NonEmptyString2k" | "NonEmptyString255">;
|
|
26
26
|
locale: import("effect/Schema").Literals<readonly ["en", "de"]> & {
|
|
27
27
|
changeDefault: <A extends "en" | "de">(a: A) => import("effect/Schema").Literals<readonly ["en", "de"]> & {
|
|
28
28
|
Default: A;
|
|
@@ -33,8 +33,8 @@ declare const RequestContext_base: S.EnhancedClass<RequestContext, S.Struct<{
|
|
|
33
33
|
withDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["en", "de"]>>;
|
|
34
34
|
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["en", "de"]>>;
|
|
35
35
|
};
|
|
36
|
-
sourceId: S.optional<S.WithDefaults<S.brand<import("effect/Schema").NonEmptyString, "
|
|
37
|
-
namespace: S.WithDefaults<S.brand<import("effect/Schema").NonEmptyString, "
|
|
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">>;
|
|
37
|
+
namespace: S.WithDefaults<S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString64k" | "NonEmptyString2k" | "NonEmptyString255">> & S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString64k" | "NonEmptyString2k" | "NonEmptyString255">;
|
|
38
38
|
/** @deprecated */
|
|
39
39
|
userProfile: S.optional<S.Struct<{
|
|
40
40
|
readonly sub: S.WithDefaults<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never> & {
|
|
@@ -48,17 +48,17 @@ declare const RequestContext_base: S.EnhancedClass<RequestContext, S.Struct<{
|
|
|
48
48
|
}>, {}>;
|
|
49
49
|
export declare class RequestContext extends RequestContext_base {
|
|
50
50
|
static toMonitoring(this: void, self: RequestContext): {
|
|
51
|
-
operationName: string & S.B.Brand<"
|
|
51
|
+
operationName: string & S.B.Brand<"NonEmptyString"> & S.B.Brand<"NonEmptyString64k"> & S.B.Brand<"NonEmptyString2k"> & S.B.Brand<"NonEmptyString255">;
|
|
52
52
|
locale: "en" | "de";
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
export declare const spanAttributes: (ctx: Pick<RequestContext, "locale" | "namespace"> & Partial<RequestContext>) => {
|
|
56
56
|
"request.user.sub"?: string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand;
|
|
57
57
|
"request.user.roles"?: unknown;
|
|
58
|
-
"request.source.id"?: string & S.B.Brand<"
|
|
59
|
-
"request.name": (string & S.B.Brand<"
|
|
58
|
+
"request.source.id"?: string & S.B.Brand<"NonEmptyString"> & S.B.Brand<"NonEmptyString64k"> & S.B.Brand<"NonEmptyString2k"> & S.B.Brand<"NonEmptyString255">;
|
|
59
|
+
"request.name": (string & S.B.Brand<"NonEmptyString"> & S.B.Brand<"NonEmptyString64k"> & S.B.Brand<"NonEmptyString2k"> & S.B.Brand<"NonEmptyString255">) | undefined;
|
|
60
60
|
"request.locale": "en" | "de";
|
|
61
|
-
"request.namespace": string & S.B.Brand<"
|
|
61
|
+
"request.namespace": string & S.B.Brand<"NonEmptyString"> & S.B.Brand<"NonEmptyString64k"> & S.B.Brand<"NonEmptyString2k"> & S.B.Brand<"NonEmptyString255">;
|
|
62
62
|
};
|
|
63
63
|
export declare namespace RequestContext {
|
|
64
64
|
interface Encoded extends S.Struct.Encoded<typeof RequestContext["fields"]> {
|
|
@@ -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
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect } from "effect-app";
|
|
2
2
|
import { HttpServerRequest, HttpServerResponse } from "effect-app/http";
|
|
3
3
|
import { Locale } from "../../RequestContext.js";
|
|
4
|
-
export declare const RequestContextMiddleware: (defaultLocale?: Locale) => <E, R>(app: Effect.Effect<HttpServerResponse.HttpServerResponse, E,
|
|
4
|
+
export declare const RequestContextMiddleware: (defaultLocale?: Locale) => <E, R>(app: Effect.Effect<HttpServerResponse.HttpServerResponse, E, HttpServerRequest.HttpServerRequest | R>) => Effect.Effect<HttpServerResponse.HttpServerResponse, E, HttpServerRequest.HttpServerRequest | Exclude<Exclude<R, import("effect/Tracer").ParentSpan>, never>>;
|
|
5
5
|
//# sourceMappingURL=RequestContextMiddleware.d.ts.map
|
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.108",
|
|
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.108"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@azure/cosmos": "^4.9.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-query.test.d.ts","sourceRoot":"","sources":["../date-query.test.ts"],"names":[],"mappings":""}
|