@effect-app/infra 0.74.5 → 0.75.0
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 +30 -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 +2 -2
- 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 +4 -4
- 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 +2 -2
- 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 +4 -4
- 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,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;AACH,8BAAsB,uBAAwB,SAAQ,4BAAmC;IACvF,QAAQ,CAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,cAAc,CAAC,CAAA;IACtE,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,cAAc,KAAK,cAAc,KAAK,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;IACnG,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,uBAAuB,EAAE,KAAK,EAAE,cAAc,CAAC,CAEvE;IACD,MAAM,KAAK,SAAS,
|
|
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;AACH,8BAAsB,uBAAwB,SAAQ,4BAAmC;IACvF,QAAQ,CAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,cAAc,CAAC,CAAA;IACtE,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,cAAc,KAAK,cAAc,KAAK,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;IACnG,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,uBAAuB,EAAE,KAAK,EAAE,cAAc,CAAC,CAEvE;IACD,MAAM,KAAK,SAAS,iGAQnB;CACF;AAED,qBAAa,2BAA4B,SAAQ,uBAAuB;;gBAE1D,GAAG,EAAE,cAAc,CAAC,gBAAgB;IAKhD,IAAa,cAAc,iEAE1B;IAEQ,MAAM,UAAW,cAAc,KAAK,cAAc,kEAA8B;CAC1F;;;;;AAKD,wBAAgB,IAAI,CAAC,GAAG,EAAE,cAAc,CAAC,gBAAgB,+BAExD;;;;;AAGD,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,E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
|
|
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,M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AC,CAAC,EACzC,MAAM,CAAC,EAAE,WAAW,CAAC,EAAE,CAAC,KACrB,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAA;CACzC;;;;;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";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Effect } from "
|
|
1
|
+
import { Effect } from "effect/Effect";
|
|
2
2
|
import { Option } from "@effect-app/core/Option";
|
|
3
3
|
import type { IndexingPolicy } from "@azure/cosmos";
|
|
4
4
|
import * as Cosmos from "@effect-app/infra-adapters/cosmos-client";
|
|
5
5
|
import type { DBRecord } from "./shared.js";
|
|
6
6
|
import { OptimisticLockException } from "./shared.js";
|
|
7
7
|
import * as simpledb from "./simpledb.js";
|
|
8
|
-
export declare function createContext<TKey extends string, EA, A extends DBRecord<TKey>>(): <REncode, RDecode, EDecode>(type: string, encode: (record: A) => import("
|
|
9
|
-
find: (id: string) => import("
|
|
10
|
-
findBy: (parameters: Record<string, string>) => import("
|
|
11
|
-
save: (record: A) => import("
|
|
8
|
+
export declare function createContext<TKey extends string, EA, A extends DBRecord<TKey>>(): <REncode, RDecode, EDecode>(type: string, encode: (record: A) => import("effect/Effect").Effect<REncode, never, EA>, decode: (d: EA) => import("effect/Effect").Effect<RDecode, EDecode, A>, indexes: IndexingPolicy) => import("effect/Effect").Effect<Cosmos.CosmosClient, unknown, {
|
|
9
|
+
find: (id: string) => import("effect/Effect").Effect<Cosmos.CosmosClient | simpledb.RecordCache | RDecode, unknown, import("effect/Option").Option<A>>;
|
|
10
|
+
findBy: (parameters: Record<string, string>) => import("effect/Effect").Effect<Cosmos.CosmosClient, unknown, import("effect/Option").Option<any>>;
|
|
11
|
+
save: (record: A) => import("effect/Effect").Effect<Cosmos.CosmosClient | simpledb.RecordCache | REncode, OptimisticLockException, A>;
|
|
12
12
|
}>;
|
|
13
13
|
//# sourceMappingURL=cosmosdb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cosmosdb.d.ts","sourceRoot":"","sources":["../../../_src/services/simpledb/cosmosdb.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAGnD,OAAO,KAAK,MAAM,MAAM,0CAA0C,CAAA;AAClE,OAAO,KAAK,EAAgB,QAAQ,EAAE,MAAM,aAAa,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AAkBzC,wBAAgB,aAAa,CAAC,IAAI,SAAS,MAAM,EAAE,EAAE,EAAE,CAAC,SAAS,QAAQ,CAAC,IAAI,CAAC,uCAErE,MAAM,mBACK,CAAC,
|
|
1
|
+
{"version":3,"file":"cosmosdb.d.ts","sourceRoot":"","sources":["../../../_src/services/simpledb/cosmosdb.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAGnD,OAAO,KAAK,MAAM,MAAM,0CAA0C,CAAA;AAClE,OAAO,KAAK,EAAgB,QAAQ,EAAE,MAAM,aAAa,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AAkBzC,wBAAgB,aAAa,CAAC,IAAI,SAAS,MAAM,EAAE,EAAE,EAAE,CAAC,SAAS,QAAQ,CAAC,IAAI,CAAC,uCAErE,MAAM,mBACK,CAAC,qEACN,EAAE,mEAEL,cAAc;;yBAqBK,OAAO,MAAM,EAAE,MAAM,CAAC;;GA8FrD"}
|
|
@@ -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/Effect";
|
|
2
|
+
import * as tsplus_module_2 from "effect/Option";
|
|
3
|
+
import * as tsplus_module_3 from "effect/ReadonlyArray";
|
|
4
4
|
import { typedKeysOf } from "@effect-app/core/utils";
|
|
5
5
|
import * as Cosmos from "@effect-app/infra-adapters/cosmos-client";
|
|
6
6
|
import { OptimisticLockException } from "./shared.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Effect } from "
|
|
1
|
+
import { Effect } from "effect/Effect";
|
|
2
2
|
import { Option } from "@effect-app/core/Option";
|
|
3
3
|
import type { DBRecord, Index } from "./shared.js";
|
|
4
4
|
import { CouldNotAquireDbLockException } from "./shared.js";
|
|
5
5
|
import * as simpledb from "./simpledb.js";
|
|
6
|
-
export declare function createContext<TKey extends string, EA, A extends DBRecord<TKey>>(): <REncode, RDecode, EDecode>(type: string, encode: (record: A) => import("
|
|
7
|
-
find: (id: string) => import("
|
|
8
|
-
findByIndex: (index: Index) => import("
|
|
9
|
-
save: (record: A) => import("
|
|
6
|
+
export declare function createContext<TKey extends string, EA, A extends DBRecord<TKey>>(): <REncode, RDecode, EDecode>(type: string, encode: (record: A) => import("effect/Effect").Effect<REncode, never, EA>, decode: (d: EA) => import("effect/Effect").Effect<RDecode, EDecode, A>, schemaVersion: string, makeIndexKey: (r: A) => Index, dir?: string) => {
|
|
7
|
+
find: (id: string) => import("effect/Effect").Effect<simpledb.RecordCache | RDecode, simpledb.InvalidStateError, import("effect/Option").Option<A>>;
|
|
8
|
+
findByIndex: (index: Index) => import("effect/Effect").Effect<never, never, import("effect/Option").Option<TKey & {}>>;
|
|
9
|
+
save: (record: A) => import("effect/Effect").Effect<simpledb.RecordCache | REncode, CouldNotAquireDbLockException | import("./shared.js").OptimisticLockException | simpledb.InvalidStateError, A>;
|
|
10
10
|
};
|
|
11
11
|
export declare function initialise(dir: string): void;
|
|
12
12
|
//# sourceMappingURL=diskdb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diskdb.d.ts","sourceRoot":"","sources":["../../../_src/services/simpledb/diskdb.ts"],"names":[],"mappings":";;AAMA,OAAO,KAAK,EAAgB,QAAQ,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAChE,OAAO,EAAuB,6BAA6B,EAA+B,MAAM,aAAa,CAAA;AAC7G,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AAGzC,wBAAgB,aAAa,CAAC,IAAI,SAAS,MAAM,EAAE,EAAE,EAAE,CAAC,SAAS,QAAQ,CAAC,IAAI,CAAC,uCAErE,MAAM,mBACK,CAAC,
|
|
1
|
+
{"version":3,"file":"diskdb.d.ts","sourceRoot":"","sources":["../../../_src/services/simpledb/diskdb.ts"],"names":[],"mappings":";;AAMA,OAAO,KAAK,EAAgB,QAAQ,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAChE,OAAO,EAAuB,6BAA6B,EAA+B,MAAM,aAAa,CAAA;AAC7G,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AAGzC,wBAAgB,aAAa,CAAC,IAAI,SAAS,MAAM,EAAE,EAAE,EAAE,CAAC,SAAS,QAAQ,CAAC,IAAI,CAAC,uCAErE,MAAM,mBACK,CAAC,qEACN,EAAE,yEACC,MAAM,oBACH,CAAC,KAAK,KAAK;;yBAkGN,KAAK;;EA+B/B;AAQD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,QASrC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "
|
|
2
|
-
import * as tsplus_module_2 from "
|
|
1
|
+
import * as tsplus_module_1 from "effect/Option";
|
|
2
|
+
import * as tsplus_module_2 from "effect/Effect";
|
|
3
3
|
import * as tsplus_module_3 from "@effect-app/core/Option";
|
|
4
4
|
import { flow, pipe } from "@effect-app/core/Function";
|
|
5
5
|
import fs from "fs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Effect } from "
|
|
2
|
-
import { Equivalence } from "
|
|
1
|
+
import { Effect } from "effect/Effect";
|
|
2
|
+
import { Equivalence } from "effect/Equivalence";
|
|
3
3
|
import { Option } from "@effect-app/core/Option";
|
|
4
4
|
import * as MO from "@effect-app/schema";
|
|
5
5
|
import type { DBRecord } from "./shared.js";
|
|
6
6
|
import * as simpledb from "./simpledb.js";
|
|
7
|
-
export declare function createContext<TKey extends string, EA, A extends DBRecord<TKey>>(): <REncode, RDecode, EDecode>(type: string, encode: (record: A) => import("
|
|
8
|
-
find: (id: string) => import("
|
|
9
|
-
findBy: <V extends Partial<A>>(keys: V, eq: import("
|
|
10
|
-
save: (record: A) => import("
|
|
7
|
+
export declare function createContext<TKey extends string, EA, A extends DBRecord<TKey>>(): <REncode, RDecode, EDecode>(type: string, encode: (record: A) => import("effect/Effect").Effect<REncode, never, EA>, decode: (d: EA) => import("effect/Effect").Effect<RDecode, EDecode, A>) => {
|
|
8
|
+
find: (id: string) => import("effect/Effect").Effect<simpledb.RecordCache | RDecode, MO.CondemnException | simpledb.InvalidStateError, import("effect/Option").Option<A>>;
|
|
9
|
+
findBy: <V extends Partial<A>>(keys: V, eq: import("effect/Equivalence").Equivalence<V>) => import("effect/Effect").Effect<RDecode, MO.CondemnException, import("effect/Option").Option<A & {}>>;
|
|
10
|
+
save: (record: A) => import("effect/Effect").Effect<simpledb.RecordCache | REncode, MO.CondemnException | import("./shared.js").OptimisticLockException | simpledb.InvalidStateError, A>;
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=memdb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memdb.d.ts","sourceRoot":"","sources":["../../../_src/services/simpledb/memdb.ts"],"names":[],"mappings":";;;AACA,OAAO,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAExC,OAAO,KAAK,EAAgB,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEzD,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AASzC,wBAAgB,aAAa,CAAC,IAAI,SAAS,MAAM,EAAE,EAAE,EAAE,CAAC,SAAS,QAAQ,CAAC,IAAI,CAAC,uCAErE,MAAM,mBACK,CAAC,
|
|
1
|
+
{"version":3,"file":"memdb.d.ts","sourceRoot":"","sources":["../../../_src/services/simpledb/memdb.ts"],"names":[],"mappings":";;;AACA,OAAO,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAExC,OAAO,KAAK,EAAgB,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEzD,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AASzC,wBAAgB,aAAa,CAAC,IAAI,SAAS,MAAM,EAAE,EAAE,EAAE,CAAC,SAAS,QAAQ,CAAC,IAAI,CAAC,uCAErE,MAAM,mBACK,CAAC,qEACN,EAAE;;;;EA2DjB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "
|
|
2
|
-
import * as tsplus_module_2 from "
|
|
1
|
+
import * as tsplus_module_1 from "effect/Option";
|
|
2
|
+
import * as tsplus_module_2 from "effect/Effect";
|
|
3
3
|
import * as tsplus_module_3 from "@effect-app/core/Effect";
|
|
4
|
-
import * as tsplus_module_4 from "
|
|
4
|
+
import * as tsplus_module_4 from "effect/Exit";
|
|
5
5
|
import { flow } from "@effect-app/core/Function";
|
|
6
6
|
import * as MO from "@effect-app/schema";
|
|
7
7
|
import { getRecordName, makeMap, SerializedDBRecord } from "./shared.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Effect } from "
|
|
1
|
+
import { Effect } from "effect/Effect";
|
|
2
2
|
import { Option } from "@effect-app/core/Option";
|
|
3
3
|
import { MongoClient } from "@effect-app/infra-adapters/mongo-client";
|
|
4
4
|
import type { IndexDescription } from "mongodb";
|
|
5
5
|
import type { DBRecord } from "./shared.js";
|
|
6
6
|
import { OptimisticLockException } from "./shared.js";
|
|
7
7
|
import * as simpledb from "./simpledb.js";
|
|
8
|
-
export declare function createContext<TKey extends string, EA, A extends DBRecord<TKey>>(): <REncode, RDecode, EDecode>(type: string, encode: (record: A) => import("
|
|
9
|
-
find: (id: string) => import("
|
|
10
|
-
findBy: (keys: Record<string, string>) => import("
|
|
11
|
-
save: (record: A) => import("
|
|
8
|
+
export declare function createContext<TKey extends string, EA, A extends DBRecord<TKey>>(): <REncode, RDecode, EDecode>(type: string, encode: (record: A) => import("effect/Effect").Effect<REncode, never, EA>, decode: (d: EA) => import("effect/Effect").Effect<RDecode, EDecode, A>, indexes: IndexDescription[]) => import("effect/Effect").Effect<MongoClient, unknown, {
|
|
9
|
+
find: (id: string) => import("effect/Effect").Effect<simpledb.RecordCache | RDecode | MongoClient, unknown, import("effect/Option").Option<A>>;
|
|
10
|
+
findBy: (keys: Record<string, string>) => import("effect/Effect").Effect<MongoClient, unknown, import("effect/Option").Option<TKey>>;
|
|
11
|
+
save: (record: A) => import("effect/Effect").Effect<simpledb.RecordCache | REncode | MongoClient, OptimisticLockException, A>;
|
|
12
12
|
}>;
|
|
13
13
|
//# sourceMappingURL=mongodb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mongodb.d.ts","sourceRoot":"","sources":["../../../_src/services/simpledb/mongodb.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAA;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAoB,MAAM,SAAS,CAAA;AACjE,OAAO,KAAK,EAAgB,QAAQ,EAAE,MAAM,aAAa,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AAazC,wBAAgB,aAAa,CAAC,IAAI,SAAS,MAAM,EAAE,EAAE,EAAE,CAAC,SAAS,QAAQ,CAAC,IAAI,CAAC,uCAErE,MAAM,mBACK,CAAC,
|
|
1
|
+
{"version":3,"file":"mongodb.d.ts","sourceRoot":"","sources":["../../../_src/services/simpledb/mongodb.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAA;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAoB,MAAM,SAAS,CAAA;AACjE,OAAO,KAAK,EAAgB,QAAQ,EAAE,MAAM,aAAa,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AAazC,wBAAgB,aAAa,CAAC,IAAI,SAAS,MAAM,EAAE,EAAE,EAAE,CAAC,SAAS,QAAQ,CAAC,IAAI,CAAC,uCAErE,MAAM,mBACK,CAAC,qEACN,EAAE,mEAEL,gBAAgB,EAAE;;mBAqBL,OAAO,MAAM,EAAE,MAAM,CAAC;;GA6D/C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
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/Effect";
|
|
4
4
|
import { MongoClient } from "@effect-app/infra-adapters/mongo-client";
|
|
5
5
|
import { OptimisticLockException } from "./shared.js";
|