@effect-app/infra 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/_cjs/api/codec.cjs +1 -1
- package/_cjs/api/defaultErrorHandler.cjs +1 -1
- package/_cjs/api/express/makeJsonSchema.cjs +1 -1
- package/_cjs/api/express/makeOpenApiSpecs.cjs +1 -1
- package/_cjs/api/express/schema/requestHandler.cjs +1 -1
- package/_cjs/api/express/schema/routing.cjs +1 -1
- package/_cjs/api/reportError.cjs +1 -1
- package/_cjs/api/routing.cjs +1 -1
- package/_cjs/api/setupRequest.cjs +1 -1
- package/_cjs/api/writeDocs.cjs +1 -1
- package/_cjs/errorReporter.cjs +1 -1
- package/_cjs/instrument.cjs +1 -1
- package/_cjs/rateLimit.cjs +1 -1
- package/_cjs/services/Emailer/Sendgrid.cjs +1 -1
- package/_cjs/services/Emailer/fake.cjs +1 -1
- package/_cjs/services/Repository.cjs +1 -1
- package/_cjs/services/Store/Cosmos.cjs +1 -1
- package/_cjs/services/Store/Disk.cjs +1 -1
- package/_cjs/services/Store/Memory.cjs +1 -1
- package/_cjs/services/Store/Redis.cjs +1 -1
- package/_cjs/services/Store/index.cjs +1 -1
- package/_cjs/services/Store/service.cjs +1 -1
- package/_cjs/services/Store/utils.cjs +1 -1
- package/_cjs/services/simpledb/cosmosdb.cjs +1 -1
- package/_cjs/services/simpledb/diskdb.cjs +1 -1
- package/_cjs/services/simpledb/memdb.cjs +1 -1
- package/_cjs/services/simpledb/mongodb.cjs +1 -1
- package/_cjs/services/simpledb/redisdb.cjs +1 -1
- package/_cjs/services/simpledb/shared.cjs +1 -1
- package/_cjs/services/simpledb/simpledb.cjs +1 -1
- package/dist/api/codec.js +1 -1
- package/dist/api/defaultErrorHandler.js +1 -1
- package/dist/api/express/makeJsonSchema.js +1 -1
- package/dist/api/express/makeOpenApiSpecs.d.ts +1 -1
- package/dist/api/express/makeOpenApiSpecs.js +1 -1
- package/dist/api/express/schema/requestHandler.js +1 -1
- package/dist/api/express/schema/routing.js +1 -1
- package/dist/api/reportError.js +1 -1
- package/dist/api/routing.js +1 -1
- package/dist/api/setupRequest.js +1 -1
- package/dist/api/writeDocs.js +1 -1
- package/dist/errorReporter.js +1 -1
- package/dist/instrument.js +1 -1
- package/dist/rateLimit.js +1 -1
- package/dist/services/Emailer/Sendgrid.js +1 -1
- package/dist/services/Emailer/fake.js +1 -1
- package/dist/services/Repository.d.ts +7 -7
- package/dist/services/Repository.js +1 -1
- package/dist/services/Store/Cosmos.js +1 -1
- package/dist/services/Store/Disk.js +1 -1
- package/dist/services/Store/Memory.js +1 -1
- package/dist/services/Store/Redis.js +1 -1
- package/dist/services/Store/index.js +1 -1
- package/dist/services/Store/service.js +1 -1
- package/dist/services/Store/utils.js +1 -1
- package/dist/services/simpledb/cosmosdb.d.ts +2 -2
- package/dist/services/simpledb/cosmosdb.js +1 -1
- package/dist/services/simpledb/diskdb.d.ts +2 -2
- package/dist/services/simpledb/diskdb.js +1 -1
- package/dist/services/simpledb/memdb.d.ts +2 -2
- package/dist/services/simpledb/memdb.js +1 -1
- package/dist/services/simpledb/mongodb.d.ts +2 -2
- package/dist/services/simpledb/mongodb.js +1 -1
- package/dist/services/simpledb/redisdb.d.ts +2 -2
- package/dist/services/simpledb/redisdb.js +1 -1
- package/dist/services/simpledb/shared.js +1 -1
- package/dist/services/simpledb/simpledb.d.ts +3 -3
- package/dist/services/simpledb/simpledb.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @effect-app/infra
|
|
2
2
|
|
|
3
|
+
## 0.12.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [5ee19e1e]
|
|
8
|
+
- @effect-app/prelude@0.11.1
|
|
9
|
+
- @effect-app/core@0.11.1
|
|
10
|
+
- @effect-app/infra-adapters@0.11.1
|
|
11
|
+
- @effect-app/schema@0.11.1
|
|
12
|
+
|
|
3
13
|
## 0.12.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
package/_cjs/api/codec.cjs
CHANGED
|
@@ -10,7 +10,7 @@ var tsplus_module_2 = _interopRequireWildcard(require("@effect-app/core/fluent/_
|
|
|
10
10
|
var MO = _interopRequireWildcard(require("@effect-app/schema"));
|
|
11
11
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
-
const fileName_1 = "
|
|
13
|
+
const fileName_1 = "_src/api/codec.ts";
|
|
14
14
|
function makeCodec(self) {
|
|
15
15
|
const parse = MO.condemnDie(MO.Parser.for(self));
|
|
16
16
|
// TODO: strict
|
|
@@ -13,7 +13,7 @@ var tsplus_module_4 = _interopRequireWildcard(require("@effect/io/Schedule"));
|
|
|
13
13
|
var _reportError = require("./reportError.cjs");
|
|
14
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
15
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
|
-
const fileName_1 = "
|
|
16
|
+
const fileName_1 = "_src/api/defaultErrorHandler.ts";
|
|
17
17
|
function defaultBasicErrorHandler(_req, res, _requestContext, r2) {
|
|
18
18
|
return tracer_1.withCallTrace(fileName_1 + ":26:6")(tsplus_module_1.catchAll(err => tracer_1.withCallTrace(fileName_1 + ":31:10")(tsplus_module_1.flatMap(tsplus_module_1.die))(tracer_1.withCallTrace(fileName_1 + ":30:10")(tsplus_module_1.map(() => err))(tracer_1.withCallTrace(fileName_1 + ":27:14")(tsplus_module_1.logError("Program error, compiler probably silenced, got an unsupported Error in Error Channel of Effect" + err))))))(tracer_1.withCallTrace(fileName_1 + ":21:6")(tsplus_module_1.catchTag("ValidationError", err => tracer_1.withCallTrace(fileName_1 + ":22:7")(tsplus_module_1.sync(() => {
|
|
19
19
|
res.status(400).send(err.errors);
|
|
@@ -11,7 +11,7 @@ var tsplus_module_3 = _interopRequireWildcard(require("@effect/io/Effect"));
|
|
|
11
11
|
var RS = _interopRequireWildcard(require("./schema/routing.cjs"));
|
|
12
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
|
-
const fileName_1 = "
|
|
14
|
+
const fileName_1 = "_src/api/express/makeJsonSchema.ts";
|
|
15
15
|
const rx = /:(\w+)/g;
|
|
16
16
|
/**
|
|
17
17
|
* Work in progress JSONSchema generator.
|
|
@@ -11,7 +11,7 @@ var _index = require("@effect-app/infra-adapters/Openapi/atlas-plutus/Schema/ind
|
|
|
11
11
|
var _makeJsonSchema = require("./makeJsonSchema.cjs");
|
|
12
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
|
-
const fileName_1 = "
|
|
14
|
+
const fileName_1 = "_src/api/express/makeOpenApiSpecs.ts";
|
|
15
15
|
function makeOpenApiSpecs(rdescs, info) {
|
|
16
16
|
return tracer_1.withCallTrace(fileName_1 + ":12:17")(tsplus_module_2.gen(function* ($) {
|
|
17
17
|
const ref = yield* $(tracer_1.withCallTrace(fileName_1 + ":13:30")(tsplus_module_1.make(new Map())));
|
|
@@ -18,7 +18,7 @@ var MO = _interopRequireWildcard(require("@effect-app/schema"));
|
|
|
18
18
|
var _errors = require("../../../errors.cjs");
|
|
19
19
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
20
20
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
-
const fileName_1 = "
|
|
21
|
+
const fileName_1 = "_src/api/express/schema/requestHandler.ts";
|
|
22
22
|
// function getErrorMessage(current: ContextEntry) {
|
|
23
23
|
// switch (current.type.name) {
|
|
24
24
|
// case "NonEmptyString":
|
|
@@ -16,7 +16,7 @@ var _atlasPlutus = require("@effect-app/infra-adapters/Openapi/atlas-plutus");
|
|
|
16
16
|
var OpenApi = _interopRequireWildcard(require("@effect-app/infra-adapters/Openapi/index"));
|
|
17
17
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
18
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
-
const fileName_1 = "
|
|
19
|
+
const fileName_1 = "_src/api/express/schema/routing.ts";
|
|
20
20
|
function asRouteDescriptionAny(i) {
|
|
21
21
|
return i;
|
|
22
22
|
}
|
package/_cjs/api/reportError.cjs
CHANGED
|
@@ -16,7 +16,7 @@ var _errors = require("../errors.cjs");
|
|
|
16
16
|
require("../RequestContext.cjs");
|
|
17
17
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
18
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
-
const fileName_1 = "
|
|
19
|
+
const fileName_1 = "_src/api/reportError.ts";
|
|
20
20
|
class RequestException extends _errors.CauseException {
|
|
21
21
|
constructor(cause) {
|
|
22
22
|
super(cause, "Request");
|
package/_cjs/api/routing.cjs
CHANGED
|
@@ -31,7 +31,7 @@ var _reportError = require("./reportError.cjs");
|
|
|
31
31
|
var _util = require("./util.cjs");
|
|
32
32
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
33
33
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
34
|
-
const fileName_1 = "
|
|
34
|
+
const fileName_1 = "_src/api/routing.ts";
|
|
35
35
|
function makeRequestParsers(Request) {
|
|
36
36
|
const ph = tracer_1.withCallTrace(fileName_1 + ":43:14")(tsplus_module_2.sync(() => tsplus_module_1.map(MO.condemnFail)(tsplus_module_1.map(MO.Parser.for)(tsplus_module_1.map(s => s)(tsplus_module_1.fromNullable(Request.Headers))))));
|
|
37
37
|
const parseHeaders = u => tracer_1.withCallTrace(fileName_1 + ":49:43")(tsplus_module_3.flatMapOpt(ph, d => d(u)));
|
|
@@ -13,7 +13,7 @@ var tsplus_module_4 = _interopRequireWildcard(require("@effect-app/infra/Request
|
|
|
13
13
|
require("../RequestContext.cjs");
|
|
14
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
15
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
|
-
const fileName_1 = "
|
|
16
|
+
const fileName_1 = "_src/api/setupRequest.ts";
|
|
17
17
|
const setupRequest = setupRequest_1;
|
|
18
18
|
exports.setupRequest = setupRequest;
|
|
19
19
|
/**
|
package/_cjs/api/writeDocs.cjs
CHANGED
|
@@ -15,7 +15,7 @@ var Plutus = _interopRequireWildcard(require("@effect-app/infra-adapters/Openapi
|
|
|
15
15
|
var _makeOpenApiSpecs = require("./express/makeOpenApiSpecs.cjs");
|
|
16
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
17
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
18
|
-
const fileName_1 = "
|
|
18
|
+
const fileName_1 = "_src/api/writeDocs.ts";
|
|
19
19
|
function writeOpenapiDocs(rdescs) {
|
|
20
20
|
return tracer_1.withCallTrace(fileName_1 + ":24:6")(tsplus_module_1.flatMap(() => tracer_1.withCallTrace(fileName_1 + ":24:27")(tsplus_module_1.logInfo("OpenAPI spec written to './openapi.json'"))))(tracer_1.withCallTrace(fileName_1 + ":23:6")(tsplus_module_1.flatMap(_ => tsplus_module_1.orDie((0, _fileUtil.writeTextFile)("./openapi.json", JSON.stringify(_, undefined, 2)))))(tracer_1.withCallTrace(fileName_1 + ":17:6")(tsplus_module_1.map(_ => ({
|
|
21
21
|
..._,
|
package/_cjs/errorReporter.cjs
CHANGED
|
@@ -15,7 +15,7 @@ var tsplus_module_3 = _interopRequireWildcard(require("@effect/io/Effect"));
|
|
|
15
15
|
var Sentry = _interopRequireWildcard(require("@sentry/node"));
|
|
16
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
17
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
18
|
-
const fileName_1 = "
|
|
18
|
+
const fileName_1 = "_src/errorReporter.ts";
|
|
19
19
|
function reportError(makeError) {
|
|
20
20
|
return (cause, context) => tracer_1.withCallTrace(fileName_1 + ":8:12")(tsplus_module_3.gen(function* ($) {
|
|
21
21
|
if (tsplus_module_1.isInterrupted(cause)) {
|
package/_cjs/instrument.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var tsplus_module_1 = _interopRequireWildcard(require("@effect-app/prelude/utils
|
|
|
9
9
|
var tsplus_module_2 = _interopRequireWildcard(require("@effect/io/Effect"));
|
|
10
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
|
-
const fileName_1 = "
|
|
12
|
+
const fileName_1 = "_src/instrument.ts";
|
|
13
13
|
/**
|
|
14
14
|
* @tsplus fluent effect/io/Effect instrument
|
|
15
15
|
*/
|
package/_cjs/rateLimit.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var tsplus_module_2 = _interopRequireWildcard(require("@effect-app/core/Array"))
|
|
|
13
13
|
var tsplus_module_3 = _interopRequireWildcard(require("@effect-app/core/Effect"));
|
|
14
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
15
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
|
-
const fileName_1 = "
|
|
16
|
+
const fileName_1 = "_src/rateLimit.ts";
|
|
17
17
|
// /**
|
|
18
18
|
// * Executes the specified effect, acquiring the specified number of permits
|
|
19
19
|
// * immediately before the effect begins execution and releasing them
|
|
@@ -19,7 +19,7 @@ var _service = require("./service.cjs");
|
|
|
19
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
21
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
22
|
-
const fileName_1 = "
|
|
22
|
+
const fileName_1 = "_src/services/Emailer/Sendgrid.ts";
|
|
23
23
|
const makeLiveSendgrid = ({
|
|
24
24
|
apiKey,
|
|
25
25
|
defaultFrom,
|
|
@@ -11,7 +11,7 @@ var _utils = require("@effect-app/prelude/utils");
|
|
|
11
11
|
var _service = require("./service.cjs");
|
|
12
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
|
-
const fileName_1 = "
|
|
14
|
+
const fileName_1 = "_src/services/Emailer/fake.ts";
|
|
15
15
|
const makeFake = tracer_1.withCallTrace(fileName_1 + ":5:4")(tsplus_module_1.map(() => ({
|
|
16
16
|
sendMail(msg) {
|
|
17
17
|
return tracer_1.withCallTrace(fileName_1 + ":7:48")(tsplus_module_1.logAnnotate("msg", (0, _utils.pretty)(msg)))(tracer_1.withCallTrace(fileName_1 + ":7:21")(tsplus_module_1.logDebug(`Fake send mail`)));
|
|
@@ -37,7 +37,7 @@ var _errors = require("../errors.cjs");
|
|
|
37
37
|
var _Store = require("../services/Store.cjs");
|
|
38
38
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
39
39
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
40
|
-
const fileName_1 = "
|
|
40
|
+
const fileName_1 = "_src/services/Repository.ts";
|
|
41
41
|
const get = get_1;
|
|
42
42
|
exports.get = get;
|
|
43
43
|
const projectEffect = projectEffect_1;
|
|
@@ -27,7 +27,7 @@ var _errors = require("../../errors.cjs");
|
|
|
27
27
|
var _service = require("./service.cjs");
|
|
28
28
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
29
29
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
30
|
-
const fileName_1 = "
|
|
30
|
+
const fileName_1 = "_src/services/Store/Cosmos.ts";
|
|
31
31
|
// TODO: Retry operation when running into RU limit.
|
|
32
32
|
function makeCosmosStore({
|
|
33
33
|
prefix
|
|
@@ -16,7 +16,7 @@ var _service = require("./service.cjs");
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
18
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
-
const fileName_1 = "
|
|
19
|
+
const fileName_1 = "_src/services/Store/Disk.ts";
|
|
20
20
|
/**
|
|
21
21
|
* The Disk-backed store, flushes writes in background, but keeps the data in memory
|
|
22
22
|
* and should therefore be as fast as the Memory Store.
|
|
@@ -18,7 +18,7 @@ var _service = require("./service.cjs");
|
|
|
18
18
|
var _utils = require("./utils.cjs");
|
|
19
19
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
20
20
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
-
const fileName_1 = "
|
|
21
|
+
const fileName_1 = "_src/services/Store/Memory.ts";
|
|
22
22
|
function memFilter(filter, cursor) {
|
|
23
23
|
return c => {
|
|
24
24
|
const skip = cursor?.skip;
|
|
@@ -19,7 +19,7 @@ var _service = require("./service.cjs");
|
|
|
19
19
|
var _utils = require("./utils.cjs");
|
|
20
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
21
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
22
|
-
const fileName_1 = "
|
|
22
|
+
const fileName_1 = "_src/services/Store/Redis.ts";
|
|
23
23
|
function makeRedisStore({
|
|
24
24
|
prefix
|
|
25
25
|
}) {
|
|
@@ -32,7 +32,7 @@ Object.keys(_service).forEach(function (key) {
|
|
|
32
32
|
});
|
|
33
33
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
34
34
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
35
|
-
const fileName_1 = "
|
|
35
|
+
const fileName_1 = "_src/services/Store/index.ts";
|
|
36
36
|
/**
|
|
37
37
|
* @tsplus static StoreMaker.Ops Live
|
|
38
38
|
*/
|
|
@@ -9,7 +9,7 @@ var tsplus_module_1 = _interopRequireWildcard(require("@fp-ts/data/Context"));
|
|
|
9
9
|
var tsplus_module_2 = _interopRequireWildcard(require("@effect/io/Effect"));
|
|
10
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
|
-
const fileName_1 = "
|
|
12
|
+
const fileName_1 = "_src/services/Store/service.ts";
|
|
13
13
|
const StoreMaker = tsplus_module_1.Tag();
|
|
14
14
|
/**
|
|
15
15
|
* @tsplus static ContextMap.Ops Make
|
|
@@ -17,7 +17,7 @@ var _objectHash = _interopRequireDefault(require("object-hash"));
|
|
|
17
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
18
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
19
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
20
|
-
const fileName_1 = "
|
|
20
|
+
const fileName_1 = "_src/services/Store/utils.ts";
|
|
21
21
|
const makeETag = ({
|
|
22
22
|
_etag,
|
|
23
23
|
...e
|
|
@@ -15,7 +15,7 @@ var _shared = require("./shared.cjs");
|
|
|
15
15
|
var simpledb = _interopRequireWildcard(require("./simpledb.cjs"));
|
|
16
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
17
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
18
|
-
const fileName_1 = "
|
|
18
|
+
const fileName_1 = "_src/services/simpledb/cosmosdb.ts";
|
|
19
19
|
class CosmosDbOperationError {
|
|
20
20
|
constructor(message) {
|
|
21
21
|
this.message = message;
|
|
@@ -18,7 +18,7 @@ var simpledb = _interopRequireWildcard(require("./simpledb.cjs"));
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
20
20
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
-
const fileName_1 = "
|
|
21
|
+
const fileName_1 = "_src/services/simpledb/diskdb.ts";
|
|
22
22
|
function createContext() {
|
|
23
23
|
return (type, encode, decode, schemaVersion, makeIndexKey, dir = "./data.js") => {
|
|
24
24
|
initialise(dir);
|
|
@@ -15,7 +15,7 @@ var _shared = require("./shared.cjs");
|
|
|
15
15
|
var simpledb = _interopRequireWildcard(require("./simpledb.cjs"));
|
|
16
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
17
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
18
|
-
const fileName_1 = "
|
|
18
|
+
const fileName_1 = "_src/services/simpledb/memdb.ts";
|
|
19
19
|
// When we are in-process, we want to share the same Storage
|
|
20
20
|
// Do not try this at home.
|
|
21
21
|
const storage = (0, _shared.makeMap)();
|
|
@@ -13,7 +13,7 @@ var _shared = require("./shared.cjs");
|
|
|
13
13
|
var simpledb = _interopRequireWildcard(require("./simpledb.cjs"));
|
|
14
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
15
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
|
-
const fileName_1 = "
|
|
16
|
+
const fileName_1 = "_src/services/simpledb/mongodb.ts";
|
|
17
17
|
// const makeFromIndexKeys = (indexKeys: string[], unique: boolean) => indexKeys.reduce((prev, cur) => {
|
|
18
18
|
// prev[cur] = 1
|
|
19
19
|
// return prev
|
|
@@ -16,7 +16,7 @@ var _shared = require("./shared.cjs");
|
|
|
16
16
|
var simpledb = _interopRequireWildcard(require("./simpledb.cjs"));
|
|
17
17
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
18
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
-
const fileName_1 = "
|
|
19
|
+
const fileName_1 = "_src/services/simpledb/redisdb.ts";
|
|
20
20
|
const ttl = 10 * 1000;
|
|
21
21
|
function createContext() {
|
|
22
22
|
return (type, encode, decode, schemaVersion, makeIndexKey) => {
|
|
@@ -14,7 +14,7 @@ var tsplus_module_2 = _interopRequireWildcard(require("@effect/io/Effect"));
|
|
|
14
14
|
var MO = _interopRequireWildcard(require("@effect-app/schema"));
|
|
15
15
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
-
const fileName_1 = "
|
|
17
|
+
const fileName_1 = "_src/services/simpledb/shared.ts";
|
|
18
18
|
class BaseError {
|
|
19
19
|
constructor(message) {
|
|
20
20
|
this.message = message;
|
|
@@ -16,7 +16,7 @@ var tsplus_module_4 = _interopRequireWildcard(require("@fp-ts/data/Option"));
|
|
|
16
16
|
var _shared = require("./shared.cjs");
|
|
17
17
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
18
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
-
const fileName_1 = "
|
|
19
|
+
const fileName_1 = "_src/services/simpledb/simpledb.ts";
|
|
20
20
|
class InvalidStateError {
|
|
21
21
|
constructor(message, details) {
|
|
22
22
|
this.message = message;
|
package/dist/api/codec.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/api/codec.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@effect/io/Effect";
|
|
4
4
|
import * as tsplus_module_2 from "@effect-app/core/fluent/_ext/awesome/_files/Iterable";
|
|
5
5
|
import * as MO from "@effect-app/schema";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/api/defaultErrorHandler.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@effect/io/Effect";
|
|
4
4
|
import * as tsplus_module_2 from "@effect/io/Cause";
|
|
5
5
|
import * as tsplus_module_3 from "@effect-app/core/Effect";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/api/express/makeJsonSchema.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@fp-ts/data/Chunk";
|
|
4
4
|
import * as tsplus_module_2 from "@effect-app/core/fluent/_ext/awesome/_files/Iterable";
|
|
5
5
|
import * as tsplus_module_3 from "@effect/io/Effect";
|
|
@@ -18,7 +18,7 @@ export declare function makeOpenApiSpecs(rdescs: Iterable<RouteDescriptorAny>, i
|
|
|
18
18
|
version: string;
|
|
19
19
|
};
|
|
20
20
|
tags: never[];
|
|
21
|
-
paths: Record<string, Record<"
|
|
21
|
+
paths: Record<string, Record<"GET" | "POST" | "PUT" | "PATCH" | "DELETE", {
|
|
22
22
|
[x: string]: {
|
|
23
23
|
responses: any;
|
|
24
24
|
tags: readonly string[] | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/api/express/makeOpenApiSpecs.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@effect/io/Ref";
|
|
4
4
|
import * as tsplus_module_2 from "@effect/io/Effect";
|
|
5
5
|
import { References } from "@effect-app/infra-adapters/Openapi/atlas-plutus/Schema/index";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/api/express/schema/requestHandler.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@effect/io/Effect";
|
|
4
4
|
import * as tsplus_module_2 from "@effect/io/Exit";
|
|
5
5
|
import * as tsplus_module_3 from "@effect/io/Cause";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/api/express/schema/routing.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@fp-ts/data/Option";
|
|
4
4
|
import * as tsplus_module_2 from "@effect/io/Effect";
|
|
5
5
|
import * as tsplus_module_3 from "@effect-app/core/Option";
|
package/dist/api/reportError.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/api/reportError.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@effect-app/infra/RequestContext";
|
|
4
4
|
import * as tsplus_module_2 from "@effect/io/Effect";
|
|
5
5
|
import * as tsplus_module_3 from "@effect/io/Cause";
|
package/dist/api/routing.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/api/routing.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@fp-ts/data/Option";
|
|
4
4
|
import * as tsplus_module_2 from "@effect/io/Effect";
|
|
5
5
|
import * as tsplus_module_3 from "@effect-app/core/Effect";
|
package/dist/api/setupRequest.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/api/setupRequest.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@effect/io/Effect";
|
|
4
4
|
import * as tsplus_module_2 from "@effect-app/prelude/_ext/Prelude.ext";
|
|
5
5
|
import * as tsplus_module_3 from "@effect-app/core/Function";
|
package/dist/api/writeDocs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/api/writeDocs.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@effect/io/Effect";
|
|
4
4
|
import * as tsplus_module_2 from "@effect-app/core/Order";
|
|
5
5
|
import * as tsplus_module_3 from "@effect-app/core/_ext/ord.ext";
|
package/dist/errorReporter.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/errorReporter.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@effect/io/Cause";
|
|
4
4
|
import * as tsplus_module_2 from "@effect-app/prelude/utils";
|
|
5
5
|
import * as tsplus_module_3 from "@effect/io/Effect";
|
package/dist/instrument.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/instrument.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@effect-app/prelude/utils";
|
|
4
4
|
import * as tsplus_module_2 from "@effect/io/Effect";
|
|
5
5
|
/**
|
package/dist/rateLimit.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/rateLimit.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@effect/io/Effect";
|
|
4
4
|
import * as tsplus_module_2 from "@effect-app/core/Array";
|
|
5
5
|
import * as tsplus_module_3 from "@effect-app/core/Effect";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/services/Emailer/Sendgrid.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@effect/io/Config/Secret";
|
|
4
4
|
import * as tsplus_module_2 from "@effect/io/Effect";
|
|
5
5
|
import * as tsplus_module_3 from "@effect-app/core/Effect";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/services/Emailer/fake.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@effect/io/Effect";
|
|
4
4
|
import * as tsplus_module_2 from "@effect-app/core/Effect";
|
|
5
5
|
import { pretty } from "@effect-app/prelude/utils";
|
|
@@ -182,7 +182,7 @@ export declare function queryAndSavePureEffect<Id extends string, T extends {
|
|
|
182
182
|
skip?: number;
|
|
183
183
|
}>): <R2, A, E2, S2 extends T>(pure: import("@effect/io/Effect").Effect<FixEnv<R2, Evt, import("@fp-ts/data/Chunk").Chunk<S>, Iterable<S2>>, E2, A>) => import("@effect/io/Effect").Effect<RequestContext | ContextMap | R | Exclude<R2, {
|
|
184
184
|
env: import("@effect-app/prelude/_ext/Pure").PureEnv<Evt, import("@fp-ts/data/Chunk").Chunk<S>, Iterable<S2>>;
|
|
185
|
-
}>,
|
|
185
|
+
}>, OptimisticConcurrencyException | InvalidStateError | E | E2, A>;
|
|
186
186
|
/**
|
|
187
187
|
* @tsplus fluent Repository queryAndSavePure
|
|
188
188
|
* @tsplus location "@effect-app/infra/services/Repository"
|
|
@@ -198,7 +198,7 @@ export declare function queryAndSavePure<Id extends string, T extends {
|
|
|
198
198
|
skip?: number;
|
|
199
199
|
}): <R2, A, E2, S2 extends T>(pure: import("@effect/io/Effect").Effect<FixEnv<R2, Evt, import("@fp-ts/data/Chunk").Chunk<S>, Iterable<S2>>, E2, A>) => import("@effect/io/Effect").Effect<RequestContext | ContextMap | Exclude<R2, {
|
|
200
200
|
env: import("@effect-app/prelude/_ext/Pure").PureEnv<Evt, import("@fp-ts/data/Chunk").Chunk<S>, Iterable<S2>>;
|
|
201
|
-
}>,
|
|
201
|
+
}>, OptimisticConcurrencyException | InvalidStateError | E2, A>;
|
|
202
202
|
/**
|
|
203
203
|
* @tsplus getter Repository saveManyWithPure
|
|
204
204
|
* @tsplus location "@effect-app/infra/services/Repository"
|
|
@@ -209,7 +209,7 @@ export declare function saveManyWithPure<Id extends string, T extends {
|
|
|
209
209
|
id: string;
|
|
210
210
|
}, Evt, ItemType extends string>(self: Repository<T, PM, Evt, Id, ItemType>): <R, A, E, S1 extends T, S2 extends T>(pure: import("@effect/io/Effect").Effect<FixEnv<R, Evt, import("@fp-ts/data/Chunk").Chunk<S1>, Iterable<S2>>, E, A>) => (items: Iterable<S1>) => import("@effect/io/Effect").Effect<RequestContext | ContextMap | Exclude<R, {
|
|
211
211
|
env: import("@effect-app/prelude/_ext/Pure").PureEnv<Evt, import("@fp-ts/data/Chunk").Chunk<S1>, Iterable<S2>>;
|
|
212
|
-
}>,
|
|
212
|
+
}>, OptimisticConcurrencyException | InvalidStateError | E, A>;
|
|
213
213
|
/**
|
|
214
214
|
* @tsplus fluent Repository byIdAndSaveWithPure
|
|
215
215
|
* @tsplus location "@effect-app/infra/services/Repository"
|
|
@@ -220,7 +220,7 @@ export declare function byIdAndSaveWithPure<Id extends string, T extends {
|
|
|
220
220
|
id: string;
|
|
221
221
|
}, Evt, ItemType extends string>(self: Repository<T, PM, Evt, Id, ItemType>, id: Id): <R, A, E, S2 extends T>(pure: import("@effect/io/Effect").Effect<FixEnv<R, Evt, T, S2>, E, A>) => import("@effect/io/Effect").Effect<RequestContext | ContextMap | Exclude<R, {
|
|
222
222
|
env: import("@effect-app/prelude/_ext/Pure").PureEnv<Evt, T, S2>;
|
|
223
|
-
}>,
|
|
223
|
+
}>, OptimisticConcurrencyException | InvalidStateError | E | NotFoundError<ItemType>, A>;
|
|
224
224
|
/**
|
|
225
225
|
* NOTE: it's not as composable, only useful when the request is simple, and only this part needs request args.
|
|
226
226
|
* @tsplus getter Repository handleByIdAndSaveWithPure
|
|
@@ -234,7 +234,7 @@ export declare function handleByIdAndSaveWithPure<Id extends string, T extends {
|
|
|
234
234
|
id: Id;
|
|
235
235
|
}, Context_1, R, A, E, S2 extends T>(pure: (req: Req, ctx: Context_1) => import("@effect/io/Effect").Effect<FixEnv<R, Evt, T, S2>, E, A>) => (req: Req, ctx: Context_1) => import("@effect/io/Effect").Effect<RequestContext | ContextMap | Exclude<R, {
|
|
236
236
|
env: import("@effect-app/prelude/_ext/Pure").PureEnv<Evt, T, S2>;
|
|
237
|
-
}>,
|
|
237
|
+
}>, OptimisticConcurrencyException | InvalidStateError | E | NotFoundError<ItemType>, A>;
|
|
238
238
|
/**
|
|
239
239
|
* @tsplus fluent Repository saveManyWithPure_
|
|
240
240
|
* @tsplus location "@effect-app/infra/services/Repository"
|
|
@@ -245,7 +245,7 @@ export declare function saveManyWithPure_<Id extends string, R, T extends {
|
|
|
245
245
|
id: string;
|
|
246
246
|
}, A, E, Evt, S1 extends T, S2 extends T, ItemType extends string>(self: Repository<T, PM, Evt, Id, ItemType>, items: Iterable<S1>, pure: Effect<FixEnv<R, Evt, Chunk<S1>, Iterable<S2>>, E, A>): import("@effect/io/Effect").Effect<RequestContext | ContextMap | Exclude<R, {
|
|
247
247
|
env: import("@effect-app/prelude/_ext/Pure").PureEnv<Evt, import("@fp-ts/data/Chunk").Chunk<S1>, Iterable<S2>>;
|
|
248
|
-
}>,
|
|
248
|
+
}>, OptimisticConcurrencyException | InvalidStateError | E, A>;
|
|
249
249
|
/**
|
|
250
250
|
* @tsplus fluent Repository saveWithPure_
|
|
251
251
|
* @tsplus location "@effect-app/infra/services/Repository"
|
|
@@ -256,7 +256,7 @@ export declare function saveWithPure_<Id extends string, R, T extends {
|
|
|
256
256
|
id: string;
|
|
257
257
|
}, A, E, Evt, S1 extends T, S2 extends T, ItemType extends string>(self: Repository<T, PM, Evt, Id, ItemType>, item: S1, pure: Effect<FixEnv<R, Evt, S1, S2>, E, A>): import("@effect/io/Effect").Effect<RequestContext | ContextMap | Exclude<R, {
|
|
258
258
|
env: import("@effect-app/prelude/_ext/Pure").PureEnv<Evt, S1, S2>;
|
|
259
|
-
}>,
|
|
259
|
+
}>, OptimisticConcurrencyException | InvalidStateError | E, A>;
|
|
260
260
|
export type AllDSL<T, Evt> = (<R, A, E, S1 extends T, S2 extends T>(pure: (dsl: PureDSL<Chunk<S1>, Iterable<S2>, Evt>) => Effect<R, E, A>) => Effect<FixEnv<R, Evt, Chunk<S1>, Iterable<S2>>, E, A>) & AllDSLExt<T, Evt>;
|
|
261
261
|
/**
|
|
262
262
|
* @tsplus type DSLExt
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/services/Repository.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@effect-app/prelude/_ext/Pure";
|
|
4
4
|
import * as tsplus_module_2 from "@effect-app/prelude/_ext/Prelude.ext";
|
|
5
5
|
import * as tsplus_module_3 from "@effect/io/Effect";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/services/Store/Cosmos.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@effect/io/Effect";
|
|
4
4
|
import * as tsplus_module_2 from "@fp-ts/data/Option";
|
|
5
5
|
import * as tsplus_module_3 from "@effect-app/core/Array";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/services/Store/Disk.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@effect/io/Effect";
|
|
4
4
|
import * as tsplus_module_2 from "@effect-app/core/Function";
|
|
5
5
|
import * as tsplus_module_3 from "@effect-app/core/Effect";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/services/Store/Memory.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@fp-ts/data/Chunk";
|
|
4
4
|
import * as tsplus_module_2 from "@effect-app/core/Chunk";
|
|
5
5
|
import * as tsplus_module_3 from "@fp-ts/data/Option";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/services/Store/Redis.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@effect/io/Effect";
|
|
4
4
|
import * as tsplus_module_2 from "@fp-ts/data/Option";
|
|
5
5
|
import * as tsplus_module_3 from "@effect-app/prelude/_ext/Prelude.ext";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/services/Store/index.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@effect/io/Config/Secret";
|
|
4
4
|
import * as tsplus_module_2 from "@effect/io/Effect";
|
|
5
5
|
import * as tsplus_module_3 from "@effect-app/core/Effect";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/services/Store/service.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@fp-ts/data/Context";
|
|
4
4
|
import * as tsplus_module_2 from "@effect/io/Effect";
|
|
5
5
|
export const StoreMaker = tsplus_module_1.Tag();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/services/Store/utils.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@fp-ts/data/Option";
|
|
4
4
|
import * as tsplus_module_2 from "@effect/io/Effect";
|
|
5
5
|
import * as tsplus_module_3 from "@fp-ts/data/ReadonlyArray";
|
|
@@ -6,8 +6,8 @@ import type { DBRecord } from "./shared.js";
|
|
|
6
6
|
import { OptimisticLockException } from "./shared.js";
|
|
7
7
|
import * as simpledb from "./simpledb.js";
|
|
8
8
|
export declare function createContext<TKey extends string, EA, A extends DBRecord<TKey>>(): <REncode, RDecode, EDecode>(type: string, encode: (record: A) => import("@effect/io/Effect").Effect<REncode, never, EA>, decode: (d: EA) => import("@effect/io/Effect").Effect<RDecode, EDecode, A>, indexes: IndexingPolicy) => import("@effect/io/Effect").Effect<Cosmos.CosmosClient, unknown, {
|
|
9
|
-
find: (id: string) => import("@effect/io/Effect").Effect<Cosmos.CosmosClient | simpledb.RecordCache
|
|
9
|
+
find: (id: string) => import("@effect/io/Effect").Effect<RDecode | Cosmos.CosmosClient | simpledb.RecordCache, unknown, import("@fp-ts/data/Option").Option<A>>;
|
|
10
10
|
findBy: (parameters: Record<string, string>) => import("@effect/io/Effect").Effect<Cosmos.CosmosClient, unknown, import("@fp-ts/data/Option").Option<any>>;
|
|
11
|
-
save: (record: A) => import("@effect/io/Effect").Effect<Cosmos.CosmosClient | simpledb.RecordCache
|
|
11
|
+
save: (record: A) => import("@effect/io/Effect").Effect<REncode | Cosmos.CosmosClient | simpledb.RecordCache, OptimisticLockException, A>;
|
|
12
12
|
}>;
|
|
13
13
|
//# sourceMappingURL=cosmosdb.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/services/simpledb/cosmosdb.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@effect/io/Effect";
|
|
4
4
|
import * as tsplus_module_2 from "@fp-ts/data/Option";
|
|
5
5
|
import * as tsplus_module_3 from "@fp-ts/data/ReadonlyArray";
|
|
@@ -4,9 +4,9 @@ import type { DBRecord, Index } from "./shared.js";
|
|
|
4
4
|
import { CouldNotAquireDbLockException } from "./shared.js";
|
|
5
5
|
import * as simpledb from "./simpledb.js";
|
|
6
6
|
export declare function createContext<TKey extends string, EA, A extends DBRecord<TKey>>(): <REncode, RDecode, EDecode>(type: string, encode: (record: A) => import("@effect/io/Effect").Effect<REncode, never, EA>, decode: (d: EA) => import("@effect/io/Effect").Effect<RDecode, EDecode, A>, schemaVersion: string, makeIndexKey: (r: A) => Index, dir?: string) => {
|
|
7
|
-
find: (id: string) => import("@effect/io/Effect").Effect<simpledb.RecordCache
|
|
7
|
+
find: (id: string) => import("@effect/io/Effect").Effect<RDecode | simpledb.RecordCache, simpledb.InvalidStateError, import("@fp-ts/data/Option").Option<A>>;
|
|
8
8
|
findByIndex: (index: Index) => import("@effect/io/Effect").Effect<never, never, import("@fp-ts/data/Option").Option<TKey & {}>>;
|
|
9
|
-
save: (record: A) => import("@effect/io/Effect").Effect<simpledb.RecordCache
|
|
9
|
+
save: (record: A) => import("@effect/io/Effect").Effect<REncode | simpledb.RecordCache, CouldNotAquireDbLockException | import("./shared.js").OptimisticLockException | simpledb.InvalidStateError, A>;
|
|
10
10
|
};
|
|
11
11
|
export declare function initialise(dir: string): void;
|
|
12
12
|
//# sourceMappingURL=diskdb.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/services/simpledb/diskdb.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@fp-ts/data/Option";
|
|
4
4
|
import * as tsplus_module_2 from "@effect/io/Effect";
|
|
5
5
|
import { flow, pipe } from "@effect-app/core/Function";
|
|
@@ -5,8 +5,8 @@ import * as MO from "@effect-app/schema";
|
|
|
5
5
|
import type { DBRecord } from "./shared.js";
|
|
6
6
|
import * as simpledb from "./simpledb.js";
|
|
7
7
|
export declare function createContext<TKey extends string, EA, A extends DBRecord<TKey>>(): <REncode, RDecode, EDecode>(type: string, encode: (record: A) => import("@effect/io/Effect").Effect<REncode, never, EA>, decode: (d: EA) => import("@effect/io/Effect").Effect<RDecode, EDecode, A>) => {
|
|
8
|
-
find: (id: string) => import("@effect/io/Effect").Effect<simpledb.RecordCache
|
|
8
|
+
find: (id: string) => import("@effect/io/Effect").Effect<RDecode | simpledb.RecordCache, MO.CondemnException | simpledb.InvalidStateError, import("@fp-ts/data/Option").Option<A>>;
|
|
9
9
|
findBy: <V extends Partial<A>>(keys: V, eq: import("@fp-ts/data/Equivalence").Equivalence<V>) => import("@effect/io/Effect").Effect<RDecode, MO.CondemnException, import("@fp-ts/data/Option").Option<A & {}>>;
|
|
10
|
-
save: (record: A) => import("@effect/io/Effect").Effect<simpledb.RecordCache
|
|
10
|
+
save: (record: A) => import("@effect/io/Effect").Effect<REncode | simpledb.RecordCache, MO.CondemnException | import("./shared.js").OptimisticLockException | simpledb.InvalidStateError, A>;
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=memdb.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/services/simpledb/memdb.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@fp-ts/data/Option";
|
|
4
4
|
import * as tsplus_module_2 from "@effect/io/Effect";
|
|
5
5
|
import * as tsplus_module_3 from "@effect-app/core/Effect";
|
|
@@ -6,8 +6,8 @@ import type { DBRecord } from "./shared.js";
|
|
|
6
6
|
import { OptimisticLockException } from "./shared.js";
|
|
7
7
|
import * as simpledb from "./simpledb.js";
|
|
8
8
|
export declare function createContext<TKey extends string, EA, A extends DBRecord<TKey>>(): <REncode, RDecode, EDecode>(type: string, encode: (record: A) => import("@effect/io/Effect").Effect<REncode, never, EA>, decode: (d: EA) => import("@effect/io/Effect").Effect<RDecode, EDecode, A>, indexes: IndexDescription[]) => import("@effect/io/Effect").Effect<Mongo.MongoClient, unknown, {
|
|
9
|
-
find: (id: string) => import("@effect/io/Effect").Effect<
|
|
9
|
+
find: (id: string) => import("@effect/io/Effect").Effect<RDecode | Mongo.MongoClient | simpledb.RecordCache, unknown, import("@fp-ts/data/Option").Option<A>>;
|
|
10
10
|
findBy: (keys: Record<string, string>) => import("@effect/io/Effect").Effect<Mongo.MongoClient, unknown, import("@fp-ts/data/Option").Option<TKey>>;
|
|
11
|
-
save: (record: A) => import("@effect/io/Effect").Effect<
|
|
11
|
+
save: (record: A) => import("@effect/io/Effect").Effect<REncode | Mongo.MongoClient | simpledb.RecordCache, OptimisticLockException, A>;
|
|
12
12
|
}>;
|
|
13
13
|
//# sourceMappingURL=mongodb.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/services/simpledb/mongodb.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@effect/io/Effect";
|
|
4
4
|
import * as tsplus_module_2 from "@fp-ts/data/Option";
|
|
5
5
|
import * as tsplus_module_3 from "@effect-app/core/Effect";
|
|
@@ -6,9 +6,9 @@ import type { DBRecord, Index } from "./shared.js";
|
|
|
6
6
|
import { CouldNotAquireDbLockException } from "./shared.js";
|
|
7
7
|
import * as simpledb from "./simpledb.js";
|
|
8
8
|
export declare function createContext<TKey extends string, EA, A extends DBRecord<TKey>>(): <REncode, RDecode, EDecode>(type: string, encode: (record: A) => import("@effect/io/Effect").Effect<REncode, never, EA>, decode: (d: EA) => import("@effect/io/Effect").Effect<RDecode, EDecode, A>, schemaVersion: string, makeIndexKey: (r: A) => Index) => {
|
|
9
|
-
find: (id: string) => import("@effect/io/Effect").Effect<RED.RedisClient | simpledb.RecordCache
|
|
9
|
+
find: (id: string) => import("@effect/io/Effect").Effect<RDecode | RED.RedisClient | simpledb.RecordCache, simpledb.InvalidStateError, import("@fp-ts/data/Option").Option<A>>;
|
|
10
10
|
findByIndex: (index: Index) => import("@effect/io/Effect").Effect<RED.RedisClient, RED.ConnectionException, import("@fp-ts/data/Option").Option<TKey>>;
|
|
11
|
-
save: (record: A) => import("@effect/io/Effect").Effect<RED.RedisClient | simpledb.RecordCache
|
|
11
|
+
save: (record: A) => import("@effect/io/Effect").Effect<REncode | RED.RedisClient | simpledb.RecordCache, CouldNotAquireDbLockException | import("./shared.js").OptimisticLockException | simpledb.InvalidStateError, A>;
|
|
12
12
|
};
|
|
13
13
|
declare const RedisSerializedDBRecord_base: MO.Model<RedisSerializedDBRecord, MO.SchemaProperties<{
|
|
14
14
|
version: MO.Property<MO.SchemaDefaultSchema<unknown, string, string, string, {}>, "required", import("@fp-ts/data/Option").None, import("@fp-ts/data/Option").None>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/services/simpledb/redisdb.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@effect/io/Effect";
|
|
4
4
|
import * as tsplus_module_2 from "@effect-app/core/Effect";
|
|
5
5
|
import * as tsplus_module_3 from "@fp-ts/data/Option";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/services/simpledb/shared.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@fp-ts/data/Option";
|
|
4
4
|
import * as tsplus_module_2 from "@effect/io/Effect";
|
|
5
5
|
import * as MO from "@effect-app/schema";
|
|
@@ -17,7 +17,7 @@ export interface RecordCache extends ReturnType<typeof makeLiveRecordCache> {
|
|
|
17
17
|
}
|
|
18
18
|
export declare const RecordCache: import("@fp-ts/data/Context").Tag<RecordCache>;
|
|
19
19
|
export declare const LiveRecordCache: import("@effect/io/Layer").Layer<never, never, RecordCache>;
|
|
20
|
-
export declare function find<R, RDecode, EDecode, E, EA, A>(tryRead: (id: string) => Effect<R, E, Opt<CachedRecord<EA>>>, decode: (d: EA) => Effect<RDecode, EDecode, A>, type: string): (id: string) => import("@effect/io/Effect").Effect<
|
|
21
|
-
export declare function storeDirectly<R, E, TKey extends string, A extends DBRecord<TKey>>(save: (r: A, version: Opt<Version>) => Effect<R, E, CachedRecord<A>>, type: string): (record: A) => import("@effect/io/Effect").Effect<
|
|
22
|
-
export declare function store<R, E, R2, E2, TKey extends string, EA, A extends DBRecord<TKey>>(tryRead: (id: string) => Effect<R, E, Opt<CachedRecord<EA>>>, save: (r: A, version: Opt<Version>) => Effect<R, E, CachedRecord<A>>, lock: (id: string) => Effect<R2 | Scope, E2, unknown>, type: string): (record: A) => import("@effect/io/Effect").Effect<
|
|
20
|
+
export declare function find<R, RDecode, EDecode, E, EA, A>(tryRead: (id: string) => Effect<R, E, Opt<CachedRecord<EA>>>, decode: (d: EA) => Effect<RDecode, EDecode, A>, type: string): (id: string) => import("@effect/io/Effect").Effect<R | RDecode | RecordCache, E | InvalidStateError, import("@fp-ts/data/Option").Option<A>>;
|
|
21
|
+
export declare function storeDirectly<R, E, TKey extends string, A extends DBRecord<TKey>>(save: (r: A, version: Opt<Version>) => Effect<R, E, CachedRecord<A>>, type: string): (record: A) => import("@effect/io/Effect").Effect<R | RecordCache, E, A>;
|
|
22
|
+
export declare function store<R, E, R2, E2, TKey extends string, EA, A extends DBRecord<TKey>>(tryRead: (id: string) => Effect<R, E, Opt<CachedRecord<EA>>>, save: (r: A, version: Opt<Version>) => Effect<R, E, CachedRecord<A>>, lock: (id: string) => Effect<R2 | Scope, E2, unknown>, type: string): (record: A) => import("@effect/io/Effect").Effect<R | RecordCache | Exclude<R2, import("@effect/io/Scope").Scope>, E | E2 | OptimisticLockException | InvalidStateError, A>;
|
|
23
23
|
//# sourceMappingURL=simpledb.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tracer_1 from "@effect/io/Debug";
|
|
2
|
-
const fileName_1 = "
|
|
2
|
+
const fileName_1 = "_src/services/simpledb/simpledb.ts";
|
|
3
3
|
import * as tsplus_module_1 from "@effect/io/Effect";
|
|
4
4
|
import * as tsplus_module_2 from "@fp-ts/data/Context";
|
|
5
5
|
import * as tsplus_module_3 from "@effect-app/core/Effect";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/infra",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"proper-lockfile": "^4.1.2",
|
|
20
20
|
"pure-rand": "^6.0.0",
|
|
21
21
|
"redlock": "^4.2.0",
|
|
22
|
-
"@effect-app/prelude": "0.11.
|
|
23
|
-
"@effect-app/core": "0.11.
|
|
24
|
-
"@effect-app/infra-adapters": "0.11.
|
|
25
|
-
"@effect-app/schema": "0.11.
|
|
22
|
+
"@effect-app/prelude": "0.11.1",
|
|
23
|
+
"@effect-app/core": "0.11.1",
|
|
24
|
+
"@effect-app/infra-adapters": "0.11.1",
|
|
25
|
+
"@effect-app/schema": "0.11.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/cli": "^7.20.7",
|