effect 4.0.0-beta.73 → 4.0.0-beta.74
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/dist/Array.d.ts +16 -16
- package/dist/Array.js +4 -4
- package/dist/Boolean.d.ts +2 -2
- package/dist/Boolean.js +2 -2
- package/dist/Channel.d.ts +63 -63
- package/dist/Channel.js +25 -25
- package/dist/Chunk.d.ts +17 -17
- package/dist/Chunk.js +5 -5
- package/dist/Context.d.ts +3 -3
- package/dist/Context.js +1 -1
- package/dist/Cron.d.ts +4 -4
- package/dist/Cron.js +4 -4
- package/dist/Deferred.d.ts +37 -37
- package/dist/Deferred.js +13 -13
- package/dist/Duration.d.ts +6 -6
- package/dist/Duration.js +2 -2
- package/dist/Effect.d.ts +58 -58
- package/dist/Effect.js +39 -39
- package/dist/Equal.d.ts +2 -2
- package/dist/Equal.js +2 -2
- package/dist/Equivalence.d.ts +1 -1
- package/dist/Equivalence.js +1 -1
- package/dist/ExecutionPlan.d.ts +2 -2
- package/dist/ExecutionPlan.js +1 -1
- package/dist/FileSystem.d.ts +6 -6
- package/dist/FileSystem.js +2 -2
- package/dist/Function.d.ts +5 -5
- package/dist/Function.js +5 -5
- package/dist/Graph.d.ts +11 -11
- package/dist/Graph.js +5 -5
- package/dist/HKT.d.ts +1 -1
- package/dist/HashMap.d.ts +3 -3
- package/dist/HashSet.d.ts +1 -1
- package/dist/Iterable.d.ts +15 -15
- package/dist/Iterable.js +5 -5
- package/dist/Layer.d.ts +16 -16
- package/dist/Layer.js +5 -5
- package/dist/Logger.d.ts +5 -5
- package/dist/Logger.js +4 -4
- package/dist/ManagedRuntime.d.ts +2 -2
- package/dist/Match.d.ts +20 -20
- package/dist/Match.js +16 -16
- package/dist/Metric.d.ts +16 -16
- package/dist/Metric.js +3 -3
- package/dist/Option.d.ts +36 -36
- package/dist/Option.js +17 -17
- package/dist/Order.d.ts +1 -1
- package/dist/Order.js +1 -1
- package/dist/Path.d.ts +1 -1
- package/dist/Path.js +1 -1
- package/dist/Pipeable.d.ts +1 -1
- package/dist/Pipeable.js +1 -1
- package/dist/Predicate.d.ts +5 -5
- package/dist/PubSub.d.ts +9 -9
- package/dist/PubSub.js +5 -5
- package/dist/Queue.d.ts +24 -24
- package/dist/Queue.js +20 -20
- package/dist/Record.d.ts +15 -15
- package/dist/Record.js +5 -5
- package/dist/Redacted.d.ts +2 -2
- package/dist/Redacted.js +1 -1
- package/dist/Ref.d.ts +6 -6
- package/dist/Ref.js +6 -6
- package/dist/RegExp.d.ts +1 -1
- package/dist/RegExp.js +1 -1
- package/dist/Request.d.ts +4 -4
- package/dist/RequestResolver.d.ts +6 -6
- package/dist/RequestResolver.js +2 -2
- package/dist/Resource.d.ts +1 -1
- package/dist/Resource.js +1 -1
- package/dist/Result.d.ts +18 -18
- package/dist/Result.js +11 -11
- package/dist/Schedule.d.ts +44 -44
- package/dist/Schedule.js +18 -18
- package/dist/Schema.d.ts +177 -459
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +25 -25
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +1 -1
- package/dist/SchemaGetter.d.ts +13 -13
- package/dist/SchemaGetter.js +12 -12
- package/dist/SchemaParser.d.ts +3 -3
- package/dist/SchemaParser.js +3 -3
- package/dist/Scope.d.ts +1 -1
- package/dist/Scope.js +1 -1
- package/dist/Sink.d.ts +5 -5
- package/dist/Sink.js +3 -3
- package/dist/Stream.d.ts +55 -55
- package/dist/Stream.js +21 -21
- package/dist/String.d.ts +5 -5
- package/dist/String.js +3 -3
- package/dist/Struct.d.ts +8 -8
- package/dist/Struct.js +3 -3
- package/dist/SynchronizedRef.d.ts +57 -57
- package/dist/SynchronizedRef.js +19 -19
- package/dist/Terminal.d.ts +1 -1
- package/dist/Terminal.js +1 -1
- package/dist/Tracer.d.ts +5 -5
- package/dist/Tracer.js +2 -2
- package/dist/Tuple.d.ts +14 -14
- package/dist/Tuple.js +6 -6
- package/dist/TxHashMap.d.ts +3 -3
- package/dist/TxHashSet.d.ts +1 -1
- package/dist/Unify.d.ts +7 -7
- package/dist/Unify.js +1 -1
- package/dist/testing/TestClock.d.ts +5 -5
- package/dist/testing/TestClock.js +4 -4
- package/dist/testing/TestConsole.d.ts +3 -3
- package/dist/testing/TestConsole.js +3 -3
- package/dist/unstable/ai/Chat.d.ts +2 -2
- package/dist/unstable/ai/Chat.js +2 -2
- package/dist/unstable/ai/EmbeddingModel.d.ts +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +2 -2
- package/dist/unstable/ai/IdGenerator.js +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +4 -4
- package/dist/unstable/ai/LanguageModel.js +1 -1
- package/dist/unstable/ai/Prompt.d.ts +15 -15
- package/dist/unstable/ai/Prompt.js +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +5 -5
- package/dist/unstable/ai/Telemetry.js +2 -2
- package/dist/unstable/ai/Tokenizer.d.ts +1 -1
- package/dist/unstable/ai/Tokenizer.js +1 -1
- package/dist/unstable/ai/Tool.d.ts +6 -6
- package/dist/unstable/ai/Tool.js +6 -6
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +1 -1
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +1 -1
- package/dist/unstable/cli/Primitive.d.ts +3 -3
- package/dist/unstable/cli/Primitive.js +1 -1
- package/dist/unstable/cli/Prompt.d.ts +11 -11
- package/dist/unstable/cli/internal/parser.js +145 -10
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +1 -1
- package/dist/unstable/cluster/Entity.js +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +2 -2
- package/dist/unstable/cluster/HttpRunner.js +2 -2
- package/dist/unstable/cluster/K8sHttpClient.d.ts +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js +1 -1
- package/dist/unstable/cluster/Runners.d.ts +1 -1
- package/dist/unstable/cluster/Runners.js +1 -1
- package/dist/unstable/cluster/Sharding.d.ts +1 -1
- package/dist/unstable/cluster/Sharding.js +1 -1
- package/dist/unstable/cluster/SingletonAddress.d.ts +1 -1
- package/dist/unstable/cluster/SingletonAddress.js +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +5 -5
- package/dist/unstable/cluster/Snowflake.js +5 -5
- package/dist/unstable/devtools/DevToolsClient.d.ts +1 -1
- package/dist/unstable/devtools/DevToolsClient.js +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +1 -1
- package/dist/unstable/eventlog/EventLog.js +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +3 -3
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +3 -3
- package/dist/unstable/http/Cookies.d.ts +1 -1
- package/dist/unstable/http/Etag.d.ts +1 -1
- package/dist/unstable/http/Etag.js +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +2 -2
- package/dist/unstable/http/FetchHttpClient.js +2 -2
- package/dist/unstable/http/HttpClient.d.ts +1 -1
- package/dist/unstable/http/HttpClient.js +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +2 -2
- package/dist/unstable/http/HttpMiddleware.d.ts +1 -1
- package/dist/unstable/http/HttpMiddleware.js +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +1 -1
- package/dist/unstable/http/HttpPlatform.js +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +4 -4
- package/dist/unstable/http/HttpRouter.js +4 -4
- package/dist/unstable/http/HttpServerResponse.d.ts +3 -3
- package/dist/unstable/http/Url.d.ts +33 -33
- package/dist/unstable/http/Url.js +11 -11
- package/dist/unstable/httpapi/HttpApi.d.ts +1 -1
- package/dist/unstable/httpapi/HttpApi.js +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts +13 -13
- package/dist/unstable/httpapi/HttpApiError.js +13 -13
- package/dist/unstable/observability/PrometheusMetrics.d.ts +4 -4
- package/dist/unstable/observability/PrometheusMetrics.js +2 -2
- package/dist/unstable/persistence/KeyValueStore.d.ts +3 -3
- package/dist/unstable/persistence/KeyValueStore.js +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +2 -2
- package/dist/unstable/persistence/Persistable.js +2 -2
- package/dist/unstable/persistence/PersistedQueue.d.ts +8 -8
- package/dist/unstable/persistence/PersistedQueue.js +8 -8
- package/dist/unstable/persistence/RateLimiter.d.ts +1 -1
- package/dist/unstable/persistence/RateLimiter.js +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +5 -5
- package/dist/unstable/process/ChildProcess.js +2 -2
- package/dist/unstable/reactivity/AsyncResult.d.ts +4 -4
- package/dist/unstable/reactivity/AsyncResult.js +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +1 -1
- package/dist/unstable/reactivity/Atom.js +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +1 -1
- package/dist/unstable/reactivity/Reactivity.js +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +5 -5
- package/dist/unstable/rpc/Rpc.js +1 -1
- package/dist/unstable/rpc/RpcMiddleware.d.ts +1 -1
- package/dist/unstable/rpc/RpcMiddleware.js +1 -1
- package/dist/unstable/rpc/RpcSchema.d.ts +3 -3
- package/dist/unstable/rpc/RpcSchema.js +2 -2
- package/dist/unstable/schema/Model.d.ts +2 -2
- package/dist/unstable/schema/Model.js +1 -1
- package/dist/unstable/socket/Socket.d.ts +3 -3
- package/dist/unstable/socket/Socket.js +3 -3
- package/dist/unstable/socket/SocketServer.d.ts +1 -1
- package/dist/unstable/socket/SocketServer.js +1 -1
- package/dist/unstable/sql/Migrator.d.ts +1 -1
- package/dist/unstable/sql/SqlClient.d.ts +3 -3
- package/dist/unstable/sql/SqlClient.js +2 -2
- package/dist/unstable/sql/SqlConnection.d.ts +1 -1
- package/dist/unstable/sql/SqlConnection.js +1 -1
- package/dist/unstable/sql/Statement.d.ts +2 -2
- package/dist/unstable/sql/Statement.js +2 -2
- package/dist/unstable/workers/Transferable.d.ts +1 -1
- package/dist/unstable/workers/Transferable.js +1 -1
- package/dist/unstable/workers/Worker.d.ts +1 -1
- package/dist/unstable/workers/Worker.js +1 -1
- package/dist/unstable/workflow/Activity.d.ts +1 -1
- package/dist/unstable/workflow/Activity.js +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +1 -1
- package/package.json +1 -1
- package/src/Array.ts +16 -16
- package/src/Boolean.ts +2 -2
- package/src/Channel.ts +67 -67
- package/src/Chunk.ts +18 -18
- package/src/Context.ts +4 -4
- package/src/Cron.ts +4 -4
- package/src/Deferred.ts +37 -37
- package/src/Duration.ts +6 -6
- package/src/Effect.ts +58 -58
- package/src/Equal.ts +2 -2
- package/src/Equivalence.ts +1 -1
- package/src/ExecutionPlan.ts +2 -2
- package/src/FileSystem.ts +6 -6
- package/src/Function.ts +5 -5
- package/src/Graph.ts +11 -11
- package/src/HKT.ts +1 -1
- package/src/HashMap.ts +3 -3
- package/src/HashSet.ts +1 -1
- package/src/Iterable.ts +15 -15
- package/src/Layer.ts +16 -16
- package/src/Logger.ts +7 -7
- package/src/ManagedRuntime.ts +2 -2
- package/src/Match.ts +20 -20
- package/src/Metric.ts +20 -20
- package/src/Option.ts +36 -36
- package/src/Order.ts +1 -1
- package/src/Path.ts +1 -1
- package/src/Pipeable.ts +1 -1
- package/src/Predicate.ts +5 -5
- package/src/PubSub.ts +9 -9
- package/src/Queue.ts +24 -24
- package/src/Record.ts +15 -15
- package/src/Redacted.ts +2 -2
- package/src/Ref.ts +18 -18
- package/src/RegExp.ts +1 -1
- package/src/Request.ts +4 -4
- package/src/RequestResolver.ts +8 -8
- package/src/Resource.ts +1 -1
- package/src/Result.ts +18 -18
- package/src/Schedule.ts +45 -45
- package/src/Schema.ts +177 -459
- package/src/SchemaAST.ts +1 -1
- package/src/SchemaGetter.ts +13 -13
- package/src/SchemaParser.ts +3 -3
- package/src/Scope.ts +1 -1
- package/src/Sink.ts +5 -5
- package/src/Stream.ts +57 -57
- package/src/String.ts +5 -5
- package/src/Struct.ts +8 -8
- package/src/SynchronizedRef.ts +57 -57
- package/src/Terminal.ts +1 -1
- package/src/Tracer.ts +5 -5
- package/src/Tuple.ts +14 -14
- package/src/TxHashMap.ts +3 -3
- package/src/TxHashSet.ts +1 -1
- package/src/Unify.ts +7 -7
- package/src/testing/TestClock.ts +5 -5
- package/src/testing/TestConsole.ts +3 -3
- package/src/unstable/ai/Chat.ts +2 -2
- package/src/unstable/ai/EmbeddingModel.ts +1 -1
- package/src/unstable/ai/IdGenerator.ts +2 -2
- package/src/unstable/ai/LanguageModel.ts +4 -4
- package/src/unstable/ai/Prompt.ts +15 -15
- package/src/unstable/ai/Telemetry.ts +5 -5
- package/src/unstable/ai/Tokenizer.ts +1 -1
- package/src/unstable/ai/Tool.ts +6 -6
- package/src/unstable/cli/Command.ts +5 -1
- package/src/unstable/cli/Param.ts +1 -1
- package/src/unstable/cli/Primitive.ts +3 -3
- package/src/unstable/cli/Prompt.ts +11 -11
- package/src/unstable/cli/internal/parser.ts +204 -10
- package/src/unstable/cluster/Entity.ts +1 -1
- package/src/unstable/cluster/HttpRunner.ts +2 -2
- package/src/unstable/cluster/K8sHttpClient.ts +1 -1
- package/src/unstable/cluster/Runners.ts +1 -1
- package/src/unstable/cluster/Sharding.ts +1 -1
- package/src/unstable/cluster/SingletonAddress.ts +1 -1
- package/src/unstable/cluster/Snowflake.ts +5 -5
- package/src/unstable/devtools/DevToolsClient.ts +1 -1
- package/src/unstable/eventlog/EventLog.ts +1 -1
- package/src/unstable/eventlog/EventLogEncryption.ts +1 -1
- package/src/unstable/eventlog/EventLogRemote.ts +1 -1
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +3 -3
- package/src/unstable/http/Cookies.ts +1 -1
- package/src/unstable/http/Etag.ts +1 -1
- package/src/unstable/http/FetchHttpClient.ts +2 -2
- package/src/unstable/http/HttpClient.ts +1 -1
- package/src/unstable/http/HttpClientRequest.ts +2 -2
- package/src/unstable/http/HttpMiddleware.ts +1 -1
- package/src/unstable/http/HttpPlatform.ts +1 -1
- package/src/unstable/http/HttpRouter.ts +4 -4
- package/src/unstable/http/HttpServerResponse.ts +3 -3
- package/src/unstable/http/Url.ts +33 -33
- package/src/unstable/httpapi/HttpApi.ts +1 -1
- package/src/unstable/httpapi/HttpApiError.ts +13 -13
- package/src/unstable/observability/PrometheusMetrics.ts +4 -4
- package/src/unstable/persistence/KeyValueStore.ts +3 -3
- package/src/unstable/persistence/Persistable.ts +2 -2
- package/src/unstable/persistence/PersistedQueue.ts +8 -8
- package/src/unstable/persistence/RateLimiter.ts +1 -1
- package/src/unstable/process/ChildProcess.ts +5 -5
- package/src/unstable/reactivity/AsyncResult.ts +4 -4
- package/src/unstable/reactivity/Atom.ts +1 -1
- package/src/unstable/reactivity/AtomRegistry.ts +1 -1
- package/src/unstable/reactivity/Reactivity.ts +1 -1
- package/src/unstable/rpc/Rpc.ts +5 -5
- package/src/unstable/rpc/RpcMiddleware.ts +1 -1
- package/src/unstable/rpc/RpcSchema.ts +3 -3
- package/src/unstable/schema/Model.ts +2 -2
- package/src/unstable/socket/Socket.ts +3 -3
- package/src/unstable/socket/SocketServer.ts +1 -1
- package/src/unstable/sql/Migrator.ts +1 -1
- package/src/unstable/sql/SqlClient.ts +3 -3
- package/src/unstable/sql/SqlConnection.ts +1 -1
- package/src/unstable/sql/Statement.ts +2 -2
- package/src/unstable/workers/Transferable.ts +1 -1
- package/src/unstable/workers/Worker.ts +1 -1
- package/src/unstable/workflow/Activity.ts +1 -1
- package/src/unstable/workflow/DurableDeferred.ts +1 -1
|
@@ -55,7 +55,7 @@ export interface SqlClient extends Constructor {
|
|
|
55
55
|
* Use to access or provide the SQL client used to build statements, stream
|
|
56
56
|
* rows, reserve connections, and run transactions.
|
|
57
57
|
*
|
|
58
|
-
* @category
|
|
58
|
+
* @category services
|
|
59
59
|
* @since 4.0.0
|
|
60
60
|
*/
|
|
61
61
|
export declare const SqlClient: Context.Service<SqlClient, SqlClient>;
|
|
@@ -70,7 +70,7 @@ export declare namespace SqlClient {
|
|
|
70
70
|
* the SQL compiler, transaction SQL, row transformation, tracing attributes,
|
|
71
71
|
* and optional reactive query integration.
|
|
72
72
|
*
|
|
73
|
-
* @category
|
|
73
|
+
* @category options
|
|
74
74
|
* @since 4.0.0
|
|
75
75
|
*/
|
|
76
76
|
interface MakeOptions {
|
|
@@ -144,7 +144,7 @@ export declare namespace TransactionConnection {
|
|
|
144
144
|
* Creates a unique context service tag for the active transaction connection of
|
|
145
145
|
* a specific SQL client.
|
|
146
146
|
*
|
|
147
|
-
* @category
|
|
147
|
+
* @category services
|
|
148
148
|
* @since 4.0.0
|
|
149
149
|
*/
|
|
150
150
|
export declare const TransactionConnection: (clientId: number) => Context.Service<TransactionConnection, TransactionConnection.Service>;
|
|
@@ -41,7 +41,7 @@ const TypeId = "~effect/sql/SqlClient";
|
|
|
41
41
|
* Use to access or provide the SQL client used to build statements, stream
|
|
42
42
|
* rows, reserve connections, and run transactions.
|
|
43
43
|
*
|
|
44
|
-
* @category
|
|
44
|
+
* @category services
|
|
45
45
|
* @since 4.0.0
|
|
46
46
|
*/
|
|
47
47
|
export const SqlClient = /*#__PURE__*/Context.Service("effect/sql/SqlClient");
|
|
@@ -145,7 +145,7 @@ export const makeWithTransaction = options => effect => {
|
|
|
145
145
|
* Creates a unique context service tag for the active transaction connection of
|
|
146
146
|
* a specific SQL client.
|
|
147
147
|
*
|
|
148
|
-
* @category
|
|
148
|
+
* @category services
|
|
149
149
|
* @since 4.0.0
|
|
150
150
|
*/
|
|
151
151
|
export const TransactionConnection = clientId => Context.Service(`effect/sql/SqlClient/TransactionConnection/${clientId}`);
|
|
@@ -56,7 +56,7 @@ export type Acquirer = Effect<Connection, SqlError, Scope>;
|
|
|
56
56
|
/**
|
|
57
57
|
* Service tag for a low-level SQL `Connection`.
|
|
58
58
|
*
|
|
59
|
-
* @category
|
|
59
|
+
* @category services
|
|
60
60
|
* @since 4.0.0
|
|
61
61
|
*/
|
|
62
62
|
export declare const Connection: Context.Service<Connection, Connection>;
|
|
@@ -25,7 +25,7 @@ import * as Context from "../../Context.js";
|
|
|
25
25
|
/**
|
|
26
26
|
* Service tag for a low-level SQL `Connection`.
|
|
27
27
|
*
|
|
28
|
-
* @category
|
|
28
|
+
* @category services
|
|
29
29
|
* @since 4.0.0
|
|
30
30
|
*/
|
|
31
31
|
export const Connection = /*#__PURE__*/Context.Service("effect/sql/SqlConnection");
|
|
@@ -69,14 +69,14 @@ export declare const CurrentTransformer: Context.Reference<Transformer | undefin
|
|
|
69
69
|
/**
|
|
70
70
|
* Returns `true` when a value is a SQL `Fragment`.
|
|
71
71
|
*
|
|
72
|
-
* @category
|
|
72
|
+
* @category guards
|
|
73
73
|
* @since 4.0.0
|
|
74
74
|
*/
|
|
75
75
|
export declare const isFragment: (u: unknown) => u is Fragment;
|
|
76
76
|
/**
|
|
77
77
|
* Creates a type guard for custom SQL segments with the specified custom kind.
|
|
78
78
|
*
|
|
79
|
-
* @category
|
|
79
|
+
* @category guards
|
|
80
80
|
* @since 4.0.0
|
|
81
81
|
*/
|
|
82
82
|
export declare const isCustom: <A extends Custom<any, any, any, any>>(kind: A["kind"]) => (u: unknown) => u is A;
|
|
@@ -71,14 +71,14 @@ export const CurrentTransformer = /*#__PURE__*/Context.Reference("effect/sql/Cur
|
|
|
71
71
|
/**
|
|
72
72
|
* Returns `true` when a value is a SQL `Fragment`.
|
|
73
73
|
*
|
|
74
|
-
* @category
|
|
74
|
+
* @category guards
|
|
75
75
|
* @since 4.0.0
|
|
76
76
|
*/
|
|
77
77
|
export const isFragment = u => hasProperty(u, FragmentTypeId);
|
|
78
78
|
/**
|
|
79
79
|
* Creates a type guard for custom SQL segments with the specified custom kind.
|
|
80
80
|
*
|
|
81
|
-
* @category
|
|
81
|
+
* @category guards
|
|
82
82
|
* @since 4.0.0
|
|
83
83
|
*/
|
|
84
84
|
export const isCustom = kind => u => hasProperty(u, "_tag") && u._tag === "Custom" && u.kind === kind;
|
|
@@ -80,7 +80,7 @@ export declare const addAll: (tranferables: Iterable<globalThis.Transferable>) =
|
|
|
80
80
|
* Creates a schema getter that records transferables derived from a value in
|
|
81
81
|
* the current `Collector` while passing the value through unchanged.
|
|
82
82
|
*
|
|
83
|
-
* @category
|
|
83
|
+
* @category getters
|
|
84
84
|
* @since 4.0.0
|
|
85
85
|
*/
|
|
86
86
|
export declare const getterAddAll: <A>(f: (_: A) => Iterable<globalThis.Transferable>) => Getter.Getter<A, A>;
|
|
@@ -96,7 +96,7 @@ export const addAll = tranferables => Effect.contextWith(services => {
|
|
|
96
96
|
* Creates a schema getter that records transferables derived from a value in
|
|
97
97
|
* the current `Collector` while passing the value through unchanged.
|
|
98
98
|
*
|
|
99
|
-
* @category
|
|
99
|
+
* @category getters
|
|
100
100
|
* @since 4.0.0
|
|
101
101
|
*/
|
|
102
102
|
export const getterAddAll = f => Getter.transformOrFail(e => Effect.contextWith(services => {
|
|
@@ -140,7 +140,7 @@ export declare const idempotencyKey: (name: string, options?: {
|
|
|
140
140
|
* Runs a non-empty collection of activities as a durable race and returns the
|
|
141
141
|
* first completed success or failure using unioned success and error schemas.
|
|
142
142
|
*
|
|
143
|
-
* @category
|
|
143
|
+
* @category racing
|
|
144
144
|
* @since 4.0.0
|
|
145
145
|
*/
|
|
146
146
|
export declare const raceAll: <const Activities extends NonEmptyReadonlyArray<Any>>(name: string, activities: Activities) => Effect.Effect<Activities[number] extends Activity<infer _A, infer _E, infer _R> ? _A["Type"] : never, Activities[number] extends Activity<infer _A, infer _E_1, infer _R_1> ? _E_1["Type"] : never, (Activities[number] extends Activity<infer Success, infer Error, infer R> ? Success["DecodingServices"] | Error["DecodingServices"] | R : never) | WorkflowEngine | WorkflowInstance>;
|
|
@@ -105,7 +105,7 @@ export const idempotencyKey = /*#__PURE__*/Effect.fnUntraced(function* (name, op
|
|
|
105
105
|
* Runs a non-empty collection of activities as a durable race and returns the
|
|
106
106
|
* first completed success or failure using unioned success and error schemas.
|
|
107
107
|
*
|
|
108
|
-
* @category
|
|
108
|
+
* @category racing
|
|
109
109
|
* @since 4.0.0
|
|
110
110
|
*/
|
|
111
111
|
export const raceAll = (name, activities) => DurableDeferred.raceAll({
|
|
@@ -97,7 +97,7 @@ export declare const into: {
|
|
|
97
97
|
* Runs effects as a durable race, returning a previously persisted result when
|
|
98
98
|
* present or completing a named deferred with the first result.
|
|
99
99
|
*
|
|
100
|
-
* @category
|
|
100
|
+
* @category racing
|
|
101
101
|
* @since 4.0.0
|
|
102
102
|
*/
|
|
103
103
|
export declare const raceAll: <const Effects extends NonEmptyReadonlyArray<Effect.Effect<any, any, any>>, Success extends Schema.Schema<Effect.Success<Effects[number]>>, Error extends Schema.Schema<Effect.Error<Effects[number]>>>(options: {
|
|
@@ -118,7 +118,7 @@ export const into = /*#__PURE__*/dual(2, (effect, self) => Effect.contextWith(co
|
|
|
118
118
|
* Runs effects as a durable race, returning a previously persisted result when
|
|
119
119
|
* present or completing a named deferred with the first result.
|
|
120
120
|
*
|
|
121
|
-
* @category
|
|
121
|
+
* @category racing
|
|
122
122
|
* @since 4.0.0
|
|
123
123
|
*/
|
|
124
124
|
export const raceAll = options => {
|
package/package.json
CHANGED
package/src/Array.ts
CHANGED
|
@@ -911,7 +911,7 @@ export const matchRight: {
|
|
|
911
911
|
* @see {@link append} — add to the end
|
|
912
912
|
* @see {@link prependAll} — prepend multiple elements
|
|
913
913
|
*
|
|
914
|
-
* @category
|
|
914
|
+
* @category combining
|
|
915
915
|
* @since 2.0.0
|
|
916
916
|
*/
|
|
917
917
|
export const prepend: {
|
|
@@ -938,7 +938,7 @@ export const prepend: {
|
|
|
938
938
|
* @see {@link append} — add to the end
|
|
939
939
|
* @see {@link prependAll} — prepend multiple elements
|
|
940
940
|
*
|
|
941
|
-
* @category
|
|
941
|
+
* @category combining
|
|
942
942
|
* @since 2.0.0
|
|
943
943
|
*/
|
|
944
944
|
<B>(head: B): <A>(self: Iterable<A>) => NonEmptyArray<A | B>
|
|
@@ -965,7 +965,7 @@ export const prepend: {
|
|
|
965
965
|
* @see {@link append} — add to the end
|
|
966
966
|
* @see {@link prependAll} — prepend multiple elements
|
|
967
967
|
*
|
|
968
|
-
* @category
|
|
968
|
+
* @category combining
|
|
969
969
|
* @since 2.0.0
|
|
970
970
|
*/
|
|
971
971
|
<A, B>(self: Iterable<A>, head: B): NonEmptyArray<A | B>
|
|
@@ -994,7 +994,7 @@ export const prepend: {
|
|
|
994
994
|
* @see {@link prepend} — add a single element to the front
|
|
995
995
|
* @see {@link appendAll} — add elements to the end
|
|
996
996
|
*
|
|
997
|
-
* @category
|
|
997
|
+
* @category combining
|
|
998
998
|
* @since 2.0.0
|
|
999
999
|
*/
|
|
1000
1000
|
export const prependAll: {
|
|
@@ -1021,7 +1021,7 @@ export const prependAll: {
|
|
|
1021
1021
|
* @see {@link prepend} — add a single element to the front
|
|
1022
1022
|
* @see {@link appendAll} — add elements to the end
|
|
1023
1023
|
*
|
|
1024
|
-
* @category
|
|
1024
|
+
* @category combining
|
|
1025
1025
|
* @since 2.0.0
|
|
1026
1026
|
*/
|
|
1027
1027
|
<S extends Iterable<any>, T extends Iterable<any>>(that: T): (self: S) => ReadonlyArray.OrNonEmpty<S, T, ReadonlyArray.Infer<S> | ReadonlyArray.Infer<T>>
|
|
@@ -1048,7 +1048,7 @@ export const prependAll: {
|
|
|
1048
1048
|
* @see {@link prepend} — add a single element to the front
|
|
1049
1049
|
* @see {@link appendAll} — add elements to the end
|
|
1050
1050
|
*
|
|
1051
|
-
* @category
|
|
1051
|
+
* @category combining
|
|
1052
1052
|
* @since 2.0.0
|
|
1053
1053
|
*/
|
|
1054
1054
|
<A, B>(self: Iterable<A>, that: NonEmptyReadonlyArray<B>): NonEmptyArray<A | B>
|
|
@@ -1075,7 +1075,7 @@ export const prependAll: {
|
|
|
1075
1075
|
* @see {@link prepend} — add a single element to the front
|
|
1076
1076
|
* @see {@link appendAll} — add elements to the end
|
|
1077
1077
|
*
|
|
1078
|
-
* @category
|
|
1078
|
+
* @category combining
|
|
1079
1079
|
* @since 2.0.0
|
|
1080
1080
|
*/
|
|
1081
1081
|
<A, B>(self: NonEmptyReadonlyArray<A>, that: Iterable<B>): NonEmptyArray<A | B>
|
|
@@ -1102,7 +1102,7 @@ export const prependAll: {
|
|
|
1102
1102
|
* @see {@link prepend} — add a single element to the front
|
|
1103
1103
|
* @see {@link appendAll} — add elements to the end
|
|
1104
1104
|
*
|
|
1105
|
-
* @category
|
|
1105
|
+
* @category combining
|
|
1106
1106
|
* @since 2.0.0
|
|
1107
1107
|
*/
|
|
1108
1108
|
<A, B>(self: Iterable<A>, that: Iterable<B>): Array<A | B>
|
|
@@ -1135,7 +1135,7 @@ export const prependAll: {
|
|
|
1135
1135
|
* @see {@link prepend} — add to the front
|
|
1136
1136
|
* @see {@link appendAll} — append multiple elements
|
|
1137
1137
|
*
|
|
1138
|
-
* @category
|
|
1138
|
+
* @category combining
|
|
1139
1139
|
* @since 2.0.0
|
|
1140
1140
|
*/
|
|
1141
1141
|
export const append: {
|
|
@@ -1163,7 +1163,7 @@ export const append: {
|
|
|
1163
1163
|
* @see {@link prepend} — add to the front
|
|
1164
1164
|
* @see {@link appendAll} — append multiple elements
|
|
1165
1165
|
*
|
|
1166
|
-
* @category
|
|
1166
|
+
* @category combining
|
|
1167
1167
|
* @since 2.0.0
|
|
1168
1168
|
*/
|
|
1169
1169
|
<B>(last: B): <A>(self: Iterable<A>) => NonEmptyArray<A | B>
|
|
@@ -1191,7 +1191,7 @@ export const append: {
|
|
|
1191
1191
|
* @see {@link prepend} — add to the front
|
|
1192
1192
|
* @see {@link appendAll} — append multiple elements
|
|
1193
1193
|
*
|
|
1194
|
-
* @category
|
|
1194
|
+
* @category combining
|
|
1195
1195
|
* @since 2.0.0
|
|
1196
1196
|
*/
|
|
1197
1197
|
<A, B>(self: Iterable<A>, last: B): NonEmptyArray<A | B>
|
|
@@ -1221,7 +1221,7 @@ export const append: {
|
|
|
1221
1221
|
* @see {@link append} — add a single element to the end
|
|
1222
1222
|
* @see {@link prependAll} — add elements to the front
|
|
1223
1223
|
*
|
|
1224
|
-
* @category
|
|
1224
|
+
* @category combining
|
|
1225
1225
|
* @since 2.0.0
|
|
1226
1226
|
*/
|
|
1227
1227
|
export const appendAll: {
|
|
@@ -1249,7 +1249,7 @@ export const appendAll: {
|
|
|
1249
1249
|
* @see {@link append} — add a single element to the end
|
|
1250
1250
|
* @see {@link prependAll} — add elements to the front
|
|
1251
1251
|
*
|
|
1252
|
-
* @category
|
|
1252
|
+
* @category combining
|
|
1253
1253
|
* @since 2.0.0
|
|
1254
1254
|
*/
|
|
1255
1255
|
<S extends Iterable<any>, T extends Iterable<any>>(that: T): (self: S) => ReadonlyArray.OrNonEmpty<S, T, ReadonlyArray.Infer<S> | ReadonlyArray.Infer<T>>
|
|
@@ -1277,7 +1277,7 @@ export const appendAll: {
|
|
|
1277
1277
|
* @see {@link append} — add a single element to the end
|
|
1278
1278
|
* @see {@link prependAll} — add elements to the front
|
|
1279
1279
|
*
|
|
1280
|
-
* @category
|
|
1280
|
+
* @category combining
|
|
1281
1281
|
* @since 2.0.0
|
|
1282
1282
|
*/
|
|
1283
1283
|
<A, B>(self: Iterable<A>, that: NonEmptyReadonlyArray<B>): NonEmptyArray<A | B>
|
|
@@ -1305,7 +1305,7 @@ export const appendAll: {
|
|
|
1305
1305
|
* @see {@link append} — add a single element to the end
|
|
1306
1306
|
* @see {@link prependAll} — add elements to the front
|
|
1307
1307
|
*
|
|
1308
|
-
* @category
|
|
1308
|
+
* @category combining
|
|
1309
1309
|
* @since 2.0.0
|
|
1310
1310
|
*/
|
|
1311
1311
|
<A, B>(self: NonEmptyReadonlyArray<A>, that: Iterable<B>): NonEmptyArray<A | B>
|
|
@@ -1333,7 +1333,7 @@ export const appendAll: {
|
|
|
1333
1333
|
* @see {@link append} — add a single element to the end
|
|
1334
1334
|
* @see {@link prependAll} — add elements to the front
|
|
1335
1335
|
*
|
|
1336
|
-
* @category
|
|
1336
|
+
* @category combining
|
|
1337
1337
|
* @since 2.0.0
|
|
1338
1338
|
*/
|
|
1339
1339
|
<A, B>(self: Iterable<A>, that: Iterable<B>): Array<A | B>
|
package/src/Boolean.ts
CHANGED
|
@@ -809,7 +809,7 @@ export const implies: {
|
|
|
809
809
|
* @see {@link some} for checking whether at least one value is `true`
|
|
810
810
|
* @see {@link ReducerAnd} for reducing booleans with AND through a `Reducer`
|
|
811
811
|
*
|
|
812
|
-
* @category
|
|
812
|
+
* @category predicates
|
|
813
813
|
* @since 2.0.0
|
|
814
814
|
*/
|
|
815
815
|
export const every = (collection: Iterable<boolean>): boolean => {
|
|
@@ -841,7 +841,7 @@ export const every = (collection: Iterable<boolean>): boolean => {
|
|
|
841
841
|
* @see {@link every} for checking whether all values are `true`
|
|
842
842
|
* @see {@link ReducerOr} for reducing booleans with OR through a `Reducer`
|
|
843
843
|
*
|
|
844
|
-
* @category
|
|
844
|
+
* @category predicates
|
|
845
845
|
* @since 2.0.0
|
|
846
846
|
*/
|
|
847
847
|
export const some = (collection: Iterable<boolean>): boolean => {
|