@effect-app/infra 0.98.4 → 0.99.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
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @effect-app/infra
|
|
2
2
|
|
|
3
|
+
## 0.99.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [a7a9f51f]
|
|
8
|
+
- @effect-app/schema@0.65.1
|
|
9
|
+
- @effect-app/infra-adapters@0.63.1
|
|
10
|
+
- @effect-app/prelude@0.74.1
|
|
11
|
+
|
|
12
|
+
## 0.99.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- 0a4bfbc7: update packages
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [0a4bfbc7]
|
|
21
|
+
- @effect-app/infra-adapters@0.63.0
|
|
22
|
+
- @effect-app/prelude@0.74.0
|
|
23
|
+
- @effect-app/schema@0.65.0
|
|
24
|
+
- @effect-app/core@0.72.0
|
|
25
|
+
|
|
3
26
|
## 0.98.4
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/dist/errors.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Data } from "effect/Data";
|
|
2
2
|
import { Cause } from "effect/Cause";
|
|
3
|
-
declare const NotFoundError_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect/Equal").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect/Equal").Equal ? never : P]: A[P]; }) => import("effect/
|
|
3
|
+
declare const NotFoundError_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect/Equal").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect/Equal").Equal ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
4
4
|
readonly _tag: "NotFoundError";
|
|
5
5
|
} & Readonly<A>;
|
|
6
6
|
/** @tsplus type NotFoundError */
|
|
@@ -14,7 +14,7 @@ export declare class NotFoundError<T extends string = string> extends NotFoundEr
|
|
|
14
14
|
readonly id: string;
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
declare const ValidationError_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect/Equal").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect/Equal").Equal ? never : P]: A[P]; }) => import("effect/
|
|
17
|
+
declare const ValidationError_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect/Equal").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect/Equal").Equal ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
18
18
|
readonly _tag: "ValidationError";
|
|
19
19
|
} & Readonly<A>;
|
|
20
20
|
/** @tsplus type ValidationError */
|
|
@@ -22,7 +22,7 @@ export declare class ValidationError extends ValidationError_base<{
|
|
|
22
22
|
errors: ReadonlyArray<unknown>;
|
|
23
23
|
}> {
|
|
24
24
|
}
|
|
25
|
-
declare const NotLoggedInError_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect/Equal").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect/Equal").Equal ? never : P]: A[P]; }) => import("effect/
|
|
25
|
+
declare const NotLoggedInError_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect/Equal").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect/Equal").Equal ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
26
26
|
readonly _tag: "NotLoggedInError";
|
|
27
27
|
} & Readonly<A>;
|
|
28
28
|
/** @tsplus type NotLoggedInError */
|
|
@@ -31,7 +31,7 @@ export declare class NotLoggedInError extends NotLoggedInError_base<{
|
|
|
31
31
|
}> {
|
|
32
32
|
constructor(message?: string);
|
|
33
33
|
}
|
|
34
|
-
declare const UnauthorizedError_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect/Equal").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect/Equal").Equal ? never : P]: A[P]; }) => import("effect/
|
|
34
|
+
declare const UnauthorizedError_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect/Equal").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect/Equal").Equal ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
35
35
|
readonly _tag: "UnauthorizedError";
|
|
36
36
|
} & Readonly<A>;
|
|
37
37
|
/** @tsplus type UnauthorizedError */
|
|
@@ -40,7 +40,7 @@ export declare class UnauthorizedError extends UnauthorizedError_base<{
|
|
|
40
40
|
}> {
|
|
41
41
|
constructor(message?: string);
|
|
42
42
|
}
|
|
43
|
-
declare const LoginError_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect/Equal").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect/Equal").Equal ? never : P]: A[P]; }) => import("effect/
|
|
43
|
+
declare const LoginError_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect/Equal").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect/Equal").Equal ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
44
44
|
readonly _tag: "NotLoggeInError";
|
|
45
45
|
} & Readonly<A>;
|
|
46
46
|
/**
|
|
@@ -52,7 +52,7 @@ export declare class LoginError extends LoginError_base<{
|
|
|
52
52
|
}> {
|
|
53
53
|
constructor(message: string);
|
|
54
54
|
}
|
|
55
|
-
declare const InvalidStateError_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect/Equal").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect/Equal").Equal ? never : P]: A[P]; }) => import("effect/
|
|
55
|
+
declare const InvalidStateError_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect/Equal").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect/Equal").Equal ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
56
56
|
readonly _tag: "InvalidStateError";
|
|
57
57
|
} & Readonly<A>;
|
|
58
58
|
/** @tsplus type InvalidStateError */
|
|
@@ -75,7 +75,7 @@ export declare class CauseException<E> extends Error {
|
|
|
75
75
|
};
|
|
76
76
|
toString(): string;
|
|
77
77
|
}
|
|
78
|
-
declare const OptimisticConcurrencyException_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect/Equal").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect/Equal").Equal ? never : P]: A[P]; }) => import("effect/
|
|
78
|
+
declare const OptimisticConcurrencyException_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect/Equal").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect/Equal").Equal ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
79
79
|
readonly _tag: "OptimisticConcurrencyException";
|
|
80
80
|
} & Readonly<A>;
|
|
81
81
|
/** @tsplus type OptimisticConcurrencyException */
|
|
@@ -6,9 +6,9 @@ import * as Cosmos from "@effect-app/infra-adapters/cosmos-client";
|
|
|
6
6
|
import type { DBRecord } from "./shared.js";
|
|
7
7
|
import { OptimisticLockException } from "./shared.js";
|
|
8
8
|
import * as simpledb from "./simpledb.js";
|
|
9
|
-
export declare function createContext<TKey extends string, EA, A extends DBRecord<TKey>>(): <REncode, RDecode, EDecode>(type: string, encode: (record: A) => Effect<REncode, never, EA>, decode: (d: EA) => Effect<RDecode, EDecode, A>, indexes: IndexingPolicy) => import("effect/Effect").Effect<Cosmos.CosmosClient,
|
|
10
|
-
find: (id: string) => import("effect/Effect").Effect<Cosmos.CosmosClient | simpledb.RecordCache | RDecode,
|
|
11
|
-
findBy: (parameters: Record<string, string>) => import("effect/Effect").Effect<Cosmos.CosmosClient,
|
|
9
|
+
export declare function createContext<TKey extends string, EA, A extends DBRecord<TKey>>(): <REncode, RDecode, EDecode>(type: string, encode: (record: A) => Effect<REncode, never, EA>, decode: (d: EA) => Effect<RDecode, EDecode, A>, indexes: IndexingPolicy) => import("effect/Effect").Effect<Cosmos.CosmosClient, import("effect/Cause").UnknownException, {
|
|
10
|
+
find: (id: string) => import("effect/Effect").Effect<Cosmos.CosmosClient | simpledb.RecordCache | RDecode, import("effect/Cause").UnknownException | simpledb.InvalidStateError, import("effect/Option").Option<A>>;
|
|
11
|
+
findBy: (parameters: Record<string, string>) => import("effect/Effect").Effect<Cosmos.CosmosClient, import("effect/Cause").UnknownException, import("effect/Option").Option<any>>;
|
|
12
12
|
save: (record: A) => import("effect/Effect").Effect<Cosmos.CosmosClient | simpledb.RecordCache | REncode, OptimisticLockException, A>;
|
|
13
13
|
}>;
|
|
14
14
|
//# sourceMappingURL=cosmosdb.d.ts.map
|
|
@@ -5,9 +5,9 @@ import type { IndexDescription } from "mongodb";
|
|
|
5
5
|
import type { DBRecord } from "./shared.js";
|
|
6
6
|
import { OptimisticLockException } from "./shared.js";
|
|
7
7
|
import * as simpledb from "./simpledb.js";
|
|
8
|
-
export declare function createContext<TKey extends string, EA, A extends DBRecord<TKey>>(): <REncode, RDecode, EDecode>(type: string, encode: (record: A) => Effect<REncode, never, EA>, decode: (d: EA) => Effect<RDecode, EDecode, A>, indexes: IndexDescription[]) => import("effect/Effect").Effect<MongoClient,
|
|
9
|
-
find: (id: string) => import("effect/Effect").Effect<simpledb.RecordCache | RDecode | MongoClient,
|
|
10
|
-
findBy: (keys: Record<string, string>) => import("effect/Effect").Effect<MongoClient,
|
|
8
|
+
export declare function createContext<TKey extends string, EA, A extends DBRecord<TKey>>(): <REncode, RDecode, EDecode>(type: string, encode: (record: A) => Effect<REncode, never, EA>, decode: (d: EA) => Effect<RDecode, EDecode, A>, indexes: IndexDescription[]) => import("effect/Effect").Effect<MongoClient, import("effect/Cause").UnknownException, {
|
|
9
|
+
find: (id: string) => import("effect/Effect").Effect<simpledb.RecordCache | RDecode | MongoClient, import("effect/Cause").UnknownException | simpledb.InvalidStateError, import("effect/Option").Option<A>>;
|
|
10
|
+
findBy: (keys: Record<string, string>) => import("effect/Effect").Effect<MongoClient, import("effect/Cause").UnknownException, import("effect/Option").Option<TKey>>;
|
|
11
11
|
save: (record: A) => import("effect/Effect").Effect<simpledb.RecordCache | REncode | MongoClient, OptimisticLockException, A>;
|
|
12
12
|
}>;
|
|
13
13
|
//# sourceMappingURL=mongodb.d.ts.map
|
|
@@ -3,7 +3,7 @@ import { Effect } from "effect/Effect";
|
|
|
3
3
|
import { Option } from "@effect-app/core/Option";
|
|
4
4
|
import * as MO from "@effect-app/schema";
|
|
5
5
|
import type { SchemaAny } from "@effect-app/schema";
|
|
6
|
-
declare const CouldNotAquireDbLockException_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect/Equal").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect/Equal").Equal ? never : P]: A[P]; }) => import("effect/
|
|
6
|
+
declare const CouldNotAquireDbLockException_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect/Equal").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect/Equal").Equal ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
7
7
|
readonly _tag: "CouldNotAquireDbLockException";
|
|
8
8
|
} & Readonly<A>;
|
|
9
9
|
export declare class CouldNotAquireDbLockException extends CouldNotAquireDbLockException_base<{
|
|
@@ -14,7 +14,7 @@ export declare class CouldNotAquireDbLockException extends CouldNotAquireDbLockE
|
|
|
14
14
|
}> {
|
|
15
15
|
constructor(type: string, id: string, error: Error);
|
|
16
16
|
}
|
|
17
|
-
declare const OptimisticLockException_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect/Equal").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect/Equal").Equal ? never : P]: A[P]; }) => import("effect/
|
|
17
|
+
declare const OptimisticLockException_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect/Equal").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect/Equal").Equal ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
18
18
|
readonly _tag: "OptimisticLockException";
|
|
19
19
|
} & Readonly<A>;
|
|
20
20
|
export declare class OptimisticLockException extends OptimisticLockException_base<{
|
|
@@ -24,7 +24,7 @@ export declare class OptimisticLockException extends OptimisticLockException_bas
|
|
|
24
24
|
}> {
|
|
25
25
|
constructor(type: string, id: string);
|
|
26
26
|
}
|
|
27
|
-
declare const ConnectionException_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect/Equal").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect/Equal").Equal ? never : P]: A[P]; }) => import("effect/
|
|
27
|
+
declare const ConnectionException_base: new <A extends Record<string, any>>(args: import("effect/Types").Equals<Omit<A, keyof import("effect/Equal").Equal>, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" | keyof import("effect/Equal").Equal ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
28
28
|
readonly _tag: "ConnectionException";
|
|
29
29
|
} & Readonly<A>;
|
|
30
30
|
export declare class ConnectionException extends ConnectionException_base<{
|
package/package.json
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/infra",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.99.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@azure/cosmos": "^4.0.0",
|
|
8
8
|
"@azure/service-bus": "^7.9.3",
|
|
9
|
-
"effect": "^2.0.0-next.
|
|
9
|
+
"effect": "^2.0.0-next.56",
|
|
10
10
|
"@faker-js/faker": "^8.3.1",
|
|
11
11
|
"@sendgrid/helpers": "^7.7.0",
|
|
12
12
|
"@sendgrid/mail": "^7.7.0",
|
|
13
13
|
"change-case": "^5.2.0",
|
|
14
14
|
"cross-fetch": "^4.0.0",
|
|
15
|
-
"fast-check": "~3.
|
|
15
|
+
"fast-check": "~3.14.0",
|
|
16
16
|
"object-hash": "^3.0.0",
|
|
17
17
|
"path-parser": "^6.1.0",
|
|
18
18
|
"proper-lockfile": "^4.1.2",
|
|
19
19
|
"pure-rand": "6.0.4",
|
|
20
20
|
"redlock": "^4.2.0",
|
|
21
|
-
"@effect-app/
|
|
22
|
-
"@effect-app/
|
|
23
|
-
"@effect-app/
|
|
24
|
-
"@effect-app/
|
|
21
|
+
"@effect-app/infra-adapters": "0.63.1",
|
|
22
|
+
"@effect-app/prelude": "0.74.1",
|
|
23
|
+
"@effect-app/core": "0.72.0",
|
|
24
|
+
"@effect-app/schema": "0.65.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@babel/cli": "^7.23.
|
|
28
|
-
"@sentry/node": "^7.
|
|
27
|
+
"@babel/cli": "^7.23.4",
|
|
28
|
+
"@sentry/node": "^7.81.0",
|
|
29
29
|
"@types/express": "^4.17.21",
|
|
30
|
-
"@types/node": "~20.9.
|
|
30
|
+
"@types/node": "~20.9.3",
|
|
31
31
|
"@types/proper-lockfile": "^4.1.4",
|
|
32
32
|
"@types/redis": "^2.8.32",
|
|
33
33
|
"@types/redlock": "^4.0.7",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"ts-node": "^10.9.1",
|
|
40
40
|
"typescript": "npm:@effect-app/typescript@5.4.0-tsplus.202311072",
|
|
41
41
|
"vitest": "^0.34.6",
|
|
42
|
-
"@effect-app/compiler": "0.
|
|
42
|
+
"@effect-app/compiler": "0.36.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"express": "^4.18.2"
|