@effect-app/infra 0.74.7 → 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 +14 -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
package/dist/api/writeDocs.js
CHANGED
|
@@ -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/Order";
|
|
3
3
|
import * as tsplus_module_3 from "@effect-app/core/Array";
|
|
4
4
|
import { typedValuesOf } from "@effect-app/core/utils";
|
|
5
5
|
import { writeTextFile } from "@effect-app/infra-adapters/fileUtil";
|
package/dist/errorReporter.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Cause } from "
|
|
1
|
+
import { Cause } from "effect/Cause";
|
|
2
2
|
import type { CauseException } from "./errors.js";
|
|
3
|
-
export declare function reportError<E, E2 extends CauseException<unknown>>(makeError: (cause: Cause<E>) => E2): (cause: Cause<E>, extras?: Record<string, unknown>) => import("
|
|
4
|
-
export declare function logError<E, E2 extends CauseException<unknown>>(makeError: (cause: Cause<E>) => E2): (cause: Cause<E>, extras?: Record<string, unknown>) => import("
|
|
3
|
+
export declare function reportError<E, E2 extends CauseException<unknown>>(makeError: (cause: Cause<E>) => E2): (cause: Cause<E>, extras?: Record<string, unknown>) => import("effect/Effect").Effect<never, never, void>;
|
|
4
|
+
export declare function logError<E, E2 extends CauseException<unknown>>(makeError: (cause: Cause<E>) => E2): (cause: Cause<E>, extras?: Record<string, unknown>) => import("effect/Effect").Effect<never, never, void>;
|
|
5
5
|
export declare function captureException(error: unknown): void;
|
|
6
6
|
export declare function reportMessage(message: string): void;
|
|
7
|
-
export declare function reportMessageM(message: string): import("
|
|
7
|
+
export declare function reportMessageM(message: string): import("effect/Effect").Effect<never, never, void>;
|
|
8
8
|
//# sourceMappingURL=errorReporter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorReporter.d.ts","sourceRoot":"","sources":["../_src/errorReporter.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAGjD,wBAAgB,WAAW,CAAC,CAAC,EAAE,EAAE,SAAS,cAAc,CAAC,OAAO,CAAC,EAC/D,SAAS,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,EAAE,WAEnB,MAAM,CAAC,CAAC,WAAW,OAAO,MAAM,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"errorReporter.d.ts","sourceRoot":"","sources":["../_src/errorReporter.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAGjD,wBAAgB,WAAW,CAAC,CAAC,EAAE,EAAE,SAAS,cAAc,CAAC,OAAO,CAAC,EAC/D,SAAS,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,EAAE,WAEnB,MAAM,CAAC,CAAC,WAAW,OAAO,MAAM,EAAE,OAAO,CAAC,wDAe1D;AAgBD,wBAAgB,QAAQ,CAAC,CAAC,EAAE,EAAE,SAAS,cAAc,CAAC,OAAO,CAAC,EAC5D,SAAS,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,EAAE,WAEnB,MAAM,CAAC,CAAC,WAAW,OAAO,MAAM,EAAE,OAAO,CAAC,wDAc1D;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,QAG9C;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,QAI5C;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,sDAE7C"}
|
package/dist/errorReporter.js
CHANGED
|
@@ -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/Cause";
|
|
2
|
+
import * as tsplus_module_2 from "effect/Effect";
|
|
3
3
|
import * as tsplus_module_3 from "@effect-app/core/Option";
|
|
4
4
|
import * as Sentry from "@sentry/node";
|
|
5
5
|
import { RequestContextContainer } from "./services/RequestContextContainer.js";
|
package/dist/errors.d.ts
CHANGED
package/dist/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../_src/errors.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../_src/errors.ts"],"names":[],"mappings":";AAAA,qBAAa,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IAClD,SAAgB,IAAI,mBAAkB;IACtC,SAAgB,OAAO,EAAE,MAAM,CAAA;gBACnB,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM;CAGhC;AAED,qBAAa,eAAe;aAEE,MAAM,EAAE,aAAa,CAAC,OAAO,CAAC;IAD1D,SAAgB,IAAI,qBAAoB;gBACZ,MAAM,EAAE,aAAa,CAAC,OAAO,CAAC;CAC3D;AAED,qBAAa,gBAAgB;IAC3B,SAAgB,IAAI,sBAAqB;CAC1C;AAED,qBAAa,iBAAiB;IAC5B,SAAgB,IAAI,uBAAsB;CAC3C;AAED;;GAEG;AACH,qBAAa,UAAW,SAAQ,gBAAgB;IAClC,QAAQ,CAAC,OAAO,EAAE,MAAM;gBAAf,OAAO,EAAE,MAAM;CAGrC;AAED,qBAAa,iBAAiB;aAEA,OAAO,EAAE,MAAM;IAD3C,SAAgB,IAAI,uBAAsB;gBACd,OAAO,EAAE,MAAM;CAC5C;AAED,qBAAa,cAAc,CAAC,CAAC,CAAE,SAAQ,KAAK;IAC9B,QAAQ,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC,CAAC;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM;gBAA9C,aAAa,EAAE,KAAK,CAAC,CAAC,CAAC,EAAW,IAAI,EAAE,MAAM;IAa1D,QAAQ;IAOjB,MAAM;;;;;CAQP;AAED,qBAAa,8BAA8B;IAG7B,QAAQ,CAAC,IAAI,EAAE,MAAM;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM;IAAE,QAAQ,CAAC,OAAO,CAAC;IAAU,QAAQ,CAAC,KAAK,CAAC;IAFlG,QAAQ,CAAC,IAAI,oCAAmC;IAChD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;gBACH,IAAI,EAAE,MAAM,EAAW,EAAE,EAAE,MAAM,EAAW,OAAO,CAAC,oBAAQ,EAAW,KAAK,CAAC,oBAAQ;CAG3G"}
|
package/dist/errors.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tsplus_module_1 from "effect/Cause";
|
|
2
2
|
export class NotFoundError {
|
|
3
3
|
constructor(type, id) {
|
|
4
4
|
this._tag = "NotFoundError";
|
|
@@ -44,15 +44,16 @@ export class CauseException extends Error {
|
|
|
44
44
|
this.originalCause = originalCause;
|
|
45
45
|
this._tag = _tag;
|
|
46
46
|
Error.stackTraceLimit = limit;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
47
|
+
// TODO
|
|
48
|
+
// const pretty = (CausePretty as any).prettyErrors(this.originalCause)
|
|
49
|
+
// if (pretty.length > 0) {
|
|
50
|
+
// this.name = pretty[0].message.split(":")[0]
|
|
51
|
+
// this.message = pretty[0].message.substring(this.name.length + 2)
|
|
52
|
+
// this.stack = `${this.name}: ${this.message}\n` + pretty[0].stack
|
|
53
|
+
// }
|
|
53
54
|
}
|
|
54
55
|
toString() {
|
|
55
|
-
return `[${this._tag}] ` +
|
|
56
|
+
return `[${this._tag}] ` + tsplus_module_1.pretty(this.originalCause);
|
|
56
57
|
}
|
|
57
58
|
[Symbol.for("nodejs.util.inspect.custom")]() {
|
|
58
59
|
return this.toString();
|
|
@@ -76,4 +77,4 @@ export class OptimisticConcurrencyException {
|
|
|
76
77
|
this.message = `Existing ${type} ${id} record changed`;
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
80
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3JzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vX3NyYy9lcnJvcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE1BQU0sT0FBTyxhQUFhO0lBR3hCLFlBQVksSUFBTyxFQUFFLEVBQVU7UUFGZixTQUFJLEdBQUcsZUFBZSxDQUFBO1FBR3BDLElBQUksQ0FBQyxPQUFPLEdBQUcsZUFBZSxJQUFJLElBQUksRUFBRSxFQUFFLENBQUE7SUFDNUMsQ0FBQztDQUNGO0FBRUQsTUFBTSxPQUFPLGVBQWU7SUFFMUIsWUFBNEIsTUFBOEI7UUFBOUIsV0FBTSxHQUFOLE1BQU0sQ0FBd0I7UUFEMUMsU0FBSSxHQUFHLGlCQUFpQixDQUFBO0lBQ3FCLENBQUM7Q0FDL0Q7QUFFRCxNQUFNLE9BQU8sZ0JBQWdCO0lBQTdCO1FBQ2tCLFNBQUksR0FBRyxrQkFBa0IsQ0FBQTtJQUMzQyxDQUFDO0NBQUE7QUFFRCxNQUFNLE9BQU8saUJBQWlCO0lBQTlCO1FBQ2tCLFNBQUksR0FBRyxtQkFBbUIsQ0FBQTtJQUM1QyxDQUFDO0NBQUE7QUFFRDs7R0FFRztBQUNILE1BQU0sT0FBTyxVQUFXLFNBQVEsZ0JBQWdCO0lBQzlDLFlBQXFCLE9BQWU7UUFDbEMsS0FBSyxFQUFFLENBQUE7UUFEWSxZQUFPLEdBQVAsT0FBTyxDQUFRO0lBRXBDLENBQUM7Q0FDRjtBQUVELE1BQU0sT0FBTyxpQkFBaUI7SUFFNUIsWUFBNEIsT0FBZTtRQUFmLFlBQU8sR0FBUCxPQUFPLENBQVE7UUFEM0IsU0FBSSxHQUFHLG1CQUFtQixDQUFBO0lBQ0ksQ0FBQztDQUNoRDtBQUVELE1BQU0sT0FBTyxjQUFrQixTQUFRLEtBQUs7SUFDMUMsWUFBcUIsYUFBdUIsRUFBVyxJQUFZO1FBQ2pFLE1BQU0sS0FBSyxHQUFHLEtBQUssQ0FBQyxlQUFlLENBQUE7UUFDbkMsS0FBSyxDQUFDLGVBQWUsR0FBRyxDQUFDLENBQUE7UUFDekIsS0FBSyxFQUFFLENBQUE7UUFIWSxrQkFBYSxHQUFiLGFBQWEsQ0FBVTtRQUFXLFNBQUksR0FBSixJQUFJLENBQVE7UUFJakUsS0FBSyxDQUFDLGVBQWUsR0FBRyxLQUFLLENBQUE7UUFDN0IsT0FBTztRQUNQLHVFQUF1RTtRQUN2RSwyQkFBMkI7UUFDM0IsZ0RBQWdEO1FBQ2hELHFFQUFxRTtRQUNyRSxxRUFBcUU7UUFDckUsSUFBSTtJQUNOLENBQUM7SUFDUSxRQUFRO1FBQ2YsT0FBTyxJQUFJLElBQUksQ0FBQyxJQUFJLElBQUksR0FBRyx1QkFBYSxJQUFJLENBQUMsYUFBYSxDQUFDLENBQUE7SUFDN0QsQ0FBQztJQUNELENBQUMsTUFBTSxDQUFDLEdBQUcsQ0FBQyw0QkFBNEIsQ0FBQyxDQUFDO1FBQ3hDLE9BQU8sSUFBSSxDQUFDLFFBQVEsRUFBRSxDQUFBO0lBQ3hCLENBQUM7SUFFRCxNQUFNO1FBQ0osT0FBTztZQUNMLElBQUksRUFBRSxJQUFJLENBQUMsSUFBSTtZQUNmLE9BQU8sRUFBRSxJQUFJLENBQUMsT0FBTztZQUNyQixNQUFNLEVBQUUsSUFBSSxDQUFDLFFBQVEsRUFBRTtZQUN2QiwyREFBMkQ7U0FDNUQsQ0FBQTtJQUNILENBQUM7Q0FDRjtBQUVELE1BQU0sT0FBTyw4QkFBOEI7SUFHekMsWUFBcUIsSUFBWSxFQUFXLEVBQVUsRUFBVyxPQUFnQixFQUFXLEtBQWM7UUFBckYsU0FBSSxHQUFKLElBQUksQ0FBUTtRQUFXLE9BQUUsR0FBRixFQUFFLENBQVE7UUFBVyxZQUFPLEdBQVAsT0FBTyxDQUFTO1FBQVcsVUFBSyxHQUFMLEtBQUssQ0FBUztRQUZqRyxTQUFJLEdBQUcsZ0NBQWdDLENBQUE7UUFHOUMsSUFBSSxDQUFDLE9BQU8sR0FBRyxZQUFZLElBQUksSUFBSSxFQUFFLGlCQUFpQixDQUFBO0lBQ3hELENBQUM7Q0FDRiJ9
|
package/dist/instrument.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Effect } from "
|
|
1
|
+
import { Effect } from "effect/Effect";
|
|
2
2
|
/**
|
|
3
3
|
* @tsplus fluent effect/io/Effect instrument
|
|
4
4
|
* @tsplus location "@effect-app/infra/instrument"
|
|
5
5
|
*/
|
|
6
|
-
export declare function instr<R, E, A>(self: Effect<R, E, A>, name: string, properties?: Record<string, string>): import("
|
|
6
|
+
export declare function instr<R, E, A>(self: Effect<R, E, A>, name: string, properties?: Record<string, string>): import("effect/Effect").Effect<R, E, A>;
|
|
7
7
|
//# sourceMappingURL=instrument.d.ts.map
|
package/dist/instrument.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instrument.d.ts","sourceRoot":"","sources":["../_src/instrument.ts"],"names":[],"mappings":";;;;;AAGA,wBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC
|
|
1
|
+
{"version":3,"file":"instrument.d.ts","sourceRoot":"","sources":["../_src/instrument.ts"],"names":[],"mappings":";;;;;AAGA,wBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,2CAMtG"}
|
package/dist/instrument.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const jsonLogger: import("
|
|
2
|
-
export declare const logJson: import("
|
|
1
|
+
export declare const jsonLogger: import("effect/Logger").Logger<unknown, void>;
|
|
2
|
+
export declare const logJson: import("effect/Layer").Layer<never, never, never>;
|
|
3
3
|
//# sourceMappingURL=jsonLogger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonLogger.d.ts","sourceRoot":"","sources":["../../_src/logger/jsonLogger.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"jsonLogger.d.ts","sourceRoot":"","sources":["../../_src/logger/jsonLogger.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,+CAyBtB,CAAA;AAED,eAAO,MAAM,OAAO,mDAAmD,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "
|
|
1
|
+
import * as tsplus_module_1 from "effect/FiberId";
|
|
2
2
|
import * as tsplus_module_2 from "@effect-app/core/Option";
|
|
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 "
|
|
3
|
+
import * as tsplus_module_3 from "effect/Cause";
|
|
4
|
+
import * as tsplus_module_4 from "effect/List";
|
|
5
|
+
import * as tsplus_module_5 from "effect/HashMap";
|
|
6
|
+
import * as tsplus_module_6 from "effect/Logger";
|
|
7
7
|
import { getRequestContext } from "./shared.js";
|
|
8
8
|
export const jsonLogger = tsplus_module_6.make(({ annotations, cause, context, fiberId, logLevel, message, spans }) => {
|
|
9
9
|
const now = new Date();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const logfmtLogger: import("
|
|
2
|
-
export declare const logFmt: import("
|
|
1
|
+
export declare const logfmtLogger: import("effect/Logger").Logger<unknown, void>;
|
|
2
|
+
export declare const logFmt: import("effect/Layer").Layer<never, never, never>;
|
|
3
3
|
//# sourceMappingURL=logFmtLogger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logFmtLogger.d.ts","sourceRoot":"","sources":["../../_src/logger/logFmtLogger.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"logFmtLogger.d.ts","sourceRoot":"","sources":["../../_src/logger/logFmtLogger.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,+CAqBxB,CAAA;AAED,eAAO,MAAM,MAAM,mDAAqD,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "@effect-app/core/Option";
|
|
2
2
|
import * as tsplus_module_2 from "@effect-app/prelude/utils";
|
|
3
|
-
import * as tsplus_module_3 from "
|
|
4
|
-
import * as tsplus_module_4 from "
|
|
3
|
+
import * as tsplus_module_3 from "effect/HashMap";
|
|
4
|
+
import * as tsplus_module_4 from "effect/Logger";
|
|
5
5
|
import { getRequestContext } from "./shared.js";
|
|
6
6
|
export const logfmtLogger = tsplus_module_4.make((_) => {
|
|
7
7
|
let { annotations } = _;
|
package/dist/logger/shared.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import * as FiberRefs from "
|
|
2
|
-
export declare function getRequestContext(context: FiberRefs.FiberRefs): import("
|
|
1
|
+
import * as FiberRefs from "effect/FiberRefs";
|
|
2
|
+
export declare function getRequestContext(context: FiberRefs.FiberRefs): import("effect/Option").Option<import("../RequestContext.js").RequestContext>;
|
|
3
3
|
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../_src/logger/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../_src/logger/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAA;AAG7C,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,SAAS,CAAC,SAAS,iFAM7D"}
|
package/dist/logger/shared.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "
|
|
2
|
-
import * as tsplus_module_2 from "
|
|
3
|
-
import * as tsplus_module_3 from "
|
|
4
|
-
import * as tsplus_module_4 from "
|
|
5
|
-
import * as FiberRefs from "
|
|
1
|
+
import * as tsplus_module_1 from "effect/FiberRef";
|
|
2
|
+
import * as tsplus_module_2 from "effect/Context";
|
|
3
|
+
import * as tsplus_module_3 from "effect/Effect";
|
|
4
|
+
import * as tsplus_module_4 from "effect/Option";
|
|
5
|
+
import * as FiberRefs from "effect/FiberRefs";
|
|
6
6
|
import { RequestContextContainer } from "../services/RequestContextContainer.js";
|
|
7
7
|
export function getRequestContext(context) {
|
|
8
8
|
const ctx = FiberRefs.getOrDefault(context, tsplus_module_1.currentContext);
|
|
@@ -11,4 +11,4 @@ export function getRequestContext(context) {
|
|
|
11
11
|
const c = tsplus_module_4.map(a, (_) => tsplus_module_3.runSync(_.requestContext));
|
|
12
12
|
return c;
|
|
13
13
|
}
|
|
14
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhcmVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vX3NyYy9sb2dnZXIvc2hhcmVkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEtBQUssU0FBUyxNQUFNLGtCQUFrQixDQUFBO0FBQzdDLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLHdDQUF3QyxDQUFBO0FBRWhGLE1BQU0sVUFBVSxpQkFBaUIsQ0FBQyxPQUE0QjtJQUM1RCxNQUFNLEdBQUcsR0FBRyxTQUFTLENBQUMsWUFBWSxDQUFDLE9BQU8saUNBQTBCLENBQUE7SUFDcEUsZ0RBQWdEO0lBQ2hELE1BQU0sQ0FBQyxHQUFHLDBCQUFBLEdBQUcsRUFBVyx1QkFBdUIsQ0FBQyxDQUFBO0lBQ2hELE1BQU0sQ0FBQyxHQUFHLG9CQUFBLENBQUMsRUFBSyxDQUFDLENBQUMsRUFBRSxFQUFFLHlCQUFDLENBQUMsQ0FBQyxjQUFjLENBQVEsQ0FBQyxDQUFBO0lBQ2hELE9BQU8sQ0FBQyxDQUFBO0FBQ1YsQ0FBQyJ9
|
package/dist/rateLimit.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Duration, DUR } from "
|
|
2
|
-
import { Semaphore, Effect } from "
|
|
3
|
-
import { NonEmptyArray } from "
|
|
1
|
+
import { Duration, DUR } from "effect/Duration";
|
|
2
|
+
import { Semaphore, Effect } from "effect/Effect";
|
|
3
|
+
import { NonEmptyArray } from "effect/ReadonlyArray";
|
|
4
4
|
/**
|
|
5
5
|
* Executes the specified effect, acquiring the specified number of permits
|
|
6
6
|
* immediately before the effect begins execution and releasing them
|
|
@@ -10,23 +10,23 @@ import { NonEmptyArray } from "@effect/data/ReadonlyArray";
|
|
|
10
10
|
* @tsplus pipeable effect/io/Effect/Semaphore withPermitsDuration
|
|
11
11
|
* @tsplus location "@effect-app/infra/rateLimit"
|
|
12
12
|
*/
|
|
13
|
-
export declare function SEM_withPermitsDuration(permits: number, duration: Duration): (self: Semaphore) => <R, E, A>(effect: import("
|
|
13
|
+
export declare function SEM_withPermitsDuration(permits: number, duration: Duration): (self: Semaphore) => <R, E, A>(effect: import("effect/Effect").Effect<R, E, A>) => import("effect/Effect").Effect<R, E, A>;
|
|
14
14
|
/**
|
|
15
15
|
* @tsplus pipeable Iterable batchPar
|
|
16
16
|
* @tsplus static Collection.Ops batchPar
|
|
17
17
|
* @tsplus location "@effect-app/infra/rateLimit"
|
|
18
18
|
*/
|
|
19
|
-
export declare function batchPar<R, E, A, R2, E2, A2, T>(n: number, forEachItem: (item: T, iWithinBatch: number, batchI: number) => Effect<R, E, A>, forEachBatch: (a: NonEmptyArray<A>, i: number) => Effect<R2, E2, A2>): (items: Iterable<T>) => import("
|
|
19
|
+
export declare function batchPar<R, E, A, R2, E2, A2, T>(n: number, forEachItem: (item: T, iWithinBatch: number, batchI: number) => Effect<R, E, A>, forEachBatch: (a: NonEmptyArray<A>, i: number) => Effect<R2, E2, A2>): (items: Iterable<T>) => import("effect/Effect").Effect<R | R2, E | E2, A2[]>;
|
|
20
20
|
/**
|
|
21
21
|
* @tsplus pipeable Iterable batch
|
|
22
22
|
* @tsplus static Collection.Ops batch
|
|
23
23
|
* @tsplus location "@effect-app/infra/rateLimit"
|
|
24
24
|
*/
|
|
25
|
-
export declare function batch<R, E, A, R2, E2, A2, T>(n: number, forEachItem: (item: T, iWithinBatch: number, batchI: number) => Effect<R, E, A>, forEachBatch: (a: NonEmptyArray<A>, i: number) => Effect<R2, E2, A2>): (items: Iterable<T>) => import("
|
|
25
|
+
export declare function batch<R, E, A, R2, E2, A2, T>(n: number, forEachItem: (item: T, iWithinBatch: number, batchI: number) => Effect<R, E, A>, forEachBatch: (a: NonEmptyArray<A>, i: number) => Effect<R2, E2, A2>): (items: Iterable<T>) => import("effect/Effect").Effect<R | R2, E | E2, A2[]>;
|
|
26
26
|
/**
|
|
27
27
|
* @tsplus pipeable Iterable naiveRateLimit
|
|
28
28
|
* @tsplus static Collection.Ops naiveRateLimit
|
|
29
29
|
* @tsplus location "@effect-app/infra/rateLimit"
|
|
30
30
|
*/
|
|
31
|
-
export declare function naiveRateLimit(n: number, d: DUR): <T>(items: Iterable<T>) => <R, E, A, R2, E2, A2>(forEachItem: (i: T) => import("
|
|
31
|
+
export declare function naiveRateLimit(n: number, d: DUR): <T>(items: Iterable<T>) => <R, E, A, R2, E2, A2>(forEachItem: (i: T) => import("effect/Effect").Effect<R, E, A>, forEachBatch: (a: A[]) => import("effect/Effect").Effect<R2, E2, A2>) => import("effect/Effect").Effect<R | R2, E | E2, A2[]>;
|
|
32
32
|
//# sourceMappingURL=rateLimit.d.ts.map
|
package/dist/rateLimit.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rateLimit.d.ts","sourceRoot":"","sources":["../_src/rateLimit.ts"],"names":[],"mappings":";;;;;;;;;;;;AAkCA,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,UAC3D,SAAS,
|
|
1
|
+
{"version":3,"file":"rateLimit.d.ts","sourceRoot":"","sources":["../_src/rateLimit.ts"],"names":[],"mappings":";;;;;;;;;;;;AAkCA,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,UAC3D,SAAS,2GAaxB;;;;;;AAMD,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAC7C,CAAC,EAAE,MAAM,EACT,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAC/E,YAAY,EAAE,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,WAErD,SAAS,CAAC,CAAC,0DAU3B;;;;;;AAMD,wBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAC1C,CAAC,EAAE,MAAM,EACT,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAC/E,YAAY,EAAE,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,WAErD,SAAS,CAAC,CAAC,0DAQ3B;;;;;;AA2BD,wBAAgB,cAAc,CAC5B,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,GAAG,kPAgBP"}
|
package/dist/rateLimit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Config } from "
|
|
1
|
+
import { Config } from "effect/Config";
|
|
2
2
|
import type { EmailData } from "@sendgrid/helpers/classes/email-address.js";
|
|
3
3
|
import { Emailer } from "./service.js";
|
|
4
4
|
import type { EmailMsg, SendgridConfig } from "./service.js";
|
|
@@ -6,7 +6,7 @@ import type { EmailMsg, SendgridConfig } from "./service.js";
|
|
|
6
6
|
* @tsplus static Emailer.Ops LiveSendgrid
|
|
7
7
|
* @tsplus location "@effect-app/infra/services/Emailer/Sendgrid"
|
|
8
8
|
*/
|
|
9
|
-
export declare function LiveSendgrid(config: Config<SendgridConfig>): import("
|
|
9
|
+
export declare function LiveSendgrid(config: Config<SendgridConfig>): import("effect/Layer").Layer<never, import("effect/ConfigError").ConfigError, Emailer>;
|
|
10
10
|
/**
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sendgrid.d.ts","sourceRoot":"","sources":["../../../_src/services/Emailer/Sendgrid.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAA;AAG3E,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,EAAE,QAAQ,EAAwB,cAAc,EAAE,MAAM,cAAc,CAAA;;;;;AAoDlF,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"Sendgrid.d.ts","sourceRoot":"","sources":["../../../_src/services/Emailer/Sendgrid.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAA;AAG3E,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,EAAE,QAAQ,EAAwB,cAAc,EAAE,MAAM,cAAc,CAAA;;;;;AAoDlF,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC,0FAK1D;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,OAAO,SAUpC,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMnB;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAAE,EAAE,SAAS,WAO1C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "
|
|
2
|
-
import * as tsplus_module_2 from "
|
|
3
|
-
import * as tsplus_module_3 from "
|
|
4
|
-
import * as tsplus_module_4 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
|
+
import * as tsplus_module_4 from "effect/Equivalence";
|
|
5
5
|
import * as tsplus_module_5 from "@effect-app/core/_ext/ord.ext";
|
|
6
6
|
import * as tsplus_module_6 from "@effect-app/core/Array";
|
|
7
7
|
import sgMail from "@sendgrid/mail";
|
|
@@ -3,5 +3,5 @@ import { Emailer } from "./service.js";
|
|
|
3
3
|
* @tsplus static Emailer.Ops Fake
|
|
4
4
|
* @tsplus location "@effect-app/infra/services/Emailer/fake"
|
|
5
5
|
*/
|
|
6
|
-
export declare const FakeSendgrid: import("
|
|
6
|
+
export declare const FakeSendgrid: import("effect/Layer").Layer<never, never, Emailer>;
|
|
7
7
|
//# sourceMappingURL=fake.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fake.d.ts","sourceRoot":"","sources":["../../../_src/services/Emailer/fake.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;;;;;AAatC,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"fake.d.ts","sourceRoot":"","sources":["../../../_src/services/Emailer/fake.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;;;;;AAatC,eAAO,MAAM,YAAY,qDAA4B,CAAA"}
|
|
@@ -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/Layer";
|
|
3
3
|
import { pretty } from "@effect-app/prelude/utils";
|
|
4
4
|
import { Emailer } from "./service.js";
|
|
5
5
|
const makeFake = tsplus_module_1.map(tsplus_module_1.logDebug("FAKE Emailer Service enabled"), () => ({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { TagClass } from "@effect-app/prelude/service";
|
|
2
|
-
import { Effect } from "
|
|
2
|
+
import { Effect } from "effect/Effect";
|
|
3
3
|
import { Email, ReasonableString } from "@effect-app/prelude/schema";
|
|
4
|
-
import { ConfigSecret } from "
|
|
5
|
-
import { NonEmptyReadonlyArray } from "
|
|
4
|
+
import { ConfigSecret } from "effect/ConfigSecret";
|
|
5
|
+
import { NonEmptyReadonlyArray } from "effect/ReadonlyArray";
|
|
6
6
|
import type { MailContent, MailData } from "@sendgrid/helpers/classes/mail.js";
|
|
7
7
|
import type { ResponseError } from "@sendgrid/mail";
|
|
8
8
|
import type sgMail from "@sendgrid/mail";
|
|
9
9
|
import type { RequestContextContainer } from "../RequestContextContainer.js";
|
|
10
10
|
declare const Emailer_base: (abstract new () => {}) & {
|
|
11
|
-
flatMap<R1, E1, B>(f: (a: Emailer) => import("
|
|
12
|
-
map<B_1>(f: (a: Emailer) => B_1): import("
|
|
13
|
-
makeLayer(svc: Emailer): import("
|
|
14
|
-
} & import("
|
|
11
|
+
flatMap<R1, E1, B>(f: (a: Emailer) => import("effect/Effect").Effect<R1, E1, B>): import("effect/Effect").Effect<Emailer | R1, E1, B>;
|
|
12
|
+
map<B_1>(f: (a: Emailer) => B_1): import("effect/Effect").Effect<Emailer, never, B_1>;
|
|
13
|
+
makeLayer(svc: Emailer): import("effect/Layer").Layer<never, never, Emailer>;
|
|
14
|
+
} & import("effect/Context").Tag<Emailer, Emailer>;
|
|
15
15
|
/**
|
|
16
16
|
* @tsplus type Emailer
|
|
17
17
|
* @tsplus companion Emailer.Ops
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Exit } from "
|
|
1
|
+
import { Exit } from "effect/Exit";
|
|
2
2
|
/**
|
|
3
3
|
* @tsplus static Operations.Ops Live
|
|
4
4
|
* @tsplus location "@effect-app/infra/services/Operations/live"
|
|
5
5
|
*/
|
|
6
|
-
export declare const Live: import("
|
|
6
|
+
export declare const Live: import("effect/Layer").Layer<never, never, import("./service.js").OperationsId>;
|
|
7
7
|
//# sourceMappingURL=live.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live.d.ts","sourceRoot":"","sources":["../../../_src/services/Operations/live.ts"],"names":[],"mappings":";;;;;AAwGA,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"live.d.ts","sourceRoot":"","sources":["../../../_src/services/Operations/live.ts"],"names":[],"mappings":";;;;;AAwGA,eAAO,MAAM,IAAI,iFAEQ,CAAA"}
|
|
@@ -1,16 +1,16 @@
|
|
|
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/prelude/_ext/date";
|
|
3
|
-
import * as tsplus_module_3 from "
|
|
3
|
+
import * as tsplus_module_3 from "effect/Option";
|
|
4
4
|
import * as tsplus_module_4 from "@effect-app/core/Array";
|
|
5
|
-
import * as tsplus_module_5 from "
|
|
6
|
-
import * as tsplus_module_6 from "
|
|
7
|
-
import * as tsplus_module_7 from "
|
|
5
|
+
import * as tsplus_module_5 from "effect/Chunk";
|
|
6
|
+
import * as tsplus_module_6 from "effect/Exit";
|
|
7
|
+
import * as tsplus_module_7 from "effect/Cause";
|
|
8
8
|
import * as tsplus_module_8 from "@effect-app/prelude/schema";
|
|
9
9
|
import * as tsplus_module_9 from "@effect-app/core/Option";
|
|
10
10
|
import * as tsplus_module_10 from "@effect-app/prelude/_ext/misc";
|
|
11
|
-
import * as tsplus_module_11 from "
|
|
12
|
-
import * as tsplus_module_12 from "
|
|
13
|
-
import * as tsplus_module_13 from "
|
|
11
|
+
import * as tsplus_module_11 from "effect/Duration";
|
|
12
|
+
import * as tsplus_module_12 from "effect/Schedule";
|
|
13
|
+
import * as tsplus_module_13 from "effect/Layer";
|
|
14
14
|
import { RequestException } from "@effect-app/infra/api/reportError";
|
|
15
15
|
import { reportError } from "@effect-app/infra/errorReporter";
|
|
16
16
|
import { Failure, Operation, OperationId, Success } from "@effect-app/prelude/Operations";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { TagClass } from "@effect-app/prelude/service";
|
|
2
|
-
import { Effect } from "
|
|
2
|
+
import { Effect } from "effect/Effect";
|
|
3
3
|
import { Option } from "@effect-app/core/Option";
|
|
4
4
|
import type { Operation, OperationId, OperationProgress } from "@effect-app/prelude/Operations";
|
|
5
|
-
import * as Scope from "
|
|
5
|
+
import * as Scope from "effect/Scope";
|
|
6
6
|
export interface OperationsId {
|
|
7
7
|
readonly _: unique symbol;
|
|
8
8
|
}
|
|
9
9
|
declare const Operations_base: (abstract new () => {}) & {
|
|
10
|
-
flatMap<R1, E1, B>(f: (a: Operations) => import("
|
|
11
|
-
map<B_1>(f: (a: Operations) => B_1): import("
|
|
12
|
-
makeLayer(svc: Operations): import("
|
|
13
|
-
} & import("
|
|
10
|
+
flatMap<R1, E1, B>(f: (a: Operations) => import("effect/Effect").Effect<R1, E1, B>): import("effect/Effect").Effect<OperationsId | R1, E1, B>;
|
|
11
|
+
map<B_1>(f: (a: Operations) => B_1): import("effect/Effect").Effect<OperationsId, never, B_1>;
|
|
12
|
+
makeLayer(svc: Operations): import("effect/Layer").Layer<never, never, Operations>;
|
|
13
|
+
} & import("effect/Context").Tag<OperationsId, Operations>;
|
|
14
14
|
/**
|
|
15
15
|
* @tsplus type Operations
|
|
16
16
|
* @tsplus companion Operations.Ops
|
|
@@ -25,21 +25,21 @@ export declare abstract class Operations extends Operations_base {
|
|
|
25
25
|
* @tsplus getter effect/io/Effect forkOperation
|
|
26
26
|
* @tsplus location "@effect-app/infra/services/Operations/service"
|
|
27
27
|
*/
|
|
28
|
-
export declare function forkOperation<R, E, A>(self: Effect<R, E, A>): import("
|
|
28
|
+
export declare function forkOperation<R, E, A>(self: Effect<R, E, A>): import("effect/Effect").Effect<OperationsId | Exclude<R, Scope.Scope>, never, import("@effect-app/prelude/schema").StringId>;
|
|
29
29
|
/**
|
|
30
30
|
* @tsplus getter function forkOperation
|
|
31
31
|
* @tsplus location "@effect-app/infra/services/Operations/service"
|
|
32
32
|
*/
|
|
33
|
-
export declare function forkOperationFunction<R, E, A, Inp>(fnc: (inp: Inp) => Effect<R, E, A>): (inp: Inp) => import("
|
|
33
|
+
export declare function forkOperationFunction<R, E, A, Inp>(fnc: (inp: Inp) => Effect<R, E, A>): (inp: Inp) => import("effect/Effect").Effect<OperationsId | Exclude<R, Scope.Scope>, never, import("@effect-app/prelude/schema").StringId>;
|
|
34
34
|
/**
|
|
35
35
|
* @tsplus static effect/io/Effect.Ops forkOperation
|
|
36
36
|
* @tsplus location "@effect-app/infra/services/Operations/service"
|
|
37
37
|
*/
|
|
38
|
-
export declare function forkOperation2<R, E, A>(self: (opId: OperationId) => Effect<R, E, A>): import("
|
|
38
|
+
export declare function forkOperation2<R, E, A>(self: (opId: OperationId) => Effect<R, E, A>): import("effect/Effect").Effect<OperationsId | Exclude<R, Scope.Scope>, never, import("@effect-app/prelude/schema").StringId>;
|
|
39
39
|
/**
|
|
40
40
|
* @tsplus static effect/io/Effect.Ops forkOperationWithEffect
|
|
41
41
|
* @tsplus location "@effect-app/infra/services/Operations/service"
|
|
42
42
|
*/
|
|
43
|
-
export declare function forkOperationWithEffect<R, R2, E, E2, A, A2>(self: (id: OperationId) => Effect<R, E, A>, fnc: (id: OperationId) => Effect<R2, E2, A2>): import("
|
|
43
|
+
export declare function forkOperationWithEffect<R, R2, E, E2, A, A2>(self: (id: OperationId) => Effect<R, E, A>, fnc: (id: OperationId) => Effect<R2, E2, A2>): import("effect/Effect").Effect<OperationsId | Exclude<R, Scope.Scope> | Exclude<R2, Scope.Scope>, never, import("@effect-app/prelude/schema").StringId>;
|
|
44
44
|
export {};
|
|
45
45
|
//# sourceMappingURL=service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../_src/services/Operations/service.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAC/F,OAAO,KAAK,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../_src/services/Operations/service.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAC/F,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAErC,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,CAAC,EAAE,OAAO,MAAM,CAAA;CAC1B;;;;;;AAED;;;GAGG;AACH,8BAAsB,UAAW,SAAQ,eAAoC;IAC3E,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,WAAW,CAAC,CAAA;IAC1D,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,iBAAiB,KAAK,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;IAC7F,QAAQ,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,WAAW,KAAK,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,CAAA;IAC3E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;CAC7C;;;;;AAKD,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,gIAY3D;;;;;AAKD,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,SACvE,GAAG,kIACjB;;;;;AAKD,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,gIAYnF;;;;;AAKD,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EACzD,IAAI,EAAE,CAAC,EAAE,EAAE,WAAW,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAC1C,GAAG,EAAE,CAAC,EAAE,EAAE,WAAW,KAAK,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,2JAc7C"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "@effect-app/prelude/service";
|
|
2
2
|
import * as tsplus_module_2 from "@effect-app/infra/api/reportError";
|
|
3
|
-
import * as tsplus_module_3 from "
|
|
3
|
+
import * as tsplus_module_3 from "effect/Effect";
|
|
4
4
|
export const forkOperation = forkOperation_1;
|
|
5
|
-
import * as Scope from "
|
|
5
|
+
import * as Scope from "effect/Scope";
|
|
6
6
|
/**
|
|
7
7
|
* @tsplus type Operations
|
|
8
8
|
* @tsplus companion Operations.Ops
|
|
@@ -39,4 +39,4 @@ export function forkOperationWithEffect(self, fnc) {
|
|
|
39
39
|
.make(), (scope) => tsplus_module_3.tap(tsplus_module_3.tap(Scope.extend(Operations
|
|
40
40
|
.register, scope), (opId) => tsplus_module_2.forkDaemonReportRequestUnexpected(Scope.use(self(opId), scope))), (opId) => Scope.extend(tsplus_module_3.forkScoped(tsplus_module_3.interruptible(fnc(opId))), scope))));
|
|
41
41
|
}
|
|
42
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL19zcmMvc2VydmljZXMvT3BlcmF0aW9ucy9zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OzthQXFCZ0IsYUFBYTtBQXBCN0IsT0FBTyxLQUFLLEtBQUssTUFBTSxjQUFjLENBQUE7QUFNckM7OztHQUdHO0FBQ0gsTUFBTSxPQUFnQixVQUFXLFNBQVEsZ0JBQUEsUUFBUSxFQUE0QjtDQUs1RTtBQUVEOztHQUVHO0FBQ0gseUJBQXVDLElBQXFCO0lBQzFELE9BQU8sVUFBVSxDQUFDLE9BQU8sQ0FDdkIsQ0FBQyxVQUFVLEVBQUUsRUFBRSxDQUNiLHdCQUFBLEtBQUs7U0FDRixJQUFJLEVBQUUsRUFDRSxDQUFDLEtBQUssRUFBRSxFQUFFLENBQ2pCLG9CQUFBLEFBMUJFLEtBQUssUUEwQlAsVUFBVTtTQUNQLFFBQVEsRUFDRCxLQUFLLENBQUMsRUFDVCxHQUFHLEVBQUUsbURBQUMsQUE3QlgsS0FBSyxLQTZCTSxJQUFJLEVBQUssS0FBSyxDQUFDLENBQWtDLENBQUMsQ0FDaEUsQ0FDTixDQUFBO0FBQ0gsQ0FBQztBQUVEOztHQUVHO0FBQ0gsTUFBTSxVQUFVLHFCQUFxQixDQUFlLEdBQWtDO0lBQ3BGLE9BQU8sQ0FBQyxHQUFRLEVBQUUsRUFBRSxpQkFBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQWMsQ0FBQTtBQUM3QyxDQUFDO0FBRUQ7O0dBRUc7QUFDSCxNQUFNLFVBQVUsY0FBYyxDQUFVLElBQTRDO0lBQ2xGLE9BQU8sVUFBVSxDQUFDLE9BQU8sQ0FDdkIsQ0FBQyxVQUFVLEVBQUUsRUFBRSxDQUNiLHdCQUFBLEtBQUs7U0FDRixJQUFJLEVBQUUsRUFDRSxDQUFDLEtBQUssRUFBRSxFQUFFLENBQ2pCLG9CQUFBLEFBbERFLEtBQUssUUFrRFAsVUFBVTtTQUNQLFFBQVEsRUFDRCxLQUFLLENBQUMsRUFDVCxDQUFDLEVBQUUsRUFBRSxFQUFFLG1EQUFDLEFBckRiLEtBQUssS0FxRFEsSUFBSSxDQUFDLEVBQUUsQ0FBQyxFQUFLLEtBQUssQ0FBQyxDQUFrQyxDQUFDLENBQ3RFLENBQ04sQ0FBQTtBQUNILENBQUM7QUFFRDs7R0FFRztBQUNILE1BQU0sVUFBVSx1QkFBdUIsQ0FDckMsSUFBMEMsRUFDMUMsR0FBNEM7SUFFNUMsT0FBTyxVQUFVLENBQUMsT0FBTyxDQUN2QixDQUFDLFVBQVUsRUFBRSxFQUFFLENBQ2Isd0JBQUEsS0FBSztTQUNGLElBQUksRUFBRSxFQUNFLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FDakIsb0JBQUEsb0JBQUEsQUF0RUUsS0FBSyxRQXNFUCxVQUFVO1NBQ1AsUUFBUSxFQUNELEtBQUssQ0FBQyxFQUNULENBQUMsSUFBSSxFQUFFLEVBQUUsbURBQUMsQUF6RWYsS0FBSyxLQXlFVSxJQUFJLENBQUMsSUFBSSxDQUFDLEVBQUssS0FBSyxDQUFDLENBQWtDLENBQUMsRUFDbEUsQ0FBQyxJQUFJLEVBQUUsRUFBRSxDQUFDLEFBMUVmLEtBQUssaUVBMEVVLEdBQUcsQ0FBQyxJQUFJLENBQUMsSUFBaUMsS0FBSyxDQUFDLENBQUMsQ0FDbkUsQ0FDTixDQUFBO0FBQ0gsQ0FBQyJ9
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Cause } from "
|
|
2
|
-
import { Effect } from "
|
|
3
|
-
import { Exit } from "
|
|
1
|
+
import { Cause } from "effect/Cause";
|
|
2
|
+
import { Effect } from "effect/Effect";
|
|
3
|
+
import { Exit } from "effect/Exit";
|
|
4
4
|
import { CauseException } from "@effect-app/infra/errors";
|
|
5
5
|
export declare class MessageException<E> extends CauseException<E> {
|
|
6
6
|
constructor(cause: Cause<E>);
|
|
@@ -8,7 +8,7 @@ export declare class MessageException<E> extends CauseException<E> {
|
|
|
8
8
|
export declare class FatalQueueException<E> extends CauseException<E> {
|
|
9
9
|
constructor(cause: Cause<E>);
|
|
10
10
|
}
|
|
11
|
-
export declare const reportQueueError: <E>(cause: import("
|
|
11
|
+
export declare const reportQueueError: <E>(cause: import("effect/Cause").Cause<E>, extras?: Record<string, unknown> | undefined) => import("effect/Effect").Effect<never, never, void>;
|
|
12
12
|
/**
|
|
13
13
|
* Forks the effect into a new fiber attached to the global scope. Because the
|
|
14
14
|
* new fiber is attached to the global scope, when the fiber executing the
|
|
@@ -18,8 +18,8 @@ export declare const reportQueueError: <E>(cause: import("@effect/io/Cause").Cau
|
|
|
18
18
|
* @tsplus getter effect/io/Effect forkDaemonReportQueue
|
|
19
19
|
* @tsplus location "@effect-app/infra/services/QueueMaker/errors"
|
|
20
20
|
*/
|
|
21
|
-
export declare function forkDaemonReportQueue<R, E, A>(self: Effect<R, E, A>): import("
|
|
22
|
-
export declare const reportFatalQueueError: (cause: import("
|
|
23
|
-
export declare function reportNonInterruptedFailure(context?: Record<string, unknown>): <R, E, A>(inp: import("
|
|
24
|
-
export declare function reportNonInterruptedFailureCause(context?: Record<string, unknown>): <E>(cause: import("
|
|
21
|
+
export declare function forkDaemonReportQueue<R, E, A>(self: Effect<R, E, A>): import("effect/Effect").Effect<R, never, import("effect/Fiber").RuntimeFiber<E, A>>;
|
|
22
|
+
export declare const reportFatalQueueError: (cause: import("effect/Cause").Cause<unknown>, extras?: Record<string, unknown> | undefined) => import("effect/Effect").Effect<never, never, void>;
|
|
23
|
+
export declare function reportNonInterruptedFailure(context?: Record<string, unknown>): <R, E, A>(inp: import("effect/Effect").Effect<R, E, A>) => import("effect/Effect").Effect<R, never, import("effect/Exit").Exit<E, A>>;
|
|
24
|
+
export declare function reportNonInterruptedFailureCause(context?: Record<string, unknown>): <E>(cause: import("effect/Cause").Cause<E>) => Effect<never, never, void>;
|
|
25
25
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../_src/services/QueueMaker/errors.ts"],"names":[],"mappings":";;;AACA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAEzD,qBAAa,gBAAgB,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;gBAC5C,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;CAG5B;AAED,qBAAa,mBAAmB,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;gBAC/C,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;CAG5B;AAID,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../_src/services/QueueMaker/errors.ts"],"names":[],"mappings":";;;AACA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAEzD,qBAAa,gBAAgB,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;gBAC5C,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;CAG5B;AAED,qBAAa,mBAAmB,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;gBAC/C,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;CAG5B;AAID,eAAO,MAAM,gBAAgB,uDAAiC,OAAO,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,uDAC/D,CAAA;;;;;;;;;;AAWlC,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,uFAEnE;AAED,eAAO,MAAM,qBAAqB,oJAEjC,CAAA;AAED,wBAAgB,2BAA2B,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,yIAU5E;AAED,wBAAgB,gCAAgC,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,kDACnD,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAMxD"}
|
|
@@ -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/Exit";
|
|
3
|
+
import * as tsplus_module_3 from "effect/Cause";
|
|
4
4
|
import { reportError } from "@effect-app/infra/errorReporter";
|
|
5
5
|
import { CauseException } from "@effect-app/infra/errors";
|
|
6
6
|
export class MessageException extends CauseException {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StringId, Parser } from "@effect-app/prelude/schema";
|
|
2
|
-
import { Effect } from "
|
|
2
|
+
import { Effect } from "effect/Effect";
|
|
3
3
|
import { MemQueue } from "@effect-app/infra-adapters/memQueue";
|
|
4
4
|
import { RequestContext } from "@effect-app/infra/RequestContext";
|
|
5
5
|
import type { CustomSchemaException } from "@effect-app/prelude/schema";
|
|
@@ -17,8 +17,8 @@ export declare function makeMemQueue<DrainR, Evt, DrainEvt extends {
|
|
|
17
17
|
}) => EvtE, makeHandleEvent: Effect<DrainR, never, (ks: DrainEvt) => Effect<RContext, DrainE, void>>, provideContext: (context: RequestContext) => <R, E, A>(eff: Effect<RContext | R, E, A>) => Effect<Exclude<R, RContext | RequestContextContainer>, E, A>, parseDrain: (a: unknown, env?: Parser.ParserEnv | undefined) => Effect<never, CustomSchemaException, {
|
|
18
18
|
body: DrainEvt;
|
|
19
19
|
meta: RequestContext;
|
|
20
|
-
}>): import("
|
|
21
|
-
publish: (messages_0: Evt, ...messages_1: Evt[]) => import("
|
|
22
|
-
drain: import("
|
|
20
|
+
}>): import("effect/Effect").Effect<MemQueue, never, {
|
|
21
|
+
publish: (messages_0: Evt, ...messages_1: Evt[]) => import("effect/Effect").Effect<RequestContextContainer, never, import("effect/Fiber").RuntimeFiber<never, void[]>>;
|
|
22
|
+
drain: import("effect/Effect").Effect<import("effect/Scope").Scope | DrainR, never, import("effect/Fiber").RuntimeFiber<never, never>>;
|
|
23
23
|
}>;
|
|
24
24
|
//# sourceMappingURL=memQueue.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
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/_ext/Iterable";
|
|
3
3
|
import * as tsplus_module_3 from "@effect-app/infra/services/QueueMaker/errors";
|
|
4
4
|
import * as tsplus_module_4 from "@effect-app/prelude/utils";
|
|
5
5
|
import * as tsplus_module_5 from "@effect-app/prelude/schema";
|
|
6
|
-
import * as tsplus_module_6 from "
|
|
6
|
+
import * as tsplus_module_6 from "effect/Fiber";
|
|
7
7
|
import { MemQueue } from "@effect-app/infra-adapters/memQueue";
|
|
8
8
|
import { RequestContext } from "@effect-app/infra/RequestContext";
|
|
9
9
|
import { RequestId } from "@effect-app/prelude/ids";
|