@effect-app/infra 0.74.7 → 0.75.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/.cache/effect/095519d034161945a8d2616a506d3e7f35a9b3d868814f44c747429c60fc4e7f.content +36 -2
- package/.cache/effect/095519d034161945a8d2616a506d3e7f35a9b3d868814f44c747429c60fc4e7f.hash +1 -1
- package/.cache/effect/134218688132dfbdea493cbe1f26e73449f2759121df35ddd5448346b59c9a8d.content +24 -6
- package/.cache/effect/134218688132dfbdea493cbe1f26e73449f2759121df35ddd5448346b59c9a8d.hash +1 -1
- package/.cache/effect/14eb9da4ca6d22162888c7fdb7f39ab772d2a2dc6625db6031ecdb32ac89158f.content +75 -40
- package/.cache/effect/14eb9da4ca6d22162888c7fdb7f39ab772d2a2dc6625db6031ecdb32ac89158f.hash +1 -1
- package/.cache/effect/1bfd92946b11da4292f2ed99dc0e322462b60559148f9524abc20e26f70779e1.hash +1 -1
- package/.cache/effect/49c1bd9ec26e6df78b994d8df0bfe21b119803fa4aa46349bf4679fd0f1e7cda.content +3 -1
- package/.cache/effect/49c1bd9ec26e6df78b994d8df0bfe21b119803fa4aa46349bf4679fd0f1e7cda.hash +1 -1
- package/.cache/effect/58d4ccde8bd2db7829706db5bebd01b99900ee83f0f6a8413b53d17cbd69f510.content +1 -1
- package/.cache/effect/58d4ccde8bd2db7829706db5bebd01b99900ee83f0f6a8413b53d17cbd69f510.hash +1 -1
- package/.cache/effect/72a5a16a6b62b63cd71719c833091128207d7e6c823cb32293549b3dd58c451b.content +15 -7
- package/.cache/effect/72a5a16a6b62b63cd71719c833091128207d7e6c823cb32293549b3dd58c451b.hash +1 -1
- package/.cache/effect/7a9c33db6aedaf00093a132c1d4e48e9d043cef05e932b8a37da24d44e224248.hash +1 -1
- package/.cache/effect/8594f0f42afc0641b00e88998000cc47382a1d07da31f4a148f7976701ca22d5.hash +1 -1
- package/.cache/effect/c67d971634d2dc8118b40452b61c9a51620c35809be4a89982476aa80701d852.hash +1 -1
- package/.cache/effect/f38adf43700dab905456a534a0690eaf882cff2cd576c731f23d6d14a3c3d659.content +5 -1
- package/.cache/effect/f38adf43700dab905456a534a0690eaf882cff2cd576c731f23d6d14a3c3d659.hash +1 -1
- package/CHANGELOG.md +24 -0
- package/_cjs/_ext/Array.cjs +1 -1
- package/_cjs/api/defaultErrorHandler.cjs +3 -3
- package/_cjs/api/express/makeJsonSchema.cjs +2 -2
- package/_cjs/api/express/makeJsonSchema.test.cjs +2 -2
- package/_cjs/api/express/makeOpenApiSpecs.cjs +2 -2
- package/_cjs/api/express/schema/requestHandler.cjs +4 -4
- package/_cjs/api/express/schema/routing.cjs +2 -2
- package/_cjs/api/reportError.cjs +2 -2
- package/_cjs/api/routing.cjs +3 -3
- package/_cjs/api/setupRequest.cjs +1 -1
- package/_cjs/api/writeDocs.cjs +3 -3
- package/_cjs/api/writeDocs.cjs.map +1 -1
- package/_cjs/errorReporter.cjs +2 -2
- package/_cjs/errors.cjs +10 -8
- package/_cjs/errors.cjs.map +1 -1
- package/_cjs/instrument.cjs +1 -1
- package/_cjs/logger/jsonLogger.cjs +5 -5
- package/_cjs/logger/logFmtLogger.cjs +2 -2
- package/_cjs/logger/shared.cjs +5 -5
- package/_cjs/rateLimit.cjs +1 -1
- package/_cjs/services/Emailer/Sendgrid.cjs +5 -5
- package/_cjs/services/Emailer/Sendgrid.cjs.map +1 -1
- package/_cjs/services/Emailer/fake.cjs +2 -2
- package/_cjs/services/Operations/live.cjs +8 -8
- package/_cjs/services/Operations/service.cjs +2 -2
- package/_cjs/services/Operations/service.cjs.map +1 -1
- package/_cjs/services/QueueMaker/errors.cjs +3 -3
- package/_cjs/services/QueueMaker/memQueue.cjs +2 -2
- package/_cjs/services/QueueMaker/sbqueue.cjs +2 -2
- package/_cjs/services/Repository.cjs +2 -2
- package/_cjs/services/RepositoryBase.cjs +4 -4
- package/_cjs/services/RequestContextContainer.cjs +4 -4
- package/_cjs/services/Store/Cosmos.cjs +5 -5
- package/_cjs/services/Store/Disk.cjs +3 -3
- package/_cjs/services/Store/Memory.cjs +6 -6
- package/_cjs/services/Store/Redis.cjs +4 -4
- package/_cjs/services/Store/codeFilter.test.cjs +1 -1
- package/_cjs/services/Store/index.cjs +3 -3
- package/_cjs/services/Store/service.cjs +1 -1
- package/_cjs/services/Store/utils.cjs +3 -3
- package/_cjs/services/simpledb/cosmosdb.cjs +3 -3
- package/_cjs/services/simpledb/diskdb.cjs +2 -2
- package/_cjs/services/simpledb/memdb.cjs +3 -3
- package/_cjs/services/simpledb/mongodb.cjs +2 -2
- package/_cjs/services/simpledb/redisdb.cjs +2 -2
- package/_cjs/services/simpledb/shared.cjs +2 -2
- package/_cjs/services/simpledb/simpledb.cjs +4 -4
- package/_src/errors.ts +8 -9
- package/_src/logger/jsonLogger.ts +1 -1
- package/_src/logger/shared.ts +1 -1
- package/_src/services/Operations/service.ts +1 -1
- package/_src/services/RepositoryBase.ts +2 -2
- package/dist/RequestContext.d.ts +20 -20
- package/dist/_ext/Array.d.ts +1 -1
- package/dist/_ext/Array.d.ts.map +1 -1
- package/dist/_ext/Array.js +1 -1
- package/dist/api/codec.d.ts +1 -1
- package/dist/api/codec.d.ts.map +1 -1
- package/dist/api/defaultErrorHandler.d.ts +3 -3
- package/dist/api/defaultErrorHandler.d.ts.map +1 -1
- package/dist/api/defaultErrorHandler.js +3 -3
- package/dist/api/express/makeJsonSchema.d.ts +2 -2
- package/dist/api/express/makeJsonSchema.d.ts.map +1 -1
- package/dist/api/express/makeJsonSchema.js +2 -2
- package/dist/api/express/makeOpenApiSpecs.d.ts +1 -1
- package/dist/api/express/makeOpenApiSpecs.js +2 -2
- package/dist/api/express/schema/requestHandler.d.ts +9 -9
- package/dist/api/express/schema/requestHandler.d.ts.map +1 -1
- package/dist/api/express/schema/requestHandler.js +4 -4
- package/dist/api/express/schema/routing.d.ts +1 -1
- package/dist/api/express/schema/routing.js +2 -2
- package/dist/api/reportError.d.ts +7 -7
- package/dist/api/reportError.d.ts.map +1 -1
- package/dist/api/reportError.js +2 -2
- package/dist/api/routing.d.ts +7 -7
- package/dist/api/routing.d.ts.map +1 -1
- package/dist/api/routing.js +3 -3
- package/dist/api/setupRequest.d.ts +2 -2
- package/dist/api/setupRequest.d.ts.map +1 -1
- package/dist/api/setupRequest.js +1 -1
- package/dist/api/writeDocs.d.ts +1 -1
- package/dist/api/writeDocs.d.ts.map +1 -1
- package/dist/api/writeDocs.js +4 -4
- package/dist/errorReporter.d.ts +4 -4
- package/dist/errorReporter.d.ts.map +1 -1
- package/dist/errorReporter.js +2 -2
- package/dist/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +10 -9
- package/dist/instrument.d.ts +2 -2
- package/dist/instrument.d.ts.map +1 -1
- package/dist/instrument.js +1 -1
- package/dist/logger/jsonLogger.d.ts +2 -2
- package/dist/logger/jsonLogger.d.ts.map +1 -1
- package/dist/logger/jsonLogger.js +5 -5
- package/dist/logger/logFmtLogger.d.ts +2 -2
- package/dist/logger/logFmtLogger.d.ts.map +1 -1
- package/dist/logger/logFmtLogger.js +2 -2
- package/dist/logger/shared.d.ts +2 -2
- package/dist/logger/shared.d.ts.map +1 -1
- package/dist/logger/shared.js +6 -6
- package/dist/rateLimit.d.ts +7 -7
- package/dist/rateLimit.d.ts.map +1 -1
- package/dist/rateLimit.js +1 -1
- package/dist/services/Emailer/Sendgrid.d.ts +2 -2
- package/dist/services/Emailer/Sendgrid.d.ts.map +1 -1
- package/dist/services/Emailer/Sendgrid.js +6 -6
- package/dist/services/Emailer/fake.d.ts +1 -1
- package/dist/services/Emailer/fake.d.ts.map +1 -1
- package/dist/services/Emailer/fake.js +2 -2
- package/dist/services/Emailer/service.d.ts +7 -7
- package/dist/services/Operations/live.d.ts +2 -2
- package/dist/services/Operations/live.d.ts.map +1 -1
- package/dist/services/Operations/live.js +8 -8
- package/dist/services/Operations/service.d.ts +10 -10
- package/dist/services/Operations/service.d.ts.map +1 -1
- package/dist/services/Operations/service.js +3 -3
- package/dist/services/QueueMaker/errors.d.ts +8 -8
- package/dist/services/QueueMaker/errors.d.ts.map +1 -1
- package/dist/services/QueueMaker/errors.js +3 -3
- package/dist/services/QueueMaker/memQueue.d.ts +4 -4
- package/dist/services/QueueMaker/memQueue.js +2 -2
- package/dist/services/QueueMaker/sbqueue.d.ts +5 -5
- package/dist/services/QueueMaker/sbqueue.d.ts.map +1 -1
- package/dist/services/QueueMaker/sbqueue.js +2 -2
- package/dist/services/QueueMaker/service.d.ts +3 -3
- package/dist/services/Repository.d.ts +34 -34
- package/dist/services/Repository.d.ts.map +1 -1
- package/dist/services/Repository.js +2 -2
- package/dist/services/RepositoryBase.d.ts +31 -31
- package/dist/services/RepositoryBase.d.ts.map +1 -1
- package/dist/services/RepositoryBase.js +4 -4
- package/dist/services/RequestContextContainer.d.ts +11 -11
- package/dist/services/RequestContextContainer.d.ts.map +1 -1
- package/dist/services/RequestContextContainer.js +4 -4
- package/dist/services/Store/Cosmos.d.ts +6 -6
- package/dist/services/Store/Cosmos.d.ts.map +1 -1
- package/dist/services/Store/Cosmos.js +5 -5
- package/dist/services/Store/Disk.d.ts +5 -5
- package/dist/services/Store/Disk.d.ts.map +1 -1
- package/dist/services/Store/Disk.js +3 -3
- package/dist/services/Store/Memory.d.ts +7 -7
- package/dist/services/Store/Memory.d.ts.map +1 -1
- package/dist/services/Store/Memory.js +6 -6
- package/dist/services/Store/Redis.d.ts +6 -6
- package/dist/services/Store/Redis.d.ts.map +1 -1
- package/dist/services/Store/Redis.js +4 -4
- package/dist/services/Store/index.d.ts +2 -2
- package/dist/services/Store/index.d.ts.map +1 -1
- package/dist/services/Store/index.js +3 -3
- package/dist/services/Store/service.d.ts +12 -12
- package/dist/services/Store/service.d.ts.map +1 -1
- package/dist/services/Store/service.js +1 -1
- package/dist/services/Store/utils.d.ts +2 -2
- package/dist/services/Store/utils.d.ts.map +1 -1
- package/dist/services/Store/utils.js +3 -3
- package/dist/services/simpledb/cosmosdb.d.ts +5 -5
- package/dist/services/simpledb/cosmosdb.d.ts.map +1 -1
- package/dist/services/simpledb/cosmosdb.js +3 -3
- package/dist/services/simpledb/diskdb.d.ts +5 -5
- package/dist/services/simpledb/diskdb.d.ts.map +1 -1
- package/dist/services/simpledb/diskdb.js +2 -2
- package/dist/services/simpledb/memdb.d.ts +6 -6
- package/dist/services/simpledb/memdb.d.ts.map +1 -1
- package/dist/services/simpledb/memdb.js +3 -3
- package/dist/services/simpledb/mongodb.d.ts +5 -5
- package/dist/services/simpledb/mongodb.d.ts.map +1 -1
- package/dist/services/simpledb/mongodb.js +2 -2
- package/dist/services/simpledb/redisdb.d.ts +11 -11
- package/dist/services/simpledb/redisdb.d.ts.map +1 -1
- package/dist/services/simpledb/redisdb.js +2 -2
- package/dist/services/simpledb/shared.d.ts +10 -10
- package/dist/services/simpledb/shared.js +2 -2
- package/dist/services/simpledb/simpledb.d.ts +8 -8
- package/dist/services/simpledb/simpledb.d.ts.map +1 -1
- package/dist/services/simpledb/simpledb.js +4 -4
- package/package.json +6 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Effect } from "
|
|
2
|
-
import { Tag } from "
|
|
3
|
-
import { Layer } from "
|
|
4
|
-
import { NonEmptyReadonlyArray } from "
|
|
1
|
+
import { Effect } from "effect/Effect";
|
|
2
|
+
import { Tag } from "effect/Context";
|
|
3
|
+
import { Layer } from "effect/Layer";
|
|
4
|
+
import { NonEmptyReadonlyArray } from "effect/ReadonlyArray";
|
|
5
5
|
import type { ParserEnv } from "@effect-app/schema/custom/Parser";
|
|
6
6
|
import type { Repository, RequestCTX } from "./Repository.js";
|
|
7
7
|
import type { RequestContextContainer } from "./RequestContextContainer.js";
|
|
@@ -20,17 +20,17 @@ export declare const RepositoryBase: <Service>() => <T extends {
|
|
|
20
20
|
_etag: string | undefined;
|
|
21
21
|
}, Evt, ItemType extends string>(itemType: ItemType) => ((abstract new () => {
|
|
22
22
|
itemType: ItemType;
|
|
23
|
-
find: (id: T["id"]) => import("
|
|
24
|
-
all: import("
|
|
23
|
+
find: (id: T["id"]) => import("effect/Effect").Effect<ContextMap | RequestContextContainer, never, Opt<T>>;
|
|
24
|
+
all: import("effect/Effect").Effect<ContextMap, never, T[]>;
|
|
25
25
|
saveAndPublish: (items: Iterable<T>, events?: Iterable<Evt> | undefined) => Effect<ContextMap | RequestContextContainer, InvalidStateError | OptimisticConcurrencyException, void>;
|
|
26
26
|
utils: {
|
|
27
27
|
mapReverse: (pm: PM, setEtag: (id: string, eTag: string | undefined) => void) => unknown;
|
|
28
28
|
parse: (a: unknown, env?: ParserEnv | undefined) => T;
|
|
29
|
-
all: import("
|
|
29
|
+
all: import("effect/Effect").Effect<ContextMap, never, PM[]>;
|
|
30
30
|
filter: (filter: Filter<PM>, cursor?: {
|
|
31
31
|
limit?: number;
|
|
32
32
|
skip?: number;
|
|
33
|
-
}) => import("
|
|
33
|
+
}) => import("effect/Effect").Effect<ContextMap, never, PM[]>;
|
|
34
34
|
};
|
|
35
35
|
removeAndPublish: (items: Iterable<T>, events?: Iterable<Evt> | undefined) => Effect<ContextMap | RequestContextContainer, never, void>;
|
|
36
36
|
}) & {
|
|
@@ -60,10 +60,10 @@ export declare const RepositoryBase: <Service>() => <T extends {
|
|
|
60
60
|
readonly S: PM;
|
|
61
61
|
};
|
|
62
62
|
}) => Where | readonly [Where, ...Where[]], mode?: "or" | "and") => Filter<PM>;
|
|
63
|
-
flatMap<R1, E1, B>(f: (a: Service) => import("
|
|
64
|
-
map<B_1>(f: (a: Service) => B_1): import("
|
|
65
|
-
makeLayer(svc: Service): import("
|
|
66
|
-
}) & import("
|
|
63
|
+
flatMap<R1, E1, B>(f: (a: Service) => import("effect/Effect").Effect<R1, E1, B>): import("effect/Effect").Effect<Service | R1, E1, B>;
|
|
64
|
+
map<B_1>(f: (a: Service) => B_1): import("effect/Effect").Effect<Service, never, B_1>;
|
|
65
|
+
makeLayer(svc: Service): import("effect/Layer").Layer<never, never, Service>;
|
|
66
|
+
}) & import("effect/Context").Tag<Service, Service>;
|
|
67
67
|
/**
|
|
68
68
|
* A base implementation to create a repository.
|
|
69
69
|
*/
|
|
@@ -75,9 +75,9 @@ export declare function makeRepo<PM extends {
|
|
|
75
75
|
}, ConstructorInput, Api, E extends {
|
|
76
76
|
id: string;
|
|
77
77
|
}>(name: ItemType, schema: Schema.Schema<unknown, T, ConstructorInput, E, Api>, mapFrom: (pm: Omit<PM, "_etag">) => E, mapTo: (e: E, etag: string | undefined) => PM) => {
|
|
78
|
-
make: (publishEvents: (evt: readonly [Evt, ...Evt[]]) => Effect<RequestCTX, never, void>, makeInitial?: import("
|
|
78
|
+
make: (publishEvents: (evt: readonly [Evt, ...Evt[]]) => Effect<RequestCTX, never, void>, makeInitial?: import("effect/Effect").Effect<never, never, readonly T[]> | undefined, config?: (Omit<StoreConfig<PM>, "partitionValue"> & {
|
|
79
79
|
partitionValue?: ((a: PM) => string) | undefined;
|
|
80
|
-
}) | undefined) => import("
|
|
80
|
+
}) | undefined) => import("effect/Effect").Effect<StoreMaker, never, Repository<T, PM, Evt, ItemType>>;
|
|
81
81
|
where: (makeWhere: (f: {
|
|
82
82
|
<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): {
|
|
83
83
|
key: string;
|
|
@@ -114,7 +114,7 @@ export declare function removeById<T extends {
|
|
|
114
114
|
id: string;
|
|
115
115
|
}, PM extends {
|
|
116
116
|
id: string;
|
|
117
|
-
}, Evt, ItemType extends string>(self: Repository<T, PM, Evt, ItemType>, id: T["id"]): import("
|
|
117
|
+
}, Evt, ItemType extends string>(self: Repository<T, PM, Evt, ItemType>, id: T["id"]): import("effect/Effect").Effect<RequestCTX, import("../errors.js").NotFoundError<ItemType>, void>;
|
|
118
118
|
export declare function makeWhere<PM extends {
|
|
119
119
|
id: string;
|
|
120
120
|
_etag: string | undefined;
|
|
@@ -151,9 +151,9 @@ export declare function makeStore<PM extends {
|
|
|
151
151
|
id: string;
|
|
152
152
|
}, ConstructorInput, Api, E extends {
|
|
153
153
|
id: string;
|
|
154
|
-
}>(name: ItemType, schema: Schema.Schema<unknown, T, ConstructorInput, E, Api>, mapTo: (e: E, etag: string | undefined) => PM) => (makeInitial?: import("
|
|
154
|
+
}>(name: ItemType, schema: Schema.Schema<unknown, T, ConstructorInput, E, Api>, mapTo: (e: E, etag: string | undefined) => PM) => (makeInitial?: import("effect/Effect").Effect<never, never, readonly T[]> | undefined, config?: (Omit<StoreConfig<PM>, "partitionValue"> & {
|
|
155
155
|
partitionValue?: ((a: PM) => string) | undefined;
|
|
156
|
-
}) | undefined) => import("
|
|
156
|
+
}) | undefined) => import("effect/Effect").Effect<StoreMaker, never, import("./Store.js").Store<PM, string>>;
|
|
157
157
|
export declare const RepositoryBaseImpl: <Service>() => <PM extends {
|
|
158
158
|
id: string;
|
|
159
159
|
_etag: string | undefined;
|
|
@@ -161,10 +161,10 @@ export declare const RepositoryBaseImpl: <Service>() => <PM extends {
|
|
|
161
161
|
id: string;
|
|
162
162
|
}, ConstructorInput, Api, E extends {
|
|
163
163
|
id: string;
|
|
164
|
-
}>(itemType: ItemType, schema: Schema.Schema<unknown, T, ConstructorInput, E, Api>, mapFrom: (pm: Omit<PM, "_etag">) => E, mapTo: (e: E, etag: string | undefined) => PM) => (abstract new () => Repository<T, PM, Evt, ItemType>) & import("
|
|
165
|
-
make(publishEvents: (evt: readonly [Evt, ...Evt[]]) => Effect<RequestCTX, never, void>, makeInitial?: import("
|
|
164
|
+
}>(itemType: ItemType, schema: Schema.Schema<unknown, T, ConstructorInput, E, Api>, mapFrom: (pm: Omit<PM, "_etag">) => E, mapTo: (e: E, etag: string | undefined) => PM) => (abstract new () => Repository<T, PM, Evt, ItemType>) & import("effect/Context").Tag<Service, Service> & {
|
|
165
|
+
make(publishEvents: (evt: readonly [Evt, ...Evt[]]) => Effect<RequestCTX, never, void>, makeInitial?: import("effect/Effect").Effect<never, never, readonly T[]> | undefined, config?: (Omit<StoreConfig<PM>, "partitionValue"> & {
|
|
166
166
|
partitionValue?: ((a: PM) => string) | undefined;
|
|
167
|
-
}) | undefined): import("
|
|
167
|
+
}) | undefined): import("effect/Effect").Effect<StoreMaker, never, Repository<T, PM, Evt, ItemType>>;
|
|
168
168
|
where: (makeWhere: (f: {
|
|
169
169
|
<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): {
|
|
170
170
|
key: string;
|
|
@@ -191,9 +191,9 @@ export declare const RepositoryBaseImpl: <Service>() => <PM extends {
|
|
|
191
191
|
readonly S: PM;
|
|
192
192
|
};
|
|
193
193
|
}) => Where | readonly [Where, ...Where[]], mode?: "or" | "and") => Filter<PM>;
|
|
194
|
-
flatMap: <R1, E1, B>(f: (a: Service) => import("
|
|
195
|
-
makeLayer: (svc: Service) => import("
|
|
196
|
-
map: <B_1>(f: (a: Service) => B_1) => import("
|
|
194
|
+
flatMap: <R1, E1, B>(f: (a: Service) => import("effect/Effect").Effect<R1, E1, B>) => import("effect/Effect").Effect<Service | R1, E1, B>;
|
|
195
|
+
makeLayer: (svc: Service) => import("effect/Layer").Layer<never, never, Service>;
|
|
196
|
+
map: <B_1>(f: (a: Service) => B_1) => import("effect/Effect").Effect<Service, never, B_1>;
|
|
197
197
|
};
|
|
198
198
|
export declare const RepositoryDefaultImpl: <Service>() => <PM extends {
|
|
199
199
|
id: string;
|
|
@@ -202,14 +202,14 @@ export declare const RepositoryDefaultImpl: <Service>() => <PM extends {
|
|
|
202
202
|
id: string;
|
|
203
203
|
}, ConstructorInput, Api, E extends {
|
|
204
204
|
id: string;
|
|
205
|
-
}>(itemType: ItemType, schema: Schema.Schema<unknown, T, ConstructorInput, E, Api>, mapFrom: (pm: Omit<PM, "_etag">) => E, mapTo: (e: E, etag: string | undefined) => PM) => import("
|
|
205
|
+
}>(itemType: ItemType, schema: Schema.Schema<unknown, T, ConstructorInput, E, Api>, mapFrom: (pm: Omit<PM, "_etag">) => E, mapTo: (e: E, etag: string | undefined) => PM) => import("effect/Context").Tag<Service, Service> & {
|
|
206
206
|
new (impl: Repository<T, PM, Evt, ItemType>): Repository<T, PM, Evt, ItemType>;
|
|
207
|
-
make(publishEvents: (evt: readonly [Evt, ...Evt[]]) => Effect<RequestCTX, never, void>, makeInitial?: import("
|
|
207
|
+
make(publishEvents: (evt: readonly [Evt, ...Evt[]]) => Effect<RequestCTX, never, void>, makeInitial?: import("effect/Effect").Effect<never, never, readonly T[]> | undefined, config?: (Omit<StoreConfig<PM>, "partitionValue"> & {
|
|
208
208
|
partitionValue?: ((a: PM) => string) | undefined;
|
|
209
|
-
}) | undefined): import("
|
|
210
|
-
toLayer(publishEvents: (evt: readonly [Evt, ...Evt[]]) => Effect<RequestCTX, never, void>, makeInitial?: import("
|
|
209
|
+
}) | undefined): import("effect/Effect").Effect<StoreMaker, never, Repository<T, PM, Evt, ItemType>>;
|
|
210
|
+
toLayer(publishEvents: (evt: readonly [Evt, ...Evt[]]) => Effect<RequestCTX, never, void>, makeInitial?: import("effect/Effect").Effect<never, never, readonly T[]> | undefined, config?: (Omit<StoreConfig<PM>, "partitionValue"> & {
|
|
211
211
|
partitionValue?: ((a: PM) => string) | undefined;
|
|
212
|
-
}) | undefined): import("
|
|
212
|
+
}) | undefined): import("effect/Layer").Layer<StoreMaker, never, Service>;
|
|
213
213
|
where: (makeWhere: (f: {
|
|
214
214
|
<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): {
|
|
215
215
|
key: string;
|
|
@@ -236,9 +236,9 @@ export declare const RepositoryDefaultImpl: <Service>() => <PM extends {
|
|
|
236
236
|
readonly S: PM;
|
|
237
237
|
};
|
|
238
238
|
}) => Where | readonly [Where, ...Where[]], mode?: "or" | "and") => Filter<PM>;
|
|
239
|
-
flatMap: <R1, E1, B>(f: (a: Service) => import("
|
|
240
|
-
makeLayer: (svc: Service) => import("
|
|
241
|
-
map: <B_1>(f: (a: Service) => B_1) => import("
|
|
239
|
+
flatMap: <R1, E1, B>(f: (a: Service) => import("effect/Effect").Effect<R1, E1, B>) => import("effect/Effect").Effect<Service | R1, E1, B>;
|
|
240
|
+
makeLayer: (svc: Service) => import("effect/Layer").Layer<never, never, Service>;
|
|
241
|
+
map: <B_1>(f: (a: Service) => B_1) => import("effect/Effect").Effect<Service, never, B_1>;
|
|
242
242
|
repo: Repository<T, PM, Evt, ItemType>;
|
|
243
243
|
};
|
|
244
244
|
//# sourceMappingURL=RepositoryBase.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RepositoryBase.d.ts","sourceRoot":"","sources":["../../_src/services/RepositoryBase.ts"],"names":[],"mappings":";;;;AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAA;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC7D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAC3E,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACnD,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAG5D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAA;AAGlD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAEjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,8BAA8B,EAAE,MAAM,cAAc,CAAA;AAErF;;GAEG;AACH,eAAO,MAAM,cAAc;QACD,MAAM;;QAAqB,MAAM;WAAS,MAAM,GAAG,SAAS;;;;;gFAU3E,OAAO,UAAU,GAAG,uBAAuB,EAAE,iBAAiB,GAAG,8BAA8B,EAAE,IAAI,CAAC;;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,gBAWtB;AASD,wBAAgB,SAAS,CACvB,EAAE,SAAS;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE;QAIlC,MAAM;;QAGN,MAAM;oGAIF,MAAM,GAAG,SAAS,KAAK,EAAE;0BAkBpB,EAAE,KAAK,MAAM;6GA0BzC;AAED,eAAO,MAAM,kBAAkB;QAEV,MAAM;WAAS,MAAM,GAAG,SAAS;;QAGV,MAAM;;QAA2C,MAAM;+IAI3E,MAAM,GAAG,SAAS;2DAGgB,OAAO,UAAU,EAAE,KAAK,EAAE,IAAI,CAAC;qCAGrD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;UA9FjC,KAAK,GAAG,SAAS,CAAC,KAAK,EAAE,GAAG,KAAK,EAAE,CAAC,SAClC,IAAI,GAAG,KAAK;;;;CA2GtB,CAAA;AAED,eAAO,MAAM,qBAAqB;QAEb,MAAM;WAAS,MAAM,GAAG,SAAS;;QAGV,MAAM;;QAA2C,MAAM;+IAI3E,MAAM,GAAG,SAAS;;2DAMgB,OAAO,UAAU,EAAE,KAAK,EAAE,IAAI,CAAC;qCAGrD,MAAM;;8DAIgB,OAAO,UAAU,EAAE,KAAK,EAAE,IAAI,CAAC;qCAGrD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;UAvIjC,KAAK,GAAG,SAAS,CAAC,KAAK,EAAE,GAAG,KAAK,EAAE,CAAC,SAClC,IAAI,GAAG,KAAK;;;;;CAoKtB,CAAA"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "
|
|
2
|
-
import * as tsplus_module_2 from "
|
|
1
|
+
import * as tsplus_module_1 from "effect/Effect";
|
|
2
|
+
import * as tsplus_module_2 from "effect/Layer";
|
|
3
3
|
import * as tsplus_module_3 from "@effect-app/prelude/service";
|
|
4
4
|
import * as tsplus_module_4 from "@effect-app/prelude/schema";
|
|
5
5
|
import * as tsplus_module_5 from "@effect-app/schema/custom/_api/condemn";
|
|
6
6
|
import * as tsplus_module_6 from "@effect-app/prelude/_ext/misc";
|
|
7
7
|
import * as tsplus_module_7 from "@effect-app/core/Array";
|
|
8
|
-
import * as tsplus_module_8 from "
|
|
8
|
+
import * as tsplus_module_8 from "effect/Chunk";
|
|
9
9
|
import * as tsplus_module_9 from "@effect-app/core/Effect";
|
|
10
|
-
import * as tsplus_module_10 from "
|
|
10
|
+
import * as tsplus_module_10 from "effect/Option";
|
|
11
11
|
import * as tsplus_module_11 from "@effect-app/core/_ext/Iterable";
|
|
12
12
|
import * as tsplus_module_12 from "@effect-app/infra/services/Repository";
|
|
13
13
|
import * as tsplus_module_13 from "@effect-app/core/Function";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { TagClass } from "@effect-app/prelude/service";
|
|
2
|
-
import { Effect } from "
|
|
3
|
-
import { Context } from "
|
|
2
|
+
import { Effect } from "effect/Effect";
|
|
3
|
+
import { Context } from "effect/Context";
|
|
4
4
|
import { Option } from "@effect-app/core/Option";
|
|
5
|
-
import { Ref } from "
|
|
5
|
+
import { Ref } from "effect/Ref";
|
|
6
6
|
import { RequestContext } from "../RequestContext.js";
|
|
7
7
|
declare const RequestContextContainer_base: (abstract new () => {}) & {
|
|
8
|
-
flatMap<R1, E1, B>(f: (a: RequestContextContainer) => import("
|
|
9
|
-
map<B_1>(f: (a: RequestContextContainer) => B_1): import("
|
|
10
|
-
makeLayer(svc: RequestContextContainer): import("
|
|
11
|
-
} & import("
|
|
8
|
+
flatMap<R1, E1, B>(f: (a: RequestContextContainer) => import("effect/Effect").Effect<R1, E1, B>): import("effect/Effect").Effect<RequestContextContainer | R1, E1, B>;
|
|
9
|
+
map<B_1>(f: (a: RequestContextContainer) => B_1): import("effect/Effect").Effect<RequestContextContainer, never, B_1>;
|
|
10
|
+
makeLayer(svc: RequestContextContainer): import("effect/Layer").Layer<never, never, RequestContextContainer>;
|
|
11
|
+
} & import("effect/Context").Tag<RequestContextContainer, RequestContextContainer>;
|
|
12
12
|
/**
|
|
13
13
|
* @tsplus companion RequestContextContainer.Ops
|
|
14
14
|
*/
|
|
@@ -16,13 +16,13 @@ export declare abstract class RequestContextContainer extends RequestContextCont
|
|
|
16
16
|
abstract readonly requestContext: Effect<never, never, RequestContext>;
|
|
17
17
|
abstract readonly update: (f: (rc: RequestContext) => RequestContext) => Effect<never, never, void>;
|
|
18
18
|
static get get(): Effect<RequestContextContainer, never, RequestContext>;
|
|
19
|
-
static get getOption(): import("
|
|
19
|
+
static get getOption(): import("effect/Effect").Effect<never, never, import("effect/Option").Option<RequestContext>>;
|
|
20
20
|
}
|
|
21
21
|
export declare class RequestContextContainerImpl extends RequestContextContainer {
|
|
22
22
|
#private;
|
|
23
23
|
constructor(inp: RequestContext.ConstructorInput);
|
|
24
|
-
get requestContext(): import("
|
|
25
|
-
update: (f: (a: RequestContext) => RequestContext) => import("
|
|
24
|
+
get requestContext(): import("effect/Effect").Effect<never, never, RequestContext>;
|
|
25
|
+
update: (f: (a: RequestContext) => RequestContext) => import("effect/Effect").Effect<never, never, RequestContext>;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* @tsplus static RequestContextContainer.Ops live
|
|
@@ -33,6 +33,6 @@ export declare function live(inp: RequestContext.ConstructorInput): RequestConte
|
|
|
33
33
|
* @tsplus static RequestContext.Ops Tag
|
|
34
34
|
* @tsplus location "@effect-app/infra/services/RequestContextContainer"
|
|
35
35
|
*/
|
|
36
|
-
export declare const RCTag: import("
|
|
36
|
+
export declare const RCTag: import("effect/Context").Tag<RequestContext, RequestContext>;
|
|
37
37
|
export {};
|
|
38
38
|
//# sourceMappingURL=RequestContextContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestContextContainer.d.ts","sourceRoot":"","sources":["../../_src/services/RequestContextContainer.ts"],"names":[],"mappings":";;;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;;;;;;AAErD;;GAEG;A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,eAAO,MAAM,KAAK,8DAAwB,CAAA"}
|
|
@@ -11,11 +11,11 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
11
11
|
};
|
|
12
12
|
var _RequestContextContainerImpl_ref;
|
|
13
13
|
import * as tsplus_module_1 from "@effect-app/prelude/service";
|
|
14
|
-
import * as tsplus_module_2 from "
|
|
15
|
-
import * as tsplus_module_3 from "
|
|
14
|
+
import * as tsplus_module_2 from "effect/Option";
|
|
15
|
+
import * as tsplus_module_3 from "effect/Effect";
|
|
16
16
|
import * as tsplus_module_4 from "@effect-app/core/Option";
|
|
17
|
-
import * as tsplus_module_5 from "
|
|
18
|
-
import * as tsplus_module_6 from "
|
|
17
|
+
import * as tsplus_module_5 from "effect/Context";
|
|
18
|
+
import * as tsplus_module_6 from "effect/Ref";
|
|
19
19
|
import { RequestContext } from "../RequestContext.js";
|
|
20
20
|
/**
|
|
21
21
|
* @tsplus companion RequestContextContainer.Ops
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Effect } from "
|
|
2
|
-
import { NonEmptyReadonlyArray } from "
|
|
3
|
-
import { Config } from "
|
|
1
|
+
import { Effect } from "effect/Effect";
|
|
2
|
+
import { NonEmptyReadonlyArray } from "effect/ReadonlyArray";
|
|
3
|
+
import { Config } from "effect/Config";
|
|
4
4
|
import { CosmosClient } from "@effect-app/infra-adapters/cosmos-client";
|
|
5
5
|
import type { FilterJoinSelect, JoinFindFilter, LegacyFilter, PersistenceModelType, StorageConfig, Store, StoreConfig, StoreWhereFilter, SupportedValues } from "./service.js";
|
|
6
6
|
import { StoreMaker } from "./service.js";
|
|
7
|
-
export declare function makeCosmosStore({ prefix }: StorageConfig): import("
|
|
8
|
-
make: <Id extends string, PM extends PersistenceModelType<Id>>(name: string, seed?: import("
|
|
7
|
+
export declare function makeCosmosStore({ prefix }: StorageConfig): import("effect/Effect").Effect<CosmosClient, never, {
|
|
8
|
+
make: <Id extends string, PM extends PersistenceModelType<Id>>(name: string, seed?: import("effect/Effect").Effect<never, never, Iterable<PM>> | undefined, config?: StoreConfig<PM> | undefined) => import("effect/Effect").Effect<never, never, Store<PM, Id>>;
|
|
9
9
|
}>;
|
|
10
10
|
/**
|
|
11
11
|
* @deprecated: should build Select into Where query
|
|
@@ -51,5 +51,5 @@ export declare function buildCosmosQuery<PM>(filter: LegacyFilter<PM> | StoreWhe
|
|
|
51
51
|
value: string | number | boolean | readonly SupportedValues[] | null;
|
|
52
52
|
}[];
|
|
53
53
|
};
|
|
54
|
-
export declare function CosmosStoreLive(config: Config<StorageConfig>): import("
|
|
54
|
+
export declare function CosmosStoreLive(config: Config<StorageConfig>): import("effect/Layer").Layer<CosmosClient, import("effect/ConfigError").ConfigError, StoreMaker>;
|
|
55
55
|
//# sourceMappingURL=Cosmos.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cosmos.d.ts","sourceRoot":"","sources":["../../../_src/services/Store/Cosmos.ts"],"names":[],"mappings":";;;AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAA;AAGvE,OAAO,KAAK,EAEV,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,oBAAoB,EACpB,aAAa,EACb,KAAK,EACL,WAAW,EACX,gBAAgB,EAChB,eAAe,EAChB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAGzC,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE,aAAa;yEAK3C,MAAM;GAwWnB;AAwBD;;GAEG;AACH,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE,gBAAgB,EACxB,CAAC,EAAE,MAAM,EACT,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,MAAM;;;;;;EAaf;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,cAAc,EACtB,CAAC,EAAE,MAAM,EACT,IAAI,EAAE,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,CAAC,EAAE,MAAM,EACT,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,MAAM;;;;;;EAaf;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,cAAc,EACtB,CAAC,EAAE,MAAM,EACT,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,MAAM;;;;;;EAYf;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,EACvC,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC,EACxB,IAAI,EAAE,MAAM,EACZ,gBAAgB,EAAE,MAAM,EACxB,IAAI,CAAC,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,MAAM;;;;;;EAyBf;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,gBAAgB,EACxB,IAAI,EAAE,MAAM,EACZ,gBAAgB,EAAE,MAAM,EACxB,IAAI,CAAC,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,MAAM;;;;;;EAmFf;AAUD,wBAAgB,gBAAgB,CAAC,EAAE,EACjC,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC,GAAG,gBAAgB,EAC3C,IAAI,EAAE,MAAM,EACZ,gBAAgB,EAAE,MAAM,EACxB,IAAI,CAAC,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,MAAM;;;;;;EAOf;AAKD,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC,oGAE5D"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "
|
|
2
|
-
import * as tsplus_module_2 from "
|
|
1
|
+
import * as tsplus_module_1 from "effect/Effect";
|
|
2
|
+
import * as tsplus_module_2 from "effect/Option";
|
|
3
3
|
import * as tsplus_module_3 from "@effect-app/core/Array";
|
|
4
|
-
import * as tsplus_module_4 from "
|
|
4
|
+
import * as tsplus_module_4 from "effect/Chunk";
|
|
5
5
|
import * as tsplus_module_5 from "@effect-app/core/_ext/Iterable";
|
|
6
6
|
import * as tsplus_module_6 from "@effect-app/infra/instrument";
|
|
7
7
|
import * as tsplus_module_7 from "@effect-app/prelude/utils";
|
|
8
8
|
import * as tsplus_module_8 from "@effect-app/core/Effect";
|
|
9
|
-
import * as tsplus_module_9 from "
|
|
9
|
+
import * as tsplus_module_9 from "effect/Equivalence";
|
|
10
10
|
import * as tsplus_module_10 from "@effect-app/core/_ext/ord.ext";
|
|
11
|
-
import * as tsplus_module_11 from "
|
|
11
|
+
import * as tsplus_module_11 from "effect/Layer";
|
|
12
12
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
13
13
|
import { CosmosClient } from "@effect-app/infra-adapters/cosmos-client";
|
|
14
14
|
import { omit } from "@effect-app/prelude/utils";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Effect } from "
|
|
2
|
-
import { Config } from "
|
|
1
|
+
import { Effect } from "effect/Effect";
|
|
2
|
+
import { Config } from "effect/Config";
|
|
3
3
|
import type { PersistenceModelType, StorageConfig, Store, StoreConfig } from "./service.js";
|
|
4
4
|
import { StoreMaker } from "./service.js";
|
|
5
5
|
/**
|
|
6
6
|
* The Disk-backed store, flushes writes in background, but keeps the data in memory
|
|
7
7
|
* and should therefore be as fast as the Memory Store.
|
|
8
8
|
*/
|
|
9
|
-
export declare function makeDiskStore({ prefix }: StorageConfig, dir: string): import("
|
|
10
|
-
make: <Id extends string, PM extends PersistenceModelType<Id>>(name: string, seed?: import("
|
|
9
|
+
export declare function makeDiskStore({ prefix }: StorageConfig, dir: string): import("effect/Effect").Effect<never, never, {
|
|
10
|
+
make: <Id extends string, PM extends PersistenceModelType<Id>>(name: string, seed?: import("effect/Effect").Effect<never, never, Iterable<PM>> | undefined, config?: StoreConfig<PM> | undefined) => import("effect/Effect").Effect<never, never, Store<PM, Id>>;
|
|
11
11
|
}>;
|
|
12
|
-
export declare function DiskStoreLive(config: Config<StorageConfig>, dir: string): import("
|
|
12
|
+
export declare function DiskStoreLive(config: Config<StorageConfig>, dir: string): import("effect/Layer").Layer<never, import("effect/ConfigError").ConfigError, StoreMaker>;
|
|
13
13
|
//# sourceMappingURL=Disk.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Disk.d.ts","sourceRoot":"","sources":["../../../_src/services/Store/Disk.ts"],"names":[],"mappings":";;AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC3F,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AA4DzC;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM;yEAOtD,MAAM;GAyCnB;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Disk.d.ts","sourceRoot":"","sources":["../../../_src/services/Store/Disk.ts"],"names":[],"mappings":";;AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC3F,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AA4DzC;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM;yEAOtD,MAAM;GAyCnB;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE,MAAM,6FAKvE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "
|
|
1
|
+
import * as tsplus_module_1 from "effect/Effect";
|
|
2
2
|
import * as tsplus_module_2 from "@effect-app/core/Function";
|
|
3
|
-
import * as tsplus_module_3 from "
|
|
4
|
-
import * as tsplus_module_4 from "
|
|
3
|
+
import * as tsplus_module_3 from "effect/FiberRef";
|
|
4
|
+
import * as tsplus_module_4 from "effect/Layer";
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
6
6
|
import * as fu from "@effect-app/infra-adapters/fileUtil";
|
|
7
7
|
import fs from "fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Effect } from "
|
|
2
|
-
import { NonEmptyReadonlyArray, NonEmptyArray } from "
|
|
1
|
+
import { Effect } from "effect/Effect";
|
|
2
|
+
import { NonEmptyReadonlyArray, NonEmptyArray } from "effect/ReadonlyArray";
|
|
3
3
|
import { RequestContextContainer } from "../RequestContextContainer.js";
|
|
4
4
|
import type { Filter, PersistenceModelType, Store, StoreConfig } from "./service.js";
|
|
5
5
|
import { StoreMaker } from "./service.js";
|
|
@@ -9,11 +9,11 @@ export declare function memFilter<T extends {
|
|
|
9
9
|
skip?: number;
|
|
10
10
|
limit?: number;
|
|
11
11
|
}): (c: T[]) => T[];
|
|
12
|
-
export declare const storeId: import("
|
|
13
|
-
export declare const restoreFromRequestContext: import("
|
|
14
|
-
export declare function makeMemoryStoreInt<Id extends string, PM extends PersistenceModelType<Id>>(name: string, seed?: Effect<never, never, Iterable<PM>>): import("
|
|
12
|
+
export declare const storeId: import("effect/FiberRef").FiberRef<string>;
|
|
13
|
+
export declare const restoreFromRequestContext: import("effect/Effect").Effect<RequestContextContainer, never, void>;
|
|
14
|
+
export declare function makeMemoryStoreInt<Id extends string, PM extends PersistenceModelType<Id>>(name: string, seed?: Effect<never, never, Iterable<PM>>): import("effect/Effect").Effect<never, never, Store<PM, Id>>;
|
|
15
15
|
export declare const makeMemoryStore: () => {
|
|
16
|
-
make: <Id extends string, PM extends PersistenceModelType<Id>>(name: string, seed?: import("
|
|
16
|
+
make: <Id extends string, PM extends PersistenceModelType<Id>>(name: string, seed?: import("effect/Effect").Effect<never, never, Iterable<PM>> | undefined, config?: StoreConfig<PM> | undefined) => import("effect/Effect").Effect<never, never, Store<PM, Id>>;
|
|
17
17
|
};
|
|
18
|
-
export declare const MemoryStoreLive: import("
|
|
18
|
+
export declare const MemoryStoreLive: import("effect/Layer").Layer<never, never, StoreMaker>;
|
|
19
19
|
//# sourceMappingURL=Memory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Memory.d.ts","sourceRoot":"","sources":["../../../_src/services/Store/Memory.ts"],"names":[],"mappings":";;AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,KAAK,EAAE,MAAM,EAAoB,oBAAoB,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AACtG,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAGzC,wBAAgB,SAAS,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,OACnG,CAAC,EAAE,KAAG,CAAC,EAAE,CAetB;AAED,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"Memory.d.ts","sourceRoot":"","sources":["../../../_src/services/Store/Memory.ts"],"names":[],"mappings":";;AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,KAAK,EAAE,MAAM,EAAoB,oBAAoB,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AACtG,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAGzC,wBAAgB,SAAS,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,OACnG,CAAC,EAAE,KAAG,CAAC,EAAE,CAetB;AAED,eAAO,MAAM,OAAO,4CAAiC,CAAA;AACrD,eAAO,MAAM,yBAAyB,sEAErC,CAAA;AAeD,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,MAAM,EAAE,EAAE,SAAS,oBAAoB,CAAC,EAAE,CAAC,EACvF,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,+DAqD1C;AAED,eAAO,MAAM,eAAe;yEAElB,MAAM;CAkCd,CAAA;AAEF,eAAO,MAAM,eAAe,wDAA0C,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "
|
|
1
|
+
import * as tsplus_module_1 from "effect/ReadonlyArray";
|
|
2
2
|
import * as tsplus_module_2 from "@effect-app/core/Array";
|
|
3
|
-
import * as tsplus_module_3 from "
|
|
4
|
-
import * as tsplus_module_4 from "
|
|
5
|
-
import * as tsplus_module_5 from "
|
|
6
|
-
import * as tsplus_module_6 from "
|
|
7
|
-
import * as tsplus_module_7 from "
|
|
3
|
+
import * as tsplus_module_3 from "effect/Option";
|
|
4
|
+
import * as tsplus_module_4 from "effect/FiberRef";
|
|
5
|
+
import * as tsplus_module_5 from "effect/Effect";
|
|
6
|
+
import * as tsplus_module_6 from "effect/Chunk";
|
|
7
|
+
import * as tsplus_module_7 from "effect/Ref";
|
|
8
8
|
import * as tsplus_module_8 from "@effect-app/core/_ext/Iterable";
|
|
9
9
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
10
10
|
import { RequestContextContainer } from "../RequestContextContainer.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Effect } from "
|
|
2
|
-
import { NonEmptyReadonlyArray, NonEmptyArray } from "
|
|
3
|
-
import { Config } from "
|
|
1
|
+
import { Effect } from "effect/Effect";
|
|
2
|
+
import { NonEmptyReadonlyArray, NonEmptyArray } from "effect/ReadonlyArray";
|
|
3
|
+
import { Config } from "effect/Config";
|
|
4
4
|
import { RedisClient } from "@effect-app/infra-adapters/redis-client";
|
|
5
5
|
import type { PersistenceModelType, StorageConfig, Store, StoreConfig } from "./service.js";
|
|
6
6
|
import { StoreMaker } from "./service.js";
|
|
7
|
-
export declare function makeRedisStore({ prefix }: StorageConfig): import("
|
|
8
|
-
make: <Id extends string, PM extends PersistenceModelType<Id>>(name: string, seed?: import("
|
|
7
|
+
export declare function makeRedisStore({ prefix }: StorageConfig): import("effect/Effect").Effect<RedisClient, never, {
|
|
8
|
+
make: <Id extends string, PM extends PersistenceModelType<Id>>(name: string, seed?: import("effect/Effect").Effect<never, never, Iterable<PM>> | undefined, _config?: StoreConfig<PM> | undefined) => import("effect/Effect").Effect<never, never, Store<PM, Id>>;
|
|
9
9
|
}>;
|
|
10
|
-
export declare function RedisStoreLive(config: Config<StorageConfig>): import("
|
|
10
|
+
export declare function RedisStoreLive(config: Config<StorageConfig>): import("effect/Layer").Layer<RedisClient, import("effect/ConfigError").ConfigError, StoreMaker>;
|
|
11
11
|
//# sourceMappingURL=Redis.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Redis.d.ts","sourceRoot":"","sources":["../../../_src/services/Store/Redis.ts"],"names":[],"mappings":";;;AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAA;AAIrE,OAAO,KAAK,EAA4B,oBAAoB,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AACrH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAGzC,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE,aAAa;yEAK1C,MAAM;GA8EnB;AACD,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"Redis.d.ts","sourceRoot":"","sources":["../../../_src/services/Store/Redis.ts"],"names":[],"mappings":";;;AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAA;AAIrE,OAAO,KAAK,EAA4B,oBAAoB,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AACrH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAGzC,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE,aAAa;yEAK1C,MAAM;GA8EnB;AACD,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC,mGAE3D"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "
|
|
2
|
-
import * as tsplus_module_2 from "
|
|
1
|
+
import * as tsplus_module_1 from "effect/Effect";
|
|
2
|
+
import * as tsplus_module_2 from "effect/Option";
|
|
3
3
|
import * as tsplus_module_3 from "@effect-app/prelude/_ext/misc";
|
|
4
|
-
import * as tsplus_module_4 from "
|
|
4
|
+
import * as tsplus_module_4 from "effect/ReadonlyArray";
|
|
5
5
|
import * as tsplus_module_5 from "@effect-app/core/_ext/Iterable";
|
|
6
|
-
import * as tsplus_module_6 from "
|
|
6
|
+
import * as tsplus_module_6 from "effect/Layer";
|
|
7
7
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
8
8
|
import { RedisClient } from "@effect-app/infra-adapters/redis-client";
|
|
9
9
|
import { NotFoundError } from "../../errors.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Config } from "
|
|
1
|
+
import { Config } from "effect/Config";
|
|
2
2
|
import type { StorageConfig } from "./service.js";
|
|
3
3
|
import { StoreMaker } from "./service.js";
|
|
4
4
|
/**
|
|
5
5
|
* @tsplus static StoreMaker.Ops Live
|
|
6
6
|
* @tsplus location "@effect-app/infra/services/Store/index"
|
|
7
7
|
*/
|
|
8
|
-
export declare function StoreMakerLive(config: Config<StorageConfig>): import("
|
|
8
|
+
export declare function StoreMakerLive(config: Config<StorageConfig>): import("effect/Layer").Layer<never, import("effect/ConfigError").ConfigError, StoreMaker>;
|
|
9
9
|
export * from "./service.js";
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../_src/services/Store/index.ts"],"names":[],"mappings":";AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;;;;;AAKzC,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../_src/services/Store/index.ts"],"names":[],"mappings":";AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;;;;;AAKzC,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC,6FA8B3D;AAmBD,cAAc,cAAc,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "
|
|
2
|
-
import * as tsplus_module_2 from "
|
|
3
|
-
import * as tsplus_module_3 from "
|
|
1
|
+
import * as tsplus_module_1 from "effect/ConfigSecret";
|
|
2
|
+
import * as tsplus_module_2 from "effect/Effect";
|
|
3
|
+
import * as tsplus_module_3 from "effect/Layer";
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
5
|
import * as CosmosClient from "@effect-app/infra-adapters/cosmos-client";
|
|
6
6
|
import * as RedisClient from "@effect-app/infra-adapters/redis-client";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Effect } from "
|
|
1
|
+
import { Effect } from "effect/Effect";
|
|
2
2
|
import { Option } from "@effect-app/core/Option";
|
|
3
|
-
import { NonEmptyReadonlyArray } from "
|
|
3
|
+
import { NonEmptyReadonlyArray } from "effect/ReadonlyArray";
|
|
4
4
|
import { TagClass } from "@effect-app/prelude/service";
|
|
5
|
-
import { ConfigSecret } from "
|
|
5
|
+
import { ConfigSecret } from "effect/ConfigSecret";
|
|
6
6
|
import type { UniqueKey } from "@azure/cosmos";
|
|
7
7
|
import type { ParserEnv } from "@effect-app/schema/custom/Parser";
|
|
8
8
|
import type { OptimisticConcurrencyException } from "../../errors.js";
|
|
@@ -88,10 +88,10 @@ export interface Store<PM extends PersistenceModelType<Id>, Id extends string> {
|
|
|
88
88
|
remove: (e: PM) => Effect<never, never, void>;
|
|
89
89
|
}
|
|
90
90
|
declare const StoreMaker_base: (abstract new () => {}) & {
|
|
91
|
-
flatMap<R1, E1, B>(f: (a: StoreMaker) => import("
|
|
92
|
-
map<B_1>(f: (a: StoreMaker) => B_1): import("
|
|
93
|
-
makeLayer(svc: StoreMaker): import("
|
|
94
|
-
} & import("
|
|
91
|
+
flatMap<R1, E1, B>(f: (a: StoreMaker) => import("effect/Effect").Effect<R1, E1, B>): import("effect/Effect").Effect<StoreMaker | R1, E1, B>;
|
|
92
|
+
map<B_1>(f: (a: StoreMaker) => B_1): import("effect/Effect").Effect<StoreMaker, never, B_1>;
|
|
93
|
+
makeLayer(svc: StoreMaker): import("effect/Layer").Layer<never, never, StoreMaker>;
|
|
94
|
+
} & import("effect/Context").Tag<StoreMaker, StoreMaker>;
|
|
95
95
|
/**
|
|
96
96
|
* @tsplus type StoreMaker
|
|
97
97
|
* @tsplus companion StoreMaker.Ops
|
|
@@ -103,12 +103,12 @@ export declare abstract class StoreMaker extends StoreMaker_base {
|
|
|
103
103
|
* @tsplus static ContextMap.Ops Make
|
|
104
104
|
* @tsplus location "@effect-app/infra/services/Store/service"
|
|
105
105
|
*/
|
|
106
|
-
export declare const makeMap: import("
|
|
106
|
+
export declare const makeMap: import("effect/Effect").Effect<never, never, ContextMap>;
|
|
107
107
|
declare const ContextMap_base: (abstract new () => {}) & {
|
|
108
|
-
flatMap<R1, E1, B>(f: (a: ContextMap) => import("
|
|
109
|
-
map<B_1>(f: (a: ContextMap) => B_1): import("
|
|
110
|
-
makeLayer(svc: ContextMap): import("
|
|
111
|
-
} & import("
|
|
108
|
+
flatMap<R1, E1, B>(f: (a: ContextMap) => import("effect/Effect").Effect<R1, E1, B>): import("effect/Effect").Effect<ContextMap | R1, E1, B>;
|
|
109
|
+
map<B_1>(f: (a: ContextMap) => B_1): import("effect/Effect").Effect<ContextMap, never, B_1>;
|
|
110
|
+
makeLayer(svc: ContextMap): import("effect/Layer").Layer<never, never, ContextMap>;
|
|
111
|
+
} & import("effect/Context").Tag<ContextMap, ContextMap>;
|
|
112
112
|
/**
|
|
113
113
|
* @tsplus type ContextMap
|
|
114
114
|
* @tsplus companion ContextMap.Ops
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../_src/services/Store/service.ts"],"names":[],"mappings":";;;;;AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAU,SAAS,EAAE,MAAM,kCAAkC,CAAA;AAGzE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAA;AAErE,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;IAC3B,UAAU,CAAC,EAAE,SAAS,EAAE,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,MAAM,GAAG,SAAS,CAAA;IAC5C,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAA;CAChD,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,CAAA;AAC9D,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAA;AAGxD,MAAM,MA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zC;;;;;AAKD,eAAO,MAAM,OAAO,0DA+DlB,CAAA;;;;;;AAEF;;;GAGG;AACH,8BAAsB,UAAW,SAAQ,eAAsB;IAC7D,QAAQ,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;IAChD,QAAQ,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAA;IAC5D,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAA;CAC9B;AAED,MAAM,WAAW,oBAAoB,CAAC,EAAE,SAAS,MAAM;IACrD,EAAE,EAAE,EAAE,CAAA;IACN,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;CAC1B;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,YAAY,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -2,10 +2,10 @@ import { Option } from "@effect-app/core/Option";
|
|
|
2
2
|
import { OptimisticConcurrencyException } from "../../errors.js";
|
|
3
3
|
import type { Filter, FilterJoinSelect, PersistenceModelType } from "./service.js";
|
|
4
4
|
export declare const makeETag: <E extends PersistenceModelType<Id>, Id extends string>({ _etag, ...e }: E) => E;
|
|
5
|
-
export declare const makeUpdateETag: (name: string) => <E extends PersistenceModelType<Id>, Id extends string>(e: E, current: import("
|
|
5
|
+
export declare const makeUpdateETag: (name: string) => <E extends PersistenceModelType<Id>, Id extends string>(e: E, current: import("effect/Option").Option<E>) => import("effect/Effect").Effect<never, OptimisticConcurrencyException, E>;
|
|
6
6
|
export declare function codeFilter<E extends {
|
|
7
7
|
id: string;
|
|
8
|
-
}, NE extends E>(filter: Filter<NE>): (x: E) => import("
|
|
8
|
+
}, NE extends E>(filter: Filter<NE>): (x: E) => import("effect/Option").None<NE> | import("effect/Option").Some<NE>;
|
|
9
9
|
export declare function codeFilterJoinSelect<E extends {
|
|
10
10
|
id: string;
|
|
11
11
|
}, NE>(filter: FilterJoinSelect): (x: E) => (NE & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../_src/services/Store/utils.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAA;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,oBAAoB,EAAoB,MAAM,cAAc,CAAA;AAIpG,eAAO,MAAM,QAAQ,kFAMV,CAAA;AACX,eAAO,MAAM,cAAc,SAClB,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../_src/services/Store/utils.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAA;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,oBAAoB,EAAoB,MAAM,cAAc,CAAA;AAIpG,eAAO,MAAM,QAAQ,kFAMV,CAAA;AACX,eAAO,MAAM,cAAc,SAClB,MAAM,0LAeT,CAAA;AAEN,wBAAgB,UAAU,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,OACxE,CAAC,yEA8Gb;AAED,wBAAgB,oBAAoB,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,EAAE,EAC/D,MAAM,EAAE,gBAAgB,OAEb,CAAC;;KAkBb"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "@effect-app/prelude/_ext/misc";
|
|
2
|
-
import * as tsplus_module_2 from "
|
|
3
|
-
import * as tsplus_module_3 from "
|
|
2
|
+
import * as tsplus_module_2 from "effect/Option";
|
|
3
|
+
import * as tsplus_module_3 from "effect/Effect";
|
|
4
4
|
import * as tsplus_module_4 from "@effect-app/core/Option";
|
|
5
|
-
import * as tsplus_module_5 from "
|
|
5
|
+
import * as tsplus_module_5 from "effect/ReadonlyArray";
|
|
6
6
|
import { get } from "@effect-app/prelude/utils";
|
|
7
7
|
import { OptimisticConcurrencyException } from "../../errors.js";
|
|
8
8
|
import objectHash from "object-hash";
|