@effect-app/infra 2.15.0 → 2.15.1
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 +6 -0
- package/_cjs/Model/query/dsl.cjs +3 -13
- package/_cjs/Model/query/dsl.cjs.map +1 -1
- package/dist/Model/query/dsl.d.ts +41 -89
- package/dist/Model/query/dsl.d.ts.map +1 -1
- package/dist/Model/query/dsl.js +4 -14
- package/dist/Model/query/new-kid-interpreter.d.ts +1 -1
- package/dist/OperationsRepo.d.ts +1 -1
- package/dist/RequestContext.d.ts +2 -2
- package/dist/RequestContext.d.ts.map +1 -1
- package/examples/query.ts +2 -4
- package/package.json +1 -1
- package/src/Model/query/dsl.ts +151 -467
- package/src/RequestContext.ts +2 -2
- package/test/dist/query.test.d.ts.map +1 -1
- package/test/query.test.ts +45 -8
- package/tsconfig.examples.json +2 -3
- package/tsconfig.json.bak +0 -3
- package/test/dist/filterApi.test.d.ts.map +0 -1
- package/vitest.config.ts.timestamp-1711656440838-19c636fe320df.mjs +0 -0
- package/vitest.config.ts.timestamp-1711724061890-6ecedb0a07fdd.mjs +0 -0
- package/vitest.config.ts.timestamp-1711743489537-da8d9e5f66c9f.mjs +0 -0
- package/vitest.config.ts.timestamp-1711744615239-dcf257a844e01.mjs +0 -37
|
@@ -15,7 +15,7 @@ export declare const toFilter: <TFieldValues extends FieldValues, A, R, TFieldVa
|
|
|
15
15
|
key: import("../filter/types/path/eager.js").Path<TFieldValues>;
|
|
16
16
|
direction: "ASC" | "DESC";
|
|
17
17
|
}[]];
|
|
18
|
-
ttype: "one" | "
|
|
18
|
+
ttype: "one" | "many" | "count";
|
|
19
19
|
mode: "project" | "collect" | "transform";
|
|
20
20
|
filter: FilterResult[];
|
|
21
21
|
};
|
package/dist/OperationsRepo.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Effect } from "effect-app";
|
|
2
2
|
import { Operation } from "effect-app/Operations";
|
|
3
3
|
declare const OperationsRepo_base: Effect.Service.Class<OperationsRepo, "OperationRepo", {
|
|
4
|
-
readonly effect: Effect.Effect<import("./Model/Repository.js").ExtendedRepository<Operation, Operation.
|
|
4
|
+
readonly effect: Effect.Effect<import("./Model/Repository.js").ExtendedRepository<Operation, Operation.Encoded, never, "Operation", "id", never, never>, never, import("./Store.js").StoreMaker>;
|
|
5
5
|
}>;
|
|
6
6
|
export declare class OperationsRepo extends OperationsRepo_base {
|
|
7
7
|
}
|
package/dist/RequestContext.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ declare const RequestContext_base: S.EnhancedClass<RequestContext, {
|
|
|
24
24
|
withDefault: S.PropertySignature<":", string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, never, ":", string, true, never>;
|
|
25
25
|
} & S.WithDefaults<S.Schema<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never>>;
|
|
26
26
|
}>>;
|
|
27
|
-
}, RequestContext.
|
|
27
|
+
}, RequestContext.Encoded, never, {
|
|
28
28
|
readonly name: string & S.NonEmptyString255Brand;
|
|
29
29
|
readonly locale: "en" | "de";
|
|
30
30
|
readonly namespace: string & S.NonEmptyString255Brand;
|
|
@@ -57,7 +57,7 @@ export declare const spanAttributes: (ctx: Pick<RequestContext, "locale" | "name
|
|
|
57
57
|
"request.namespace": string & S.NonEmptyString255Brand;
|
|
58
58
|
};
|
|
59
59
|
export declare namespace RequestContext {
|
|
60
|
-
interface
|
|
60
|
+
interface Encoded extends S.Struct.Encoded<typeof RequestContext["fields"]> {
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestContext.d.ts","sourceRoot":"","sources":["../src/RequestContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,YAAY,CAAA;AAIxC,eAAO,MAAM,MAAM,yBAAwB,CAAA;AAC3C,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAA;AAEvC,eAAO,MAAM,SAAS,gCAAoC,CAAA;;;;;;;;;;;;;IAmBxD,kBAAkB;;;;
|
|
1
|
+
{"version":3,"file":"RequestContext.d.ts","sourceRoot":"","sources":["../src/RequestContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,YAAY,CAAA;AAIxC,eAAO,MAAM,MAAM,yBAAwB,CAAA;AAC3C,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAA;AAEvC,eAAO,MAAM,SAAS,gCAAoC,CAAA;;;;;;;;;;;;;IAmBxD,kBAAkB;;;;yBAkBH,EAAG,iBAElB;;;yBAe6B,EAAI,iBAAgB;;;;;;;;;;;;;;;;;AApDnD;;;GAGG;AACH,qBAAa,cAAe,SAAQ,mBAelC;IAGA,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc;;;;CAMrD;AAED,eAAO,MAAM,cAAc,QAAS,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"}
|
package/examples/query.ts
CHANGED
|
@@ -55,10 +55,8 @@ class SomethingRepo extends Effect.Service<SomethingRepo>()("SomethingRepo", {
|
|
|
55
55
|
}) {
|
|
56
56
|
static readonly Test = Layer
|
|
57
57
|
.effect(
|
|
58
|
-
|
|
59
|
-
Effect.
|
|
60
|
-
return SomethingRepo.make(yield* makeRepo("Union", Union, { makeInitial: Effect.sync(() => items) }))
|
|
61
|
-
})
|
|
58
|
+
this,
|
|
59
|
+
makeRepo("Union", Union, { makeInitial: Effect.sync(() => items) }).pipe(Effect.map(this.make))
|
|
62
60
|
)
|
|
63
61
|
.pipe(
|
|
64
62
|
Layer.provide(MemoryStoreLive)
|