@effect-app/infra 0.162.2 → 0.163.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/_cjs/RequestContext.cjs +1 -21
- package/_cjs/RequestContext.cjs.map +1 -1
- package/_src/RequestContext.ts +1 -15
- package/dist/RequestContext.d.ts +3 -57
- package/dist/RequestContext.d.ts.map +1 -1
- package/dist/RequestContext.js +2 -24
- package/dist/services/QueueMaker/service.d.ts +0 -2
- package/dist/services/QueueMaker/service.d.ts.map +1 -1
- package/dist/services/RepositoryBase.d.ts +1 -1
- package/dist/services/simpledb/redisdb.d.ts +4 -4
- package/dist/services/simpledb/shared.d.ts +6 -6
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @effect-app/infra
|
|
2
2
|
|
|
3
|
+
## 0.163.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 287c4e6: feat: include omit/pick on class.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [287c4e6]
|
|
12
|
+
- @effect-app/schema@0.177.0
|
|
13
|
+
- @effect-app/fluent-extensions@0.113.8
|
|
14
|
+
- @effect-app/infra-adapters@0.110.3
|
|
15
|
+
- @effect-app/prelude@0.140.3
|
|
16
|
+
|
|
3
17
|
## 0.162.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/_cjs/RequestContext.cjs
CHANGED
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.RequestContextParent = exports.RequestContext = void 0;
|
|
7
7
|
var tsplus_module_1 = _interopRequireWildcard(require("@effect-app/prelude/schema"));
|
|
8
8
|
var tsplus_module_2 = _interopRequireWildcard(require("@effect/schema/Schema"));
|
|
9
|
-
var tsplus_module_3 = _interopRequireWildcard(require("@effect-app/prelude/utils"));
|
|
10
9
|
var _prelude = require("@effect-app/prelude");
|
|
11
10
|
var _ids = require("@effect-app/prelude/ids");
|
|
12
11
|
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); }
|
|
@@ -34,7 +33,7 @@ exports.RequestContextParent = RequestContextParent = __decorate([tsplus_module_
|
|
|
34
33
|
* @tsplus companion RequestContext.Ops
|
|
35
34
|
*/
|
|
36
35
|
let RequestContext = exports.RequestContext = RequestContext_1 = class RequestContext extends tsplus_module_1.TaggedClass()("RequestContext", {
|
|
37
|
-
...
|
|
36
|
+
...RequestContextParent.omit("id"),
|
|
38
37
|
id: _ids.RequestId.withDefault,
|
|
39
38
|
rootId: _ids.RequestId,
|
|
40
39
|
parent: tsplus_module_2.optional(RequestContextParent),
|
|
@@ -67,23 +66,4 @@ let RequestContext = exports.RequestContext = RequestContext_1 = class RequestCo
|
|
|
67
66
|
}
|
|
68
67
|
};
|
|
69
68
|
exports.RequestContext = RequestContext = RequestContext_1 = __decorate([tsplus_module_1.useClassFeaturesForSchema], RequestContext);
|
|
70
|
-
// codegen:start {preset: model}
|
|
71
|
-
//
|
|
72
|
-
/* eslint-disable */
|
|
73
|
-
(function (RequestContextParent) {
|
|
74
|
-
/**
|
|
75
|
-
* @tsplus type RequestContextParent.From
|
|
76
|
-
* @tsplus companion RequestContextParent.From/Ops
|
|
77
|
-
*/
|
|
78
|
-
class From extends tsplus_module_1.FromClass() {}
|
|
79
|
-
RequestContextParent.From = From;
|
|
80
|
-
})(RequestContextParent || (exports.RequestContextParent = RequestContextParent = {}));
|
|
81
|
-
(function (RequestContext) {
|
|
82
|
-
/**
|
|
83
|
-
* @tsplus type RequestContext.From
|
|
84
|
-
* @tsplus companion RequestContext.From/Ops
|
|
85
|
-
*/
|
|
86
|
-
class From extends tsplus_module_1.FromClass() {}
|
|
87
|
-
RequestContext.From = From;
|
|
88
|
-
})(RequestContext || (exports.RequestContext = RequestContext = {}));
|
|
89
69
|
//# sourceMappingURL=RequestContext.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestContext.cjs","names":["_prelude","require","_ids","_getRequireWildcardCache","e","WeakMap","r","t","_interopRequireWildcard","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","RequestContextParent","exports","tsplus_module_1","TaggedClass","id","RequestId","name","NonEmptyString255","userProfile","tsplus_module_2","optional","struct","sub","UserProfileId","locale","literal","createdAt","S","Date","withDefault","__decorate","useClassFeaturesForSchema","RequestContext","RequestContext_1","
|
|
1
|
+
{"version":3,"file":"RequestContext.cjs","names":["_prelude","require","_ids","_getRequireWildcardCache","e","WeakMap","r","t","_interopRequireWildcard","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","RequestContextParent","exports","tsplus_module_1","TaggedClass","id","RequestId","name","NonEmptyString255","userProfile","tsplus_module_2","optional","struct","sub","UserProfileId","locale","literal","createdAt","S","Date","withDefault","__decorate","useClassFeaturesForSchema","RequestContext","RequestContext_1","omit","rootId","parent","namespace","inherit","newSelf","toMonitoring","self","operationName","parentOperationName","parentLocale"],"sources":["../_src/RequestContext.ts"],"sourcesContent":[null],"mappings":";;;;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AAAkE,SAAAE,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAI,wBAAAJ,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,eAAAA,CAAA,uBAAAA,CA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RequestContextParent extends TaggedClass<
|
|
|
20
20
|
export class RequestContext extends TaggedClass<
|
|
21
21
|
RequestContext
|
|
22
22
|
>()("RequestContext", {
|
|
23
|
-
...RequestContextParent.
|
|
23
|
+
...RequestContextParent.omit("id"),
|
|
24
24
|
id: RequestId.withDefault,
|
|
25
25
|
rootId: RequestId,
|
|
26
26
|
parent: RequestContextParent.optional(),
|
|
@@ -60,20 +60,6 @@ export class RequestContext extends TaggedClass<
|
|
|
60
60
|
// codegen:start {preset: model}
|
|
61
61
|
//
|
|
62
62
|
/* eslint-disable */
|
|
63
|
-
export namespace RequestContextParent {
|
|
64
|
-
/**
|
|
65
|
-
* @tsplus type RequestContextParent.From
|
|
66
|
-
* @tsplus companion RequestContextParent.From/Ops
|
|
67
|
-
*/
|
|
68
|
-
export class From extends FromClass<typeof RequestContextParent>() {}
|
|
69
|
-
}
|
|
70
|
-
export namespace RequestContext {
|
|
71
|
-
/**
|
|
72
|
-
* @tsplus type RequestContext.From
|
|
73
|
-
* @tsplus companion RequestContext.From/Ops
|
|
74
|
-
*/
|
|
75
|
-
export class From extends FromClass<typeof RequestContext>() {}
|
|
76
|
-
}
|
|
77
63
|
/* eslint-enable */
|
|
78
64
|
//
|
|
79
65
|
// codegen:end
|
package/dist/RequestContext.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { useClassFeaturesForSchema, TaggedClass, NonEmptyString255, struct, literal
|
|
1
|
+
import { useClassFeaturesForSchema, TaggedClass, NonEmptyString255, struct, literal } from "@effect-app/prelude/schema";
|
|
2
2
|
import { S } from "@effect-app/prelude";
|
|
3
|
-
declare const RequestContextParent_base: S.
|
|
4
|
-
readonly _tag: "RequestContext";
|
|
3
|
+
declare const RequestContextParent_base: S.EnhancedClass<never, {
|
|
5
4
|
readonly id: string;
|
|
6
5
|
readonly name: string;
|
|
7
6
|
readonly locale: "en" | "de";
|
|
@@ -47,8 +46,7 @@ declare const RequestContextParent_base: S.Class<never, {
|
|
|
47
46
|
}, {}>;
|
|
48
47
|
export declare class RequestContextParent extends RequestContextParent_base {
|
|
49
48
|
}
|
|
50
|
-
declare const RequestContext_base: S.
|
|
51
|
-
readonly _tag: "RequestContext";
|
|
49
|
+
declare const RequestContext_base: S.EnhancedClass<never, {
|
|
52
50
|
readonly id: string;
|
|
53
51
|
readonly name: string;
|
|
54
52
|
readonly locale: "en" | "de";
|
|
@@ -58,7 +56,6 @@ declare const RequestContext_base: S.Class<never, {
|
|
|
58
56
|
readonly sub: string;
|
|
59
57
|
} | undefined;
|
|
60
58
|
readonly parent?: {
|
|
61
|
-
readonly _tag: "RequestContext";
|
|
62
59
|
readonly id: string;
|
|
63
60
|
readonly name: string;
|
|
64
61
|
readonly locale: "en" | "de";
|
|
@@ -101,7 +98,6 @@ declare const RequestContext_base: S.Class<never, {
|
|
|
101
98
|
withDefault: S.Schema<never, string, S.NonEmptyString255> & S.ConstructorPropertyDescriptor<never, string, S.NonEmptyString255>;
|
|
102
99
|
};
|
|
103
100
|
parent: S.PropertySignature<never, {
|
|
104
|
-
readonly _tag: "RequestContext";
|
|
105
101
|
readonly id: string;
|
|
106
102
|
readonly name: string;
|
|
107
103
|
readonly locale: "en" | "de";
|
|
@@ -135,55 +131,5 @@ export declare class RequestContext extends RequestContext_base {
|
|
|
135
131
|
locale: "en" | "de";
|
|
136
132
|
};
|
|
137
133
|
}
|
|
138
|
-
export declare namespace RequestContextParent {
|
|
139
|
-
const From_base: S.FromClass<{
|
|
140
|
-
readonly _tag: "RequestContext";
|
|
141
|
-
readonly id: string;
|
|
142
|
-
readonly name: string;
|
|
143
|
-
readonly locale: "en" | "de";
|
|
144
|
-
readonly createdAt: string;
|
|
145
|
-
readonly userProfile?: {
|
|
146
|
-
readonly sub: string;
|
|
147
|
-
} | undefined;
|
|
148
|
-
}>;
|
|
149
|
-
/**
|
|
150
|
-
* @tsplus type RequestContextParent.From
|
|
151
|
-
* @tsplus companion RequestContextParent.From/Ops
|
|
152
|
-
*/
|
|
153
|
-
export class From extends From_base {
|
|
154
|
-
}
|
|
155
|
-
export {};
|
|
156
|
-
}
|
|
157
|
-
export declare namespace RequestContext {
|
|
158
|
-
const From_base_1: S.FromClass<{
|
|
159
|
-
readonly _tag: "RequestContext";
|
|
160
|
-
readonly id: string;
|
|
161
|
-
readonly name: string;
|
|
162
|
-
readonly locale: "en" | "de";
|
|
163
|
-
readonly createdAt: string;
|
|
164
|
-
readonly rootId: string;
|
|
165
|
-
readonly userProfile?: {
|
|
166
|
-
readonly sub: string;
|
|
167
|
-
} | undefined;
|
|
168
|
-
readonly parent?: {
|
|
169
|
-
readonly _tag: "RequestContext";
|
|
170
|
-
readonly id: string;
|
|
171
|
-
readonly name: string;
|
|
172
|
-
readonly locale: "en" | "de";
|
|
173
|
-
readonly createdAt: string;
|
|
174
|
-
readonly userProfile?: {
|
|
175
|
-
readonly sub: string;
|
|
176
|
-
} | undefined;
|
|
177
|
-
} | undefined;
|
|
178
|
-
readonly namespace?: string | undefined;
|
|
179
|
-
}>;
|
|
180
|
-
/**
|
|
181
|
-
* @tsplus type RequestContext.From
|
|
182
|
-
* @tsplus companion RequestContext.From/Ops
|
|
183
|
-
*/
|
|
184
|
-
export class From extends From_base_1 {
|
|
185
|
-
}
|
|
186
|
-
export {};
|
|
187
|
-
}
|
|
188
134
|
export {};
|
|
189
135
|
//# sourceMappingURL=RequestContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestContext.d.ts","sourceRoot":"","sources":["../_src/RequestContext.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,qBAAqB,CAAA
|
|
1
|
+
{"version":3,"file":"RequestContext.d.ts","sourceRoot":"","sources":["../_src/RequestContext.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,qBAAqB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGvC,qBACa,oBAAqB,SAAQ,yBAQxC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL;;;GAGG;AACH,qBACa,cAAe,SAAQ,mBAclC;IAEA,MAAM,CAAC,OAAO,CACZ,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,qBAAqB,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC;IAUhE,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc;;;;;;CASrD"}
|
package/dist/RequestContext.js
CHANGED
|
@@ -7,7 +7,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var RequestContext_1;
|
|
8
8
|
import * as tsplus_module_1 from "@effect-app/prelude/schema";
|
|
9
9
|
import * as tsplus_module_2 from "@effect/schema/Schema";
|
|
10
|
-
import * as tsplus_module_3 from "@effect-app/prelude/utils";
|
|
11
10
|
import { S } from "@effect-app/prelude";
|
|
12
11
|
import { RequestId, UserProfileId } from "@effect-app/prelude/ids";
|
|
13
12
|
let RequestContextParent = class RequestContextParent extends tsplus_module_1.TaggedClass()("RequestContext", {
|
|
@@ -27,7 +26,7 @@ export { RequestContextParent };
|
|
|
27
26
|
* @tsplus companion RequestContext.Ops
|
|
28
27
|
*/
|
|
29
28
|
let RequestContext = RequestContext_1 = class RequestContext extends tsplus_module_1.TaggedClass()("RequestContext", {
|
|
30
|
-
...
|
|
29
|
+
...RequestContextParent.omit("id"),
|
|
31
30
|
id: RequestId.withDefault,
|
|
32
31
|
rootId: RequestId,
|
|
33
32
|
parent: tsplus_module_2.optional(RequestContextParent),
|
|
@@ -62,25 +61,4 @@ RequestContext = RequestContext_1 = __decorate([
|
|
|
62
61
|
tsplus_module_1.useClassFeaturesForSchema
|
|
63
62
|
], RequestContext);
|
|
64
63
|
export { RequestContext };
|
|
65
|
-
|
|
66
|
-
//
|
|
67
|
-
/* eslint-disable */
|
|
68
|
-
(function (RequestContextParent) {
|
|
69
|
-
/**
|
|
70
|
-
* @tsplus type RequestContextParent.From
|
|
71
|
-
* @tsplus companion RequestContextParent.From/Ops
|
|
72
|
-
*/
|
|
73
|
-
class From extends tsplus_module_1.FromClass() {
|
|
74
|
-
}
|
|
75
|
-
RequestContextParent.From = From;
|
|
76
|
-
})(RequestContextParent || (RequestContextParent = {}));
|
|
77
|
-
(function (RequestContext) {
|
|
78
|
-
/**
|
|
79
|
-
* @tsplus type RequestContext.From
|
|
80
|
-
* @tsplus companion RequestContext.From/Ops
|
|
81
|
-
*/
|
|
82
|
-
class From extends tsplus_module_1.FromClass() {
|
|
83
|
-
}
|
|
84
|
-
RequestContext.From = From;
|
|
85
|
-
})(RequestContext || (RequestContext = {}));
|
|
86
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmVxdWVzdENvbnRleHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9fc3JjL1JlcXVlc3RDb250ZXh0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxPQUFPLEVBQUUsQ0FBQyxFQUFFLE1BQU0scUJBQXFCLENBQUE7QUFDdkMsT0FBTyxFQUFFLFNBQVMsRUFBRSxhQUFhLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQTtBQUczRCxJQUFNLG9CQUFvQixHQUExQixNQUFNLG9CQUFxQixTQUFRLGdCQUFBLFdBQVcsRUFFbEQsQ0FBQyxnQkFBZ0IsRUFBRTtJQUNwQixFQUFFLEVBQUUsU0FBUztJQUNiLElBQUksa0JBQUUsaUJBQWlCO0lBQ3ZCLFdBQVcsRUFBRSx5QkFBQSxnQkFBQSxNQUFNLENBQUMsRUFBRSxHQUFHLEVBQUUsYUFBYSxFQUFFLENBQUMsQ0FBVztJQUN0RCxNQUFNLEVBQUUsZ0JBQUEsT0FBTyxDQUFDLElBQ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LFNBQVM7WUFDNUIsR0FBRyxPQUFPO1lBQ1YsTUFBTSxFQUFFLE1BQU0sQ0FBQyxNQUFNO1lBQ3JCLE1BQU07U0FDUCxDQUFDLENBQUE7SUFDSixDQUFDO0lBRUQsTUFBTSxDQUFDLFlBQVksQ0FBYSxJQUFvQjtRQUNsRCxPQUFPO1lBQ0wsYUFBYSxFQUFFLElBQUksQ0FBQyxJQUFJO1lBQ3hCLE1BQU0sRUFBRSxJQUFJLENBQUMsTUFBTTtZQUNuQixHQUFHLENBQUMsSUFBSSxDQUFDLE1BQU07Z0JBQ2IsQ0FBQyxDQUFDLEVBQUUsbUJBQW1CLEVBQUUsSUFBSSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEVBQUUsWUFBWSxFQUFFLElBQUksQ0FBQyxNQUFNLENBQUMsTUFBTSxFQUFFO2dCQUM3RSxDQUFDLENBQUMsRUFBRSxDQUFDO1NBQ1IsQ0FBQTtJQUNILENBQUM7Q0FDRixDQUFBO0FBdENZLGNBQWM7b0JBRDFCLHlCQUF5QjtHQUNiLGNBQWMsQ0FzQzFCIn0=
|
|
@@ -16,7 +16,6 @@ export interface QueueMakerOps {
|
|
|
16
16
|
export declare const QueueMaker: QueueMakerOps;
|
|
17
17
|
export declare const QueueMeta: import("@effect-app/schema").Schema<never, {
|
|
18
18
|
readonly requestContext: {
|
|
19
|
-
readonly _tag: "RequestContext";
|
|
20
19
|
readonly id: string;
|
|
21
20
|
readonly name: string;
|
|
22
21
|
readonly locale: "en" | "de";
|
|
@@ -26,7 +25,6 @@ export declare const QueueMeta: import("@effect-app/schema").Schema<never, {
|
|
|
26
25
|
readonly sub: string;
|
|
27
26
|
} | undefined;
|
|
28
27
|
readonly parent?: {
|
|
29
|
-
readonly _tag: "RequestContext";
|
|
30
28
|
readonly id: string;
|
|
31
29
|
readonly name: string;
|
|
32
30
|
readonly locale: "en" | "de";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../_src/services/QueueMaker/service.ts"],"names":[],"mappings":";;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AAC5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAA;AAE1E,MAAM,WAAW,SAAS,CAAC,GAAG,EAAE,QAAQ;IACtC,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,EACxB,eAAe,EAAE,CAAC,EAAE,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,KAC5D,MAAM,CAAC,KAAK,GAAG,uBAAuB,GAAG,mBAAmB,GAAG,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;IACxF,OAAO,EAAE,CACP,GAAG,QAAQ,EAAE,qBAAqB,CAAC,GAAG,CAAC,KACpC,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;CAAG;AACjC,eAAO,MAAM,UAAU,EAAE,aAAkB,CAAA;AAE3C,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../_src/services/QueueMaker/service.ts"],"names":[],"mappings":";;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AAC5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAA;AAE1E,MAAM,WAAW,SAAS,CAAC,GAAG,EAAE,QAAQ;IACtC,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,EACxB,eAAe,EAAE,CAAC,EAAE,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,KAC5D,MAAM,CAAC,KAAK,GAAG,uBAAuB,GAAG,mBAAmB,GAAG,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;IACxF,OAAO,EAAE,CACP,GAAG,QAAQ,EAAE,qBAAqB,CAAC,GAAG,CAAC,KACpC,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;CAAG;AACjC,eAAO,MAAM,UAAU,EAAE,aAAkB,CAAA;AAE3C,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQpB,CAAA"}
|
|
@@ -100,7 +100,7 @@ export declare function makeRepo<PM extends {
|
|
|
100
100
|
value: A_1;
|
|
101
101
|
readonly S: PM;
|
|
102
102
|
};
|
|
103
|
-
}) => Where | readonly [Where, ...Where[]], mode?: "
|
|
103
|
+
}) => Where | readonly [Where, ...Where[]], mode?: "and" | "or" | undefined) => Filter<PM>;
|
|
104
104
|
query: (fn: (f: import("./Store/filterApi/query.js").FilterTest<PM>, fields: import("./Store/filterApi/proxy.js").Filter<PM, never>) => QueryBuilder<PM>) => QueryBuilder<PM>;
|
|
105
105
|
};
|
|
106
106
|
/**
|
|
@@ -10,18 +10,18 @@ export declare function createContext<TKey extends string, EA, A extends DBRecor
|
|
|
10
10
|
findByIndex: (index: Index) => import("effect/Effect").Effect<RedisClient, import("@effect-app/infra-adapters/redis-client").ConnectionException, import("effect/Option").Option<TKey>>;
|
|
11
11
|
save: (record: A) => import("effect/Effect").Effect<RedisClient | simpledb.RecordCache | REncode, CouldNotAquireDbLockException | import("./shared.js").OptimisticLockException | simpledb.InvalidStateError, A>;
|
|
12
12
|
};
|
|
13
|
-
declare const RedisSerializedDBRecord_base: S.
|
|
13
|
+
declare const RedisSerializedDBRecord_base: S.EnhancedClass<never, {
|
|
14
14
|
readonly data: string;
|
|
15
|
-
readonly version: string;
|
|
16
15
|
readonly timestamp: string;
|
|
16
|
+
readonly version: string;
|
|
17
17
|
}, {
|
|
18
18
|
readonly data: string;
|
|
19
|
-
readonly version: string;
|
|
20
19
|
readonly timestamp: Date;
|
|
20
|
+
readonly version: string;
|
|
21
21
|
}, {
|
|
22
22
|
readonly data: string;
|
|
23
|
-
readonly version: string;
|
|
24
23
|
readonly timestamp: Date;
|
|
24
|
+
readonly version: string;
|
|
25
25
|
}, RedisSerializedDBRecord, {
|
|
26
26
|
version: S.Schema<never, string, string>;
|
|
27
27
|
timestamp: S.Schema<never, string, Date> & {
|
|
@@ -37,18 +37,18 @@ export declare class ConnectionException extends ConnectionException_base<{
|
|
|
37
37
|
export interface DBRecord<TKey extends string> {
|
|
38
38
|
id: TKey;
|
|
39
39
|
}
|
|
40
|
-
declare const SerializedDBRecord_base: S.
|
|
40
|
+
declare const SerializedDBRecord_base: S.EnhancedClass<never, {
|
|
41
41
|
readonly data: string;
|
|
42
|
-
readonly version: string;
|
|
43
42
|
readonly timestamp: string;
|
|
43
|
+
readonly version: string;
|
|
44
44
|
}, {
|
|
45
45
|
readonly data: string;
|
|
46
|
-
readonly version: string;
|
|
47
46
|
readonly timestamp: Date;
|
|
47
|
+
readonly version: string;
|
|
48
48
|
}, {
|
|
49
49
|
readonly data: string;
|
|
50
|
-
readonly version: string;
|
|
51
50
|
readonly timestamp: Date;
|
|
51
|
+
readonly version: string;
|
|
52
52
|
}, SerializedDBRecord, {
|
|
53
53
|
version: S.Schema<never, string, string>;
|
|
54
54
|
timestamp: S.Schema<never, string, Date> & {
|
|
@@ -60,12 +60,12 @@ export declare class SerializedDBRecord extends SerializedDBRecord_base {
|
|
|
60
60
|
}
|
|
61
61
|
export declare function makeSerialisedDBRecord(s: Schema<never, any>): S.Schema<never, {
|
|
62
62
|
readonly data: any;
|
|
63
|
-
readonly version: number;
|
|
64
63
|
readonly timestamp: string;
|
|
64
|
+
readonly version: number;
|
|
65
65
|
}, {
|
|
66
66
|
readonly data: any;
|
|
67
|
-
readonly version: number;
|
|
68
67
|
readonly timestamp: Date;
|
|
68
|
+
readonly version: number;
|
|
69
69
|
}>;
|
|
70
70
|
export interface CachedRecord<T> {
|
|
71
71
|
version: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/infra",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.163.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"pure-rand": "6.0.4",
|
|
23
23
|
"redlock": "^4.2.0",
|
|
24
24
|
"@effect-app/core": "0.119.0",
|
|
25
|
-
"@effect-app/
|
|
26
|
-
"@effect-app/
|
|
27
|
-
"@effect-app/
|
|
28
|
-
"@effect-app/
|
|
25
|
+
"@effect-app/schema": "0.177.0",
|
|
26
|
+
"@effect-app/fluent-extensions": "0.113.8",
|
|
27
|
+
"@effect-app/infra-adapters": "0.110.3",
|
|
28
|
+
"@effect-app/prelude": "0.140.3"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/cli": "^7.23.9",
|