@effect-app/infra 0.85.0-next.2 → 0.85.0-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/_cjs/_ext/Array.cjs +1 -1
- package/_cjs/api/defaultErrorHandler.cjs +2 -2
- package/_cjs/api/express/makeJsonSchema.cjs +1 -1
- package/_cjs/api/express/makeJsonSchema.test.cjs +1 -1
- 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/errorReporter.cjs +2 -2
- package/_cjs/instrument.cjs +1 -1
- package/_cjs/logger/jsonLogger.cjs +4 -4
- package/_cjs/logger/shared.cjs +3 -3
- 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 +6 -6
- package/_cjs/services/Operations/service.cjs +2 -2
- 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 +5 -5
- package/_cjs/services/RequestContextContainer.cjs +3 -3
- package/_cjs/services/Store/Cosmos.cjs +4 -4
- 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/utils.cjs +2 -2
- 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/simpledb.cjs +3 -3
- package/dist/RequestContext.d.ts +16 -16
- package/dist/_ext/Array.js +1 -1
- package/dist/api/defaultErrorHandler.js +2 -2
- package/dist/api/express/makeJsonSchema.js +1 -1
- package/dist/api/express/makeOpenApiSpecs.js +2 -2
- package/dist/api/express/schema/requestHandler.js +4 -4
- package/dist/api/express/schema/routing.js +2 -2
- package/dist/api/reportError.d.ts +2 -2
- package/dist/api/reportError.d.ts.map +1 -1
- package/dist/api/reportError.js +2 -2
- package/dist/api/routing.d.ts +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.js +3 -3
- package/dist/errorReporter.js +2 -2
- package/dist/errors.d.ts +7 -7
- package/dist/instrument.d.ts +1 -1
- package/dist/instrument.d.ts.map +1 -1
- package/dist/instrument.js +1 -1
- package/dist/logger/jsonLogger.js +4 -4
- package/dist/logger/shared.js +3 -3
- package/dist/rateLimit.js +1 -1
- package/dist/services/Emailer/Sendgrid.js +4 -4
- package/dist/services/Emailer/fake.js +2 -2
- package/dist/services/Emailer/service.d.ts +1 -1
- package/dist/services/Operations/live.js +6 -6
- package/dist/services/Operations/service.d.ts +1 -1
- package/dist/services/Operations/service.js +2 -2
- package/dist/services/QueueMaker/errors.d.ts +1 -1
- 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 +2 -2
- package/dist/services/QueueMaker/memQueue.js +2 -2
- package/dist/services/QueueMaker/sbqueue.d.ts +1 -1
- package/dist/services/QueueMaker/sbqueue.js +2 -2
- package/dist/services/Repository.d.ts +14 -14
- package/dist/services/Repository.js +2 -2
- package/dist/services/RepositoryBase.d.ts +3 -3
- package/dist/services/RepositoryBase.d.ts.map +1 -1
- package/dist/services/RepositoryBase.js +5 -5
- package/dist/services/RequestContextContainer.d.ts +2 -2
- package/dist/services/RequestContextContainer.d.ts.map +1 -1
- package/dist/services/RequestContextContainer.js +3 -3
- package/dist/services/Store/Cosmos.js +4 -4
- package/dist/services/Store/Disk.js +3 -3
- package/dist/services/Store/Memory.js +6 -6
- package/dist/services/Store/Redis.js +4 -4
- package/dist/services/Store/index.js +3 -3
- package/dist/services/Store/service.d.ts +2 -2
- package/dist/services/Store/utils.d.ts +1 -1
- package/dist/services/Store/utils.d.ts.map +1 -1
- package/dist/services/Store/utils.js +2 -2
- package/dist/services/simpledb/cosmosdb.js +3 -3
- package/dist/services/simpledb/diskdb.js +2 -2
- package/dist/services/simpledb/memdb.js +3 -3
- package/dist/services/simpledb/mongodb.js +2 -2
- package/dist/services/simpledb/redisdb.d.ts +6 -6
- package/dist/services/simpledb/redisdb.js +2 -2
- package/dist/services/simpledb/shared.d.ts +12 -12
- package/dist/services/simpledb/simpledb.d.ts +1 -1
- package/dist/services/simpledb/simpledb.d.ts.map +1 -1
- package/dist/services/simpledb/simpledb.js +3 -3
- package/package.json +5 -5
|
@@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.createContext = createContext;
|
|
7
7
|
var tsplus_module_1 = _interopRequireWildcard(require("effect/Effect"));
|
|
8
|
-
var tsplus_module_2 = _interopRequireWildcard(require("effect/Effect
|
|
8
|
+
var tsplus_module_2 = _interopRequireWildcard(require("effect/impl/Effect"));
|
|
9
9
|
var tsplus_module_3 = _interopRequireWildcard(require("effect/Option"));
|
|
10
10
|
var tsplus_module_4 = _interopRequireWildcard(require("@effect-app/core/EffectX"));
|
|
11
|
-
var tsplus_module_5 = _interopRequireWildcard(require("effect/Option
|
|
11
|
+
var tsplus_module_5 = _interopRequireWildcard(require("effect/impl/Option"));
|
|
12
12
|
var _mongoClient = require("@effect-app/infra-adapters/mongo-client");
|
|
13
13
|
var _shared = require("./shared.cjs");
|
|
14
14
|
var simpledb = _interopRequireWildcard(require("./simpledb.cjs"));
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.RedisSerializedDBRecord = void 0;
|
|
7
7
|
exports.createContext = createContext;
|
|
8
|
-
var tsplus_module_1 = _interopRequireWildcard(require("effect/Effect
|
|
8
|
+
var tsplus_module_1 = _interopRequireWildcard(require("effect/impl/Effect"));
|
|
9
9
|
var tsplus_module_2 = _interopRequireWildcard(require("@effect-app/core/EffectX"));
|
|
10
|
-
var tsplus_module_3 = _interopRequireWildcard(require("effect/Option
|
|
10
|
+
var tsplus_module_3 = _interopRequireWildcard(require("effect/impl/Option"));
|
|
11
11
|
var tsplus_module_4 = _interopRequireWildcard(require("effect/Effect"));
|
|
12
12
|
var _Function = require("@effect-app/core/Function");
|
|
13
13
|
var _redisClient = require("@effect-app/infra-adapters/redis-client");
|
|
@@ -10,11 +10,11 @@ exports.store = store;
|
|
|
10
10
|
exports.storeDirectly = storeDirectly;
|
|
11
11
|
var tsplus_module_1 = _interopRequireWildcard(require("effect/Effect"));
|
|
12
12
|
var tsplus_module_2 = _interopRequireWildcard(require("effect/Context"));
|
|
13
|
-
var tsplus_module_3 = _interopRequireWildcard(require("effect/Layer
|
|
14
|
-
var tsplus_module_4 = _interopRequireWildcard(require("effect/Effect
|
|
13
|
+
var tsplus_module_3 = _interopRequireWildcard(require("effect/impl/Layer"));
|
|
14
|
+
var tsplus_module_4 = _interopRequireWildcard(require("effect/impl/Effect"));
|
|
15
15
|
var tsplus_module_5 = _interopRequireWildcard(require("@effect-app/core/EffectX"));
|
|
16
16
|
var tsplus_module_6 = _interopRequireWildcard(require("effect/Option"));
|
|
17
|
-
var tsplus_module_7 = _interopRequireWildcard(require("effect/Option
|
|
17
|
+
var tsplus_module_7 = _interopRequireWildcard(require("effect/impl/Option"));
|
|
18
18
|
var _shared = require("./shared.cjs");
|
|
19
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
20
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
package/dist/RequestContext.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ declare const RequestContextParent_base: import("@effect-app/schema").MNModel<im
|
|
|
6
6
|
EParser: import("@effect-app/schema/custom/_parser").Parser<string, any, RequestId>;
|
|
7
7
|
make: () => RequestId;
|
|
8
8
|
eq: import("effect").Equivalence<RequestId>;
|
|
9
|
-
withDefault: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, RequestId, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/prelude/schema").StringId> & import("@effect-app/schema").ApiSelfType<RequestId>>, "required", import("effect/Option
|
|
9
|
+
withDefault: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, RequestId, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/prelude/schema").StringId> & import("@effect-app/schema").ApiSelfType<RequestId>>, "required", import("effect/Option").None<any>, import("effect/Option").Some<["constructor", () => RequestId]>>;
|
|
10
10
|
};
|
|
11
11
|
name: import("@effect-app/schema").SchemaDefaultSchema<unknown, import("@effect-app/schema").ReasonableString, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/schema").ReasonableString>> & import("@effect-app/schema").Utils<import("@effect-app/schema").SchemaDefaultSchema<unknown, import("@effect-app/schema").ReasonableString, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/schema").ReasonableString>>>;
|
|
12
12
|
userProfile: import("@effect-app/schema").Property<import("@effect-app/schema").Schema<unknown, {
|
|
@@ -21,29 +21,29 @@ declare const RequestContextParent_base: import("@effect-app/schema").MNModel<im
|
|
|
21
21
|
EParser: import("@effect-app/schema/custom/_parser").Parser<string, any, UserProfileId>;
|
|
22
22
|
make: () => UserProfileId;
|
|
23
23
|
eq: import("effect").Equivalence<UserProfileId>;
|
|
24
|
-
withDefault: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, UserProfileId, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/prelude/schema").StringId> & import("@effect-app/schema").ApiSelfType<UserProfileId>>, "required", import("effect/Option
|
|
25
|
-
}, "required", import("effect/Option
|
|
24
|
+
withDefault: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, UserProfileId, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/prelude/schema").StringId> & import("@effect-app/schema").ApiSelfType<UserProfileId>>, "required", import("effect/Option").None<any>, import("effect/Option").Some<["constructor", () => UserProfileId]>>;
|
|
25
|
+
}, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
26
26
|
}>;
|
|
27
|
-
}>, "optional", import("effect/Option
|
|
27
|
+
}>, "optional", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
28
28
|
locale: import("@effect-app/schema").DefaultSchema<unknown, "en" | "de", "en" | "de", "en" | "de", import("@effect-app/schema").LiteralApi<["en", "de"]>>;
|
|
29
|
-
createdAt: import("@effect-app/schema").FromProperty<import("@effect-app/schema").Schema<unknown, Date, Date, string, {}>, "required", import("effect/Option
|
|
29
|
+
createdAt: import("@effect-app/schema").FromProperty<import("@effect-app/schema").Schema<unknown, Date, Date, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").Some<["constructor", () => Date]>>;
|
|
30
30
|
}>>, RequestContextParent, RequestContextParent.ConstructorInput, RequestContextParent.Encoded, RequestContextParent.Props> & import("@effect-app/schema").PropsExtensions<RequestContextParent.Props>;
|
|
31
31
|
export declare class RequestContextParent extends RequestContextParent_base {
|
|
32
32
|
}
|
|
33
33
|
declare const RequestContext_base: import("@effect-app/schema").MNModel<import("@effect-app/schema").SchemaProperties<import("@effect-app/schema").ToProps<{
|
|
34
|
-
id: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, RequestId, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/prelude/schema").StringId> & import("@effect-app/schema").ApiSelfType<RequestId>>, "required", import("effect/Option
|
|
34
|
+
id: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, RequestId, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/prelude/schema").StringId> & import("@effect-app/schema").ApiSelfType<RequestId>>, "required", import("effect/Option").None<any>, import("effect/Option").Some<["constructor", () => RequestId]>>;
|
|
35
35
|
rootId: import("@effect-app/schema").SchemaDefaultSchema<unknown, RequestId, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/prelude/schema").StringId> & import("@effect-app/schema").ApiSelfType<RequestId>> & import("@effect-app/schema").Utils<import("@effect-app/schema").SchemaDefaultSchema<unknown, RequestId, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/prelude/schema").StringId> & import("@effect-app/schema").ApiSelfType<RequestId>>> & {
|
|
36
36
|
EParser: import("@effect-app/schema/custom/_parser").Parser<string, any, RequestId>;
|
|
37
37
|
make: () => RequestId;
|
|
38
38
|
eq: import("effect").Equivalence<RequestId>;
|
|
39
|
-
withDefault: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, RequestId, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/prelude/schema").StringId> & import("@effect-app/schema").ApiSelfType<RequestId>>, "required", import("effect/Option
|
|
39
|
+
withDefault: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, RequestId, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/prelude/schema").StringId> & import("@effect-app/schema").ApiSelfType<RequestId>>, "required", import("effect/Option").None<any>, import("effect/Option").Some<["constructor", () => RequestId]>>;
|
|
40
40
|
};
|
|
41
41
|
parent: import("@effect-app/schema").Property<import("@effect-app/schema").Schema<unknown, RequestContextParent, RequestContextParent.ConstructorInput, RequestContextParent.Encoded, {
|
|
42
42
|
props: RequestContextParent.Props;
|
|
43
|
-
}>, "optional", import("effect/Option
|
|
44
|
-
namespace: import("@effect-app/schema").Property<import("@effect-app/schema").Schema<unknown, import("@effect-app/schema").ReasonableString, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/schema").ReasonableString>>, "optional", import("effect/Option
|
|
45
|
-
_tag: import("@effect-app/schema").Property<import("@effect-app/schema").DefaultSchema<unknown, "RequestContext", "RequestContext", "RequestContext", import("@effect-app/schema").LiteralApi<["RequestContext"]>>, "required", import("effect/Option
|
|
46
|
-
name: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, import("@effect-app/schema").ReasonableString, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/schema").ReasonableString>> & import("@effect-app/schema").Utils<import("@effect-app/schema").SchemaDefaultSchema<unknown, import("@effect-app/schema").ReasonableString, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/schema").ReasonableString>>>, "required", import("effect/Option
|
|
43
|
+
}>, "optional", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
44
|
+
namespace: import("@effect-app/schema").Property<import("@effect-app/schema").Schema<unknown, import("@effect-app/schema").ReasonableString, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/schema").ReasonableString>>, "optional", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
45
|
+
_tag: import("@effect-app/schema").Property<import("@effect-app/schema").DefaultSchema<unknown, "RequestContext", "RequestContext", "RequestContext", import("@effect-app/schema").LiteralApi<["RequestContext"]>>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
46
|
+
name: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, import("@effect-app/schema").ReasonableString, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/schema").ReasonableString>> & import("@effect-app/schema").Utils<import("@effect-app/schema").SchemaDefaultSchema<unknown, import("@effect-app/schema").ReasonableString, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/schema").ReasonableString>>>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
47
47
|
userProfile: import("@effect-app/schema").Property<import("@effect-app/schema").Schema<unknown, {
|
|
48
48
|
readonly sub: UserProfileId;
|
|
49
49
|
}, {
|
|
@@ -56,12 +56,12 @@ declare const RequestContext_base: import("@effect-app/schema").MNModel<import("
|
|
|
56
56
|
EParser: import("@effect-app/schema/custom/_parser").Parser<string, any, UserProfileId>;
|
|
57
57
|
make: () => UserProfileId;
|
|
58
58
|
eq: import("effect").Equivalence<UserProfileId>;
|
|
59
|
-
withDefault: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, UserProfileId, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/prelude/schema").StringId> & import("@effect-app/schema").ApiSelfType<UserProfileId>>, "required", import("effect/Option
|
|
60
|
-
}, "required", import("effect/Option
|
|
59
|
+
withDefault: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, UserProfileId, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/prelude/schema").StringId> & import("@effect-app/schema").ApiSelfType<UserProfileId>>, "required", import("effect/Option").None<any>, import("effect/Option").Some<["constructor", () => UserProfileId]>>;
|
|
60
|
+
}, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
61
61
|
}>;
|
|
62
|
-
}>, "optional", import("effect/Option
|
|
63
|
-
locale: import("@effect-app/schema").Property<import("@effect-app/schema").DefaultSchema<unknown, "en" | "de", "en" | "de", "en" | "de", import("@effect-app/schema").LiteralApi<["en", "de"]>>, "required", import("effect/Option
|
|
64
|
-
createdAt: import("@effect-app/schema").FromProperty<import("@effect-app/schema").Schema<unknown, Date, Date, string, {}>, "required", import("effect/Option
|
|
62
|
+
}>, "optional", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
63
|
+
locale: import("@effect-app/schema").Property<import("@effect-app/schema").DefaultSchema<unknown, "en" | "de", "en" | "de", "en" | "de", import("@effect-app/schema").LiteralApi<["en", "de"]>>, "required", import("effect/Option").None<any>, import("effect/Option").None<any>>;
|
|
64
|
+
createdAt: import("@effect-app/schema").FromProperty<import("@effect-app/schema").Schema<unknown, Date, Date, string, {}>, "required", import("effect/Option").None<any>, import("effect/Option").Some<["constructor", () => Date]>>;
|
|
65
65
|
}>>, RequestContext, RequestContext.ConstructorInput, RequestContext.Encoded, RequestContext.Props> & import("@effect-app/schema").PropsExtensions<RequestContext.Props>;
|
|
66
66
|
/**
|
|
67
67
|
* @tsplus type RequestContext
|
package/dist/_ext/Array.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "effect/Chunk";
|
|
2
|
-
import * as tsplus_module_2 from "effect/Chunk
|
|
2
|
+
import * as tsplus_module_2 from "effect/impl/Chunk";
|
|
3
3
|
import * as tsplus_module_3 from "@effect-app/prelude/_ext/misc";
|
|
4
4
|
import { inspect } from "util";
|
|
5
5
|
import { NotFoundError } from "../errors.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "effect/Effect";
|
|
2
|
-
import * as tsplus_module_2 from "effect/Effect
|
|
3
|
-
import * as tsplus_module_3 from "effect/Cause
|
|
2
|
+
import * as tsplus_module_2 from "effect/impl/Effect";
|
|
3
|
+
import * as tsplus_module_3 from "effect/impl/Cause";
|
|
4
4
|
import * as tsplus_module_4 from "effect/Schedule";
|
|
5
5
|
import { logRequestError } from "./reportError.js";
|
|
6
6
|
export function defaultBasicErrorHandler(_req, res, r2) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "effect/Effect";
|
|
2
2
|
import * as tsplus_module_2 from "effect/Chunk";
|
|
3
3
|
import * as tsplus_module_3 from "@effect-app/core/_ext/Iterable";
|
|
4
|
-
import * as tsplus_module_4 from "effect/Effect
|
|
4
|
+
import * as tsplus_module_4 from "effect/impl/Effect";
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
6
6
|
import { InvalidStateError } from "../../errors.js";
|
|
7
7
|
import * as RS from "./schema/routing.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "effect/Ref";
|
|
2
|
-
import * as tsplus_module_2 from "effect/Effect
|
|
3
|
-
import * as tsplus_module_3 from "effect/Ref
|
|
2
|
+
import * as tsplus_module_2 from "effect/impl/Effect";
|
|
3
|
+
import * as tsplus_module_3 from "effect/impl/Ref";
|
|
4
4
|
import * as tsplus_module_4 from "effect/Effect";
|
|
5
5
|
import { References } from "@effect-app/infra-adapters/Openapi/atlas-plutus/Schema/index";
|
|
6
6
|
import { makeJsonSchema } from "./makeJsonSchema.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
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
|
-
import * as tsplus_module_4 from "effect/Effect
|
|
2
|
+
import * as tsplus_module_2 from "effect/impl/Exit";
|
|
3
|
+
import * as tsplus_module_3 from "effect/impl/Cause";
|
|
4
|
+
import * as tsplus_module_4 from "effect/impl/Effect";
|
|
5
5
|
import * as tsplus_module_5 from "@effect-app/core/Function";
|
|
6
6
|
import * as tsplus_module_6 from "effect/Option";
|
|
7
|
-
import * as tsplus_module_7 from "effect/Option
|
|
7
|
+
import * as tsplus_module_7 from "effect/impl/Option";
|
|
8
8
|
import * as tsplus_module_8 from "@effect-app/core/EffectX";
|
|
9
9
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
10
10
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "effect/Option";
|
|
2
2
|
import * as tsplus_module_2 from "effect/Effect";
|
|
3
|
-
import * as tsplus_module_3 from "effect/Effect
|
|
4
|
-
import * as tsplus_module_4 from "effect/Option
|
|
3
|
+
import * as tsplus_module_3 from "effect/impl/Effect";
|
|
4
|
+
import * as tsplus_module_4 from "effect/impl/Option";
|
|
5
5
|
import * as tsplus_module_5 from "@effect-app/core/OptionX";
|
|
6
6
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
7
7
|
import * as MO from "@effect-app/schema";
|
|
@@ -19,7 +19,7 @@ export declare const logRequestError: <E>(cause: Cause<E>, extras?: Record<strin
|
|
|
19
19
|
* @tsplus getter effect/io/Effect forkDaemonReportRequest
|
|
20
20
|
* @tsplus location "@effect-app/infra/api/reportError"
|
|
21
21
|
*/
|
|
22
|
-
export declare function forkDaemonReportRequest<R, E, A>(self: Effect<R, E, A>): import("effect").Effect<R, never, import("effect/Fiber
|
|
22
|
+
export declare function forkDaemonReportRequest<R, E, A>(self: Effect<R, E, A>): import("effect").Effect<R, never, import("effect/Fiber").RuntimeFiber<E, A>>;
|
|
23
23
|
/**
|
|
24
24
|
* Forks the effect into a new fiber attached to the global scope. Because the
|
|
25
25
|
* new fiber is attached to the global scope, when the fiber executing the
|
|
@@ -29,5 +29,5 @@ export declare function forkDaemonReportRequest<R, E, A>(self: Effect<R, E, A>):
|
|
|
29
29
|
* @tsplus getter effect/io/Effect forkDaemonReportRequestUnexpected
|
|
30
30
|
* @tsplus location "@effect-app/infra/api/reportError"
|
|
31
31
|
*/
|
|
32
|
-
export declare function forkDaemonReportRequestUnexpected<R, E, A>(self: Effect<R, E, A>): import("effect").Effect<R, never, import("effect/Fiber
|
|
32
|
+
export declare function forkDaemonReportRequestUnexpected<R, E, A>(self: Effect<R, E, A>): import("effect").Effect<R, never, import("effect/Fiber").RuntimeFiber<E, A>>;
|
|
33
33
|
//# sourceMappingURL=reportError.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reportError.d.ts","sourceRoot":"","sources":["../../_src/api/reportError.ts"],"names":[],"mappings":";;AACA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,qBAAa,gBAAgB,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;gBAC5C,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;CAG5B;AACD,qBAAa,kBAAkB,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;gBAC9C,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;CAG5B;AAID,eAAO,MAAM,eAAe,aAAc,MAAM,CAAC,CAAC,WAAW,OAAO,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,gDAC/D,CAAA;AAIjC,eAAO,MAAM,kBAAkB,aAAc,MAAM,CAAC,CAAC,WAAW,OAAO,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,gDAC/D,CAAA;AAIpC,eAAO,MAAM,eAAe,aAAc,MAAM,CAAC,CAAC,WAAW,OAAO,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,gDAC/D,CAAA;;;;;;;;;;AAWjC,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"reportError.d.ts","sourceRoot":"","sources":["../../_src/api/reportError.ts"],"names":[],"mappings":";;AACA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,qBAAa,gBAAgB,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;gBAC5C,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;CAG5B;AACD,qBAAa,kBAAkB,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;gBAC9C,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;CAG5B;AAID,eAAO,MAAM,eAAe,aAAc,MAAM,CAAC,CAAC,WAAW,OAAO,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,gDAC/D,CAAA;AAIjC,eAAO,MAAM,kBAAkB,aAAc,MAAM,CAAC,CAAC,WAAW,OAAO,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,gDAC/D,CAAA;AAIpC,eAAO,MAAM,eAAe,aAAc,MAAM,CAAC,CAAC,WAAW,OAAO,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,gDAC/D,CAAA;;;;;;;;;;AAWjC,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,gFAKrE;;;;;;;;;;AAWD,wBAAgB,iCAAiC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,gFAS/E"}
|
package/dist/api/reportError.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "effect/Effect
|
|
2
|
-
import * as tsplus_module_2 from "effect/Cause
|
|
1
|
+
import * as tsplus_module_1 from "effect/impl/Effect";
|
|
2
|
+
import * as tsplus_module_2 from "effect/impl/Cause";
|
|
3
3
|
import { logError, reportError } from "../errorReporter.js";
|
|
4
4
|
import { CauseException } from "../errors.js";
|
|
5
5
|
export class RequestException extends CauseException {
|
package/dist/api/routing.d.ts
CHANGED
|
@@ -94,7 +94,7 @@ export interface ReqHandler<Req, R, E, Res, ReqSchema extends MO.SchemaAny, ResS
|
|
|
94
94
|
* })
|
|
95
95
|
* ```
|
|
96
96
|
*/
|
|
97
|
-
export declare function matchResource<TModules extends Record<string, Record<string, any>>>(mod: TModules): <THandlers extends keyof TModules extends infer T extends keyof TModules ? { [K in T]: (req: InstanceType<GetRequest<TModules[K]> extends infer T_1 ? T_1 extends GetRequest<TModules[K]> ? T_1 extends new (...args: any[]) => any ? T_1 : never : never : never>) => import("effect").Effect<any, import("@effect-app/prelude/client/errors").
|
|
97
|
+
export declare function matchResource<TModules extends Record<string, Record<string, any>>>(mod: TModules): <THandlers extends keyof TModules extends infer T extends keyof TModules ? { [K in T]: (req: InstanceType<GetRequest<TModules[K]> extends infer T_1 ? T_1 extends GetRequest<TModules[K]> ? T_1 extends new (...args: any[]) => any ? T_1 : never : never : never>) => import("effect").Effect<any, import("@effect-app/prelude/client/errors").ValidationError | import("@effect-app/prelude/client/errors").NotFoundError | import("@effect-app/prelude/client/errors").InvalidStateError | import("@effect-app/prelude/client/errors").NotLoggedInError | import("@effect-app/prelude/client/errors").UnauthorizedError | import("@effect-app/prelude/client/errors").OptimisticConcurrencyException, MO.ParsedShapeOf<Extr<GetResponse<TModules[K]>>>>; } : never>(handlers: THandlers) => keyof TModules extends infer T_2 extends keyof TModules ? { [K_1 in T_2]: ReqHandler<InstanceType<GetRequest<TModules[K_1]> extends infer T_3 ? T_3 extends GetRequest<TModules[K_1]> ? T_3 extends new (...args: any[]) => any ? T_3 : never : never : never>, _R<ReturnType<THandlers[K_1]>>, _E<ReturnType<THandlers[K_1]>>, MO.ParsedShapeOf<Extr<GetResponse<TModules[K_1]>>>, GetRequest<TModules[K_1]>, GetResponse<TModules[K_1]>, any>; } : never;
|
|
98
98
|
export type ReqFromSchema<ReqSchema> = InstanceType<ReqSchema extends {
|
|
99
99
|
new (...args: any[]): any;
|
|
100
100
|
} ? ReqSchema : never>;
|
package/dist/api/routing.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "effect/FiberRef";
|
|
2
2
|
import * as tsplus_module_2 from "effect/Option";
|
|
3
|
-
import * as tsplus_module_3 from "effect/Option
|
|
3
|
+
import * as tsplus_module_3 from "effect/impl/Option";
|
|
4
4
|
import * as tsplus_module_4 from "effect/Effect";
|
|
5
5
|
import * as tsplus_module_5 from "@effect-app/core/EffectX";
|
|
6
|
-
import * as tsplus_module_6 from "effect/Effect
|
|
6
|
+
import * as tsplus_module_6 from "effect/impl/Effect";
|
|
7
7
|
import * as tsplus_module_7 from "@effect-app/schema/ext";
|
|
8
8
|
import * as tsplus_module_8 from "@effect-app/prelude/utils";
|
|
9
|
-
import * as tsplus_module_9 from "effect/FiberRef
|
|
9
|
+
import * as tsplus_module_9 from "effect/impl/FiberRef";
|
|
10
10
|
import * as tsplus_module_10 from "@effect-app/core/OptionX";
|
|
11
11
|
import * as tsplus_module_11 from "@effect-app/infra/api/setupRequest";
|
|
12
12
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
@@ -4,10 +4,10 @@ import { RequestContextContainer } from "../services/RequestContextContainer.js"
|
|
|
4
4
|
* @tsplus fluent effect/io/Effect setupRequestFromWith
|
|
5
5
|
* @tsplus location "@effect-app/infra/api/setupRequest"
|
|
6
6
|
*/
|
|
7
|
-
export declare function setupReq3<R, E, A>(self: Effect<R, E, A>, name: string): import("effect").Effect<Exclude<Exclude<R, import("effect/Tracer
|
|
7
|
+
export declare function setupReq3<R, E, A>(self: Effect<R, E, A>, name: string): import("effect").Effect<Exclude<Exclude<R, import("effect/Tracer").ParentSpan>, RequestContextContainer>, E, A>;
|
|
8
8
|
/**
|
|
9
9
|
* @tsplus getter effect/io/Effect withRequestSpan
|
|
10
10
|
* @tsplus location "@effect-app/infra/api/setupRequest"
|
|
11
11
|
*/
|
|
12
|
-
export declare const withRequestSpan: <R, E, A>(f: Effect<R, E, A>) => import("effect").Effect<RequestContextContainer | Exclude<R, import("effect/Tracer
|
|
12
|
+
export declare const withRequestSpan: <R, E, A>(f: Effect<R, E, A>) => import("effect").Effect<RequestContextContainer | Exclude<R, import("effect/Tracer").ParentSpan>, E, A>;
|
|
13
13
|
//# sourceMappingURL=setupRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setupRequest.d.ts","sourceRoot":"","sources":["../../_src/api/setupRequest.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,uBAAuB,EAA+B,MAAM,wCAAwC,CAAA;;;;;AAK7G,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"setupRequest.d.ts","sourceRoot":"","sources":["../../_src/api/setupRequest.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,uBAAuB,EAA+B,MAAM,wCAAwC,CAAA;;;;;AAK7G,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,mHAMrE;;;;;AAeD,eAAO,MAAM,eAAe,eAAgB,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,4GAKxD,CAAA"}
|
package/dist/api/setupRequest.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "effect/Effect
|
|
1
|
+
import * as tsplus_module_1 from "effect/impl/Effect";
|
|
2
2
|
import * as tsplus_module_2 from "@effect-app/prelude/schema";
|
|
3
3
|
import * as tsplus_module_3 from "effect/Effect";
|
|
4
4
|
import { RequestId } from "@effect-app/prelude/ids";
|
package/dist/api/writeDocs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "effect/Effect";
|
|
2
|
-
import * as tsplus_module_2 from "effect/Effect
|
|
2
|
+
import * as tsplus_module_2 from "effect/impl/Effect";
|
|
3
3
|
import * as tsplus_module_3 from "effect/Order";
|
|
4
|
-
import * as tsplus_module_4 from "effect/Order
|
|
5
|
-
import * as tsplus_module_5 from "effect/ReadonlyArray
|
|
4
|
+
import * as tsplus_module_4 from "effect/impl/Order";
|
|
5
|
+
import * as tsplus_module_5 from "effect/impl/ReadonlyArray";
|
|
6
6
|
import { typedValuesOf } from "@effect-app/core/utils";
|
|
7
7
|
import { writeTextFile } from "@effect-app/infra-adapters/fileUtil";
|
|
8
8
|
import * as Plutus from "@effect-app/infra-adapters/Openapi/atlas-plutus";
|
package/dist/errorReporter.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "effect/Cause
|
|
1
|
+
import * as tsplus_module_1 from "effect/impl/Cause";
|
|
2
2
|
import * as tsplus_module_2 from "effect/Effect";
|
|
3
|
-
import * as tsplus_module_3 from "effect/Effect
|
|
3
|
+
import * as tsplus_module_3 from "effect/impl/Effect";
|
|
4
4
|
import * as tsplus_module_4 from "@effect-app/core/OptionX";
|
|
5
5
|
import * as Sentry from "@sentry/node";
|
|
6
6
|
import { RequestContextContainer } from "./services/RequestContextContainer.js";
|
package/dist/errors.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Data } from "effect/Data";
|
|
2
2
|
import { Cause } from "effect/Cause";
|
|
3
|
-
declare const NotFoundError_base: new <A extends Record<string, any>>(args: import("effect/Types
|
|
3
|
+
declare const NotFoundError_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect").Equal ? never : P]: A[P]; }) => import("effect/Data").YieldableError & {
|
|
4
4
|
readonly _tag: "NotFoundError";
|
|
5
5
|
} & Readonly<A>;
|
|
6
6
|
export declare class NotFoundError<T extends string = string> extends NotFoundError_base<{
|
|
@@ -13,24 +13,24 @@ export declare class NotFoundError<T extends string = string> extends NotFoundEr
|
|
|
13
13
|
readonly id: string;
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
declare const ValidationError_base: new <A extends Record<string, any>>(args: import("effect/Types
|
|
16
|
+
declare const ValidationError_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect").Equal ? never : P]: A[P]; }) => import("effect/Data").YieldableError & {
|
|
17
17
|
readonly _tag: "ValidationError";
|
|
18
18
|
} & Readonly<A>;
|
|
19
19
|
export declare class ValidationError extends ValidationError_base<{
|
|
20
20
|
errors: ReadonlyArray<unknown>;
|
|
21
21
|
}> {
|
|
22
22
|
}
|
|
23
|
-
declare const NotLoggedInError_base: new <A extends Record<string, any>>(args: import("effect/Types
|
|
23
|
+
declare const NotLoggedInError_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect").Equal ? never : P]: A[P]; }) => import("effect/Data").YieldableError & {
|
|
24
24
|
readonly _tag: "NotLoggedInError";
|
|
25
25
|
} & Readonly<A>;
|
|
26
26
|
export declare class NotLoggedInError extends NotLoggedInError_base<{}> {
|
|
27
27
|
}
|
|
28
|
-
declare const UnauthorizedError_base: new <A extends Record<string, any>>(args: import("effect/Types
|
|
28
|
+
declare const UnauthorizedError_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect").Equal ? never : P]: A[P]; }) => import("effect/Data").YieldableError & {
|
|
29
29
|
readonly _tag: "UnauthorizedError";
|
|
30
30
|
} & Readonly<A>;
|
|
31
31
|
export declare class UnauthorizedError extends UnauthorizedError_base<{}> {
|
|
32
32
|
}
|
|
33
|
-
declare const LoginError_base: new <A extends Record<string, any>>(args: import("effect/Types
|
|
33
|
+
declare const LoginError_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect").Equal ? never : P]: A[P]; }) => import("effect/Data").YieldableError & {
|
|
34
34
|
readonly _tag: "NotLoggeInError";
|
|
35
35
|
} & Readonly<A>;
|
|
36
36
|
/**
|
|
@@ -41,7 +41,7 @@ export declare class LoginError extends LoginError_base<{
|
|
|
41
41
|
}> {
|
|
42
42
|
constructor(message: string);
|
|
43
43
|
}
|
|
44
|
-
declare const InvalidStateError_base: new <A extends Record<string, any>>(args: import("effect/Types
|
|
44
|
+
declare const InvalidStateError_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect").Equal ? never : P]: A[P]; }) => import("effect/Data").YieldableError & {
|
|
45
45
|
readonly _tag: "InvalidStateError";
|
|
46
46
|
} & Readonly<A>;
|
|
47
47
|
export declare class InvalidStateError extends InvalidStateError_base<{
|
|
@@ -62,7 +62,7 @@ export declare class CauseException<E> extends Error {
|
|
|
62
62
|
};
|
|
63
63
|
toString(): string;
|
|
64
64
|
}
|
|
65
|
-
declare const OptimisticConcurrencyException_base: new <A extends Record<string, any>>(args: import("effect/Types
|
|
65
|
+
declare const OptimisticConcurrencyException_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect").Equal ? never : P]: A[P]; }) => import("effect/Data").YieldableError & {
|
|
66
66
|
readonly _tag: "OptimisticConcurrencyException";
|
|
67
67
|
} & Readonly<A>;
|
|
68
68
|
export declare class OptimisticConcurrencyException extends OptimisticConcurrencyException_base<{
|
package/dist/instrument.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import { Effect } from "effect/Effect";
|
|
|
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("effect").Effect<Exclude<R, import("effect/Tracer
|
|
6
|
+
export declare function instr<R, E, A>(self: Effect<R, E, A>, name: string, properties?: Record<string, string>): import("effect").Effect<Exclude<R, import("effect/Tracer").ParentSpan>, 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,iFAOtG"}
|
package/dist/instrument.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "@effect-app/prelude/utils";
|
|
2
2
|
import * as tsplus_module_2 from "effect/Effect";
|
|
3
|
-
import * as tsplus_module_3 from "effect/Effect
|
|
3
|
+
import * as tsplus_module_3 from "effect/impl/Effect";
|
|
4
4
|
/**
|
|
5
5
|
* @tsplus fluent effect/io/Effect instrument
|
|
6
6
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "effect/FiberId
|
|
1
|
+
import * as tsplus_module_1 from "effect/impl/FiberId";
|
|
2
2
|
import * as tsplus_module_2 from "@effect-app/core/OptionX";
|
|
3
3
|
import * as tsplus_module_3 from "effect/Cause";
|
|
4
|
-
import * as tsplus_module_4 from "effect/Cause
|
|
5
|
-
import * as tsplus_module_5 from "effect/List
|
|
6
|
-
import * as tsplus_module_6 from "effect/HashMap
|
|
4
|
+
import * as tsplus_module_4 from "effect/impl/Cause";
|
|
5
|
+
import * as tsplus_module_5 from "effect/impl/List";
|
|
6
|
+
import * as tsplus_module_6 from "effect/impl/HashMap";
|
|
7
7
|
import * as tsplus_module_7 from "effect/Logger";
|
|
8
8
|
import { getRequestContext } from "./shared.js";
|
|
9
9
|
export const jsonLogger = tsplus_module_7.Logger.make(({ annotations, cause, context, fiberId, logLevel, message, spans }) => {
|
package/dist/logger/shared.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
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
|
|
2
|
+
import * as tsplus_module_2 from "effect/impl/Context";
|
|
3
|
+
import * as tsplus_module_3 from "effect/impl/Effect";
|
|
4
|
+
import * as tsplus_module_4 from "effect/impl/Option";
|
|
5
5
|
import * as FiberRefs from "effect/FiberRefs";
|
|
6
6
|
import { RequestContextContainer } from "../services/RequestContextContainer.js";
|
|
7
7
|
export function getRequestContext(context) {
|
package/dist/rateLimit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "effect/Effect
|
|
1
|
+
import * as tsplus_module_1 from "effect/impl/Effect";
|
|
2
2
|
import * as tsplus_module_2 from "effect/Effect";
|
|
3
3
|
import * as tsplus_module_3 from "@effect-app/core/_ext/Iterable";
|
|
4
4
|
import * as tsplus_module_4 from "@effect-app/core/Array";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "effect/ConfigSecret
|
|
1
|
+
import * as tsplus_module_1 from "effect/impl/ConfigSecret";
|
|
2
2
|
import * as tsplus_module_2 from "effect/Effect";
|
|
3
|
-
import * as tsplus_module_3 from "effect/Effect
|
|
4
|
-
import * as tsplus_module_4 from "effect/Layer
|
|
3
|
+
import * as tsplus_module_3 from "effect/impl/Effect";
|
|
4
|
+
import * as tsplus_module_4 from "effect/impl/Layer";
|
|
5
5
|
import * as tsplus_module_5 from "effect/Equivalence";
|
|
6
|
-
import * as tsplus_module_6 from "effect/Equivalence
|
|
6
|
+
import * as tsplus_module_6 from "effect/impl/Equivalence";
|
|
7
7
|
import * as tsplus_module_7 from "@effect-app/core/_ext/ord.ext";
|
|
8
8
|
import * as tsplus_module_8 from "@effect-app/core/Array";
|
|
9
9
|
import sgMail from "@sendgrid/mail";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "effect/Effect";
|
|
2
|
-
import * as tsplus_module_2 from "effect/Effect
|
|
3
|
-
import * as tsplus_module_3 from "effect/Layer
|
|
2
|
+
import * as tsplus_module_2 from "effect/impl/Effect";
|
|
3
|
+
import * as tsplus_module_3 from "effect/impl/Layer";
|
|
4
4
|
import { pretty } from "@effect-app/prelude/utils";
|
|
5
5
|
import { Emailer } from "./service.js";
|
|
6
6
|
const makeFake = tsplus_module_2.map(tsplus_module_1.Effect.logDebug("FAKE Emailer Service enabled"), () => ({
|
|
@@ -11,7 +11,7 @@ declare const Emailer_base: (abstract new () => {}) & {
|
|
|
11
11
|
flatMap<R1, E1, B>(f: (a: Emailer) => import("effect").Effect<R1, E1, B>): import("effect").Effect<Emailer | R1, E1, B>;
|
|
12
12
|
map<B_1>(f: (a: Emailer) => B_1): import("effect").Effect<Emailer, never, B_1>;
|
|
13
13
|
makeLayer(svc: Emailer): import("effect").Layer<never, never, Emailer>;
|
|
14
|
-
} & import("effect/Context
|
|
14
|
+
} & import("effect/Context").Tag<Emailer, Emailer>;
|
|
15
15
|
/**
|
|
16
16
|
* @tsplus type Emailer
|
|
17
17
|
* @tsplus companion Emailer.Ops
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "effect/Effect";
|
|
2
2
|
import * as tsplus_module_2 from "@effect-app/prelude/_ext/date";
|
|
3
3
|
import * as tsplus_module_3 from "effect/Option";
|
|
4
|
-
import * as tsplus_module_4 from "effect/Option
|
|
4
|
+
import * as tsplus_module_4 from "effect/impl/Option";
|
|
5
5
|
import * as tsplus_module_5 from "@effect-app/core/Array";
|
|
6
|
-
import * as tsplus_module_6 from "effect/Chunk
|
|
7
|
-
import * as tsplus_module_7 from "effect/Exit
|
|
8
|
-
import * as tsplus_module_8 from "effect/Cause
|
|
6
|
+
import * as tsplus_module_6 from "effect/impl/Chunk";
|
|
7
|
+
import * as tsplus_module_7 from "effect/impl/Exit";
|
|
8
|
+
import * as tsplus_module_8 from "effect/impl/Cause";
|
|
9
9
|
import * as tsplus_module_9 from "@effect-app/prelude/schema";
|
|
10
10
|
import * as tsplus_module_10 from "@effect-app/core/OptionX";
|
|
11
|
-
import * as tsplus_module_11 from "effect/Effect
|
|
11
|
+
import * as tsplus_module_11 from "effect/impl/Effect";
|
|
12
12
|
import * as tsplus_module_12 from "@effect-app/core/EffectX";
|
|
13
13
|
import * as tsplus_module_13 from "effect/Duration";
|
|
14
14
|
import * as tsplus_module_14 from "effect/Schedule";
|
|
15
|
-
import * as tsplus_module_15 from "effect/Layer
|
|
15
|
+
import * as tsplus_module_15 from "effect/impl/Layer";
|
|
16
16
|
import { RequestException } from "@effect-app/infra/api/reportError";
|
|
17
17
|
import { reportError } from "@effect-app/infra/errorReporter";
|
|
18
18
|
import { Failure, Operation, OperationId, Success } from "@effect-app/prelude/Operations";
|
|
@@ -10,7 +10,7 @@ declare const Operations_base: (abstract new () => {}) & {
|
|
|
10
10
|
flatMap<R1, E1, B>(f: (a: Operations) => import("effect").Effect<R1, E1, B>): import("effect").Effect<OperationsId | R1, E1, B>;
|
|
11
11
|
map<B_1>(f: (a: Operations) => B_1): import("effect").Effect<OperationsId, never, B_1>;
|
|
12
12
|
makeLayer(svc: Operations): import("effect").Layer<never, never, Operations>;
|
|
13
|
-
} & import("effect/Context
|
|
13
|
+
} & import("effect/Context").Tag<OperationsId, Operations>;
|
|
14
14
|
/**
|
|
15
15
|
* @tsplus type Operations
|
|
16
16
|
* @tsplus companion Operations.Ops
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "@effect-app/prelude/service";
|
|
2
|
-
import * as tsplus_module_2 from "effect/Scope
|
|
2
|
+
import * as tsplus_module_2 from "effect/impl/Scope";
|
|
3
3
|
import * as tsplus_module_3 from "@effect-app/infra/api/reportError";
|
|
4
|
-
import * as tsplus_module_4 from "effect/Effect
|
|
4
|
+
import * as tsplus_module_4 from "effect/impl/Effect";
|
|
5
5
|
export const forkOperation = forkOperation_1;
|
|
6
6
|
import * as Scope from "effect/Scope";
|
|
7
7
|
/**
|
|
@@ -18,7 +18,7 @@ export declare const reportQueueError: <E>(cause: Cause<E>, extras?: Record<stri
|
|
|
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("effect").Effect<R, never, import("effect/Fiber
|
|
21
|
+
export declare function forkDaemonReportQueue<R, E, A>(self: Effect<R, E, A>): import("effect").Effect<R, never, import("effect/Fiber").RuntimeFiber<E, A>>;
|
|
22
22
|
export declare const reportFatalQueueError: (cause: import("effect").Cause<unknown>, extras?: Record<string, unknown> | undefined) => import("effect").Effect<never, never, void>;
|
|
23
23
|
export declare function reportNonInterruptedFailure(context?: Record<string, unknown>): <R, E, A>(inp: Effect<R, E, A>) => Effect<R, never, Exit<E, A>>;
|
|
24
24
|
export declare function reportNonInterruptedFailureCause(context?: Record<string, unknown>): <E>(cause: Cause<E>) => Effect<never, never, void>;
|
|
@@ -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,aAAc,MAAM,CAAC,CAAC,WAAW,OAAO,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,gDAC/D,CAAA;;;;;;;;;;AAWlC,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,
|
|
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,aAAc,MAAM,CAAC,CAAC,WAAW,OAAO,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,gDAC/D,CAAA;;;;;;;;;;AAWlC,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,gFAEnE;AAED,eAAO,MAAM,qBAAqB,uIAEjC,CAAA;AAED,wBAAgB,2BAA2B,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,kBAErD,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAG,OAAO,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAQrE;AAED,wBAAgB,gCAAgC,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,cAC9D,MAAM,CAAC,CAAC,KAAG,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAMxD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as tsplus_module_1 from "effect/Effect
|
|
1
|
+
import * as tsplus_module_1 from "effect/impl/Effect";
|
|
2
2
|
import * as tsplus_module_2 from "effect/Effect";
|
|
3
|
-
import * as tsplus_module_3 from "effect/Exit
|
|
4
|
-
import * as tsplus_module_4 from "effect/Cause
|
|
3
|
+
import * as tsplus_module_3 from "effect/impl/Exit";
|
|
4
|
+
import * as tsplus_module_4 from "effect/impl/Cause";
|
|
5
5
|
import { reportError } from "@effect-app/infra/errorReporter";
|
|
6
6
|
import { CauseException } from "@effect-app/infra/errors";
|
|
7
7
|
export class MessageException extends CauseException {
|
|
@@ -18,7 +18,7 @@ export declare function makeMemQueue<DrainR, Evt, DrainEvt extends {
|
|
|
18
18
|
body: DrainEvt;
|
|
19
19
|
meta: RequestContext;
|
|
20
20
|
}>): import("effect").Effect<MemQueue, never, {
|
|
21
|
-
publish: (messages_0: Evt, ...messages_1: Evt[]) => import("effect").Effect<RequestContextContainer, never, import("effect/Fiber
|
|
22
|
-
drain: import("effect").Effect<import("effect").Scope | DrainR, never, import("effect/Fiber
|
|
21
|
+
publish: (messages_0: Evt, ...messages_1: Evt[]) => import("effect").Effect<RequestContextContainer, never, import("effect/Fiber").RuntimeFiber<never, void[]>>;
|
|
22
|
+
drain: import("effect").Effect<import("effect").Scope | DrainR, never, import("effect/Fiber").RuntimeFiber<never, never>>;
|
|
23
23
|
}>;
|
|
24
24
|
//# sourceMappingURL=memQueue.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "effect/Effect";
|
|
2
|
-
import * as tsplus_module_2 from "effect/Effect
|
|
2
|
+
import * as tsplus_module_2 from "effect/impl/Effect";
|
|
3
3
|
import * as tsplus_module_3 from "@effect-app/core/_ext/Iterable";
|
|
4
4
|
import * as tsplus_module_4 from "@effect-app/infra/services/QueueMaker/errors";
|
|
5
5
|
import * as tsplus_module_5 from "@effect-app/prelude/utils";
|
|
6
6
|
import * as tsplus_module_6 from "@effect-app/prelude/schema";
|
|
7
|
-
import * as tsplus_module_7 from "effect/Fiber
|
|
7
|
+
import * as tsplus_module_7 from "effect/impl/Fiber";
|
|
8
8
|
import { MemQueue } from "@effect-app/infra-adapters/memQueue";
|
|
9
9
|
import { RequestContext } from "@effect-app/infra/RequestContext";
|
|
10
10
|
import { RequestId } from "@effect-app/prelude/ids";
|