@effect-app/infra 4.0.0-beta.201 → 4.0.0-beta.203
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/dist/CUPS.d.ts +2 -10
- package/dist/CUPS.d.ts.map +1 -1
- package/dist/Model/Repository/validation.d.ts +13 -109
- package/dist/Model/Repository/validation.d.ts.map +1 -1
- package/dist/RequestContext.d.ts +19 -70
- package/dist/RequestContext.d.ts.map +1 -1
- package/dist/adapters/logger.d.ts +1 -1
- package/dist/logger.d.ts +1 -1
- package/package.json +2 -2
- package/test/dist/query.test.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @effect-app/infra
|
|
2
2
|
|
|
3
|
+
## 4.0.0-beta.203
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [992d9fa]
|
|
8
|
+
- effect-app@4.0.0-beta.203
|
|
9
|
+
|
|
10
|
+
## 4.0.0-beta.202
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [1186b09]
|
|
15
|
+
- effect-app@4.0.0-beta.202
|
|
16
|
+
|
|
3
17
|
## 4.0.0-beta.201
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/CUPS.d.ts
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { type FileOptions } from "@effect-app/infra/fileUtil";
|
|
2
2
|
import { Config, Context, Effect, Layer, Option, S } from "effect-app";
|
|
3
|
-
export declare const PrinterId: S.WithDefaults<
|
|
4
|
-
readonly Type: S.NonEmptyString255;
|
|
5
|
-
readonly Iso: S.NonEmptyString255;
|
|
6
|
-
readonly "~type.make": S.NonEmptyString255;
|
|
7
|
-
}> & Omit<S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString255" | "NonEmptyString2k" | "NonEmptyString64k">, "Iso" | "Type" | "~type.make"> & {
|
|
8
|
-
readonly Type: S.NonEmptyString255;
|
|
9
|
-
readonly Iso: S.NonEmptyString255;
|
|
10
|
-
readonly "~type.make": S.NonEmptyString255;
|
|
11
|
-
};
|
|
3
|
+
export declare const PrinterId: S.WithDefaults<import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").NonEmptyString, S.NonEmptyString255>> & import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").NonEmptyString, S.NonEmptyString255>;
|
|
12
4
|
export type PrinterId = S.NonEmptyString255;
|
|
13
5
|
export declare const prepareTempDir: Effect.Effect<void, never, never>;
|
|
14
6
|
export declare const makePrintJobTempFile: (data: string | AsyncIterable<string | NodeJS.ArrayBufferView<ArrayBufferLike>> | Iterable<string | NodeJS.ArrayBufferView<ArrayBufferLike>> | import("node:stream") | NodeJS.ArrayBufferView<ArrayBufferLike>, options?: FileOptions) => Effect.Effect<string, import("effect/Cause").UnknownError, import("effect/Scope").Scope>;
|
|
@@ -43,4 +35,4 @@ export declare class CUPS extends CUPS_base {
|
|
|
43
35
|
static readonly Fake: Layer.Layer<CUPS, never, never>;
|
|
44
36
|
}
|
|
45
37
|
export {};
|
|
46
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
38
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ1VQUy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL0NVUFMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLEtBQUssV0FBVyxFQUFZLE1BQU0sNEJBQTRCLENBQUE7QUFFdkUsT0FBTyxFQUFFLE1BQU0sRUFBRSxPQUFPLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQWEsQ0FBQyxFQUFFLE1BQU0sWUFBWSxDQUFBO0FBUWpGLGVBQU8sTUFBTSxTQUFTLDZPQUFzQixDQUFBO0FBQzVDLE1BQU0sTUFBTSxTQUFTLEdBQUcsQ0FBQyxDQUFDLGlCQUFpQixDQUFBO0FBdUMzQyxlQUFPLE1BQU0sY0FBYyxtQ0FVekIsQ0FBQTtBQUdGLGVBQU8sTUFBTSxvQkFBb0Isb1VBQTRCLENBQUE7QUFDN0QsZUFBTyxNQUFNLCtCQUErQixXQUFZLFdBQVcsWUFBWSxXQUFXLDZGQUN0QyxDQUFBO0FBeUJwRCxlQUFPLE1BQU0sVUFBVTs7RUFRckIsQ0FBQTs7b0JBTXlCLFdBQVcsYUFBYSxTQUFTLGNBQWMsTUFBTSxFQUFFOzs7OzBCQVN0RCxNQUFNLGFBQWEsU0FBUyxjQUFjLE1BQU0sRUFBRTs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBYjlFLHFCQUFhLElBQUssU0FBUSxTQXFCeEI7SUFDQSxNQUFNLENBQUMsUUFBUSxDQUFDLElBQUksa0NBK0JuQjtDQUNGIn0=
|
package/dist/CUPS.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CUPS.d.ts","sourceRoot":"","sources":["../src/CUPS.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAY,MAAM,4BAA4B,CAAA;AAEvE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAa,CAAC,EAAE,MAAM,YAAY,CAAA;AAQjF,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"CUPS.d.ts","sourceRoot":"","sources":["../src/CUPS.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAY,MAAM,4BAA4B,CAAA;AAEvE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAa,CAAC,EAAE,MAAM,YAAY,CAAA;AAQjF,eAAO,MAAM,SAAS,6OAAsB,CAAA;AAC5C,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,iBAAiB,CAAA;AAuC3C,eAAO,MAAM,cAAc,mCAUzB,CAAA;AAGF,eAAO,MAAM,oBAAoB,oUAA4B,CAAA;AAC7D,eAAO,MAAM,+BAA+B,WAAY,WAAW,YAAY,WAAW,6FACtC,CAAA;AAyBpD,eAAO,MAAM,UAAU;;EAQrB,CAAA;;oBAMyB,WAAW,aAAa,SAAS,cAAc,MAAM,EAAE;;;;0BAStD,MAAM,aAAa,SAAS,cAAc,MAAM,EAAE;;;;;;;;;;;;;;;;;;AAb9E,qBAAa,IAAK,SAAQ,SAqBxB;IACA,MAAM,CAAC,QAAQ,CAAC,IAAI,kCA+BnB;CACF"}
|
|
@@ -27,64 +27,16 @@ export declare class ValidationError extends ValidationError_base {
|
|
|
27
27
|
}
|
|
28
28
|
declare const ValidationResult_base: S.Opaque<ValidationResult, typeof S.ExtendedSchemaNoEncoded, S.Struct<{
|
|
29
29
|
/** total number of items in the repository */
|
|
30
|
-
readonly total: S.WithDefaults<
|
|
31
|
-
|
|
32
|
-
readonly Iso: NonNegativeInt;
|
|
33
|
-
readonly "~type.make": NonNegativeInt;
|
|
34
|
-
}> & Omit<S.brand<import("effect/Schema").Int, "Int" | "NonNegativeInt" | "NonNegativeNumber">, "Iso" | "Type" | "~type.make"> & {
|
|
35
|
-
readonly Type: NonNegativeInt;
|
|
36
|
-
readonly Iso: NonNegativeInt;
|
|
37
|
-
readonly "~type.make": NonNegativeInt;
|
|
38
|
-
} & {
|
|
39
|
-
withDefault: S.withConstructorDefault<import("effect-app/Schema/ext").WithDefaults<Omit<S.brand<import("effect/Schema").Int, "Int" | "NonNegativeInt" | "NonNegativeNumber">, "Iso" | "Type" | "~type.make"> & {
|
|
40
|
-
readonly Type: NonNegativeInt;
|
|
41
|
-
readonly Iso: NonNegativeInt;
|
|
42
|
-
readonly "~type.make": NonNegativeInt;
|
|
43
|
-
}> & Omit<S.brand<import("effect/Schema").Int, "Int" | "NonNegativeInt" | "NonNegativeNumber">, "Iso" | "Type" | "~type.make"> & {
|
|
44
|
-
readonly Type: NonNegativeInt;
|
|
45
|
-
readonly Iso: NonNegativeInt;
|
|
46
|
-
readonly "~type.make": NonNegativeInt;
|
|
47
|
-
}>;
|
|
30
|
+
readonly total: S.WithDefaults<import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt>> & import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt> & {
|
|
31
|
+
withDefault: S.withConstructorDefault<import("effect-app/Schema/ext").WithDefaults<import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt>> & import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt>>;
|
|
48
32
|
};
|
|
49
33
|
/** number of items that were sampled for validation */
|
|
50
|
-
readonly sampled: S.WithDefaults<
|
|
51
|
-
|
|
52
|
-
readonly Iso: NonNegativeInt;
|
|
53
|
-
readonly "~type.make": NonNegativeInt;
|
|
54
|
-
}> & Omit<S.brand<import("effect/Schema").Int, "Int" | "NonNegativeInt" | "NonNegativeNumber">, "Iso" | "Type" | "~type.make"> & {
|
|
55
|
-
readonly Type: NonNegativeInt;
|
|
56
|
-
readonly Iso: NonNegativeInt;
|
|
57
|
-
readonly "~type.make": NonNegativeInt;
|
|
58
|
-
} & {
|
|
59
|
-
withDefault: S.withConstructorDefault<import("effect-app/Schema/ext").WithDefaults<Omit<S.brand<import("effect/Schema").Int, "Int" | "NonNegativeInt" | "NonNegativeNumber">, "Iso" | "Type" | "~type.make"> & {
|
|
60
|
-
readonly Type: NonNegativeInt;
|
|
61
|
-
readonly Iso: NonNegativeInt;
|
|
62
|
-
readonly "~type.make": NonNegativeInt;
|
|
63
|
-
}> & Omit<S.brand<import("effect/Schema").Int, "Int" | "NonNegativeInt" | "NonNegativeNumber">, "Iso" | "Type" | "~type.make"> & {
|
|
64
|
-
readonly Type: NonNegativeInt;
|
|
65
|
-
readonly Iso: NonNegativeInt;
|
|
66
|
-
readonly "~type.make": NonNegativeInt;
|
|
67
|
-
}>;
|
|
34
|
+
readonly sampled: S.WithDefaults<import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt>> & import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt> & {
|
|
35
|
+
withDefault: S.withConstructorDefault<import("effect-app/Schema/ext").WithDefaults<import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt>> & import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt>>;
|
|
68
36
|
};
|
|
69
37
|
/** number of items that passed validation */
|
|
70
|
-
readonly valid: S.WithDefaults<
|
|
71
|
-
|
|
72
|
-
readonly Iso: NonNegativeInt;
|
|
73
|
-
readonly "~type.make": NonNegativeInt;
|
|
74
|
-
}> & Omit<S.brand<import("effect/Schema").Int, "Int" | "NonNegativeInt" | "NonNegativeNumber">, "Iso" | "Type" | "~type.make"> & {
|
|
75
|
-
readonly Type: NonNegativeInt;
|
|
76
|
-
readonly Iso: NonNegativeInt;
|
|
77
|
-
readonly "~type.make": NonNegativeInt;
|
|
78
|
-
} & {
|
|
79
|
-
withDefault: S.withConstructorDefault<import("effect-app/Schema/ext").WithDefaults<Omit<S.brand<import("effect/Schema").Int, "Int" | "NonNegativeInt" | "NonNegativeNumber">, "Iso" | "Type" | "~type.make"> & {
|
|
80
|
-
readonly Type: NonNegativeInt;
|
|
81
|
-
readonly Iso: NonNegativeInt;
|
|
82
|
-
readonly "~type.make": NonNegativeInt;
|
|
83
|
-
}> & Omit<S.brand<import("effect/Schema").Int, "Int" | "NonNegativeInt" | "NonNegativeNumber">, "Iso" | "Type" | "~type.make"> & {
|
|
84
|
-
readonly Type: NonNegativeInt;
|
|
85
|
-
readonly Iso: NonNegativeInt;
|
|
86
|
-
readonly "~type.make": NonNegativeInt;
|
|
87
|
-
}>;
|
|
38
|
+
readonly valid: S.WithDefaults<import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt>> & import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt> & {
|
|
39
|
+
withDefault: S.withConstructorDefault<import("effect-app/Schema/ext").WithDefaults<import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt>> & import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt>>;
|
|
88
40
|
};
|
|
89
41
|
/** list of validation errors with full context */
|
|
90
42
|
readonly errors: S.$Array<typeof ValidationError> & {
|
|
@@ -93,64 +45,16 @@ declare const ValidationResult_base: S.Opaque<ValidationResult, typeof S.Extende
|
|
|
93
45
|
};
|
|
94
46
|
}>, {}> & Omit<S.Struct<{
|
|
95
47
|
/** total number of items in the repository */
|
|
96
|
-
readonly total: S.WithDefaults<
|
|
97
|
-
|
|
98
|
-
readonly Iso: NonNegativeInt;
|
|
99
|
-
readonly "~type.make": NonNegativeInt;
|
|
100
|
-
}> & Omit<S.brand<import("effect/Schema").Int, "Int" | "NonNegativeInt" | "NonNegativeNumber">, "Iso" | "Type" | "~type.make"> & {
|
|
101
|
-
readonly Type: NonNegativeInt;
|
|
102
|
-
readonly Iso: NonNegativeInt;
|
|
103
|
-
readonly "~type.make": NonNegativeInt;
|
|
104
|
-
} & {
|
|
105
|
-
withDefault: S.withConstructorDefault<import("effect-app/Schema/ext").WithDefaults<Omit<S.brand<import("effect/Schema").Int, "Int" | "NonNegativeInt" | "NonNegativeNumber">, "Iso" | "Type" | "~type.make"> & {
|
|
106
|
-
readonly Type: NonNegativeInt;
|
|
107
|
-
readonly Iso: NonNegativeInt;
|
|
108
|
-
readonly "~type.make": NonNegativeInt;
|
|
109
|
-
}> & Omit<S.brand<import("effect/Schema").Int, "Int" | "NonNegativeInt" | "NonNegativeNumber">, "Iso" | "Type" | "~type.make"> & {
|
|
110
|
-
readonly Type: NonNegativeInt;
|
|
111
|
-
readonly Iso: NonNegativeInt;
|
|
112
|
-
readonly "~type.make": NonNegativeInt;
|
|
113
|
-
}>;
|
|
48
|
+
readonly total: S.WithDefaults<import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt>> & import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt> & {
|
|
49
|
+
withDefault: S.withConstructorDefault<import("effect-app/Schema/ext").WithDefaults<import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt>> & import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt>>;
|
|
114
50
|
};
|
|
115
51
|
/** number of items that were sampled for validation */
|
|
116
|
-
readonly sampled: S.WithDefaults<
|
|
117
|
-
|
|
118
|
-
readonly Iso: NonNegativeInt;
|
|
119
|
-
readonly "~type.make": NonNegativeInt;
|
|
120
|
-
}> & Omit<S.brand<import("effect/Schema").Int, "Int" | "NonNegativeInt" | "NonNegativeNumber">, "Iso" | "Type" | "~type.make"> & {
|
|
121
|
-
readonly Type: NonNegativeInt;
|
|
122
|
-
readonly Iso: NonNegativeInt;
|
|
123
|
-
readonly "~type.make": NonNegativeInt;
|
|
124
|
-
} & {
|
|
125
|
-
withDefault: S.withConstructorDefault<import("effect-app/Schema/ext").WithDefaults<Omit<S.brand<import("effect/Schema").Int, "Int" | "NonNegativeInt" | "NonNegativeNumber">, "Iso" | "Type" | "~type.make"> & {
|
|
126
|
-
readonly Type: NonNegativeInt;
|
|
127
|
-
readonly Iso: NonNegativeInt;
|
|
128
|
-
readonly "~type.make": NonNegativeInt;
|
|
129
|
-
}> & Omit<S.brand<import("effect/Schema").Int, "Int" | "NonNegativeInt" | "NonNegativeNumber">, "Iso" | "Type" | "~type.make"> & {
|
|
130
|
-
readonly Type: NonNegativeInt;
|
|
131
|
-
readonly Iso: NonNegativeInt;
|
|
132
|
-
readonly "~type.make": NonNegativeInt;
|
|
133
|
-
}>;
|
|
52
|
+
readonly sampled: S.WithDefaults<import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt>> & import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt> & {
|
|
53
|
+
withDefault: S.withConstructorDefault<import("effect-app/Schema/ext").WithDefaults<import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt>> & import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt>>;
|
|
134
54
|
};
|
|
135
55
|
/** number of items that passed validation */
|
|
136
|
-
readonly valid: S.WithDefaults<
|
|
137
|
-
|
|
138
|
-
readonly Iso: NonNegativeInt;
|
|
139
|
-
readonly "~type.make": NonNegativeInt;
|
|
140
|
-
}> & Omit<S.brand<import("effect/Schema").Int, "Int" | "NonNegativeInt" | "NonNegativeNumber">, "Iso" | "Type" | "~type.make"> & {
|
|
141
|
-
readonly Type: NonNegativeInt;
|
|
142
|
-
readonly Iso: NonNegativeInt;
|
|
143
|
-
readonly "~type.make": NonNegativeInt;
|
|
144
|
-
} & {
|
|
145
|
-
withDefault: S.withConstructorDefault<import("effect-app/Schema/ext").WithDefaults<Omit<S.brand<import("effect/Schema").Int, "Int" | "NonNegativeInt" | "NonNegativeNumber">, "Iso" | "Type" | "~type.make"> & {
|
|
146
|
-
readonly Type: NonNegativeInt;
|
|
147
|
-
readonly Iso: NonNegativeInt;
|
|
148
|
-
readonly "~type.make": NonNegativeInt;
|
|
149
|
-
}> & Omit<S.brand<import("effect/Schema").Int, "Int" | "NonNegativeInt" | "NonNegativeNumber">, "Iso" | "Type" | "~type.make"> & {
|
|
150
|
-
readonly Type: NonNegativeInt;
|
|
151
|
-
readonly Iso: NonNegativeInt;
|
|
152
|
-
readonly "~type.make": NonNegativeInt;
|
|
153
|
-
}>;
|
|
56
|
+
readonly valid: S.WithDefaults<import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt>> & import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt> & {
|
|
57
|
+
withDefault: S.withConstructorDefault<import("effect-app/Schema/ext").WithDefaults<import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt>> & import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").Int, NonNegativeInt>>;
|
|
154
58
|
};
|
|
155
59
|
/** list of validation errors with full context */
|
|
156
60
|
readonly errors: S.$Array<typeof ValidationError> & {
|
|
@@ -164,4 +68,4 @@ declare const ValidationResult_base: S.Opaque<ValidationResult, typeof S.Extende
|
|
|
164
68
|
export declare class ValidationResult extends ValidationResult_base {
|
|
165
69
|
}
|
|
166
70
|
export {};
|
|
167
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
71
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGlvbi5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL01vZGVsL1JlcG9zaXRvcnkvdmFsaWRhdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsQ0FBQyxFQUFFLE1BQU0sWUFBWSxDQUFBO0FBQzlCLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQTs7SUFPaEQsZ0RBQWdEOztJQUVoRCxpREFBaUQ7O0lBRWpELGtEQUFrRDs7SUFFbEQsMkNBQTJDOzs7SUFOM0MsZ0RBQWdEOztJQUVoRCxpREFBaUQ7O0lBRWpELGtEQUFrRDs7SUFFbEQsMkNBQTJDOzs7QUFYN0M7OztHQUdHO0FBQ0gscUJBQWEsZUFBZ0IsU0FBUSxvQkFTbEM7Q0FBRzs7SUFNSiw4Q0FBOEM7Ozs7SUFFOUMsdURBQXVEOzs7O0lBRXZELDZDQUE2Qzs7OztJQUU3QyxrREFBa0Q7Ozs7OztJQU5sRCw4Q0FBOEM7Ozs7SUFFOUMsdURBQXVEOzs7O0lBRXZELDZDQUE2Qzs7OztJQUU3QyxrREFBa0Q7Ozs7OztBQVZwRDs7R0FFRztBQUNILHFCQUFhLGdCQUFpQixTQUFRLHFCQVNuQztDQUFHIn0=
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/Model/Repository/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,YAAY,CAAA;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;;IAOhD,gDAAgD;;IAEhD,iDAAiD;;IAEjD,kDAAkD;;IAElD,2CAA2C;;;IAN3C,gDAAgD;;IAEhD,iDAAiD;;IAEjD,kDAAkD;;IAElD,2CAA2C;;;AAX7C;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,oBASlC;CAAG;;IAMJ,8CAA8C
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/Model/Repository/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,YAAY,CAAA;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;;IAOhD,gDAAgD;;IAEhD,iDAAiD;;IAEjD,kDAAkD;;IAElD,2CAA2C;;;IAN3C,gDAAgD;;IAEhD,iDAAiD;;IAEjD,kDAAkD;;IAElD,2CAA2C;;;AAX7C;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,oBASlC;CAAG;;IAMJ,8CAA8C;;;;IAE9C,uDAAuD;;;;IAEvD,6CAA6C;;;;IAE7C,kDAAkD;;;;;;IANlD,8CAA8C;;;;IAE9C,uDAAuD;;;;IAEvD,6CAA6C;;;;IAE7C,kDAAkD;;;;;;AAVpD;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,qBASnC;CAAG"}
|
package/dist/RequestContext.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Context, S } from "effect-app";
|
|
2
|
+
import { UserProfileId } from "effect-app/ids";
|
|
2
3
|
import { NonEmptyString255 } from "effect-app/Schema";
|
|
3
4
|
export declare const Locale: import("effect/Schema").Literals<readonly ["en", "de"]> & {
|
|
4
5
|
changeDefault: <A extends "de" | "en">(a: A) => import("effect/Schema").Literals<readonly ["en", "de"]> & {
|
|
@@ -23,15 +24,7 @@ declare const RequestContext_base: S.Opaque<RequestContext, RequestContext.Encod
|
|
|
23
24
|
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Boolean>;
|
|
24
25
|
};
|
|
25
26
|
}>;
|
|
26
|
-
readonly name: S.WithDefaults<
|
|
27
|
-
readonly Type: NonEmptyString255;
|
|
28
|
-
readonly Iso: NonEmptyString255;
|
|
29
|
-
readonly "~type.make": NonEmptyString255;
|
|
30
|
-
}> & Omit<S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString255" | "NonEmptyString2k" | "NonEmptyString64k">, "Iso" | "Type" | "~type.make"> & {
|
|
31
|
-
readonly Type: NonEmptyString255;
|
|
32
|
-
readonly Iso: NonEmptyString255;
|
|
33
|
-
readonly "~type.make": NonEmptyString255;
|
|
34
|
-
};
|
|
27
|
+
readonly name: S.WithDefaults<import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").NonEmptyString, NonEmptyString255>> & import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").NonEmptyString, NonEmptyString255>;
|
|
35
28
|
readonly locale: import("effect/Schema").Literals<readonly ["en", "de"]> & {
|
|
36
29
|
changeDefault: <A extends "de" | "en">(a: A) => import("effect/Schema").Literals<readonly ["en", "de"]> & {
|
|
37
30
|
Default: A;
|
|
@@ -42,33 +35,15 @@ declare const RequestContext_base: S.Opaque<RequestContext, RequestContext.Encod
|
|
|
42
35
|
withDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["en", "de"]>>;
|
|
43
36
|
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["en", "de"]>>;
|
|
44
37
|
};
|
|
45
|
-
readonly sourceId: S.optional<S.WithDefaults<
|
|
46
|
-
|
|
47
|
-
readonly Iso: NonEmptyString255;
|
|
48
|
-
readonly "~type.make": NonEmptyString255;
|
|
49
|
-
}> & Omit<S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString255" | "NonEmptyString2k" | "NonEmptyString64k">, "Iso" | "Type" | "~type.make"> & {
|
|
50
|
-
readonly Type: NonEmptyString255;
|
|
51
|
-
readonly Iso: NonEmptyString255;
|
|
52
|
-
readonly "~type.make": NonEmptyString255;
|
|
53
|
-
}>;
|
|
54
|
-
readonly namespace: S.WithDefaults<Omit<S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString255" | "NonEmptyString2k" | "NonEmptyString64k">, "Iso" | "Type" | "~type.make"> & {
|
|
55
|
-
readonly Type: NonEmptyString255;
|
|
56
|
-
readonly Iso: NonEmptyString255;
|
|
57
|
-
readonly "~type.make": NonEmptyString255;
|
|
58
|
-
}> & Omit<S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString255" | "NonEmptyString2k" | "NonEmptyString64k">, "Iso" | "Type" | "~type.make"> & {
|
|
59
|
-
readonly Type: NonEmptyString255;
|
|
60
|
-
readonly Iso: NonEmptyString255;
|
|
61
|
-
readonly "~type.make": NonEmptyString255;
|
|
62
|
-
};
|
|
38
|
+
readonly sourceId: S.optional<S.WithDefaults<import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").NonEmptyString, NonEmptyString255>> & import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").NonEmptyString, NonEmptyString255>>;
|
|
39
|
+
readonly namespace: S.WithDefaults<import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").NonEmptyString, NonEmptyString255>> & import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").NonEmptyString, NonEmptyString255>;
|
|
63
40
|
/** @deprecated */
|
|
64
41
|
readonly userProfile: S.optional<S.Struct<{
|
|
65
|
-
readonly sub: S.WithDefaults<S.Codec<
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
withDefault: S.withConstructorDefault<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never> & S.WithoutConstructorDefault>;
|
|
71
|
-
} & S.WithDefaults<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never>>;
|
|
42
|
+
readonly sub: S.WithDefaults<S.Codec<UserProfileId, string, never, never> & {
|
|
43
|
+
withDefault: S.withConstructorDefault<S.Codec<UserProfileId, string, never, never> & S.WithoutConstructorDefault>;
|
|
44
|
+
} & S.WithDefaults<S.Codec<UserProfileId, string, never, never>>> & S.Codec<UserProfileId, string, never, never> & {
|
|
45
|
+
withDefault: S.withConstructorDefault<S.Codec<UserProfileId, string, never, never> & S.WithoutConstructorDefault>;
|
|
46
|
+
} & S.WithDefaults<S.Codec<UserProfileId, string, never, never>>;
|
|
72
47
|
}>>;
|
|
73
48
|
}>, {}> & Omit<S.Struct<{
|
|
74
49
|
readonly span: S.Struct<{
|
|
@@ -79,15 +54,7 @@ declare const RequestContext_base: S.Opaque<RequestContext, RequestContext.Encod
|
|
|
79
54
|
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Boolean>;
|
|
80
55
|
};
|
|
81
56
|
}>;
|
|
82
|
-
readonly name: S.WithDefaults<
|
|
83
|
-
readonly Type: NonEmptyString255;
|
|
84
|
-
readonly Iso: NonEmptyString255;
|
|
85
|
-
readonly "~type.make": NonEmptyString255;
|
|
86
|
-
}> & Omit<S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString255" | "NonEmptyString2k" | "NonEmptyString64k">, "Iso" | "Type" | "~type.make"> & {
|
|
87
|
-
readonly Type: NonEmptyString255;
|
|
88
|
-
readonly Iso: NonEmptyString255;
|
|
89
|
-
readonly "~type.make": NonEmptyString255;
|
|
90
|
-
};
|
|
57
|
+
readonly name: S.WithDefaults<import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").NonEmptyString, NonEmptyString255>> & import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").NonEmptyString, NonEmptyString255>;
|
|
91
58
|
readonly locale: import("effect/Schema").Literals<readonly ["en", "de"]> & {
|
|
92
59
|
changeDefault: <A extends "de" | "en">(a: A) => import("effect/Schema").Literals<readonly ["en", "de"]> & {
|
|
93
60
|
Default: A;
|
|
@@ -98,33 +65,15 @@ declare const RequestContext_base: S.Opaque<RequestContext, RequestContext.Encod
|
|
|
98
65
|
withDefault: S.withConstructorDefault<import("effect/Schema").Literals<readonly ["en", "de"]>>;
|
|
99
66
|
withDecodingDefaultType: S.withDecodingDefaultType<import("effect/Schema").Literals<readonly ["en", "de"]>>;
|
|
100
67
|
};
|
|
101
|
-
readonly sourceId: S.optional<S.WithDefaults<
|
|
102
|
-
|
|
103
|
-
readonly Iso: NonEmptyString255;
|
|
104
|
-
readonly "~type.make": NonEmptyString255;
|
|
105
|
-
}> & Omit<S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString255" | "NonEmptyString2k" | "NonEmptyString64k">, "Iso" | "Type" | "~type.make"> & {
|
|
106
|
-
readonly Type: NonEmptyString255;
|
|
107
|
-
readonly Iso: NonEmptyString255;
|
|
108
|
-
readonly "~type.make": NonEmptyString255;
|
|
109
|
-
}>;
|
|
110
|
-
readonly namespace: S.WithDefaults<Omit<S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString255" | "NonEmptyString2k" | "NonEmptyString64k">, "Iso" | "Type" | "~type.make"> & {
|
|
111
|
-
readonly Type: NonEmptyString255;
|
|
112
|
-
readonly Iso: NonEmptyString255;
|
|
113
|
-
readonly "~type.make": NonEmptyString255;
|
|
114
|
-
}> & Omit<S.brand<import("effect/Schema").NonEmptyString, "NonEmptyString" | "NonEmptyString255" | "NonEmptyString2k" | "NonEmptyString64k">, "Iso" | "Type" | "~type.make"> & {
|
|
115
|
-
readonly Type: NonEmptyString255;
|
|
116
|
-
readonly Iso: NonEmptyString255;
|
|
117
|
-
readonly "~type.make": NonEmptyString255;
|
|
118
|
-
};
|
|
68
|
+
readonly sourceId: S.optional<S.WithDefaults<import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").NonEmptyString, NonEmptyString255>> & import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").NonEmptyString, NonEmptyString255>>;
|
|
69
|
+
readonly namespace: S.WithDefaults<import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").NonEmptyString, NonEmptyString255>> & import("effect-app/Schema/brand").BrandedSchema<import("effect/Schema").NonEmptyString, NonEmptyString255>;
|
|
119
70
|
/** @deprecated */
|
|
120
71
|
readonly userProfile: S.optional<S.Struct<{
|
|
121
|
-
readonly sub: S.WithDefaults<S.Codec<
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
withDefault: S.withConstructorDefault<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never> & S.WithoutConstructorDefault>;
|
|
127
|
-
} & S.WithDefaults<S.Codec<string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand, string, never, never>>;
|
|
72
|
+
readonly sub: S.WithDefaults<S.Codec<UserProfileId, string, never, never> & {
|
|
73
|
+
withDefault: S.withConstructorDefault<S.Codec<UserProfileId, string, never, never> & S.WithoutConstructorDefault>;
|
|
74
|
+
} & S.WithDefaults<S.Codec<UserProfileId, string, never, never>>> & S.Codec<UserProfileId, string, never, never> & {
|
|
75
|
+
withDefault: S.withConstructorDefault<S.Codec<UserProfileId, string, never, never> & S.WithoutConstructorDefault>;
|
|
76
|
+
} & S.WithDefaults<S.Codec<UserProfileId, string, never, never>>;
|
|
128
77
|
}>>;
|
|
129
78
|
}>, keyof S.Top>;
|
|
130
79
|
export declare class RequestContext extends RequestContext_base {
|
|
@@ -138,7 +87,7 @@ export declare const spanAttributes: (ctx: Pick<RequestContext, "locale" | "name
|
|
|
138
87
|
"request.locale": "de" | "en";
|
|
139
88
|
"request.namespace": string & S.NonEmptyString255Brand;
|
|
140
89
|
"request.source.id"?: NonEmptyString255;
|
|
141
|
-
"request.user.sub"?:
|
|
90
|
+
"request.user.sub"?: UserProfileId;
|
|
142
91
|
"request.user.roles"?: unknown;
|
|
143
92
|
};
|
|
144
93
|
export declare namespace RequestContext {
|
|
@@ -146,4 +95,4 @@ export declare namespace RequestContext {
|
|
|
146
95
|
}
|
|
147
96
|
}
|
|
148
97
|
export {};
|
|
149
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
98
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmVxdWVzdENvbnRleHQuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9SZXF1ZXN0Q29udGV4dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsT0FBTyxFQUFFLENBQUMsRUFBRSxNQUFNLFlBQVksQ0FBQTtBQUN2QyxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sZ0JBQWdCLENBQUE7QUFDOUMsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sbUJBQW1CLENBQUE7QUFFckQsZUFBTyxNQUFNLE1BQU07Ozs7Ozs7OztDQUEyQixDQUFBO0FBQzlDLE1BQU0sTUFBTSxNQUFNLEdBQUcsT0FBTyxNQUFNLENBQUMsSUFBSSxDQUFBOztBQUV2QyxxQkFBYSxTQUFVLFNBQVEsY0FBaUU7Q0FBRzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7SUFlakcsa0JBQWtCOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7SUFBbEIsa0JBQWtCOzs7Ozs7Ozs7QUFicEIscUJBQWEsY0FBZSxTQUFRLG1CQWVqQztJQUdELE1BQU0sQ0FBQyxZQUFZLENBQUMsSUFBSSxFQUFFLElBQUksRUFBRSxJQUFJLEVBQUUsY0FBYztRQUVoRCxhQUFhO1FBQ2IsTUFBTTtNQUVUO0NBQ0Y7QUFFRCxlQUFPLE1BQU0sY0FBYyxRQUFTLElBQUksQ0FBQyxjQUFjLEVBQUUsUUFBUSxHQUFHLFdBQVcsQ0FBQyxHQUFHLE9BQU8sQ0FBQyxjQUFjLENBQUM7Ozs7Ozs7Q0FnQnhHLENBQUE7QUFJRix5QkFBaUIsY0FBYyxDQUFDLENBQUM7SUFDL0IsVUFBaUIsT0FBUSxTQUFRLENBQUMsQ0FBQyxtQkFBbUIsQ0FBQyxPQUFPLGNBQWMsQ0FBQztLQUFHO0NBQ2pGIn0=
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestContext.d.ts","sourceRoot":"","sources":["../src/RequestContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"RequestContext.d.ts","sourceRoot":"","sources":["../src/RequestContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,MAAM;;;;;;;;;CAA2B,CAAA;AAC9C,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAA;;AAEvC,qBAAa,SAAU,SAAQ,cAAiE;CAAG;;;;;;;;;;;;;;;;;;;;;;;IAejG,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAlB,kBAAkB;;;;;;;;;AAbpB,qBAAa,cAAe,SAAQ,mBAejC;IAGD,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc;QAEhD,aAAa;QACb,MAAM;MAET;CACF;AAED,eAAO,MAAM,cAAc,QAAS,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,WAAW,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC;;;;;;;CAgBxG,CAAA;AAIF,yBAAiB,cAAc,CAAC,CAAC;IAC/B,UAAiB,OAAQ,SAAQ,CAAC,CAAC,mBAAmB,CAAC,OAAO,cAAc,CAAC;KAAG;CACjF"}
|
|
@@ -2,7 +2,7 @@ export declare const InfraLogger: {
|
|
|
2
2
|
logWarning: (...message: ReadonlyArray<any>) => import("effect/Effect").Effect<void, never, never>;
|
|
3
3
|
logError: (...message: ReadonlyArray<any>) => import("effect/Effect").Effect<void, never, never>;
|
|
4
4
|
logFatal: (...message: ReadonlyArray<any>) => import("effect/Effect").Effect<void, never, never>;
|
|
5
|
-
logInfo: (...message:
|
|
5
|
+
logInfo: (...message: ReadonlyArray<any>) => import("effect/Effect").Effect<void, never, never>;
|
|
6
6
|
logDebug: (...message: ReadonlyArray<any>) => import("effect/Effect").Effect<void, never, never>;
|
|
7
7
|
logWithLevel: (level: import("effect/LogLevel").Severity, ...message: ReadonlyArray<any>) => import("effect/Effect").Effect<void, never, never>;
|
|
8
8
|
};
|
package/dist/logger.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export declare const InfraLogger: {
|
|
|
2
2
|
logWarning: (...message: ReadonlyArray<any>) => import("effect/Effect").Effect<void, never, never>;
|
|
3
3
|
logError: (...message: ReadonlyArray<any>) => import("effect/Effect").Effect<void, never, never>;
|
|
4
4
|
logFatal: (...message: ReadonlyArray<any>) => import("effect/Effect").Effect<void, never, never>;
|
|
5
|
-
logInfo: (...message:
|
|
5
|
+
logInfo: (...message: readonly any[]) => import("effect/Effect").Effect<void, never, never>;
|
|
6
6
|
logDebug: (...message: ReadonlyArray<any>) => import("effect/Effect").Effect<void, never, never>;
|
|
7
7
|
logWithLevel: (level: import("effect/LogLevel").Severity, ...message: ReadonlyArray<any>) => import("effect/Effect").Effect<void, never, never>;
|
|
8
8
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/infra",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.203",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"proper-lockfile": "^4.1.2",
|
|
14
14
|
"pure-rand": "8.4.0",
|
|
15
15
|
"query-string": "^9.3.1",
|
|
16
|
-
"effect-app": "4.0.0-beta.
|
|
16
|
+
"effect-app": "4.0.0-beta.203"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@azure/cosmos": "^4.9.3",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.test.d.ts","sourceRoot":"","sources":["../query.test.ts"],"names":[],"mappings":"AAIA,OAAO,EAA8C,CAAC,EAAU,MAAM,YAAY,CAAA
|
|
1
|
+
{"version":3,"file":"query.test.d.ts","sourceRoot":"","sources":["../query.test.ts"],"names":[],"mappings":"AAIA,OAAO,EAA8C,CAAC,EAAU,MAAM,YAAY,CAAA;;;;;;;;;;;;;;;;;AAgBlF,qBAAa,SAAU,SAAQ,cAM7B;CAAG;AACL,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC,CAAC;IAElC,UAAiB,OAAQ,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,SAAS,CAAC;KAAG;CACtE"}
|