@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,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";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { Effect } from "
|
|
1
|
+
import { Effect } from "effect/Effect";
|
|
2
2
|
import { Option } from "@effect-app/core/Option";
|
|
3
3
|
import { RedisClient } from "@effect-app/infra-adapters/redis-client";
|
|
4
4
|
import * as MO from "@effect-app/schema";
|
|
5
5
|
import type { DBRecord, Index } from "./shared.js";
|
|
6
6
|
import { CouldNotAquireDbLockException } 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
|
-
findByIndex: (index: Index) => 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>, schemaVersion: string, makeIndexKey: (r: A) => Index) => {
|
|
9
|
+
find: (id: string) => import("effect/Effect").Effect<RedisClient | simpledb.RecordCache | RDecode, simpledb.InvalidStateError, import("effect/Option").Option<A>>;
|
|
10
|
+
findByIndex: (index: Index) => import("effect/Effect").Effect<RedisClient, import("@effect-app/infra-adapters/redis-client").ConnectionException, import("effect/Option").Option<TKey>>;
|
|
11
|
+
save: (record: A) => import("effect/Effect").Effect<RedisClient | simpledb.RecordCache | REncode, CouldNotAquireDbLockException | import("./shared.js").OptimisticLockException | simpledb.InvalidStateError, A>;
|
|
12
12
|
};
|
|
13
13
|
declare const RedisSerializedDBRecord_base: MO.Model<RedisSerializedDBRecord, MO.SchemaProperties<MO.ToProps<{
|
|
14
|
-
version: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("
|
|
15
|
-
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("
|
|
16
|
-
data: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("
|
|
14
|
+
version: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
15
|
+
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
16
|
+
data: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
17
17
|
}>>> & MO.PropsExtensions<MO.ToProps<{
|
|
18
|
-
version: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("
|
|
19
|
-
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("
|
|
20
|
-
data: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("
|
|
18
|
+
version: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
19
|
+
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
20
|
+
data: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
21
21
|
}>>;
|
|
22
22
|
export declare class RedisSerializedDBRecord extends RedisSerializedDBRecord_base {
|
|
23
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redisdb.d.ts","sourceRoot":"","sources":["../../../_src/services/simpledb/redisdb.ts"],"names":[],"mappings":";;AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAA;AACrE,OAAO,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAExC,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;AAIzC,wBAAgB,aAAa,CAAC,IAAI,SAAS,MAAM,EAAE,EAAE,EAAE,CAAC,SAAS,QAAQ,CAAC,IAAI,CAAC,uCAErE,MAAM,mBACK,CAAC,
|
|
1
|
+
{"version":3,"file":"redisdb.d.ts","sourceRoot":"","sources":["../../../_src/services/simpledb/redisdb.ts"],"names":[],"mappings":";;AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAA;AACrE,OAAO,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAExC,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;AAIzC,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;;yBAkFN,KAAK;;EAwF/B;;;;;;;;;;AAED,qBAAa,uBAAwB,SAAQ,4BAI3C;CAAG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
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/Effect";
|
|
3
|
-
import * as tsplus_module_3 from "
|
|
3
|
+
import * as tsplus_module_3 from "effect/Option";
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
5
|
import { flow, pipe } from "@effect-app/core/Function";
|
|
6
6
|
import { RedisClient } from "@effect-app/infra-adapters/redis-client";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Effect } from "
|
|
1
|
+
import { Effect } from "effect/Effect";
|
|
2
2
|
import { Option } from "@effect-app/core/Option";
|
|
3
3
|
import * as MO from "@effect-app/schema";
|
|
4
4
|
import type { SchemaAny } from "@effect-app/schema";
|
|
@@ -28,20 +28,20 @@ export interface DBRecord<TKey extends string> {
|
|
|
28
28
|
id: TKey;
|
|
29
29
|
}
|
|
30
30
|
declare const SerializedDBRecord_base: MO.Model<SerializedDBRecord, MO.SchemaProperties<MO.ToProps<{
|
|
31
|
-
version: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("
|
|
32
|
-
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("
|
|
33
|
-
data: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("
|
|
31
|
+
version: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
32
|
+
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
33
|
+
data: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
34
34
|
}>>> & MO.PropsExtensions<MO.ToProps<{
|
|
35
|
-
version: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("
|
|
36
|
-
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("
|
|
37
|
-
data: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("
|
|
35
|
+
version: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
36
|
+
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
37
|
+
data: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
38
38
|
}>>;
|
|
39
39
|
export declare class SerializedDBRecord extends SerializedDBRecord_base {
|
|
40
40
|
}
|
|
41
41
|
export declare function makeSerialisedDBRecord(s: SchemaAny): MO.SchemaProperties<MO.ToProps<{
|
|
42
|
-
version: MO.Property<MO.SchemaDefaultSchema<unknown, number, number, number, {}>, "required", import("
|
|
43
|
-
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("
|
|
44
|
-
data: MO.Property<MO.SchemaAny, "required", import("
|
|
42
|
+
version: MO.Property<MO.SchemaDefaultSchema<unknown, number, number, number, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
43
|
+
timestamp: MO.Property<MO.SchemaDefaultSchema<unknown, Date, Date, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
44
|
+
data: MO.Property<MO.SchemaAny, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
45
45
|
}>>;
|
|
46
46
|
export interface CachedRecord<T> {
|
|
47
47
|
version: string;
|
|
@@ -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 MO from "@effect-app/schema";
|
|
4
4
|
class BaseError {
|
|
5
5
|
constructor(message) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Effect } from "
|
|
1
|
+
import { Effect } from "effect/Effect";
|
|
2
2
|
import { Option } from "@effect-app/core/Option";
|
|
3
|
-
import { Scope } from "
|
|
3
|
+
import { Scope } from "effect/Scope";
|
|
4
4
|
import type { CachedRecord, DBRecord, EffectMap } from "./shared.js";
|
|
5
5
|
import { OptimisticLockException } from "./shared.js";
|
|
6
6
|
export type Version = string;
|
|
@@ -11,13 +11,13 @@ export declare class InvalidStateError {
|
|
|
11
11
|
constructor(message: string, details?: unknown);
|
|
12
12
|
}
|
|
13
13
|
export declare function makeLiveRecordCache(): {
|
|
14
|
-
get: <T>(type: string) => import("
|
|
14
|
+
get: <T>(type: string) => import("effect/Effect").Effect<never, never, EffectMap<string, CachedRecord<T>>>;
|
|
15
15
|
};
|
|
16
16
|
export interface RecordCache extends ReturnType<typeof makeLiveRecordCache> {
|
|
17
17
|
}
|
|
18
|
-
export declare const RecordCache: import("
|
|
19
|
-
export declare const LiveRecordCache: import("
|
|
20
|
-
export declare function find<R, RDecode, EDecode, E, EA, A>(tryRead: (id: string) => Effect<R, E, Option<CachedRecord<EA>>>, decode: (d: EA) => Effect<RDecode, EDecode, A>, type: string): (id: string) => import("
|
|
21
|
-
export declare function storeDirectly<R, E, TKey extends string, A extends DBRecord<TKey>>(save: (r: A, version: Option<Version>) => Effect<R, E, CachedRecord<A>>, type: string): (record: A) => import("
|
|
22
|
-
export declare function store<R, E, R2, E2, TKey extends string, EA, A extends DBRecord<TKey>>(tryRead: (id: string) => Effect<R, E, Option<CachedRecord<EA>>>, save: (r: A, version: Option<Version>) => Effect<R, E, CachedRecord<A>>, lock: (id: string) => Effect<R2 | Scope, E2, unknown>, type: string): (record: A) => import("
|
|
18
|
+
export declare const RecordCache: import("effect/Context").Tag<RecordCache, RecordCache>;
|
|
19
|
+
export declare const LiveRecordCache: import("effect/Layer").Layer<never, never, RecordCache>;
|
|
20
|
+
export declare function find<R, RDecode, EDecode, E, EA, A>(tryRead: (id: string) => Effect<R, E, Option<CachedRecord<EA>>>, decode: (d: EA) => Effect<RDecode, EDecode, A>, type: string): (id: string) => import("effect/Effect").Effect<RecordCache | R | RDecode, InvalidStateError | E, import("effect/Option").Option<A>>;
|
|
21
|
+
export declare function storeDirectly<R, E, TKey extends string, A extends DBRecord<TKey>>(save: (r: A, version: Option<Version>) => Effect<R, E, CachedRecord<A>>, type: string): (record: A) => import("effect/Effect").Effect<RecordCache | R, E, A>;
|
|
22
|
+
export declare function store<R, E, R2, E2, TKey extends string, EA, A extends DBRecord<TKey>>(tryRead: (id: string) => Effect<R, E, Option<CachedRecord<EA>>>, save: (r: A, version: Option<Version>) => Effect<R, E, CachedRecord<A>>, lock: (id: string) => Effect<R2 | Scope, E2, unknown>, type: string): (record: A) => import("effect/Effect").Effect<RecordCache | R | Exclude<R2, import("effect/Scope").Scope>, OptimisticLockException | InvalidStateError | E | E2, A>;
|
|
23
23
|
//# sourceMappingURL=simpledb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simpledb.d.ts","sourceRoot":"","sources":["../../../_src/services/simpledb/simpledb.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACpE,OAAO,EAAW,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAE9D,MAAM,MAAM,OAAO,GAAG,MAAM,CAAA;AAC5B,qBAAa,iBAAiB;IAEhB,QAAQ,CAAC,OAAO,EAAE,MAAM;IAAE,QAAQ,CAAC,OAAO,CAAC;IADvD,QAAQ,CAAC,IAAI,uBAAsB;gBACd,OAAO,EAAE,MAAM,EAAW,OAAO,CAAC,SAAS;CACjE;AAED,wBAAgB,mBAAmB;mBAGhB,MAAM;EAWxB;AAED,MAAM,WAAW,WAAY,SAAQ,UAAU,CAAC,OAAO,mBAAmB,CAAC;CAAG;AAG9E,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"simpledb.d.ts","sourceRoot":"","sources":["../../../_src/services/simpledb/simpledb.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACpE,OAAO,EAAW,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAE9D,MAAM,MAAM,OAAO,GAAG,MAAM,CAAA;AAC5B,qBAAa,iBAAiB;IAEhB,QAAQ,CAAC,OAAO,EAAE,MAAM;IAAE,QAAQ,CAAC,OAAO,CAAC;IADvD,QAAQ,CAAC,IAAI,uBAAsB;gBACd,OAAO,EAAE,MAAM,EAAW,OAAO,CAAC,SAAS;CACjE;AAED,wBAAgB,mBAAmB;mBAGhB,MAAM;EAWxB;AAED,MAAM,WAAW,WAAY,SAAQ,UAAU,CAAC,OAAO,mBAAmB,CAAC;CAAG;AAG9E,eAAO,MAAM,WAAW,wDAAqB,CAAA;AAE7C,eAAO,MAAM,eAAe,yDAAqD,CAAA;AAQjF,wBAAgB,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAChD,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC,EAC/D,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,KAAK,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,EAC9C,IAAI,EAAE,MAAM,QAcA,MAAM,yHAOnB;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,SAAS,MAAM,EAAE,CAAC,SAAS,QAAQ,CAAC,IAAI,CAAC,EAC/E,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,EACvE,IAAI,EAAE,MAAM,YAGI,CAAC,2DASlB;AAED,wBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,SAAS,MAAM,EAAE,EAAE,EAAE,CAAC,SAAS,QAAQ,CAAC,IAAI,CAAC,EACnF,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC,EAC/D,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,EACvE,IAAI,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE,OAAO,CAAC,EACrD,IAAI,EAAE,MAAM,YAGI,CAAC,0JA6BlB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
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/Context";
|
|
3
|
+
import * as tsplus_module_3 from "effect/Layer";
|
|
4
4
|
import * as tsplus_module_4 from "@effect-app/core/Effect";
|
|
5
5
|
import * as tsplus_module_5 from "@effect-app/core/Option";
|
|
6
|
-
import * as tsplus_module_6 from "
|
|
6
|
+
import * as tsplus_module_6 from "effect/Option";
|
|
7
7
|
import { makeMap, OptimisticLockException } from "./shared.js";
|
|
8
8
|
export class InvalidStateError {
|
|
9
9
|
constructor(message, details) {
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/infra",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.75.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@azure/cosmos": "^4.0.0",
|
|
8
8
|
"@azure/service-bus": "^7.9.1",
|
|
9
|
-
"
|
|
10
|
-
"@effect/io": "^0.41.1",
|
|
9
|
+
"effect": "^2.0.0-next.44",
|
|
11
10
|
"@faker-js/faker": "^8.1.0",
|
|
12
11
|
"@sendgrid/helpers": "^7.7.0",
|
|
13
12
|
"@sendgrid/mail": "^7.7.0",
|
|
@@ -19,10 +18,10 @@
|
|
|
19
18
|
"proper-lockfile": "^4.1.2",
|
|
20
19
|
"pure-rand": "6.0.4",
|
|
21
20
|
"redlock": "^4.2.0",
|
|
22
|
-
"@effect-app/core": "0.
|
|
23
|
-
"@effect-app/infra-adapters": "0.
|
|
24
|
-
"@effect-app/schema": "0.
|
|
25
|
-
"@effect-app/prelude": "0.
|
|
21
|
+
"@effect-app/core": "0.58.1",
|
|
22
|
+
"@effect-app/infra-adapters": "0.51.1",
|
|
23
|
+
"@effect-app/schema": "0.52.1",
|
|
24
|
+
"@effect-app/prelude": "0.60.1"
|
|
26
25
|
},
|
|
27
26
|
"devDependencies": {
|
|
28
27
|
"@babel/cli": "^7.23.0",
|