@effect-app/infra 0.54.1 → 0.54.3
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 +20 -0
- package/_cjs/RequestContext.cjs +12 -14
- package/_cjs/RequestContext.cjs.map +1 -1
- package/_cjs/_global.ext.cjs +1 -3
- package/_cjs/_global.ext.cjs.map +1 -1
- package/_src/RequestContext.ts +12 -14
- package/_src/_global.ext.ts +2 -0
- package/dist/RequestContext.d.ts +34 -16
- package/dist/RequestContext.d.ts.map +1 -1
- package/dist/RequestContext.js +13 -14
- package/dist/_global.ext.d.ts +1 -1
- package/dist/_global.ext.d.ts.map +1 -1
- package/dist/_global.ext.js +2 -2
- package/dist/api/express/makeOpenApiSpecs.d.ts +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @effect-app/infra
|
|
2
2
|
|
|
3
|
+
## 0.54.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Improve schema prop api
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @effect-app/prelude@0.44.3
|
|
10
|
+
- @effect-app/schema@0.39.3
|
|
11
|
+
- @effect-app/infra-adapters@0.40.3
|
|
12
|
+
|
|
13
|
+
## 0.54.2
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Improve withDefadult
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
- @effect-app/prelude@0.44.2
|
|
20
|
+
- @effect-app/schema@0.39.2
|
|
21
|
+
- @effect-app/infra-adapters@0.40.2
|
|
22
|
+
|
|
3
23
|
## 0.54.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/_cjs/RequestContext.cjs
CHANGED
|
@@ -4,8 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.RequestId = exports.RequestContextParent = exports.RequestContext = void 0;
|
|
7
|
-
exports.makeRequestId = makeRequestId;
|
|
8
7
|
var tsplus_module_1 = _interopRequireWildcard(require("@effect-app/prelude/schema"));
|
|
8
|
+
var tsplus_module_2 = _interopRequireWildcard(require("@effect-app/prelude/_ext/Schema.ext"));
|
|
9
|
+
require("@effect-app/prelude/_global.ext");
|
|
9
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); }
|
|
10
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; }
|
|
11
12
|
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
@@ -19,30 +20,27 @@ var RequestContext_1;
|
|
|
19
20
|
const RequestId = tsplus_module_1.StringId;
|
|
20
21
|
exports.RequestId = RequestId;
|
|
21
22
|
let RequestContextParent = class RequestContextParent extends tsplus_module_1.MNModel()({
|
|
22
|
-
_tag: tsplus_module_1.
|
|
23
|
-
id:
|
|
24
|
-
name: tsplus_module_1.
|
|
25
|
-
user:
|
|
23
|
+
_tag: tsplus_module_1.literal("RequestContext"),
|
|
24
|
+
id: RequestId,
|
|
25
|
+
name: tsplus_module_1.ReasonableString,
|
|
26
|
+
user: tsplus_module_2.optionalProp(tsplus_module_1.props({
|
|
26
27
|
id: tsplus_module_1.prop(tsplus_module_1.StringId)
|
|
27
28
|
})),
|
|
28
|
-
locale: tsplus_module_1.
|
|
29
|
-
createdAt:
|
|
29
|
+
locale: tsplus_module_1.literal("en", "de"),
|
|
30
|
+
createdAt: tsplus_module_2.withDefaultProp(tsplus_module_1.date)
|
|
30
31
|
}) {};
|
|
31
32
|
exports.RequestContextParent = RequestContextParent;
|
|
32
33
|
exports.RequestContextParent = RequestContextParent = __decorate([tsplus_module_1.useClassFeaturesForSchema], RequestContextParent);
|
|
33
|
-
function makeRequestId() {
|
|
34
|
-
return RequestId.make();
|
|
35
|
-
}
|
|
36
34
|
/**
|
|
37
35
|
* @tsplus type RequestContext
|
|
38
36
|
* @tsplus companion RequestContext.Ops
|
|
39
37
|
*/
|
|
40
38
|
let RequestContext = RequestContext_1 = class RequestContext extends tsplus_module_1.MNModel()({
|
|
41
39
|
...RequestContextParent.omit("id"),
|
|
42
|
-
id:
|
|
43
|
-
rootId:
|
|
44
|
-
parent:
|
|
45
|
-
namespace:
|
|
40
|
+
id: RequestId.withDefault,
|
|
41
|
+
rootId: RequestId,
|
|
42
|
+
parent: tsplus_module_2.optionalProp(RequestContextParent),
|
|
43
|
+
namespace: tsplus_module_2.optionalProp(tsplus_module_1.ReasonableString)
|
|
46
44
|
}) {
|
|
47
45
|
static inherit(parent, newSelf) {
|
|
48
46
|
return new RequestContext_1({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestContext.cjs","names":["RequestId","tsplus_module_1","StringId","exports","RequestContextParent","MNModel","_tag","
|
|
1
|
+
{"version":3,"file":"RequestContext.cjs","names":["require","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_interopRequireWildcard","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","RequestId","tsplus_module_1","StringId","exports","RequestContextParent","MNModel","_tag","literal","id","name","ReasonableString","user","tsplus_module_2","optionalProp","props","prop","locale","createdAt","withDefaultProp","date","__decorate","useClassFeaturesForSchema","RequestContext","RequestContext_1","omit","withDefault","rootId","parent","namespace","inherit","newSelf","toMonitoring","self","operationName","parentOperationName","parentLocale","Encoded","EncodedClass"],"sources":["../_src/RequestContext.ts"],"sourcesContent":[null],"mappings":";;;;;;;;AAAAA,OAAA;AAAwC,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAI,wBAAAC,GAAA,EAAAL,WAAA,SAAAA,WAAA,IAAAK,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAT,wBAAA,CAAAC,WAAA,OAAAQ,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,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1 @@
|
|
|
1
|
-
{"version":3,"file":"_global.ext.cjs","names":[],"sources":["../_src/_global.ext.ts"],"sourcesContent":[null],"mappings":""}
|
|
1
|
+
{"version":3,"file":"_global.ext.cjs","names":["require"],"sources":["../_src/_global.ext.ts"],"sourcesContent":[null],"mappings":";;AAAAA,OAAA"}
|
package/_src/RequestContext.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import "@effect-app/prelude/_global.ext"
|
|
2
|
+
|
|
1
3
|
export const RequestId = StringId
|
|
2
4
|
export type RequestId = ParsedShapeOfCustom<typeof RequestId>
|
|
3
5
|
|
|
@@ -8,20 +10,16 @@ export class RequestContextParent extends MNModel<
|
|
|
8
10
|
RequestContextParent.Encoded,
|
|
9
11
|
RequestContextParent.Props
|
|
10
12
|
>()({
|
|
11
|
-
_tag:
|
|
12
|
-
id:
|
|
13
|
-
name:
|
|
14
|
-
user:
|
|
15
|
-
locale:
|
|
16
|
-
createdAt:
|
|
13
|
+
_tag: literal("RequestContext"),
|
|
14
|
+
id: RequestId,
|
|
15
|
+
name: ReasonableString,
|
|
16
|
+
user: props({ id: prop(StringId) }).optional,
|
|
17
|
+
locale: literal("en", "de"),
|
|
18
|
+
createdAt: date.withDefault
|
|
17
19
|
}) {}
|
|
18
20
|
/** @ignore @internal @deprecated */
|
|
19
21
|
export type RequestContextParentConstructor = typeof RequestContextParent
|
|
20
22
|
|
|
21
|
-
export function makeRequestId() {
|
|
22
|
-
return RequestId.make()
|
|
23
|
-
}
|
|
24
|
-
|
|
25
23
|
/**
|
|
26
24
|
* @tsplus type RequestContext
|
|
27
25
|
* @tsplus companion RequestContext.Ops
|
|
@@ -34,10 +32,10 @@ export class RequestContext extends MNModel<
|
|
|
34
32
|
RequestContext.Props
|
|
35
33
|
>()({
|
|
36
34
|
...RequestContextParent.omit("id"),
|
|
37
|
-
id:
|
|
38
|
-
rootId:
|
|
39
|
-
parent:
|
|
40
|
-
namespace:
|
|
35
|
+
id: RequestId.withDefault,
|
|
36
|
+
rootId: RequestId,
|
|
37
|
+
parent: RequestContextParent.optional,
|
|
38
|
+
namespace: ReasonableString.optional
|
|
41
39
|
}) {
|
|
42
40
|
static inherit(
|
|
43
41
|
this: void,
|
package/_src/_global.ext.ts
CHANGED
package/dist/RequestContext.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ParsedShapeOfCustom, useClassFeaturesForSchema, MNModel,
|
|
1
|
+
import { ParsedShapeOfCustom, useClassFeaturesForSchema, MNModel, literal, ReasonableString, props, prop, StringId, date, EncodedClass, ConstructorInputFromApi, GetProvidedProps } from "@effect-app/prelude/schema";
|
|
2
|
+
import "@effect-app/prelude/_global.ext";
|
|
2
3
|
export declare const RequestId: import("@effect-app/prelude/schema").StringIdSchema & import("@effect-app/schema").Utils<import("@effect-app/prelude/schema").StringIdSchema> & {
|
|
3
4
|
make: () => import("@effect-app/prelude/schema").StringId;
|
|
4
5
|
withDefault: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, import("@effect-app/prelude/schema").StringId, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/prelude/schema").StringId>>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").Some<["constructor", () => import("@effect-app/prelude/schema").StringId]>>;
|
|
@@ -11,38 +12,55 @@ declare const RequestContextParent_base: import("@effect-app/schema").MNModel<im
|
|
|
11
12
|
withDefault: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, import("@effect-app/prelude/schema").StringId, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/prelude/schema").StringId>>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").Some<["constructor", () => import("@effect-app/prelude/schema").StringId]>>;
|
|
12
13
|
}, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
13
14
|
name: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, import("@effect-app/schema").ReasonableString, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/schema").ReasonableString>> & import("@effect-app/schema").Utils<import("@effect-app/schema").SchemaDefaultSchema<unknown, import("@effect-app/schema").ReasonableString, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/schema").ReasonableString>>>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
14
|
-
user: import("@effect-app/schema").Property<import("@effect-app/schema").
|
|
15
|
-
id: import("@effect-app/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
user: import("@effect-app/schema").Property<import("@effect-app/schema").Schema<unknown, {
|
|
16
|
+
readonly id: import("@effect-app/prelude/schema").StringId;
|
|
17
|
+
}, {
|
|
18
|
+
readonly id: import("@effect-app/prelude/schema").StringId;
|
|
19
|
+
}, {
|
|
20
|
+
readonly id: string;
|
|
21
|
+
}, {
|
|
22
|
+
props: {
|
|
23
|
+
id: import("@effect-app/schema").Property<import("@effect-app/prelude/schema").StringIdSchema & import("@effect-app/schema").Utils<import("@effect-app/prelude/schema").StringIdSchema> & {
|
|
24
|
+
make: () => import("@effect-app/prelude/schema").StringId;
|
|
25
|
+
withDefault: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, import("@effect-app/prelude/schema").StringId, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/prelude/schema").StringId>>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").Some<["constructor", () => import("@effect-app/prelude/schema").StringId]>>;
|
|
26
|
+
}, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
27
|
+
};
|
|
19
28
|
}>, "optional", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
20
29
|
locale: import("@effect-app/schema").Property<import("@effect-app/schema").DefaultSchema<unknown, "en" | "de", "en" | "de", "en" | "de", import("@effect-app/schema").LiteralApi<["en", "de"]>>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
21
|
-
createdAt: import("@effect-app/schema").FromProperty<import("@effect-app/schema").
|
|
30
|
+
createdAt: import("@effect-app/schema").FromProperty<import("@effect-app/schema").Schema<unknown, Date, Date, string, {}>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").Some<["constructor", () => Date]>>;
|
|
22
31
|
}>, RequestContextParent, RequestContextParent.ConstructorInput, RequestContextParent.Encoded, RequestContextParent.Props> & import("@effect-app/schema").PropsExtensions<RequestContextParent.Props>;
|
|
23
32
|
export declare class RequestContextParent extends RequestContextParent_base {
|
|
24
33
|
}
|
|
25
34
|
/** @ignore @internal @deprecated */
|
|
26
35
|
export type RequestContextParentConstructor = typeof RequestContextParent;
|
|
27
|
-
export declare function makeRequestId(): import("@effect-app/prelude/schema").StringId;
|
|
28
36
|
declare const RequestContext_base: import("@effect-app/schema").MNModel<import("@effect-app/schema").SchemaProperties<{
|
|
29
37
|
id: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, import("@effect-app/prelude/schema").StringId, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/prelude/schema").StringId>>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").Some<["constructor", () => import("@effect-app/prelude/schema").StringId]>>;
|
|
30
38
|
rootId: import("@effect-app/schema").Property<import("@effect-app/prelude/schema").StringIdSchema & import("@effect-app/schema").Utils<import("@effect-app/prelude/schema").StringIdSchema> & {
|
|
31
39
|
make: () => import("@effect-app/prelude/schema").StringId;
|
|
32
40
|
withDefault: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, import("@effect-app/prelude/schema").StringId, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/prelude/schema").StringId>>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").Some<["constructor", () => import("@effect-app/prelude/schema").StringId]>>;
|
|
33
41
|
}, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
34
|
-
parent: import("@effect-app/schema").Property<
|
|
35
|
-
|
|
42
|
+
parent: import("@effect-app/schema").Property<import("@effect-app/schema").Schema<unknown, RequestContextParent, RequestContextParent.ConstructorInput, RequestContextParent.Encoded, {
|
|
43
|
+
props: RequestContextParent.Props;
|
|
44
|
+
}>, "optional", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
45
|
+
namespace: import("@effect-app/schema").Property<import("@effect-app/schema").Schema<unknown, import("@effect-app/schema").ReasonableString, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/schema").ReasonableString>>, "optional", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
36
46
|
_tag: import("@effect-app/schema").Property<import("@effect-app/schema").DefaultSchema<unknown, "RequestContext", "RequestContext", "RequestContext", import("@effect-app/schema").LiteralApi<["RequestContext"]>>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
37
47
|
name: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, import("@effect-app/schema").ReasonableString, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/schema").ReasonableString>> & import("@effect-app/schema").Utils<import("@effect-app/schema").SchemaDefaultSchema<unknown, import("@effect-app/schema").ReasonableString, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/schema").ReasonableString>>>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
38
|
-
user: import("@effect-app/schema").Property<import("@effect-app/schema").
|
|
39
|
-
id: import("@effect-app/
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
48
|
+
user: import("@effect-app/schema").Property<import("@effect-app/schema").Schema<unknown, {
|
|
49
|
+
readonly id: import("@effect-app/prelude/schema").StringId;
|
|
50
|
+
}, {
|
|
51
|
+
readonly id: import("@effect-app/prelude/schema").StringId;
|
|
52
|
+
}, {
|
|
53
|
+
readonly id: string;
|
|
54
|
+
}, {
|
|
55
|
+
props: {
|
|
56
|
+
id: import("@effect-app/schema").Property<import("@effect-app/prelude/schema").StringIdSchema & import("@effect-app/schema").Utils<import("@effect-app/prelude/schema").StringIdSchema> & {
|
|
57
|
+
make: () => import("@effect-app/prelude/schema").StringId;
|
|
58
|
+
withDefault: import("@effect-app/schema").Property<import("@effect-app/schema").SchemaDefaultSchema<unknown, import("@effect-app/prelude/schema").StringId, string, string, import("@effect-app/schema").ApiSelfType<import("@effect-app/prelude/schema").StringId>>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").Some<["constructor", () => import("@effect-app/prelude/schema").StringId]>>;
|
|
59
|
+
}, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
60
|
+
};
|
|
43
61
|
}>, "optional", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
44
62
|
locale: import("@effect-app/schema").Property<import("@effect-app/schema").DefaultSchema<unknown, "en" | "de", "en" | "de", "en" | "de", import("@effect-app/schema").LiteralApi<["en", "de"]>>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").None<any>>;
|
|
45
|
-
createdAt: import("@effect-app/schema").FromProperty<import("@effect-app/schema").
|
|
63
|
+
createdAt: import("@effect-app/schema").FromProperty<import("@effect-app/schema").Schema<unknown, Date, Date, string, {}>, "required", import("@effect/data/Option").None<any>, import("@effect/data/Option").Some<["constructor", () => Date]>>;
|
|
46
64
|
}>, RequestContext, RequestContext.ConstructorInput, RequestContext.Encoded, RequestContext.Props> & import("@effect-app/schema").PropsExtensions<RequestContext.Props>;
|
|
47
65
|
/**
|
|
48
66
|
* @tsplus type RequestContext
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestContext.d.ts","sourceRoot":"","sources":["../_src/RequestContext.ts"],"names":[],"mappings":";AAAA,eAAO,MAAM,SAAS;;;CAAW,CAAA;AACjC,MAAM,MAAM,SAAS,GAAG,mBAAmB,CAAC,OAAO,SAAS,CAAC,CAAA
|
|
1
|
+
{"version":3,"file":"RequestContext.d.ts","sourceRoot":"","sources":["../_src/RequestContext.ts"],"names":[],"mappings":";AAAA,OA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;
|
|
8
8
|
import * as tsplus_module_1 from "@effect-app/prelude/schema";
|
|
9
|
+
import * as tsplus_module_2 from "@effect-app/prelude/_ext/Schema.ext";
|
|
10
|
+
import "@effect-app/prelude/_global.ext";
|
|
9
11
|
export const RequestId = tsplus_module_1.StringId;
|
|
10
12
|
let RequestContextParent = class RequestContextParent extends tsplus_module_1.MNModel()({
|
|
11
|
-
_tag: tsplus_module_1.
|
|
12
|
-
id:
|
|
13
|
-
name: tsplus_module_1.
|
|
14
|
-
user:
|
|
15
|
-
locale: tsplus_module_1.
|
|
16
|
-
createdAt:
|
|
13
|
+
_tag: tsplus_module_1.literal("RequestContext"),
|
|
14
|
+
id: RequestId,
|
|
15
|
+
name: tsplus_module_1.ReasonableString,
|
|
16
|
+
user: tsplus_module_2.optionalProp(tsplus_module_1.props({ id: tsplus_module_1.prop(tsplus_module_1.StringId) })),
|
|
17
|
+
locale: tsplus_module_1.literal("en", "de"),
|
|
18
|
+
createdAt: tsplus_module_2.withDefaultProp(tsplus_module_1.date)
|
|
17
19
|
}) {
|
|
18
20
|
};
|
|
19
21
|
RequestContextParent = __decorate([
|
|
20
22
|
tsplus_module_1.useClassFeaturesForSchema
|
|
21
23
|
], RequestContextParent);
|
|
22
24
|
export { RequestContextParent };
|
|
23
|
-
export function makeRequestId() {
|
|
24
|
-
return RequestId.make();
|
|
25
|
-
}
|
|
26
25
|
/**
|
|
27
26
|
* @tsplus type RequestContext
|
|
28
27
|
* @tsplus companion RequestContext.Ops
|
|
29
28
|
*/
|
|
30
29
|
let RequestContext = RequestContext_1 = class RequestContext extends tsplus_module_1.MNModel()({
|
|
31
30
|
...RequestContextParent.omit("id"),
|
|
32
|
-
id:
|
|
33
|
-
rootId:
|
|
34
|
-
parent:
|
|
35
|
-
namespace:
|
|
31
|
+
id: RequestId.withDefault,
|
|
32
|
+
rootId: RequestId,
|
|
33
|
+
parent: tsplus_module_2.optionalProp(RequestContextParent),
|
|
34
|
+
namespace: tsplus_module_2.optionalProp(tsplus_module_1.ReasonableString)
|
|
36
35
|
}) {
|
|
37
36
|
static inherit(parent, newSelf) {
|
|
38
37
|
return new RequestContext_1({
|
|
@@ -77,4 +76,4 @@ export { RequestContext };
|
|
|
77
76
|
}
|
|
78
77
|
RequestContext.Encoded = Encoded;
|
|
79
78
|
})(RequestContext || (RequestContext = {}));
|
|
80
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
79
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmVxdWVzdENvbnRleHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9fc3JjL1JlcXVlc3RDb250ZXh0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBLE9BQU8saUNBQWlDLENBQUE7QUFFeEMsTUFBTSxDQUFDLE1BQU0sU0FBUyxtQkFBRyxRQUFRLENBQUE7QUFJakMsSUFBYSxvQkFBb0IsR0FBakMsTUFBYSxvQkFBcUIsU0FBUSxnQkFBQSxPQUFPLEVBSzlDLENBQUM7SUFDRixJQUFJLEVBQUUsZ0JBQUEsT0FBTyxDQUFDLGdCQUFnQixDQUFDO0lBQy9CLEVBQUUsRUFBRSxTQUFTO0lBQ2IsSUFBSSxrQkFBRSxnQkFBZ0I7SUFDdEIsSUFBSSwrQkFBRSxnQkFBQSxLQUFLLENBQUMsRUFBRSxFQUFFLEVBQUUsZ0JBQUEsSUFBSSxpQkFBQyxRQUFRLENBQUMsRUFBRSxDQUFDLENBQVM7SUFDNUMsTUFBTSxFQUFFLGdCQUFBLE9BQU8sQ0FBQyxJQUFJLEVBQUUsSUFBSSxDQUFDO0lBQzNCLFNBQVMsa0RBQUUsSUFBSSxDQUFZO0NBQzVCLENBQUM7Q0FBRyxDQUFBO0FBWlEsb0JBQW9CO29CQURoQyx5QkFBeUI7R0FDYixvQkFBb0IsQ0FZNUI7U0FaUSxvQkFBb0I7QUFnQmpDOzs7R0FHRztBQU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UFvQjtBQUNwQixXQUFpQixvQkFBb0I7SUFDbkM7OztPQUdHO0lBQ0gsTUFBYSxPQUFRLFNBQVEsZ0JBQUEsWUFBWSxFQUErQjtLQUFHO0lBQTlELDRCQUFPLFVBQXVELENBQUE7QUFJN0UsQ0FBQyxFQVRnQixvQkFBb0IsS0FBcEIsb0JBQW9CLFFBU3BDO0FBQ0QsV0FBaUIsY0FBYztJQUM3Qjs7O09BR0c7SUFDSCxNQUFhLE9BQVEsU0FBUSxnQkFBQSxZQUFZLEVBQXlCO0tBQUc7SUFBeEQsc0JBQU8sVUFBaUQsQ0FBQTtBQUl2RSxDQUFDLEVBVGdCLGNBQWMsS0FBZCxjQUFjLFFBUzlCIn0=
|
package/dist/_global.ext.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_global.ext.d.ts","sourceRoot":"","sources":["../_src/_global.ext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"_global.ext.d.ts","sourceRoot":"","sources":["../_src/_global.ext.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,yCAAyC,CAAA;AAC7D;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,6CAA6C,CAAA;AACjE;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,4CAA4C,CAAA;AAChE;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,8CAA8C,CAAA;AAClE;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,6BAA6B,CAAA;AACjD;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,8BAA8B,CAAA;AAClD;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,8BAA8B,CAAA;AAClD;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,6BAA6B,CAAA;AAEjD;;GAEG;AACH,OAAO,KAAK,EAAE,MAAM,oCAAoC,CAAA;AAExD;;GAEG;AACH,OAAO,EAAE,MAAM,mCAAmC,CAAA;AA3ClD,OAAO,iCAAiC,CAAA"}
|
package/dist/_global.ext.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import "@effect-app/prelude/_global.ext";
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiX2dsb2JhbC5leHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9fc3JjL19nbG9iYWwuZXh0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8saUNBQWlDLENBQUEifQ==
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/infra",
|
|
3
|
-
"version": "0.54.
|
|
3
|
+
"version": "0.54.3",
|
|
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.1",
|
|
21
21
|
"redlock": "^4.2.0",
|
|
22
|
-
"@effect-app/prelude": "0.44.
|
|
23
|
-
"@effect-app/
|
|
24
|
-
"@effect-app/infra-adapters": "0.40.
|
|
25
|
-
"@effect-app/
|
|
22
|
+
"@effect-app/prelude": "0.44.3",
|
|
23
|
+
"@effect-app/core": "0.47.0",
|
|
24
|
+
"@effect-app/infra-adapters": "0.40.3",
|
|
25
|
+
"@effect-app/schema": "0.39.3"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/cli": "^7.21.0",
|